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 |
---|---|---|
|
Type: |
Ancestor: None
Children: instanceId
instanceId
The ID of the instance for which to get the password.
Type: xsd:string
Default: None
Ancestor: GetPasswordDataType
Children: None
Yes
Response Elements
Name | Description |
---|---|
|
Type: GetPasswordDataResponseType Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
The ID of the instance. Type: xsd:string Ancestor: Children: None |
|
The time the data was last updated. Type: xsd:dateTime Ancestor: Children: None |
|
The password of the instance. Type: xsd:string Ancestor: Children: None |
Examples
Example Request
This example returns the encrypted version of the administrator password for the i-2574e22a
instance.
<GetPasswordData xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <instanceId>i-2574e22a</instanceId> </GetPasswordData>
Example Response
<GetPasswordDataResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <instanceId>i-2574e22a</instanceId> <timestamp>2009-10-24 15:00:00</timestamp> <passwordData>TGludXggdmVyc2lvbiAyLjYuMTYteGVuVSAoYnVpbGRlckBwYXRjaGJhdC5hbWF6b25zYSkgKGdj</passwordData></GetPasswordDataResponse>