RAM authorization

Updated at:

Resource Access Management (RAM) is a service provided by Alibaba Cloud to manage user identities and resource access permissions. Using RAM helps you avoid sharing your Alibaba Cloud account keys with other users and allows you to grant users the least privilege access. RAM uses permission policies to define authorizations. This topic describes the actions, resources, and conditions that Agentic Operations Platform STAROps defines for RAM permission policies. The RamCode of Agentic Operations Platform STAROps is starops , and the supported authorization granularity is RESOURCE . For the resource authorization scope of each action, see the Action table.

General structure of a policy

Permission policies support the JSON format. The following example shows the structure of a policy that uses the Action element. Values in angle brackets (<>) are placeholders. Replace them with actual values.

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "<Effect>",
      "Action": "<Action>",
      "Resource": "<Resource>",
      "Condition": {
        "<Condition_operator>": {
          "<Condition_key>": [
            "<Condition_value>"
          ]
        }
      }
    }
  ]
}        

The following list describes the fields and placeholders in the policy:

  • Effect: Specifies the authorization result. Valid values: Allow and Deny.

  • Action: Specifies one or more operations that are allowed or denied.

  • Resource: Specifies the specific objects affected by the operations. You can use Alibaba Cloud Resource Names (ARNs) to describe specific resources.

  • Condition: Specifies the conditions for the authorization to take effect. This field is optional.

  • Condition operator: Specifies the conditional operators. Different types of conditions support different conditional operators.

  • Condition_key: Specifies the condition keys.

  • Condition_value: Specifies the condition values.

Action

The following table lists the RAM actions defined by Agentic Operations Platform STAROps. These actions can be used in the Action element of RAM permission policies.

  • Action: A specific RAM permission point. In most cases, it has the same name as the corresponding OpenAPI.

  • OpenAPI: The OpenAPI associated with the RAM action.

  • Access level: Write, Read, List, or Other.

  • Resource type: The types of resources for which the action supports authorization. Details are as follows:

    • Required resource types are prefixed with an asterisk (*). Specify the corresponding ARN in the Resource element of the policy.

    • When 'All Resources' is displayed and the resource ARN is *, set Resource in the policy to *.

  • Condition key: The product-level condition keys supported by the action. Common condition keys are not included. For more information, see Common condition keys.

  • Dependent action: Other action permissions required to perform the action.

Action

OpenAPI

Access level

Resource type

Condition key

Dependent action

starops:DeleteMcpService DeleteMcpService delete

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/mcpservice/{#mcpServiceName}

None None
starops:CreateArtifactUploadToken CreateArtifactUploadToken create

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/artifact/*

None None
starops:CreateTicket CreateTicket create

*All Resource

*

None None
starops:FetchRemoteMcpTools FetchRemoteMcpTools none

*All Resource

*

None None
starops:GetDigitalEmployeeUmodel GetDigitalEmployeeUmodel get

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}

None None
starops:GetMcpService GetMcpService get

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/mcpservice/{#mcpServiceName}

None None
starops:GetDigitalEmployee GetDigitalEmployee get

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}

None None
starops:UpsertDigitalEmployeeUmodelCommonSchemaRef UpsertDigitalEmployeeUmodelCommonSchemaRef update

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}

None None
starops:CreateChat CreateChat none

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}

None None
starops:CreateDigitalEmployeeSkill CreateDigitalEmployeeSkill create

*DigitalEmployeeSkill

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/skill/{#skillName}

None None
starops:ListArtifacts ListArtifacts list

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/artifact/*

None None
starops:DeleteDigitalEmployeeSkill DeleteDigitalEmployeeSkill delete

*DigitalEmployeeSkill

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/skill/{#skillName}

None None
starops:CreateThread CreateThread none

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/thread/*

None None
starops:GetArtifactDownloadUrl GetArtifactDownloadUrl get

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/artifact/*

None None
starops:ListDigitalEmployeeSkills ListDigitalEmployeeSkills list

*DigitalEmployeeSkill

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/skill/*

None None
starops:GetDigitalEmployeeEntityData GetDigitalEmployeeEntityData get

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}

None None
starops:GetThreadData GetThreadData get

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/thread/{#threadId}

None None
starops:ListDigitalEmployees ListDigitalEmployees list

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/*

None None
starops:GetDigitalEmployeeSkill GetDigitalEmployeeSkill get

*DigitalEmployeeSkill

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/skill/{#skillName}

None None
starops:ListMcpServices ListMcpServices list

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/mcpservice/*

None None
starops:GetArtifact GetArtifact get

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/artifact/*

None None
starops:DeleteDigitalEmployeeUmodelCommonSchemaRef DeleteDigitalEmployeeUmodelCommonSchemaRef delete

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}

None None
starops:UpdateDigitalEmployeeUmodel UpdateDigitalEmployeeUmodel update

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}

None None
starops:CreateMcpService CreateMcpService create

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/mcpservice/{#mcpServiceName}

None None
starops:DeleteDigitalEmployee DeleteDigitalEmployee delete

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}

None None
starops:UpdateMcpService UpdateMcpService update

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/mcpservice/{#mcpServiceName}

None None
starops:ListDigitalEmployeeSkillVersions ListDigitalEmployeeSkillVersions list

*DigitalEmployeeSkill

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/skill/{#skillName}

None None
starops:ListThreads ListThreads get

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/thread/*

None None
starops:CreateDigitalEmployee CreateDigitalEmployee create

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}

None

ram:PassRole

starops:UpdateDigitalEmployee UpdateDigitalEmployee update

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}

None None
starops:DeleteThread DeleteThread delete

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/thread/{#threadId}

None None
starops:GetThread GetThread get

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/thread/{#threadId}

None None
starops:UpdateDigitalEmployeeSkill UpdateDigitalEmployeeSkill update

*DigitalEmployeeSkill

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/skill/{#skillName}

None None
starops:UpdateThread UpdateThread update

*DigitalEmployee

acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/thread/{#threadId}

None None

Resource

The following table lists the resource types and ARN formats defined by Agentic Operations Platform STAROps. The Resource element of RAM policy statements specifies the resources to which the statement applies. Notes:

  • In an ARN, {#} indicates a variable that you must replace with an actual value. For example, replace {#ramcode} with the actual RAM code of the cloud service.

  • In an ARN, * means all. For example:

    • {#resourceType}/*: All resources.

    • When {#regionId} is *, all regions are included.

    • When {#accountId} is set to *, it specifies all Alibaba Cloud accounts.

Resource type

ARN

DigitalEmployee
  • acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/mcpservice/{#mcpServiceName}
  • acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/artifact/*
  • acs:starops:{#regionId}:{#accountId}:digitalemployee/*/mcpservice/*
  • acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}
  • acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/thread/*
  • acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/thread/{#threadId}
  • acs:starops:{#regionId}:{#accountId}:digitalemployee/*
  • acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/mcpservice/*
DigitalEmployeeSkill
  • acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/skill/{#skillName}
  • acs:starops:{#regionId}:{#accountId}:digitalemployee/{#name}/skill/*

Condition

Agentic Operations Platform STAROps does not define product-level condition keys. However, you can use Alibaba Cloud common condition keys for access control. For more information, see Common condition keys.

References

For information about conditional operators, custom policies, and authorization operations, see the following documents: