Querying SSH Key Pairs (Discarded)
Function
This API is used to query SSH key pairs.
This API has been discarded. Use the API described in Querying the SSH Key Pair List.
URI
GET /v2.1/{project_id}/os-keypairs
Parameter |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. |
Request
None
Response
Parameter |
Type |
Description |
---|---|---|
keypairs |
Array of objects |
Specifies key pairs. For details, see Table 3. |
Parameter |
Type |
Description |
---|---|---|
keypair |
Object |
Specifies details about a key pair. For details, see Table 4. |
Parameter |
Type |
Description |
---|---|---|
fingerprint |
String |
Specifies fingerprint information about the key pair. |
name |
String |
Specifies the key pair name. |
type |
String |
Specifies the key type, which is ssh by default. This parameter is supported in microversion 2.2 and later. |
public_key |
String |
Specifies information about the public key. |
Example Request
Query the list of SSH key pairs.
GET https://{endpoint}/v2.1/{project_id}/os-keypairs
Example Response
{ "keypairs": [ { "keypair": { "fingerprint": "15:b0:f8:b3:f9:48:63:**:**:**:**:**:**:**:**:**", "name": "keypair-601a2305-4f25-41ed-89c6-2a966fc8027a", "type": "ssh", "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC+Eo/RZRngaGTkFs7I62ZjsIlO79Kkl****************************************************************************************************************************************************** Generated-by-Nova\n" } } ] }
Returned Values
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot