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.

NameDescriptionRequired

KeyName.n

Key pair IDs to describe.

Type: String

No

The following table describes the default response tags included in DescribeKeyPairs responses.

NameDescription

keySet

A list of key pair descriptions.

Type: DescribeKeyPairsResponseItemType[]

https://ec2.amazonaws.com/
?Action=DescribeKeyPairs
&KeyName.1=example-key-name
&...auth parameters...
<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>