Actions Supported by Identity Policy-based Authorization
IAM provides system-defined identity policies to define typical cloud service permissions. 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 also 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 an organizational unit (OU) or a member account, the SCPs do not directly grant permissions to that OU or member account. Instead, the SCPs only determine what permissions are available for that member account or those 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 How IAM Is Different from Organizations for Access Control?.
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 edit an IAM custom identity policy, see Creating a Custom Identity Policy.
- For details about how to use these elements to edit 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 URN in the Resource element of your identity 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 EIP, 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 is empty (-) for an action, the action does not support any condition keys.
For details about the condition keys defined by EIP, see Conditions.
- The Alias column lists the policy actions that are configured in identity policies. With these actions, you can use APIs for 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 EIP.
| Action | Description | Access Level | Resource Type (*: required) | Condition Key | Alias |
|---|---|---|---|---|---|
| eip:publicIps:createTags | Grants permission to create a tag for an EIP. | Tagging | publicip * | vpc:publicipTags:create | |
| - | |||||
| eip:publicIps:listTags | Grants permission to query tags of a specified EIP. | List | publicip * | - | vpc:publicipTags:get |
| eip:publicIps:deleteTags | Grants permission to delete an EIP tag. | Tagging | publicip * | vpc:publicipTags:delete | |
| - | |||||
| eip:publicIps:count | Grants permission to count EIPs. | List | publicip * | - | vpc:publicIps:list |
| eip:bandwidths:create | Grants permission to create shared bandwidth. | Write | bandwidth * | - | vpc:bandwidths:create |
| - | |||||
| eip:bandwidths:batchCreate | Grants permission to batch assign shared bandwidth. | Write | bandwidth * | - | - |
| eip:bandwidths:list | Grants permission to query shared bandwidths using search criteria. | List | bandwidth * | - | vpc:bandwidths:list |
| - | |||||
| eip:bandwidths:update | Grants permission to update information about shared bandwidth. | Write | bandwidth * | vpc:bandwidths:update | |
| eip:bandwidths:get | Grants permission to query details about a shared bandwidth. | Read | bandwidth * | vpc:bandwidths:get | |
| eip:bandwidths:delete | Grants permission to delete shared bandwidth. | Write | bandwidth * | vpc:bandwidths:delete | |
| eip:bandwidthPkgs:list | Grants permission to query bandwidth add-on packages using search criteria. | List | bandwidthPkg * | - | vpc:bandwidths:get |
| eip:bandwidthPkgs:update | Grants permission to update information about bandwidth add-on package. | Write | bandwidthPkg * | - | vpc:bandwidths:update |
| eip:bandwidths:insertPublicIps | Grants permission to add an EIP to a shared bandwidth. | Write | bandwidth * | vpc:publicIps:insert | |
| eip:bandwidths:removePublicIps | Grants permission to remove an EIP from a shared bandwidth. | Write | bandwidth * | vpc:publicIps:insert | |
| eip:publicIps:create | Grants permission to assign EIP. | Write | publicip * | - | vpc:publicIps:create |
| - | |||||
| eip:publicIps:batchCreate | Grants permission to batch assign EIPs. | Write | publicip * | - | vpc:publicIps:create |
| - | |||||
| eip:publicIps:list | Grants permission to query EIPs. | List | publicip * | - | vpc:publicIps:list |
| - | |||||
| eip:publicIps:get | Grants permission to query a specific EIP. | Read | publicip * | vpc:publicIps:get | |
| eip:publicIps:update | Grants permission to update an EIP. | Write | publicip * | vpc:publicIps:update | |
| eip:publicIps:disassociateInstance | Grants permission to disassociate an instance from an EIP. | Write | publicip * | vpc:publicIps:update | |
| eip:publicIps:delete | Grants permission to release an EIP. | Write | publicip * | vpc:publicIps:delete | |
| eip:nativeFloatingIps:create | Grants permission to assign EIP through openstack api. | Write | - | - |
|
| eip:nativeFloatingIps:list | Grants permission to query EIPs through openstack api. | List | - | - |
|
| eip:nativeFloatingIps:get | Grants permission to query a specific EIP through openstack api. | Read | - | - | vpc:floatingIps:get |
| eip:nativeFloatingIps:associateInstance | Grants permission to associate an instance on an EIP through openstack api. | Write | - | - | vpc:floatingIps:update |
| eip:nativeFloatingIps:disassociateInstance | Grants permission to disassociate an instance from an EIP through openstack api. | Write | - | - | vpc:floatingIps:update |
| eip:nativeFloatingIps:delete | Grants permission to release an EIP through openstack api. | Write | - | - |
|
| eip:publicIps:create | Grants permission to assign EIP. | Write | publicip * | - | vpc:publicIps:create |
| - | |||||
| eip:publicIps:batchCreate | Grants permission to batch assign EIPs. | Write | publicip * | - | vpc:publicIps:create |
| - | |||||
| eip:publicIps:list | Grants permission to query EIPs. | List | publicip * | - | vpc:publicIps:list |
| - | |||||
| eip:publicIps:count | Grants permission to count EIPs. | List | publicip * | - | vpc:publicIps:list |
| eip:publicIps:get | Grants permission to query a specific EIP. | Read | publicip * | vpc:publicIps:get | |
| eip:publicIps:update | Grants permission to update an EIP. | Write | publicip * | vpc:publicIps:update | |
| eip:publicIps:associateInstance | Grants permission to associate an instance on an EIP. | Write | publicip * | vpc:publicIps:update | |
| eip:publicIps:disassociateInstance | Grants permission to disassociate an instance from an EIP. | Write | publicip * | vpc:publicIps:update | |
| eip:publicIps:attachBandwidth | Grants permission to attach an EIP to a share bandwidth. | Write | publicip * | vpc:publicIps:update | |
| bandwidth * | |||||
| eip:publicIps:delete | Grants permission to release an EIP. | Write | publicip * | vpc:publicIps:delete | |
| eip:publicIps:createTags | Grants permission to create a tag for an EIP. | Tagging | publicip * | vpc:publicipTags:create | |
| - | |||||
| eip:publicIps:listTags | Grants permission to query tags of a specified EIP. | List | publicip * | - | vpc:publicipTags:get |
| eip:publicIps:deleteTags | Grants permission to delete an EIP tag. | Tagging | publicip * | vpc:publicipTags:delete | |
| - | |||||
| eip:bandwidths:insertPublicIps | Grants permission to add an EIP to a shared bandwidth. | Write | bandwidth * | vpc:publicIps:insert | |
| eip:bandwidths:removePublicIps | Grants permission to remove an EIP from a shared bandwidth. | Write | bandwidth * | vpc:publicIps:insert | |
| eip:bandwidths:create | Grants permission to create shared bandwidth. | Write | bandwidth * | - | vpc:bandwidths:create |
| - | |||||
| eip:bandwidths:batchCreate | Grants permission to batch assign shared bandwidth. | Write | bandwidth * | - | - |
| eip:bandwidths:list | Grants permission to query shared bandwidths using search criteria. | List | bandwidth * | - | vpc:bandwidths:list |
| - | |||||
| eip:bandwidths:update | Grants permission to update information about shared bandwidth. | Write | bandwidth * | vpc:bandwidths:update | |
| eip:bandwidths:get | Grants permission to query details about a shared bandwidth. | Read | bandwidth * | vpc:bandwidths:get | |
| eip:bandwidths:delete | Grants permission to delete shared bandwidth. | Write | bandwidth * | vpc:bandwidths:delete | |
| eip:bandwidthRules:list | Grants permission to query bandwidth rules using search criteria. | List | bandwidth * | vpc:bandwidths:get | |
| bandwidthRule * | - | ||||
| eip:bandwidthPkgs:list | Grants permission to query bandwidth add-on packages using search criteria. | List | bandwidthPkg * | - | vpc:bandwidths:get |
| eip:bandwidthPkgs:get | Grants permission to query details about a bandwidth add-on package. | Read | bandwidthPkg * | - | vpc:bandwidths:get |
| eip:bandwidthPkgs:update | Grants permission to update information about bandwidth add-on package. | Write | bandwidthPkg * | - | vpc:bandwidths:update |
| eip:bandwidthPkgs:create | Grants permission to create a bandwidth add-on package. | Write | bandwidthPkg * | - | vpc:bandwidths:update |
| eip:publicipPools:create | Grants permission to create an EIP pool. | Write | publicipPool * | - | vpc:publicIps:create |
| eip:publicipPools:get | Grants permission to query details about an EIP pool. | Read | publicipPool * | - | vpc:publicIps:get |
| eip:publicipPools:update | Grants permission to update information about EIP pool. | Write | publicipPool * | - | vpc:publicIps:update |
| eip:upgradeTasks:create | Grants permission to create a short-upgrade-time task for bandwidth. | Write | upgradeTask * | - | vpc:bandwidths:update |
| eip:upgradeTasks:get | Grants permission to query details about a short-upgrade-time task for bandwidth. | Read | upgradeTask * | - | vpc:bandwidths:get |
| eip:upgradeTasks:list | Grants permission to query short-upgrade-time tasks using search criteria. | List | upgradeTask * | - | vpc:bandwidths:list |
Each API of EIP usually supports one or more actions. Table 2 lists the supported actions and dependencies.
| API | Action | Dependencies |
|---|---|---|
| eip:publicIps:count | - | |
| eip:publicIps:count | - | |
| eip:publicIps:createTags | - | |
| POST 01 /v2.0/{project_id}/publicips/{publicip_id}/tags/action | eip:publicIps:deleteTags | - |
| eip:publicIps:createTags | - | |
| DELETE /v2.0/{project_id}/publicips/{publicip_id}/tags/{key} | eip:publicIps:deleteTags | - |
| eip:publicIps:listTags | - | |
| eip:publicIps:listTags | - | |
| eip:publicIps:listTags | - | |
| eip:bandwidths:create | - | |
| eip:bandwidths:batchCreate | - | |
| eip:bandwidths:list | - | |
| eip:bandwidths:delete | - | |
| eip:bandwidths:get | - | |
| eip:bandwidths:update | - | |
| eip:bandwidths:update | - | |
| eip:bandwidths:update | bss:renewal:update | |
| eip:bandwidthPkgs:list | - | |
| eip:bandwidths:update | - | |
| eip:bandwidths:insertPublicIps | - | |
| eip:bandwidths:removePublicIps | - | |
| eip:publicIps:create | - | |
| eip:publicIps:batchCreate | - | |
| eip:publicIps:list | - | |
| eip:publicIps:get | - | |
| eip:publicIps:update | - | |
| eip:publicIps:update | bss:renewal:update | |
| eip:publicIps:disassociateInstance | - | |
| eip:publicIps:delete | - | |
| eip:publicIps:delete | - | |
| eip:nativeFloatingIps:create | - | |
| eip:nativeFloatingIps:list | - | |
| eip:nativeFloatingIps:get | - | |
| eip:nativeFloatingIps:delete | - | |
| POST /v3/{project_id}/eip/publicips/{publicip_id}/associate-instance | eip:publicIps:associateInstance | - |
| POST /v3/{project_id}/eip/publicips/{publicip_id}/disassociate-instance | eip:publicIps:disassociateInstance | - |
| eip:publicIps:attachBandwidth | - | |
| - | eip:bandwidthRules:list | - |
| eip:publicipPools:get | - | |
| eip:bandwidths:list | - | |
| - | eip:publicIps:list | - |
| - | eip:publicIps:get | - |
| - | eip:publicIps:update | - |
Resources
A resource type (Resource) defines the resources on which an identity policy takes effect. In Table 3, if a specific operation has an associated resource type, then in the identity policy statement containing that operation, the policy will only take effect on the specified resource when the corresponding resource URN is provided. If no resource URN is specified, the policy will apply to all resources under the designated resource type. If no resource type is defined, the default value of Resource is *, meaning the policy applies to all resources. In addition, you can set conditions in the identity policy to further refine and restrict the resource type.
The following table lists the resource types that you can define in identity policy statements for EIP.
| Resource Type | URN |
|---|---|
| bandwidthRule | eip:<region>:<account-id>:bandwidthRule:<bandwidthRule-id> |
| bandwidth | vpc:<region>:<account-id>:bandwidth:<bandwidth-id> |
| bandwidthPkg | eip:<region>:<account-id>:bandwidthPkg:<bandwidthPkg-id> |
| publicipPool | eip:<region>:<account-id>:publicipPool:<publicipPool-id> |
| geipSegment | eip:<region>:<account-id>:geipSegment:<geipSegment-id> |
| upgradeTask | eip:<region>:<account-id>:upgradeTask:<upgradeTask-id> |
| vpcIgw | eip:<region>:<account-id>:vpcIgw:<vpcIgw-id> |
| internetBandwidth | eip:<region>:<account-id>:internetBandwidth:<internetBandwidth-id> |
| publicip | vpc:<region>:<account-id>:publicip:<publicip-id> |
| globalEip | eip:<region>:<account-id>:globalEip:<globalEip-id> |
Conditions
EIP does not support service-specific condition keys in identity policies. It can only use global condition keys applicable to all services. For details, see Global Condition Keys.
What is your overall rating for this page?
Thank 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