查询上下文库
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /workspace/{workspace}/contextstore/{contextStoreName} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| workspace |
string |
是 |
工作空间 ID |
workspace-test |
| contextStoreName |
string |
是 |
上下文库名称 |
test-context-store |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
响应数据 |
||
| requestId |
string |
请求 Id |
8FDE2569-626B-5176-9844-28877A***** |
| contextStoreName |
string |
上下文库名称 |
test-context-store |
| workspace |
string |
工作空间 ID |
workspace-test |
| regionId |
string |
地域 ID |
cn-beijing |
| contextType |
string |
上下文类型 |
memory |
| description |
string |
描述 |
test |
| status |
string |
状态 |
active |
| config |
object |
配置信息 |
|
| innerSource |
object |
内部源 |
|
| project |
string |
日志服务 Project 名称 |
sls-test-project |
| logstore |
string |
日志服务 Logstore 名称 |
sls-test-logstore |
| source |
object |
配置源 |
|
| project |
string |
日志服务 Project 名称 |
sls-test-project |
| logstore |
string |
日志服务 Logstore 名称 |
sls-test-logstore |
| startTime |
string |
生效开始时间 |
1754962200000 |
| metadataField |
object |
元数据字段 |
|
|
string |
元数据字段 |
{ "project": "attributes.project", "logstore": "attributes.logstore", "agentId": "attributes.agent_id", "scene": "attributes.scene" } |
|
| dataset |
object |
数据集信息 |
|
| name |
string |
数据集名称 |
test_dataset |
| createTime |
string |
创建时间 |
1695090077 |
| updateTime |
string |
更新时间 |
1695090077 |
示例
正常返回示例
JSON格式
{
"requestId": "8FDE2569-626B-5176-9844-28877A*****",
"contextStoreName": "test-context-store",
"workspace": "workspace-test",
"regionId": "cn-beijing",
"contextType": "memory",
"description": "test",
"status": "active",
"config": {
"innerSource": {
"project": "sls-test-project",
"logstore": "sls-test-logstore"
},
"source": {
"project": "sls-test-project",
"logstore": "sls-test-logstore",
"startTime": "1754962200000"
},
"metadataField": {
"key": "{\n \"project\": \"attributes.project\",\n \"logstore\": \"attributes.logstore\",\n \"agentId\": \"attributes.agent_id\",\n \"scene\": \"attributes.scene\"\n }"
}
},
"dataset": {
"name": "test_dataset"
},
"createTime": "1695090077",
"updateTime": "1695090077"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。