获取实体画像事实图
接口说明
返回一个实体画像中的事实节点,以及这些节点之间的关系。可以用维度、事实类型和文本过滤。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cms:GetEntityPortraitGraph |
get |
*Workspace
|
无 | 无 |
请求语法
GET /v1/workspaces/{workspace}/entities/{entityType}/{entityId}/portrait/graph HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| workspace |
string |
是 |
工作空间 |
prod-cn-beijing |
| entityType |
string |
是 |
实体类型 |
acs.ack.cluster |
| entityId |
string |
是 |
实体标识 |
c1a2b3c4d5e6f7890 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| dimension |
string |
否 |
只返回一个认知维度内的事实。可选值为 user_input、infrastructure、compute、workload、delivery、dependency、security、resilience、observability |
infrastructure |
| factType |
string |
否 |
事实类型:world、experience、observation 枚举值:
|
world |
| q |
string |
否 |
按事实文本过滤 |
节点池 |
| limit |
integer |
否 |
最多返回的事实节点数,默认 1000,最大 1000。边只存在于返回的节点之间,不能用 offset 翻页 |
1000 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
本次返回的事实节点、节点之间的边,以及符合条件的事实总数。 |
||
| workspace |
string |
工作空间 |
prod-cn-beijing |
| nodes |
array<object> |
事实节点 |
|
|
object |
|||
| id |
string |
节点标识 |
mem_01 |
| label |
string |
节点标签 |
world |
| text |
string |
事实文本 |
节点池使用按量付费弹性节点。 |
| factType |
string |
事实类型。节点没有类型时为 null |
world |
| context |
string |
上下文 |
节点池使用按量付费弹性节点。 |
| entities |
string |
实体 |
nodepool |
| tags |
array |
标签 |
|
|
string |
一个事实节点上的标签,例如维度标识 |
infrastructure |
|
| occurredStart |
string |
事实发生时间。没有发生时间时为 null |
2026-12-01T06:00:00Z |
| mentionedAt |
string |
事实被提及的时间。没有被提及时间时为 null |
2026-12-01T06:00:00Z |
| edges |
array<object> |
事实之间的边,只连接本次返回的节点 |
|
|
object |
|||
| id |
string |
边标识 |
edge_01 |
| source |
string |
起点节点 |
mem_01 |
| target |
string |
终点节点 |
mem_02 |
| linkType |
string |
关系类型 |
semantic |
| weight |
number |
关系权重 |
0.8 |
| entityName |
string |
关系上的实体名 |
nodepool |
| total |
integer |
符合过滤条件的事实总数 |
12 |
| limit |
integer |
本次实际返回的节点上限 |
1000 |
示例
正常返回示例
JSON格式
{
"workspace": "prod-cn-beijing",
"nodes": [
{
"id": "mem_01",
"label": "world",
"text": "节点池使用按量付费弹性节点。",
"factType": "world",
"context": "节点池使用按量付费弹性节点。",
"entities": "nodepool",
"tags": [
"infrastructure"
],
"occurredStart": "2026-12-01T06:00:00Z",
"mentionedAt": "2026-12-01T06:00:00Z"
}
],
"edges": [
{
"id": "edge_01",
"source": "mem_01",
"target": "mem_02",
"linkType": "semantic",
"weight": 0.8,
"entityName": "nodepool"
}
],
"total": 12,
"limit": 1000
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。