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: xsd:string[] Default: none Valid Values: Can be empty Constraints: none |
Yes |
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
<DescribeKeyPairs xmlns="http://ec2.amazonaws.com/doc/2008-08-08"> <keySet> <item> <keyName>example-key-name</keyName> </item> </keySet> </DescribeKeyPairs>
Sample Response
<DescribeKeyPairsResponse xmlns="http://ec2.amazonaws.com/doc/2008-08-08"> <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>