Getting Information About Your Keypairs
You can get information about your keypairs. This action is available for both imported and TINA-generated keypairs.
If you exceed the number of identical requests allowed for a configured time period, the RequestLimitExceeded
error message is returned.
This procedure uses AWS CLI only. Information about your keypairs is also available:
-
From Cockpit. For more information, see Keypairs User Interface.
-
In the case of the public part of a keypair, only from within the associated instances themselves. For more information, see Accessing the Metadata and User Data of an Instance.
To get information about one or more keypairs, use the describe-key-pairs command following this syntax:
$ aws ec2 describe-key-pairs \
--profile YOUR_PROFILE \
--key-name MyKeyPair \
--endpoint https://fcu.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
key-names
: The name of one or more keypairs about which you want to get information. -
(optional)
filters
: One or more filters. The following filters are available:-
key-name
: The name of one or more keypairs. -
key-fingerprint
: The MD5 public key fingerprint as specified in section 4 of RFC 4716.
-
-
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The describe-key-pairs command returns the following elements:
-
KeyPairs
: Information about one or more keypairs. This element contains the following information:-
KeyName
: The name of the keypair. -
KeyFingerprint
: The MD5 public key fingerprint as specified in section 4 of RFC 4716.
-
{
"KeyPairs": [
{
"KeyName": "MyKeyPair",
"KeyFingerprint": "1a:11:aa:11:aa:11:a1:a1:1a:11:1a:11:1a:1a:a1:aa"
}
]
}
Related Pages
Corresponding API Method
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.