DescribeKeyPairs
The DescribeKeyPairs
operation returns
information about key pairs available to you. If you specify
key pairs, information about those key pairs is returned.
Otherwise, information for all registered key pairs is
returned.
Request Parameters
The following table describes the request parameters for
DescribeKeyPairs
. Parameter names are case
sensitive.
Name | Description | Required |
---|---|---|
|
Key pair IDs to describe. Type: String |
No |
Response Elements
The following table describes the default response tags included
in DescribeKeyPairs
responses.
Name | Description |
---|---|
|
A list of key pair descriptions. Type: DescribeKeyPairsResponseItemType[] |
Sample Request
https://ec2.amazonaws.com/ ?Action=DescribeKeyPairs &KeyName.1=example-key-name &...auth parameters...
Sample Response
<DescribeKeyPairsResponse xmlns="http://ec2.amazonaws.com/doc/2008-12-01"> <keySet> <item> <keyName>example-key-name</keyName> <keyFingerprint>1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f</keyFingerprint> </item> </keySet> </DescribeKeyPairsResponse>