ConfirmProductInstance

The ConfirmProductInstance operation returns true if the given product code is attached to the instance with the given instance id. False is returned 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.

The following table describes the request parameters for ConfirmProductInstance. Parameter names are case sensitive.

Element NameDefinitionRequired?Type
productCode The product code to confirm is attached to the instance. Yesxsdstring
instanceId The instance to confirm the product code is attached to. Yesxsdstring

The following table describes the default response tags included in ConfirmProductInstance responses.

Element NameDefinitionType
return True if the product code is attached to the instance, false if it is not. xsd:boolean
ownerId The instance owner's account id. Only present if the product code is attached to the instance. xsdstring
<ConfirmProductInstance xmlns="http://ec2.amazonaws.com/doc/2007-03-01">
  <productCode>774F4FF8</productCode>
  <instanceId>i-10a64379</instanceId>
</ConfirmProductInstance>
<ConfirmProductInstanceResponse xmlns="http://ec2.amazonaws.com/doc/2007-03-01">
  <return>true</return>
  <ownerId>254933287430</ownerId>
</ConfirmProductInstanceResponse>