DescribeKeyPairs#

Description#

Describes the list of your SSH key pairs.

Request Parameters#

  • Filter.N — One or more filters.

    • Type: List of Filter objects

    • Required: No

  • KeyName.N — The names of the key pairs.

    • Type: Array of strings

    • Required: No

Supported Filters#

  • fingerprint — The fingerprint of the key pair.

  • tag-key — The tag key. Such a filter allows you to get resources with the specified key and any value.

  • tag:<tag-key> — The key/value a pair of a tag. The tag key is passed in the filter name, while the tag value is used as the filter value.

Response Elements#

  • keySet — The set of key pairs.

  • requestId — The request ID

    • Type: String

Examples#

c2-ec2 DescribeKeyPairs

c2-ec2 DescribeKeyPairs KeyName.1 default

c2-ec2 DescribeKeyPairs Filter.1.Name tag:<tag-key> Filter.1.Value <tag-value>

c2-ec2 DescribeKeyPairs Filter.1.Name tag-key Filter.1.Value <tag-key>