ListContextStoreAPIKeys - 获取 API Key 列表

更新时间:
复制 MD 格式

获取 API Key 列表

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /workspace/{workspace}/contextstore/{contextStoreName}/apikey HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

workspace

string

工作空间 ID

workspace-test

contextStoreName

string

上下文库

test-context-Store

请求参数

名称

类型

必填

描述

示例值

nextToken

string

分页 Token

615dfe7fd00f699ea94d5e63ba564aaf22450858c58f1387cc78f883b2254ab47232ce40fa95d9cb

maxResults

integer

最大返回数量

100

返回参数

名称

类型

描述

示例值

object

响应数据

requestId

string

请求 Id

8FDE2569-626B-5176-9844-28877A*****

nextToken

string

分页 Token

xCs4wJD41qEejNkappMSJ1OL2Ky2GeKLqmBLJrC61WrgUOj9F-31jHbo5Kgqzifv

maxResults

integer

最大返回数量

100

total

integer

总条数

454

results

array<object>

返回值

object

返回值

name

string

API Key 的显示名称,用于标识用途

Production Service Key

apiKey

string

完整的 API Key 值

sk-3ac8d45d741e4f31b81aa6ee984ce9fd

createTime

string

创建时间

1778205145

workspace

string

工作空间 ID

test-workspace

contextStoreName

string

上下文库名称

test-context-Store

示例

正常返回示例

JSON格式

{
  "requestId": "8FDE2569-626B-5176-9844-28877A*****",
  "nextToken": "xCs4wJD41qEejNkappMSJ1OL2Ky2GeKLqmBLJrC61WrgUOj9F-31jHbo5Kgqzifv",
  "maxResults": 100,
  "total": 454,
  "results": [
    {
      "name": "Production Service Key",
      "apiKey": "sk-3ac8d45d741e4f31b81aa6ee984ce9fd",
      "createTime": "1778205145",
      "workspace": "test-workspace",
      "contextStoreName": "test-context-Store"
    }
  ]
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情