CancelReservedInstancesListing
Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.
For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.
Request Parameters
For more information about required and optional parameters that are common to all actions, see Common Query Parameters.
- ReservedInstancesListingId
-
The ID of the Reserved Instance listing.
Type: String
Required: Yes
Response Elements
The following elements are returned by the service.
- requestId
-
The ID of the request.
Type: String
- reservedInstancesListingsSet
-
The Reserved Instance listing.
Type: Array of ReservedInstancesListing objects
Errors
For information about the errors that are common to all actions, see Common Error Types.
Examples
Example
This example request cancels a Reserved Instance listing in the Reserved Instance Marketplace. The response shows that the status is cancelled.
Sample Request
https://ec2.amazonaws.com/?Action=CancelReservedInstancesListing
&ReservedInstancesListingId=3ebe97b5-f273-43b6-a204-7a18cEXAMPLE
&AUTHPARAMS
Sample Response
bec2cf62-98ef-434a-8a15-886fcexample
-
3ebe97b5-f273-43b6-a204-7a18cEXAMPLE
e5a2ff3b-7d14-494f-90af-0b5d0EXAMPLE
2012-07-12T16:55:28.000Z
2012-07-12T16:55:28.000Z
cancelled
CANCELLED
-
Available
0
-
Sold
0
-
Cancelled
1
-
Pending
0
-
5
166.64
USD
false
-
4
133.32
USD
false
-
3
99.99
USD
false
-
2
66.66
USD
false
-
1
33.33
USD
false
XqJIt1342112125076
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: