获取公钥列表(GetPublicKeys)
更新时间:2025-05-08 07:50:27
基本信息
Action:/qai/aicp/keys/public_key
Method: GET
Content-Type:application/json
请求参数
参数 | 类型 | 描述 | 是否必须 |
---|---|---|---|
offset |
interger |
表示数据偏移量,默认值为 |
no |
limit |
integer |
表示返回数据长度,默认值为 |
no |
reverse |
boolean |
是否倒序排序,默认值为 |
no |
order_by |
string |
排序依据,默认未创建时间。 |
no |
search_word |
string |
搜索关键词。 |
no |
响应参数
此接口包含的公共响应参数,可参见前文内容,其他参数介绍如下:
data.pk_id | string | 公钥的 ID。 |
---|---|---|
data.key |
string |
公钥。 |
data.user_id |
string |
用户 ID。 |
data.root_user_id |
string |
root 用户 ID。 |
data.create_time |
string |
创建时间。 |
data.description |
string |
描述信息。 |
data.name |
string |
公钥名称。 |
data.total |
integer |
总数。 |
请求示例
curl -X 'GET' \
'https://ai.coreshub.cn/qai/aicp/keys/public_key?offset=0&limit=20&reverse=false&order_by=create_time' \
-H 'accept: application/json'
响应示例
{
"ret_code": 0,
"message": "success",
"meta": {
"X_REQUEST_ID": "string",
"X_REQUEST_USER": "string"
},
"data": [
{
"pk_id": "string",
"key": "",
"user_id": "",
"root_user_id": "",
"create_time": "",
"description": "",
"name": "string",
"total": 0
}
],
"counts": 0
}