Actions Supported by Identity Policy-based Authorization
IAM provides system-defined identity policies to define common actions supported by cloud services. You can also create custom identity policies using the actions supported by cloud services for more refined access control.
In addition to IAM, the Organizations service provides Service Control Policies (SCPs) to set access control policies.
SCPs do not actually grant any permissions to an entity. They only set the permissions boundary for the entity. When SCPs are attached to a member account or an organizational unit (OU), they do not directly grant permissions to that member account or OU. Instead, the SCPs just determine what permissions are available for that member account or the member accounts under that OU. The granted permissions can be applied only if they are allowed by the SCPs.
To learn more about how IAM is different from Organizations for access control, see What Are the Differences in Access Control Between IAM and Organizations?
This section describes the elements used by IAM custom identity policies and Organizations SCPs. The elements include actions, resources, and conditions.
- For details about how to use these elements to create an IAM custom identity policy, see Creating a Custom Identity Policy.
- For details about how to use these elements to create a custom SCP, see Creating an SCP.
Actions
Actions are specific operations that are allowed or denied in an identity policy.
- The Access Level column describes how the action is classified (List, Read, or Write). This classification helps you understand the level of access that an action grants when you use it in an identity policy.
- The Resource Type column indicates whether the action supports resource-level permissions.
- You can use a wildcard (*) to indicate all resource types. If this column is empty (-), the action does not support resource-level permissions and you must specify all resources ("*") in your identity policy statements.
- If this column includes a resource type, you must specify the resource URN in the Resource element of your policy statements.
- Required resources are marked with asterisks (*) in the table. If you specify a resource in a statement using this action, then it must be of this type.
For details about the resource types defined by AS, see Resources.
- The Condition Key column contains keys that you can specify in the Condition element of an identity policy statement.
- If the Resource Type column has values for an action, the condition key takes effect only for the listed resource types.
- If the Resource Type column is empty (-) for an action, the condition key takes effect for all resources that action supports.
- If the Condition Key column of an action is empty (-), the action does not support any condition keys.
For details about the condition keys defined by AS, see Conditions.
- The Alias column lists the policy actions that are configured in identity policies. With these actions, you can use APIs for identity policy-based authorization. For details, see Policies and Identity Policies.
The following table lists the actions that you can define in identity policy statements for AS.
|
Action |
Description |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
|---|---|---|---|---|---|
|
as:scalingGroup:create |
Grant the permission to create an AS group. |
write |
- |
as:groups:create |
|
|
as:scalingGroup:delete |
Grant the permission to delete an AS group. |
write |
scalingGroup* |
as:groups:delete |
|
|
as:scalingGroup:list |
Grant the permission to list AS groups. |
list |
- |
as:groups:list |
|
|
as:MaxInstanceSizeas:scalingGroup:get |
Grant the permission to query AS group details. |
read |
scalingGroup* |
as:groups:get |
|
|
as:scalingGroup:update |
Grant the permission to modify an AS group. |
write |
- |
as:groups:update |
|
|
as:scalingGroup:resume |
Grant the permission to enable an AS group. |
write |
scalingGroup* |
as:groups:action |
|
|
as:scalingGroup:pause |
Grant the permission to disable an AS group. |
write |
scalingGroup* |
as:groups:action |
|
|
as:scalingConfig:create |
Grant the permission to create an AS configuration. |
write |
- |
as:configs:create |
|
|
as:scalingConfig:delete |
Grant the permission to delete an AS configuration. |
write |
scalingConfig* |
- |
as:configs:delete |
|
as:scalingConfig:batchDelete |
Grant the permission to delete AS configurations. |
write |
scalingConfig* |
- |
as:configs:batchDelete |
|
as:scalingConfig:list |
Grant the permission to list AS configurations. |
list |
scalingConfig* |
- |
as:configs:list |
|
as:scalingConfig:get |
Grant the permission to query AS configuration details. |
read |
scalingConfig* |
- |
as:configs:get |
|
as:scalingGroup:batchAddInstances |
Grant the permission to add instances to an AS group. |
write |
scalingGroup* |
as:instances:batchAction |
|
|
as:scalingGroup:batchRemoveInstances |
Grant the permission to delete instances from an AS group. |
write |
scalingGroup* |
as:instances:batchAction |
|
|
as:scalingGroup:batchSetInstancesProtect |
Grant the permission to enable instance protection for instances. |
write |
scalingGroup* |
as:instances:batchAction |
|
|
as:scalingGroup:batchSetInstancesUnprotect |
Grant the permission to disable instance protection for instances. |
write |
scalingGroup* |
as:instances:batchAction |
|
|
as:scalingGroup:batchSetInstancesStandby |
Grant the permission to put instances into the standby status. |
write |
scalingGroup* |
as:instances:batchAction |
|
|
as:scalingGroup:batchSetInstancesExitStandby |
Grant the permission to move instances out of the standby status. |
write |
scalingGroup* |
as:instances:batchAction |
|
|
as:scalingGroup:deleteInstance |
Grant the permission to delete instances from an AS group. |
write |
scalingGroup* |
as:instances:delete |
|
|
as:scalingGroup:listInstances |
Grant the permission to list instances in an AS group. |
list |
scalingGroup* |
as:instances:list |
|
|
as:scalingPolicy:create |
Grant the permission to create an AS policy. |
write |
- |
as:policies:create |
|
|
as:scalingPolicy:list |
Grant the permission to list AS policies. |
list |
- |
as:policies:list |
|
|
as:scalingPolicy:get |
Grant the permission to query AS policy details. |
read |
scalingPolicy* |
as:policies:get |
|
|
as:scalingPolicy:update |
Grant the permission to modify an AS policy. |
write |
- |
as:policies:update |
|
|
as:scalingPolicy:delete |
Grant the permission to delete an AS policy. |
write |
scalingPolicy* |
as:policies:delete |
|
|
as:scalingPolicy:execute |
Grant the permission to execute an AS policy. |
write |
scalingPolicy* |
as:policies:action |
|
|
as:scalingPolicy:resume |
Grant the permission to enable an AS policy. |
write |
scalingPolicy* |
as:policies:action |
|
|
as:scalingPolicy:pause |
Grant the permission to disable an AS policy. |
write |
scalingPolicy* |
as:policies:action |
|
|
as:scalingPolicy:batchPause |
Grant the permission to disable AS policies. |
write |
scalingPolicy* |
as:policies:batchAction |
|
|
as:scalingPolicy:batchResume |
Grant the permission to enable AS policies. |
write |
scalingPolicy* |
as:policies:batchAction |
|
|
as:scalingPolicy:batchDelete |
Grant the permission to delete AS policies. |
write |
scalingPolicy* |
as:policies:batchAction |
|
|
as:scalingPolicy:listAll |
Grant the permission to list AS policies of a tenant. |
list |
- |
as:policies:list |
|
|
as:scalingGroup:listActivityLogs |
Grant the permission to query scaling action logs. |
list |
scalingGroup* |
as:acivityLogs:list |
|
|
as:scalingPolicy:listExecuteLogs |
Grant the permission to query AS policy execution logs. |
list |
scalingPolicy* |
as:policyExecuteLogs:list |
|
|
as::tagResource |
Grant the permission to add tags. |
tagging |
- |
as:tags:set |
|
|
as::untagResource |
Grant the permission to delete tags. |
tagging |
- |
as:tags:set |
|
|
as::listTags |
Grant the permission to query tags of all resources. |
list |
- |
- |
as:tags:list |
|
as::listTagsForResource |
Grant the permission to query tags of a resource. |
list |
- |
as:tags:get |
|
|
as::listResourcesByTag |
Grant the permission to query resources by tag. |
list |
- |
as:tagResources:list |
|
|
as:scalingGroup:createLifecycleHook |
Grant the permission to create a lifecycle hook. |
write |
- |
as:lifecycleHooks:create |
|
|
as:scalingGroup:listLifecycleHooks |
Grant the permission to query lifecycle hooks. |
list |
scalingGroup* |
as:lifecycleHooks:list |
|
|
as:scalingGroup:getLifecycleHook |
Grant the permission to query lifecycle hook details. |
read |
scalingGroup* |
as:lifecycleHooks:get |
|
|
as:scalingGroup:updateLifecycleHook |
Grant the permission to modify a lifecycle hook. |
write |
- |
as:lifecycleHooks:update |
|
|
as:scalingGroup:deleteLifecycleHook |
Grant the permission to delete a lifecycle hook. |
write |
scalingGroup* |
as:lifecycleHooks:delete |
|
|
as:scalingGroup:callbackInstanceHook |
Grant the permission to call back a lifecycle hook. |
write |
scalingGroup* |
as:instanceHooks:action |
|
|
as:scalingGroup:listInstanceHooks |
Grant the permission to query suspended instances. |
list |
scalingGroup* |
as:instanceHooks:list |
|
|
as:scalingGroup:createNotification |
Grant the permission to create notifications. |
write |
as:notifications:set |
||
|
as:scalingGroup:listNotifications |
Grant the permission to query notifications. |
list |
scalingGroup* |
as:notifications:list |
|
|
as:scalingGroup:deleteNotification |
Grant the permission to delete notifications. |
write |
scalingGroup* |
as:notifications:delete |
|
|
as:scalingGroup:getQuotas |
Grant the permission to query instance and AS policy quotas. |
read |
- |
as:quotas:get |
|
|
as::listQuotas |
Grant the permission to query instance and AS policy quotas. |
read |
- |
- |
as:quotas:get |
IAM 5.0 is not available in the following regions: LA-Lima1, LA-Buenos Aires1, CN South-Shenzhen, CN North-Beijing2, and RU-Moscow2
Each API of AS usually supports one or more actions. Table 2 lists the actions and dependencies supported by AS APIs.
Resources
A resource type indicates the resources that an identity policy applies to. If you specify a resource type for any action in Table 3, the resource URN must be specified in the identity policy statements using that action, and the identity policy applies only to resources of this type. If no resource type is specified, the Resource element is marked with an asterisk (*) and the identity policy applies to all resources. You can also set condition keys in an identity policy to define resource types.
The following table lists the resource types that you can specify in identity policy statements for AS.
Conditions
A Condition element lets you specify conditions for when an identity policy is in effect. It contains condition keys and operators.
- The condition key that you specify can be a global condition key or a service-specific condition key.
- Global condition keys (with the g: prefix) apply to all actions. Cloud services do not need to provide user identity information. Instead, the system automatically obtains such information and authenticates users. For details, see Global Condition Keys.
- Service-specific condition keys (with the abbreviation of a service name plus a colon as the prefix, for example, bms:) only apply to operations of the BMS service. For details, see Table 4.
- The number of values associated with a condition key in the request context of an API call makes the condition key single-valued or multivalued. Single-valued condition keys have at most one value in the request context of an API call. Multivalued condition keys can have multiple values in the request context of an API call. For example, a request can originate from at most one VPC endpoint, so g:SourceVpce is a single-valued condition key. You can tag resources and include multiple tag key-value pairs in a request, so g:TagKeys is a multivalued condition key.
- A condition operator, condition key, and a condition value together constitute a complete condition statement. An identity policy can be applied only when its request conditions are met. For supported condition operators, see Condition operators.
The following table lists the condition keys that you can define in identity policies for AS. You can include these condition keys to specify conditions for when your identity policy is in effect.
|
Service-specific Condition Key |
Type |
Single-valued/Multivalued |
Description |
|---|---|---|---|
|
as:ScalingConfigId |
String |
Single-valued |
Filters access by AS configuration ID. |
|
as:VpcId |
String |
Single-valued |
Filters access by VPC ID. |
|
as:VpcSubnetId |
String |
Multivalued |
Filters access by subnet ID. |
|
as:ElbPoolId |
String |
Multivalued |
Filters access by ELB backend server group ID. |
|
as:MaxInstanceSize |
Integer |
Single-valued |
Filters access by the maximum number of instances in an AS group. |
|
as:MinInstanceSize |
Integer |
Single-valued |
Filters access by the minimum number of instances in an AS group. |
|
as:EcsInstanceId |
String |
Single-valued |
Filters access by the ECS ID used for AS configuration creation. |
|
as:EcsInstanceType |
String |
Single-valued |
Filters access by the spot or pay-per-use billing mode. |
|
as:EcsFlavorId |
String |
Multivalued |
Filters access by the flavor ID used for ECS creation. |
|
as:ImageId |
String |
Single-valued |
Filters access by the image ID used for ECS creation. |
|
as:ImsDiskImageId |
String |
Multivalued |
Filters access by the disk image ID used for ECS creation. |
|
as:CbrDiskSnapshotId |
String |
Multivalued |
Filters access by the disk backup ID used for ECS creation. |
|
as:EcsServerGroupId |
String |
Single-valued |
Filters access by the ECS group ID used for ECS creation. |
|
as:EvsEncrypted |
Boolean |
Single-valued |
Filters access based on whether disk encryption is enabled. |
|
as:KmsKeyId |
String |
Multivalued |
Filters access by the key ID used for disk encryption. |
|
as:EvsVolumeType |
String |
Multivalued |
Filters access by the disk type used for ECS creation. |
|
as:KpsSSHKeyPairName |
String |
Single-valued |
Filters access by the key pair name used for ECS creation. |
|
as:AssociatePublicIp |
Boolean |
Single-valued |
Filters access based on whether auto EIP assignment is enabled. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot