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" : "z00464114@SZXG4Z004641141", "key" : "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDyLDdm3bojpgitxdP854P9i0wDuruTTo+YSyT6lRb0VEaLCIFvkf3DEtHURAtgJ590hqFHxpSfiLgbJwv4Tk4Im3f125meJPvScvV3bp8eHYUYSazP+MS3NCXFwJzViXRikaA33pZLP1OLPtCTrNdEgX5kj5BbX3V9z8UEFXpq55YZq12BNbs7njgTyTGjAHA+G2fLS53CO6pUSBLKQj0BCZdDQr5RcrZrX0axFjREATbSDbLHH4/za1VZVSKelphEEJp8OZXkgtlOXVIo+/scrhIET4qj7oWjJm1BbfHZanfJrJKr6+Z5rnJqa/pE8buOrxri6AWqAky0bmtjSuVf z00464114@SZXG4Z004641141" }, { "id" : "1031709", "title" : "yumeng17@huawei.com", "key" : "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHcxQrlLYP7NTWjXRjTyc0e5O4EYEJ6HqvK1lLufK676uPu3AOP5csA2HrQVZdNBCfK50Qon1X0CVWzm++PaxrJ9J5rxvEObGZiDasZroRpDLNxVcz01vHNosTZZH3D9dBGFdQVeNYFc1QrsMSXfivCzeq6lcpNTO7Tj6w/+J1QparPNi3yLB//y+FM71nwbbPFmuJrN7b/o3X1RGrczCY+idCUcl6CDp9hltwYdoRmntndpVtLwSKeWE1MSLNkvPzENXgtOmxm2LI2eR5h4hNYSxT0NIazsW/UivadFXG/VNNPl0nU7xcma6HU8nj1E0i46VOb+WyOONl3gh142BV yumeng17@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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot