| Did this page help you? Yes No Tell us about it... |
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. |
| Name | Description | Required |
|---|---|---|
|
|
A Windows instance ID. Type: String Default: None |
Yes |
The elements in the following table are wrapped in a
GetPasswordDataResponse structure.
| Name | Description |
|---|---|
|
|
The ID of the request. Type: xsd:string |
|
|
The ID of the instance. Type: xsd:string |
|
|
The time the data was last updated. Type: xsd:dateTime |
|
|
The password of the instance. Type: xsd:string |
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
<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>