| « PreviousNext » | |
![]() ![]() | 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.
InstanceIdA Windows instance ID.
Type: String
Default: None
Required: Yes
The following elements are returned in a
GetPasswordDataResponse element.
requestIdThe ID of the request.
Type: xsd:string
instanceIdThe ID of the instance.
Type: xsd:string
timestampThe time the data was last updated.
Type: xsd:dateTime
passwordDataThe 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/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>