GetPasswordData
Description
Retrieves the encrypted administrator password for the instances 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
Name | Description | Required |
---|---|---|
| The ID of the instance for which to get the password. Type: String Default: None | Yes |
Response Elements
Name | Description |
---|---|
|
Type: |
Ancestor: None
Children: requestId
, instanceId
, timestamp
, and passwordData
requestId
The ID of the request.
Type: xsd:string
Ancestor: GetPasswordDataResponseType
Children: None
instanceId
The ID of the instance.
Type: xsd:string
Ancestor: GetPasswordDataResponseType
Children: None
timestamp
The time the data was last updated.
Type: xsd:dateTime
Ancestor: GetPasswordDataResponseType
Children: None
passwordData
The password of the instance.
Type: xsd:string
Ancestor: GetPasswordDataResponseType
Children: None
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/2009-07-15/"> <instanceId>i-2574e22a</instanceId> <timestamp>2009-10-24 15:00:00</timestamp> <passwordData>TGludXggdmVyc2lvbiAyLjYuMTYteGVuVSAoYnVpbGRlckBwYXRjaGJhdC5hbWF6b25zYSkgKGdj</passwordData></GetPasswordDataResponse>