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 general structure of a RAM policy, and the policy statement elements (Action, Resource, and Condition) defined by Intelligent Computing LINGJUN for RAM permission policies. The RAM code (RamCode) for Intelligent Computing LINGJUN is eflo , and the supported authorization granularity is RESOURCE .

General structure of a policy

Permission policies support JSON format with the following general structure:

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

The following list describes the fields in the policy:

  • Version: Specifies the policy version number. It is fixed at 1.

  • Statement:

    • 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 actions defined by Intelligent Computing LINGJUN. 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 support 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 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 that are applicable across all RAM-integrated services. For more information, see Common condition keys.

  • 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

API

Access level

Resource type

Condition key

Dependent action

eflo:DescribeTask DescribeTask get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:CreateNodeGroup CreateNodeGroup create

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

eflo:ImageSource

eflo:ImageOwnerId

None
eflo:CreateCluster CreateCluster create

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/*

eflo:ImageSource

eflo:ImageOwnerId

None
eflo:DescribeNetTestResult DescribeNetTestResult get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:ListFreeHyperNodes ListFreeHyperNodes get

*HyperNode

acs:eflo:{#regionId}:{#accountId}:hypernode/*

None None
eflo:ListClusterNodes ListClusterNodes get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#clusterId}

None None
eflo:ReimageNodes ReimageNodes update

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

eflo:ImageSource

eflo:ImageOwnerId

None
eflo:StopNodeDiagnostic StopNodeDiagnostic none

*All Resource

*

None None
eflo:DescribeHyperNode DescribeHyperNode get

*HyperNode

acs:eflo:{#regionId}:{#accountId}:hypernode/{#HyperNodeId}

None None
eflo:DescribeCluster DescribeCluster get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:ChangeNodeTypes ChangeNodeTypes update

*Cluster

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

None None
eflo:DescribeSendFileResults DescribeSendFileResults get

*Node

acs:eflo:{#regionId}:{#accountId}:node/*

None None
eflo:ListTagResources ListTagResources get

Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

Vpd

acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId}

Subnet

acs:eflo:{#regionId}:{#accountId}:subnet/{#SubnetId}

Vcc

acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId}

ElasticNetworkInterface

acs:eflo:{#regionId}:{#accountId}:elasticnetworkinterface/{#ElasticNetworkInterfaceId}

Er

acs:eflo:{#regionId}:{#accountId}:er/{#ErId}

HighDensityElasticNetworkInterface

acs:eflo:{#regionId}:{#accountId}:hdeni/{#HighDensityElasticNetworkInterfaceId}

NetworkInterface

acs:eflo:{#regionId}:{#accountId}:networkinterface/{#NetworkInterfaceId}

Vsc

acs:eflo:{#regionId}:{#accountId}:vsc/{#VscId}

HyperNode

acs:eflo:{#regionId}:{#accountId}:hypernode/{#HyperNodeId}

None None
eflo:RefreshNodeGroupNodes RefreshNodeGroupNodes update

*All Resource

*

None None
eflo:ExtendCluster ExtendCluster update

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

eflo:ImageSource

eflo:ImageOwnerId

None
eflo:ListNodeGroups ListNodeGroups list

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:TagResources TagResources get

Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

Vpd

acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId}

Subnet

acs:eflo:{#regionId}:{#accountId}:subnet/{#SubnetId}

Vcc

acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId}

ElasticNetworkInterface

acs:eflo:{#regionId}:{#accountId}:elasticnetworkinterface/{#ElasticNetworkInterfaceId}

Er

acs:eflo:{#regionId}:{#accountId}:er/{#ErId}

NetworkInterface

acs:eflo:{#regionId}:{#accountId}:networkinterface/{#NetworkInterfaceId}

HighDensityElasticNetworkInterface

acs:eflo:{#regionId}:{#accountId}:hdeni/{#HighDensityElasticNetworkInterfaceId}

Vsc

acs:eflo:{#regionId}:{#accountId}:vsc/{#VscId}

HyperNode

acs:eflo:{#regionId}:{#accountId}:hypernode/{#HyperNodeId}

None None
eflo:ListFaultReports ListFaultReports none

*All Resource

*

None None
eflo:DeleteVsc DeleteVsc delete

*Vsc

acs:eflo:{#regionId}:{#accountId}:vsc/{#VscId}

None None
eflo:ChangeResourceGroup ChangeResourceGroup get

Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

Vcc

acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId}

Vpd

acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId}

Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

Er

acs:eflo:{#regionId}:{#accountId}:er/{#ErId}

Vsc

acs:eflo:{#regionId}:{#accountId}:vsc/{#VscId}

NetworkInterface

acs:eflo:{#regionId}:{#accountId}:networkinterface/{#NetworkInterfaceId}

ElasticNetworkInterface

acs:eflo:{#regionId}:{#accountId}:elasticnetworkinterface/{#ElasticNetworkInterfaceId}

HighDensityElasticNetworkInterface

acs:eflo:{#regionId}:{#accountId}:hdeni/{#HighDensityElasticNetworkInterfaceId}

HyperNode

acs:eflo:{#regionId}:{#accountId}:hypernode/{#HyperNodeId}

None None
eflo:ListHyperNodes ListHyperNodes list

*HyperNode

acs:eflo:{#regionId}:{#accountId}:hypernode/*

None None
eflo:CloseSession CloseSession update

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:ListFreeNodes ListFreeNodes get

*Node

acs:eflo:{#regionId}:{#accountId}:node/*

None None
eflo:ListNodeGroupDriftedNodes ListNodeGroupDriftedNodes list

*All Resource

*

None None
eflo:StopNodes StopNodes update

*Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

None None
eflo:DeleteCluster DeleteCluster delete

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:DescribeInvocations DescribeInvocations get

*Node

acs:eflo:{#regionId}:{#accountId}:node/*

None None
eflo:ListDiagnosticResults ListDiagnosticResults get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/*

None None
eflo:DescribeNodeGroupRefreshTask DescribeNodeGroupRefreshTask get

*All Resource

*

None None
eflo:ReportNodesStatus ReportNodesStatus create

*Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

None None
eflo:ListVscs ListVscs list

*Vsc

acs:eflo:{#regionId}:{#accountId}:vsc/*

None None
eflo:ListSyslogs ListSyslogs list

*Cluster

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

None None
eflo:RebootNodes RebootNodes update

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:CreateNetTestTask CreateNetTestTask create

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:ListClusters ListClusters get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/*

None None
eflo:DeleteHyperNode DeleteHyperNode delete

*HyperNode

acs:eflo:{#regionId}:{#accountId}:hypernode/{#HyperNodeId}

None None
eflo:ShrinkCluster ShrinkCluster update

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:ChangeNodeGroup ChangeNodeGroup update

*Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

eflo:ImageSource

eflo:ImageOwnerId

None
eflo:UpdateNodeGroup UpdateNodeGroup update

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

eflo:ImageSource

eflo:ImageOwnerId

None
eflo:CreateSession CreateSession create

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:RunCommand RunCommand update

Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

Command

acs:ecs:{#regionId}:{#accountId}:command/{#CommandId}

None None
eflo:CreateDiagnosticTask CreateDiagnosticTask create

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:ReportNodeStatus ReportNodeStatus none

*All Resource

*

None None
eflo:ApproveOperation ApproveOperation update

*Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

None None
eflo:UntagResources UntagResources get

Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

Vpd

acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId}

Subnet

acs:eflo:{#regionId}:{#accountId}:subnet/{#SubnetId}

Vcc

acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId}

ElasticNetworkInterface

acs:eflo:{#regionId}:{#accountId}:elasticnetworkinterface/{#ElasticNetworkInterfaceId}

Er

acs:eflo:{#regionId}:{#accountId}:er/{#ErId}

NetworkInterface

acs:eflo:{#regionId}:{#accountId}:networkinterface/{#NetworkInterfaceId}

HighDensityElasticNetworkInterface

acs:eflo:{#regionId}:{#accountId}:hdeni/{#HighDensityElasticNetworkInterfaceId}

Vsc

acs:eflo:{#regionId}:{#accountId}:vsc/{#VscId}

HyperNode

acs:eflo:{#regionId}:{#accountId}:hypernode/{#HyperNodeId}

None None
eflo:DescribeDiagnosticResult DescribeDiagnosticResult get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:DescribeFaultReport DescribeFaultReport none

*All Resource

*

None None
eflo:ListNetTestResults ListNetTestResults get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/*

None None
eflo:DescribeVsc DescribeVsc get

*Vsc

acs:eflo:{#regionId}:{#accountId}:vsc/{#VscId}

None None
eflo:DescribeNode DescribeNode get

*Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

None None
eflo:ListNodeGroupRefreshTasks ListNodeGroupRefreshTasks list

*All Resource

*

None None
eflo:DeleteNodeGroup DeleteNodeGroup delete

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:DeleteNode DeleteNode delete

*Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

None None
eflo:ListClusterHyperNodes ListClusterHyperNodes get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#clusterId}

None None
eflo:StopInvocation StopInvocation get

*Node

acs:eflo:{#regionId}:{#accountId}:node/*

None None
eflo:DescribeNodeGroup DescribeNodeGroup get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None
eflo:SendFile SendFile get

*Node

acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}

None None
eflo:CreateVsc CreateVsc create

*Vsc

acs:eflo:{#regionId}:{#accountId}:vsc/*

None None

Resource

The following table lists the resources defined by Intelligent Computing LINGJUN. Specify them in the Resource element of RAM policy statements to grant permissions for specific operations. They are uniquely identified by ARNs. Format: acs:{#ramcode}:{#regionId}:{#accountId}:{#resourceType}:

  • acs: The initialism of Alibaba Cloud service, which indicates the public cloud of Alibaba Cloud.

  • {#ramcode}: The code used in RAM to indicate an Alibaba Cloud service.

  • {#regionId}: The region ID. If the resource covers all regions, set it to an asterisk (*).

  • {#accountId}: The ID of the Alibaba Cloud account. If the resource covers all Alibaba Cloud accounts, set it to an asterisk (*).

  • {#resourceType}: The service-defined resource identifier. It supports a hierarchical structure, which is similar to a file path. If the statement covers global resources, set it to an asterisk (*).

Resource type

ARN

Cluster
  • acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}
  • acs:eflo:{#regionId}:{#accountId}:cluster/*
  • acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}
HyperNode
  • acs:eflo:{#regionId}:{#accountId}:hypernode/*
  • acs:eflo:{#regionId}:{#accountId}:hypernode/{#HyperNodeId}
Node
  • acs:eflo:{#regionId}:{#accountId}:node/*
  • acs:eflo:{#regionId}:{#accountId}:node/{#NodeId}
Vpd
  • acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId}
Subnet
  • acs:eflo:{#regionId}:{#accountId}:subnet/{#SubnetId}
Vcc
  • acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId}
ElasticNetworkInterface
  • acs:eflo:{#regionId}:{#accountId}:elasticnetworkinterface/{#ElasticNetworkInterfaceId}
Er
  • acs:eflo:{#regionId}:{#accountId}:er/{#ErId}
HighDensityElasticNetworkInterface
  • acs:eflo:{#regionId}:{#accountId}:hdeni/{#HighDensityElasticNetworkInterfaceId}
NetworkInterface
  • acs:eflo:{#regionId}:{#accountId}:networkinterface/{#NetworkInterfaceId}
Vsc
  • acs:eflo:{#regionId}:{#accountId}:vsc/{#VscId}
  • acs:eflo:{#regionId}:{#accountId}:vsc/*
Command
  • acs:ecs:{#regionId}:{#accountId}:command/{#CommandId}

Condition

The following table lists the product-level condition keys defined by Intelligent Computing LINGJUN. You can also use Alibaba Cloud's Common condition keys. Specify these keys in the Condition element of RAM policy statements to define granular authorization rules. In the condition key, specify the condition values in the Condition_value element of the policy.

Each condition key has a specific data type, such as string, number, Boolean, or IP address. The data type determines which conditional operators can be used to compare the request values against policy values. You must specify the conditional operators compatible with the data type of the condition key. Mismatched operators will invalidate the policy. See Condition operator for valid combinations.

Condition key

Description

Data type

eflo:CommandRunAs The operating system user that runs Cloud Assistant commands. String
eflo:ImageSource The source of the image. String
eflo:ImageOwnerId The UID of the image owner. String

How to create custom RAM policies?

You can create custom policies and grant them to RAM users, RAM user groups, or RAM roles. For instructions, see: