ConfirmProductInstance
The ConfirmProductInstance
operation returns
true if the specified product code is attached to the specified instance.
The operation returns false if the product code is not attached to the instance.
The ConfirmProductInstance
operation can only be executed by the owner of the AMI. This feature is useful when an AMI owner is providing support and wants to verify whether a user's instance is eligible.
Request Parameters
The following table describes the request parameters for
ConfirmProductInstance
. Parameter names are case
sensitive.
Name | Description | Required |
---|---|---|
|
The product code to confirm. Type: xsd:string |
Yes |
|
The instance for which to confirm the product code. Type: xsd:string |
Yes |
Response Elements
The following table describes the default response tags included
in ConfirmProductInstance
responses.
Name | Description |
---|---|
|
True if the product code is attached to the instance, false if it is not. Type: xsd:boolean |
|
The instance owner's account ID. Only present if the product code is attached to the instance. Type: xsd:string |
Sample Request
<ConfirmProductInstance xmlns="http://ec2.amazonaws.com/doc/2009-03-01/"> <productCode>774F4FF8</productCode> <instanceId>i-10a64379</instanceId> </ConfirmProductInstance>
Sample Response
<ConfirmProductInstanceResponse xmlns="http://ec2.amazonaws.com/doc/2009-03-01/"> <return>true</return> <ownerId>254933287430</ownerId> </ConfirmProductInstanceResponse>