GetEntityPortraitGraph
Retrieves the fact graph of an entity portrait.
Operation description
Returns the fact nodes in an entity portrait and the relationships between these nodes. You can filter the results by dimension, fact type, and text.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetEntityPortraitGraph |
get |
*Workspace
|
None | None |
Request syntax
GET /v1/workspaces/{workspace}/entities/{entityType}/{entityId}/portrait/graph HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspace |
string |
Yes |
The workspace. |
prod-cn-beijing |
| entityType |
string |
Yes |
The entity type. |
acs.ack.cluster |
| entityId |
string |
Yes |
The entity ID. |
c1a2b3c4d5e6f7890 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| dimension |
string |
No |
Filters facts by a specific cognitive dimension. Valid values: user_input, infrastructure, compute, workload, delivery, dependency, security, resilience, and observability. |
infrastructure |
| factType |
string |
No |
The fact type. Valid values: world, experience, and observation. Valid values:
|
world |
| q |
string |
No |
The text used to filter facts. |
Node pool |
| limit |
integer |
No |
The maximum number of fact nodes to return. Default value: 1000. Maximum value: 1000. Edges exist only between the returned nodes. You cannot use offset for pagination. |
1000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The fact nodes returned in the current request, the edges between the nodes, and the total number of facts that match the filter conditions. |
||
| workspace |
string |
The workspace. |
prod-cn-beijing |
| nodes |
array<object> |
The fact nodes. |
|
|
object |
|||
| id |
string |
The node ID. |
mem_01 |
| label |
string |
The node label. |
world |
| text |
string |
The fact text. |
The node pool uses pay-as-you-go elastic nodes |
| factType |
string |
The fact type. This value is null if the node does not have a type. |
world |
| context |
string |
The context. |
The node pool uses pay-as-you-go elastic nodes |
| entities |
string |
The entities. |
nodepool |
| tags |
array |
The tags. |
|
|
string |
A tag on a fact node, such as a dimension identifier. |
infrastructure |
|
| occurredStart |
string |
The time when the fact occurred. This value is null if the occurrence time is not available. |
2026-12-01T06:00:00Z |
| mentionedAt |
string |
The time when the fact was mentioned. This value is null if the mention time is not available. |
2026-12-01T06:00:00Z |
| edges |
array<object> |
The edges between facts. These edges connect only the nodes returned in the current request. |
|
|
object |
|||
| id |
string |
The edge ID. |
edge_01 |
| source |
string |
The source node. |
mem_01 |
| target |
string |
The target node. |
mem_02 |
| linkType |
string |
The relationship type. |
semantic |
| weight |
number |
The relationship weight. |
0.8 |
| entityName |
string |
The entity name on the relationship. |
nodepool |
| total |
integer |
The total number of facts that match the filter conditions. |
12 |
| limit |
integer |
The actual maximum number of nodes returned in the current request. |
1000 |
Examples
Success response
JSON format
{
"workspace": "prod-cn-beijing",
"nodes": [
{
"id": "mem_01",
"label": "world",
"text": "The node pool uses pay-as-you-go elastic nodes",
"factType": "world",
"context": "The node pool uses pay-as-you-go elastic nodes",
"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
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.