The DescribeReservedInstancesOfferings operation describes Reserved Instance offerings that are available for purchase. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
|---|---|
|
A |
Examples
Describe reserved instances offerings.
$ec2 = new AmazonEC2(); $response = $ec2->describe_reserved_instances_offerings(array( 'AvailabilityZone' => 'us-east-1a', 'InstanceType' => 'c1.medium' )); var_dump($response->isOK());Result:
bool(true)
Filter Reserved Instances Offerings
$ec2 = new AmazonEC2();
$response = $ec2->describe_reserved_instances_offerings(array(
'Filter' => array(
array('Name' => 'duration', 'Value' => strtotime('1 year')),
array('Name' => 'product-description', 'Value' => 'Linux/UNIX' ),
)
));
var_dump($response->isOK());
Result:
bool(true)
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (24 lines) | View on GitHub

