All Products
Search
Document Center

Tablestore (OTS)

Last Updated: Sep 30, 2021

Resource Access Management (RAM) users or RAM roles must be granted permissions before they can access cloud resources. RAM uses policies to define permissions. A cloud service defines elements that can be used in a policy statement, such as Action, Resource, and Condition. This topic describes the permissions on Tablestore (OTS).

The code (RamCode) in RAM that is used to indicate Tablestore is ots. You can grant permissions on Tablestore at the resource level.

Action

The following table describes the values that you can use in the Action element of a policy statement. The values are defined by Tablestore. The following list describes the columns in the table:
  • Action: the value that you can use in the Action element to specify the operation on a resource.

  • API: the API operation that you can call to perform the action. In most cases, only one API operation of a cloud service is required to perform an action. In some cases, multiple API operations must be called to perform an action, or an API operation can be called to perform multiple actions.

  • Access level: the access level of each action. The levels are read, write, and list.

  • Resource type: the type of the resource on which you can authorize a RAM user or a RAM role to perform the operation. Take note of the following items:

    • The required resource types are displayed in bold characters.

    • If the permissions cannot be granted at the resource level, All resources is used in the Resource type column of the action.

  • Condition key: the condition keys that are defined by a cloud service. The Condition key column does not list the common condition keys that are defined by Alibaba Cloud. For more information about the common condition keys, see Policy elements.

  • Dependent action: other actions that a RAM user or a RAM role must have permissions to perform the action. To successfully call the action, a RAM user or a RAM role must have the permissions to perform the dependent action.

Actions

APIs

Access level

Resource types

Condition keys

Dependent actions

ots:BindInstance2Vpc

N/A

Write


Instance


acs:ots:{#regionId}:{#accountId}:instance/{#instanceId}


VPC:VSwitch


acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}



ots:tag


vpc:IsDefaultVSwitch


vpc:IsDefaultVpc


vpc:Vpc


N/A

ots:DeleteInstance

N/A

Write


Instance


acs:ots:{#regionId}:{#accountId}:instance/{#instanceId}



ots:tag


N/A

ots:DeleteTags

N/A

Write


Instance


acs:ots:{#regionId}:{#accountId}:instance/{#instanceId}



ots:tag


N/A

ots:GetInstance

N/A

Read


Instance


acs:ots:{#regionId}:{#accountId}:instance/{#instanceId}



ots:tag


N/A

ots:InsertInstance

N/A

Write


Instance


acs:ots:{#regionId}:{#accountId}:instance/{#instanceId}



ots:tag


N/A

ots:InsertTags

N/A

Write


Instance


acs:ots:{#regionId}:{#accountId}:instance/{#instanceId}



ots:tag


N/A

ots:ListClusterType

N/A

List

N/A

N/A

N/A

ots:ListInstance

N/A

List


Instance


acs:ots:{#regionId}:{#accountId}:instance/*


N/A

N/A

ots:ListTags

N/A

List


Instance


acs:ots:{#regionId}:{#accountId}:instance/{#instanceId}


N/A

N/A

ots:ListVpcInfoByInstance

N/A

List


Instance


acs:ots:{#regionId}:{#accountId}:instance/{#instanceId}



ots:tag


N/A

ots:ListVpcInfoByVpc

N/A

List


Instance


acs:ots:{#regionId}:{#accountId}:instance/*


VPC:VSwitch


acs:ots:{#regionId}:{#accountId}:vswitch/*



vpc:IsDefaultVSwitch


vpc:IsDefaultVpc


vpc:Vpc


N/A

ots:OpenOtsService

N/A

Write


All resources


acs:ots::{#accountId}:*


N/A

N/A

ots:UnbindInstance2Vpc

N/A

Write


Instance


acs:ots:{#regionId}:{#accountId}:instance/{#instanceId}


VPC:VSwitch


acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}



ots:tag


vpc:IsDefaultVSwitch


vpc:IsDefaultVpc


vpc:Vpc


N/A

ots:UpdateInstance

N/A

Write


Instance


acs:ots:{#regionId}:{#accountId}:instance/{#instanceId}



ots:tag


N/A

Resource

The following table describes the values that you can use in the Resource element of a policy statement. The values are defined by Tablestore.

The Alibaba Cloud Resource Name (ARN) is the unique identifier of the resource on Alibaba Cloud. Take note of the following items:

  • {#} indicates a variable. {#} must be replaced with an actual value. For example, {#regionId} must be replaced with the actual ID of the region where your resource resides.

  • An asterisk (*) is used as a wildcard. Examples:

    • If you specify {#resourceType}/*, all resources are specified.

    • If {#regionId} is set to *, all regions are specified.

    • If {#accountId} is set to *, all Alibaba Cloud accounts are specified.

Resource type

ARN

Instance

acs:ots:*:{#accountId}:instance/{#InstanceName}

Table

acs:ots:{#regionId}:{#accountId}:instance/{#instanceName}/table/{#tableName}

Condition

The following table describes the values that you can use in the Condition element of a policy statement. The values are defined by Tablestore. The following table describes the service-specific condition keys. The common condition keys that are defined by Alibaba Cloud also apply to Tablestore. For more information about the common condition keys, see Policy elements.

The data type determines which condition operators you can use to compare the value in a request with the value in a policy statement. You must use condition operators that are supported by the data type. Otherwise, you cannot compare the value in the request with the value in the policy statement. In this case, the authorization is invalid. For more information about the condition operators that are supported by each data type, see Policy elements.

Condition keys

Description

Type

ots:tag

A tag key and value pair that are attached to a OTS resource.

String

vpc:IsDefaultVSwitch

Indicates whether the VSwitch is the default VSwitch.

Boolean

vpc:IsDefaultVpc

Indicates whether the VPC is the default VPC.

Boolean

vpc:Vpc

Indicates whether the VPC is the default VPC.

String