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

keySet

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.

NameDescription

keySet

A list of key pair descriptions

Type: ec2:DescribeKeypairsResponseItemType[]

<DescribeKeyPairs xmlns="http://ec2.amazonaws.com/doc/2007-08-29">
  <keySet>
    <item>
      <keyName>example-key-name</keyName>
    </item>
  </keySet>
</DescribeKeyPairs>
<DescribeKeyPairsResponse xmlns="http://ec2.amazonaws.com/doc/2007-08-29">
  <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>