GetEntityPortrait
Retrieves the cognitive portrait of an entity.
Operation description
Retrieves the cognitive portrait of an entity. The results provide the architecture source text, extraction progress, and summary by dimension. Inspection source text is not included in the portrait sections.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetEntityPortrait |
get |
*Workspace
|
None | None |
Request syntax
GET /v1/workspaces/{workspace}/entities/{entityType}/{entityId}/portrait HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspace |
string |
Yes |
The workspace. |
prod-cn-beijing |
| entityType |
string |
Yes |
The entity type. Valid values: acs.ack.cluster and k8s.cluster. |
acs.ack.cluster |
| entityId |
string |
Yes |
The entity ID. |
c1a2b3c4d5e6f7890 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| dims |
string |
No |
The comma-separated cognitive dimension IDs. If you do not specify this parameter, all dimensions are returned. Valid values: user_input (user input and user-provided facts, which serve as the foundation for other dimensions), infrastructure (infrastructure and runtime foundation), compute (computing power supply and elasticity), workload (applications and workloads), delivery (CI/CD and changes), dependency (external dependencies), security (security, identity, and compliance), resilience (resilience, backup and recovery), and observability (observability overwrite and diagnostics capabilities). acs.ack.cluster and k8s.cluster currently use the same set of dimensions. |
infrastructure,workload |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The portrait of the entity across cognitive dimensions, including the architecture source text, extraction progress, and summary. |
||
| workspace |
string |
The workspace. |
prod-cn-beijing |
| entityType |
string |
The entity type. |
acs.ack.cluster |
| entityId |
string |
The entity ID. |
c1a2b3c4d5e6f7890 |
| sections |
array<object> |
The portrait sections returned by cognitive dimension. Each section includes the architecture source text, extraction progress, and summary context. Inspection source text is not included here and can be obtained by querying evidence or reasoning. |
|
|
array<object> |
|||
| dimension |
string |
The dimension ID. |
infrastructure |
| name |
string |
The dimension name. |
Infrastructure and runtime foundation |
| content |
string |
The portrait content, which is the same text as the context. |
The node pool uses pay-as-you-go elastic nodes |
| context |
string |
The portrait context after extraction and summarization. This is an empty string if the summary has not been generated. |
The node pool uses pay-as-you-go elastic nodes |
| sourceDocuments |
array<object> |
The architecture source documents written for this dimension. Multiple documents can exist for the same dimension. Inspection notes are not included here. |
|
|
object |
|||
| docSlug |
string |
The stable name of the architecture document within the dimension. |
vpc-plan |
| title |
string |
The title of the architecture document. This is null if no title is provided. |
VPC planning for the production cluster |
| source |
string |
The source of the architecture document. This is null if no source is provided. |
gitops |
| content |
string |
The original text of the architecture document when it was written. |
The node pool uses pay-as-you-go elastic nodes |
| extractionStatus |
string |
The extraction progress. Valid values: none (no architecture source text is available), pending (the source text is saved but fact extraction is incomplete), extracting (facts are extracted but the summary is not up to date), ready (the summary is up to date), and failed (the latest summary refresh failed). |
ready |
| structuredOutput |
object |
The structured output. This is null if no structured results are available. |
|
|
any |
The structured fields. |
spot |
|
| isStale |
boolean |
Specifies whether the portrait is stale. |
false |
| refreshPaused |
boolean |
Specifies whether the portrait refresh is paused. |
false |
| lastRefreshedAt |
string |
The time of the last refresh. This is null if the portrait has not been refreshed. |
2026-12-01T06:00:00Z |
| unconsolidatedUpdates |
array |
The updates that have not been consolidated into the portrait. |
|
|
string |
A fact text that has not been written into the summary. |
Added a node pool description |
Examples
Success response
JSON format
{
"workspace": "prod-cn-beijing",
"entityType": "acs.ack.cluster",
"entityId": "c1a2b3c4d5e6f7890",
"sections": [
{
"dimension": "infrastructure",
"name": "Infrastructure and runtime foundation",
"content": "The node pool uses pay-as-you-go elastic nodes",
"context": "The node pool uses pay-as-you-go elastic nodes",
"sourceDocuments": [
{
"docSlug": "vpc-plan",
"title": "Production cluster VPC planning",
"source": "gitops",
"content": "The node pool uses pay-as-you-go elastic nodes"
}
],
"extractionStatus": "ready",
"structuredOutput": {
"key": "spot"
},
"isStale": false,
"refreshPaused": false,
"lastRefreshedAt": "2026-12-01T06:00:00Z",
"unconsolidatedUpdates": [
"Added a node pool description"
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.