Method: Fog::Compute::AWS::Real#purchase_reserved_instances_offering
- Defined in:
- lib/fog/aws/requests/compute/purchase_reserved_instances_offering.rb
#purchase_reserved_instances_offering(reserved_instances_offering_id, instance_count = 1) ⇒ Object
Purchases a Reserved Instance for use with your account.
Parameters
-
reserved_instances_offering_id<~String> - ID of the Reserved Instance offering you want to purchase.
-
instance_count<~Integer> - The number of Reserved Instances to purchase.
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘requestId’<~String> - Id of request
-
‘reservedInstancesId’<~String> - Id of the purchased reserved instances.
-
-
21 22 23 24 25 26 27 28 29 |
# File 'lib/fog/aws/requests/compute/purchase_reserved_instances_offering.rb', line 21 def purchase_reserved_instances_offering(reserved_instances_offering_id, instance_count = 1) request({ 'Action' => 'PurchaseReservedInstancesOffering', 'ReservedInstancesOfferingId' => reserved_instances_offering_id, 'InstanceCount' => instance_count, :idempotent => true, :parser => Fog::Parsers::Compute::AWS::PurchaseReservedInstancesOffering.new }) end |