获取当前登录用户的 SSH 公钥列表
获取当前登录用户的 SSH 公钥列表
Query Parameters
- page
页码(默认为1)
- per_page
页面大小(默认 30,最大 100)
Header Parameters
- Authorization required
Oauth2 token或者私人token(需以Bearer加空格开头)
Responses
- 200
- 401
操作成功
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- key string
公钥
- id string
公钥id
- title string
公钥名称
- createdAt string
创建时间
- readOnly boolean
是否只读
{
"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
公钥
- id string
公钥id
- title string
公钥名称
- createdAt string
创建时间
- readOnly boolean
是否只读
<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>
token无效
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- error string
错误名称
- error_description string
错误描述
{
"error": "invalid_token",
"error_description": "Invalid token, please provide correct token"
}
- Schema
- Example (from schema)
Schema
- error string
错误名称
- error_description string
错误描述
<root>
<error>invalid_token</error>
<error_description>Invalid token, please provide correct token</error_description>
</root>
Loading...