Movatterモバイル変換


[0]ホーム

URL:


GetReservedInstancesExchangeQuote - Amazon Elastic Compute Cloud
DocumentationAmazon EC2API Reference
Request ParametersResponse ElementsErrorsExamplesSee Also

GetReservedInstancesExchangeQuote

Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. UseAcceptReservedInstancesExchangeQuote to perform the exchange.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, seeCommon Query Parameters.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.

Type: Boolean

Required: No

ReservedInstanceId.N

The IDs of the Convertible Reserved Instances to exchange.

Type: Array of strings

Required: Yes

TargetConfiguration.N

The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.

Type: Array ofTargetConfigurationRequest objects

Required: No

Response Elements

The following elements are returned by the service.

currencyCode

The currency of the transaction.

Type: String

isValidExchange

Iftrue, the exchange is valid. Iffalse, the exchange cannot be completed.

Type: Boolean

outputReservedInstancesWillExpireAt

The new end date of the reservation term.

Type: Timestamp

paymentDue

The total true upfront charge for the exchange.

Type: String

requestId

The ID of the request.

Type: String

reservedInstanceValueRollup

The cost associated with the Reserved Instance.

Type:ReservationValue object

reservedInstanceValueSet

The configuration of your Convertible Reserved Instances.

Type: Array ofReservedInstanceReservationValue objects

targetConfigurationValueRollup

The cost associated with the Reserved Instance.

Type:ReservationValue object

targetConfigurationValueSet

The values of the target Convertible Reserved Instances.

Type: Array ofTargetReservationValue objects

validationFailureReason

Describes the reason why the exchange cannot be completed.

Type: String

Errors

For information about the errors that are common to all actions, seeCommon client error codes.

Examples

Example

This example describes the output of requesting whether a potential exchange is valid.

Sample Request

https://ec2.amazonaws.com/?Action=GetReservedInstancesExchangeQuote&ReservedInstanceId.1=649fd0c8-7768-46b8-8f84-a6400EXAMPLE&TargetConfiguration.1.OfferingId=24167194-6541-4041-9e31-bc7c5984aa53&AUTHPARAMS

Sample Response

<GetReservedInstancesExchangeQuoteResponse> <requestId>d072f652-cc57-458c-89e0-e6c02EXAMPLE</requestId> <outputReservedInstancesWillExpireAt>2019-05-17T12:32:53Z</outputReservedInstancesWillExpireAt> <reservedInstanceValueSet> <item> <reservedInstancesId>649fd0c8-7768-46b8-8f84-a6400EXAMPLE</reservedInstanceId> <reservationValue> <remainingTotalValue>98.048402</remainingTotalValue> <hourlyPrice>0.018000</hourlyPrice> <remainingUpfrontValue>631.0</remainingUpfrontValue> </reservationValue> </item> </reservedInstanceValueSet> <targetConfigurationValueSet> <isValidExchange>false</isValidExchange> <paymentDue>-448.416438</paymentDue> <targetConfigurationValueRollup> <remainingTotalValue>0</remainingTotalValue> <hourlyPrice>0</hourlyPrice> <remainingUpfrontValue>0</remainingUpfrontValue> <targetConfigurationValueRollup> <reservedInstanceValueRollup> <remainingTotalValue>873.504438</remainingTotalValue> <hourlyPrice>0.018000</hourlyPrice> <remainingUpfrontValue>448.416438</remainingUpfrontValue> </reservedInstanceValueRollup> <currencyCode>USD</currencyCode> <validationFailureReason>The target configuration value is less than the input</validationFailureReason></GetReservedInstancesExchangeQuoteResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

GetPasswordData
GetRouteServerAssociations

[8]
ページ先頭

©2009-2025 Movatter.jp