Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to Digg

ConfirmProductInstance

Description

Verifies whether a Amazon DevPay product code is associated with an instance. This can only be executed by the owner of the AMI and is useful when an AMI owner wants to verify whether another EC2 user's instance is eligible for support.

Request Parameters

NameDescriptionRequired

ProductCode

The product code to confirm.

Type: String

Default: None

Yes

InstanceId

The instance to confirm.

Type: String

Default: None

Yes

Response Elements

The elements in the following table come wrapped in a ConfirmProductInstanceResponse structure.

NameDescription

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the product code is attached to the instance. Otherwise, returns an error.

Type: xsd:boolean

ownerId

The instance owner's account ID. Only present if the product code is attached to the instance.

Type: xsd:string

Examples

Example Request

This example describes the confirms the product code is associated with the instance.

https://ec2.amazonaws.com/?Action=ConfirmProductInstance
&ProductCode=774F4FF8
&InstanceId=i-10a64379
&AuthParams

Example Response

<ConfirmProductInstanceResponse xmlns="http://ec2.amazonaws.com/doc/2010-08-31/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
  <return>true</return>
  <ownerId>254933287430</ownerId>
</ConfirmProductInstanceResponse>