listKey
Get the SSH public key list of the currently logged in user
Query Parameters
- page
Page num (default is 1)
- per_page
Page size (default 30, max 100)
Header Parameters
- Authorization required
Oauth2 token or private token (needs to start with Bearer plus a space)
Responses
- 200
- 401
Success
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- key string
public key
- id string
public key id
- title string
public key name
- createdAt string
creation time
- readOnly boolean
Is it read-only?
{
"key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE6tiarA4AR0asd33dklfjf87R6TE9BJAfkdBpqHi9zWfRhloJ 323467712@qq.com",
"id": 207003,
"title": "ssh-1",
"createdAt": "2023-02-24T04:31:36.000+00:00",
"readOnly": false
}
- Schema
- Example (from schema)
Schema
- key string
public key
- id string
public key id
- title string
public key name
- createdAt string
creation time
- readOnly boolean
Is it read-only?
<root>
<key>ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE6tiarA4AR0asd33dklfjf87R6TE9BJAfkdBpqHi9zWfRhloJ 323467712@qq.com</key>
<id>207003</id>
<title>ssh-1</title>
<createdAt>2023-02-24T04:31:36.000+00:00</createdAt>
<readOnly>false</readOnly>
</root>
invalid token
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- error string
error name
- error_description string
wrong description
{
"error": "invalid_token",
"error_description": "Invalid token, please provide correct token"
}
- Schema
- Example (from schema)
Schema
- error string
error name
- error_description string
wrong description
<root>
<error>invalid_token</error>
<error_description>Invalid token, please provide correct token</error_description>
</root>
Loading...