创建一个Key¶
POST /api/v1/workspace/accesskey/add
概述¶
创建一个Key
Body 请求参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
name | string | Y | AK名称信息 例子: xxx 允许为空: False |
参数补充说明¶
请求例子¶
curl 'https://openapi.guance.com/api/v1/workspace/accesskey/add' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"name": "88"}' \
--compressed \
--insecure
响应¶
{
"code": 200,
"content": {
"createAt": 1678024319,
"creator": "xxxx",
"deleteAt": -1,
"id": null,
"name": "88",
"sk": "xxx",
"status": 0,
"updateAt": 1678024319,
"updator": "xxx",
"uuid": "xxx",
"workspaceUUID": "wksp_xxxx32"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-A294E29E-33DE-48A5-A379-0BAA1519D256"
}