| Did this page help you? Yes No Tell us about it... |
Verifies whether an Amazon DevPay product code is associated with an instance. This can only be executed by the owner of the product code and is useful when a product code owner wants to verify whether an EC2 user’s instance is eligible for support.
The short version of this command is ec2cpi.
ec2-confirm-product-instance
product_code -i instance_id
| Name | Description | Required |
|---|---|---|
|
|
The product code to confirm. This must be an Amazon DevPay product code that you own. Type: String Default: None Example: 774F4FF8 |
Yes |
|
|
The instance to confirm. Type: String Default: None Example: -i i-10a64379 |
Yes |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
Product code
Instance ID
Boolean value indicating if the product code is attached to the instance
The instance owner's account ID (if the product code is attached)
Amazon EC2 command line tools display errors on stderr.
This example describes the confirms the product code is associated with the instance.
PROMPT>ec2-confirm-product-instance 774F4FF8 -i i-10a64379774F4FF8 i-10a64379 true 999988887777