基本信息

Action:/qai/aicp/keys/public_key

Method: POST

Content-Type:application/json

请求参数

参数 类型 描述 是否必须

key

string

公钥。

yes

description

string

描述信息。

yes

name

string

公钥名称。

yes

响应参数

此接口包含的公共响应参数,可参见前文内容,其他参数介绍如下:

参数 类型 描述

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 'POST' \
  'https://ai.coreshub.cn/qai/aicp/keys/public_key' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "key": "xxxxxxxxxxx",
  "description": "xxxxxxxxx",
  "name": "string"
}'

响应示例

{
  "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
}