| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
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.
ProductCodeThe product code.
Type: String
Default: None
Required: Yes
InstanceIdThe instance.
Type: String
Default: None
Required: Yes
The following elements are returned in a
ConfirmProductInstanceResponse element.
requestIdThe ID of the request.
Type: xsd:string
returnReturns true if the request succeeds. Otherwise, returns an error.
Type: xsd:boolean
ownerIdThe instance owner's account ID. Only present if the product code is attached to the instance.
Type: xsd:string
This example displays the product code that is associated with the instance.
https://ec2.amazonaws.com/?Action=ConfirmProductInstance &ProductCode=774F4FF8 &InstanceId=i-10a64379 &AUTHPARAMS
<ConfirmProductInstanceResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> <ownerId>111122223333</ownerId> </ConfirmProductInstanceResponse>