GetEntityPortrait

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cms:GetEntityPortrait

get

*Workspace

acs:cms:{#regionId}:{#accountId}:workspace/{#WorkspaceName}

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.