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...

GetPasswordData

Description

Retrieves the encrypted administrator password for an instance running Windows.

Note

The Windows password is only generated the first time an AMI is launched. It is not generated for rebundled AMIs or after the password is changed on an instance.

The password is encrypted using the key pair that you provided.

Request Parameters

InstanceId

A Windows instance ID.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in a GetPasswordDataResponse element.

requestId

The ID of the request.

Type: xsd:string

instanceId

The ID of the instance.

Type: xsd:string

timestamp

The time the data was last updated.

Type: xsd:dateTime

passwordData

The password of the instance.

Type: xsd:string

Examples

Example Request

This example returns the encrypted version of the administrator password for the i-2574e22a instance.

https://ec2.amazonaws.com/?Action=GetPasswordData
&InstanceId=i-10a64379
&AUTHPARAMS

Example Response

<GetPasswordDataResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
  <instanceId>i-2574e22a</instanceId>
  <timestamp>2009-10-24 15:00:00</timestamp>
  <passwordData>TGludXggdmVyc2lvbiAyLjYuMTYteGVuVSAoYnVpbGRlckBwYXRjaGJhdC5hbWF6b25zYSkgKGdj</passwordData>
</GetPasswordDataResponse>