Amazon Elastic Compute Cloud
API Reference (API Version 2011-12-15)
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 DiggDid this page help you?  Yes  No   Tell us about it...

GetPasswordData

Description

Retrieves the encrypted administrator password for an instance running Windows.

[Note]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

NameDescriptionRequired

InstanceId

A Windows instance ID.

Type: String

Default: None

Yes

Response Elements

The elements in the following table are wrapped in a GetPasswordDataResponse structure.

NameDescription

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/2011-12-15/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
  <instanceId>i-2574e22a</instanceId>
  <timestamp>2009-10-24 15:00:00</timestamp>
  <passwordData>TGludXggdmVyc2lvbiAyLjYuMTYteGVuVSAoYnVpbGRlckBwYXRjaGJhdC5hbWF6b25zYSkgKGdj</passwordData>
</GetPasswordDataResponse>