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.
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[] |
Yes (but can be empty) |
The following table describes the default response tags included
in DescribeKeyPairs
responses.
Name | Description |
---|---|
|
A list of key pair descriptions Type: DescribeKeyPairsResponseItemType[] |
<DescribeKeyPairs xmlns="http://ec2.amazonaws.com/doc/2008-02-01"> <keySet> <item> <keyName>example-key-name</keyName> </item> </keySet> </DescribeKeyPairs>
<DescribeKeyPairsResponse xmlns="http://ec2.amazonaws.com/doc/2008-02-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>