Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

ConfirmProductInstance

Description

Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner needs to verify whether another EC2 user's instance is eligible for support.

Request Parameters

ProductCode

The product code.

Type: String

Default: None

Required: Yes

InstanceId

The instance.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in a ConfirmProductInstanceResponse element.

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. 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 displays the product code that 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/2013-02-01/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
  <return>true</return>
  <ownerId>111122223333</ownerId>
</ConfirmProductInstanceResponse>