GetKeyPairs【获取密钥对信息列表】¶
获取用户的密钥对信息列表
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
data | Array | JSON 格式的密钥信息列表,每项参数可见下面 Data Item |
Data Item
Name | Type | Description |
---|---|---|
id | String | 密钥 ID |
name | String | 密钥名称 |
fingerprint | String | 指纹 |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/x-www-form-urlencoded
Form Data:
action: GetKeyPairs
Example Response:
{
"message": "成功",
"code": 200,
"data": [
{
"id": "tgfrg",
"name": "tgfrg",
"fingerprint": "e9:2d:02:96:c9:2b:5c:8b:df:26:80:34:42:23:6f:9d"
},
{
"id": "wqw",
"name": "wqw",
"fingerprint": "96:ba:0b:d1:60:c2:57:38:87:47:90:af:f7:68:6c:53"
}
]
}