获取实体画像
接口说明
读取一个实体的认知画像。结果按维度给出架构原文、提取进展和总结。巡检原文不在画像段落里。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cms:GetEntityPortrait |
get |
*Workspace
|
无 | 无 |
请求语法
GET /v1/workspaces/{workspace}/entities/{entityType}/{entityId}/portrait HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| workspace |
string |
是 |
工作空间 |
prod-cn-beijing |
| entityType |
string |
是 |
实体类型,目前支持 acs.ack.cluster 和 k8s.cluster |
acs.ack.cluster |
| entityId |
string |
是 |
实体标识 |
c1a2b3c4d5e6f7890 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| dims |
string |
否 |
逗号分隔的认知维度标识,不传则返回全部维度。可选值为 user_input(用户输入,用户提供的事实,作为其余维度的底座)、infrastructure(基础设施与运行底座)、compute(算力供给与弹性)、workload(应用与工作负载)、delivery(CI/CD 与变更)、dependency(外部依赖)、security(安全、身份与合规)、resilience(韧性、备份与恢复)、observability(可观测覆盖与诊断能力)。acs.ack.cluster 与 k8s.cluster 当前使用同一组 |
infrastructure,workload |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
该实体各认知维度的画像,包含架构原文、提取进展和总结。 |
||
| workspace |
string |
工作空间 |
prod-cn-beijing |
| entityType |
string |
实体类型 |
acs.ack.cluster |
| entityId |
string |
实体标识 |
c1a2b3c4d5e6f7890 |
| sections |
array<object> |
按认知维度返回的画像。每段包含架构原文、提取进展和总结上下文。巡检原文不在这里,通过查询证据或推理获取 |
|
|
array<object> |
|||
| dimension |
string |
维度标识 |
infrastructure |
| name |
string |
维度名称 |
基础设施与运行底座 |
| content |
string |
画像正文,与 context 是同一段文字 |
节点池使用按量付费弹性节点。 |
| context |
string |
提取总结后的画像上下文。总结尚未写出时为空字符串 |
节点池使用按量付费弹性节点。 |
| sourceDocuments |
array<object> |
该维度已写入的架构原文。同一维度可以有多篇,巡检笔记不在这里 |
|
|
object |
|||
| docSlug |
string |
架构文档在维度内的稳定名称 |
vpc-plan |
| title |
string |
架构文档标题。未写标题时为 null |
生产集群 VPC 规划 |
| source |
string |
架构文档来源。未写来源时为 null |
gitops |
| content |
string |
写入时的架构原文 |
节点池使用按量付费弹性节点。 |
| extractionStatus |
string |
提取进展。none 尚无架构原文;pending 原文已保存、事实尚未抽完;extracting 事实已抽出、总结还不是最新;ready 总结已跟上;failed 最近一次总结刷新失败 |
ready |
| structuredOutput |
object |
结构化输出。没有结构化结果时为 null |
|
|
any |
结构化字段 |
spot |
|
| isStale |
boolean |
画像是否过期 |
false |
| refreshPaused |
boolean |
画像刷新是否暂停 |
false |
| lastRefreshedAt |
string |
最近一次刷新时间。尚未刷新时为 null |
2026-12-01T06:00:00Z |
| unconsolidatedUpdates |
array |
尚未合入画像的更新 |
|
|
string |
一条尚未写入总结的事实文本 |
新增一条节点池说明 |
示例
正常返回示例
JSON格式
{
"workspace": "prod-cn-beijing",
"entityType": "acs.ack.cluster",
"entityId": "c1a2b3c4d5e6f7890",
"sections": [
{
"dimension": "infrastructure",
"name": "基础设施与运行底座",
"content": "节点池使用按量付费弹性节点。",
"context": "节点池使用按量付费弹性节点。",
"sourceDocuments": [
{
"docSlug": "vpc-plan",
"title": "生产集群 VPC 规划",
"source": "gitops",
"content": "节点池使用按量付费弹性节点。"
}
],
"extractionStatus": "ready",
"structuredOutput": {
"key": "spot"
},
"isStale": false,
"refreshPaused": false,
"lastRefreshedAt": "2026-12-01T06:00:00Z",
"unconsolidatedUpdates": [
"新增一条节点池说明"
]
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。