Obtaining the SSH Key List
Function
This interface is used to obtain the SSH key list.
URI
GET /v1/users/sshkey
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header). |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Response error. |
result |
PublicKeyList object |
Result |
status |
String |
Status code in a response |
Parameter |
Type |
Description |
---|---|---|
sshkey |
Array of PublicKey objects |
Keys |
total |
Integer |
Total number of keys |
Example Requests
GET https://{endpoint}/v1/users/sshkey
Example Responses
Status code: 200
OK
{ "result" : { "total" : 2, "sshkey" : [ { "id" : "1015292", "title" : "reop1@huawei.com", "key" : "ssh-rsa AAAAB3NzaC1yc2EAAAADAQA*********************************************************Bqa/pE8buOrxri6AWqAky0bmtjSuVf reop1@huawei.com" }, { "id" : "1031709", "title" : "reop@huawei.com", "key" : "ssh-rsa AAAAB3NzaC1yc2EA*********************************************************U7xcma6HU8nj1E0i46VObWyOONl3gh142BV repo@huawei.com" } ] }, "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.