Updated on 2024-06-21 GMT+08:00

Elastic IP (EIP)

The Organizations service provides Service Control Policies (SCPs) to set access control policies.

SCPs do not actually grant any permissions to a principal. They only set the permissions boundary for the principal. When SCPs are attached to a member account or an organizational unit (OU), they do not directly grant permission to that member account or OU. Instead, the SCPs determine what permissions are available for that member account or the member accounts under that OU.

This section describes the elements used by Organizations SCPs. The elements include actions, resources, and conditions.

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 SCP.

  • 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 SCP.
  • 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 SCP statements.
    • If this column includes a resource type, you must specify the URN in the Resource element of your 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 SCP 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 following table lists the actions that you can define in SCP statements for EIP.

Table 1 Actions supported by EIP

Action

Description

Access Level

Resource Type (*: Required)

Condition Key

eip:publicIps:create

Grants permission to assign an EIP.

write

publicip *

-

-

g:EnterpriseProjectId

eip:publicIps:batchCreate

Grants permission to assign EIPs in batches.

write

publicip *

-

-

  • g:EnterpriseProjectId
  • g:RequestTag/<tag-key>
  • g:TagKeys

eip:publicIps:list

Grants permission to query EIPs.

list

publicip *

-

-

g:EnterpriseProjectId

eip:publicIps:count

Grants permission to query the number of EIPs.

list

publicip *

-

eip:publicIps:get

Grants permission to query a specific EIP.

read

publicip *

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

eip:publicIps:update

Grants permission to modify an EIP.

write

publicip *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

eip:publicIps:enableNat64

Grants permission to enable NAT64 for an EIP.

write

publicip *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

eip:publicIps:disableNat64

Grants permission to enable NAT64 for an EIP.

write

publicip *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

eip:publicIps:associateInstance

Grants permission to bind an EIP to a network interface.

write

publicip *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

eip:publicIps:disassociateInstance

Grants permission to unbind an EIP from a network interface.

write

publicip *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

eip:publicIps:attachBandwidth

Grants permission to associate an EIP with a bandwidth.

write

publicip *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

bandwidth *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

eip:publicIps:detachBandwidth

Grants permission to remove an EIP from a shared bandwidth.

write

publicip *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

bandwidth *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

eip:publicIps:delete

Grants permission to release an EIP.

write

publicip *

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

eip:publicIps:createTags

Grants permission to add tags to an EIP.

tagging

publicip *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

eip:publicIps:listTags

Grants permission to query tags of an EIP.

list

publicip *

-

eip:publicIps:deleteTags

Grants permission to delete tags from an EIP.

tagging

publicip *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

g:TagKeys

eip:bandwidths:insertPublicIps

Grants permission to add EIPs to a shared bandwidth.

write

bandwidth *

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

eip:bandwidths:removePublicIps

Grants permission to remove EIPs from a shared bandwidth.

write

bandwidth *

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

eip:bandwidths:create

Grants permission to create a shared bandwidth.

write

bandwidth *

-

-

g:EnterpriseProjectId

eip:bandwidths:batchCreate

Grants permission to create shared bandwidths in batches.

write

bandwidth *

-

eip:bandwidths:list

Grants permission to query bandwidths.

list

bandwidth *

-

-

g:EnterpriseProjectId

eip:bandwidths:update

Grants permission to modify a bandwidth.

write

bandwidth *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

eip:bandwidths:get

Grants permission to query a bandwidth.

read

bandwidth *

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

eip:bandwidths:delete

Grants permission to delete a shared bandwidth.

write

bandwidth *

  • g:ResourceTag/<tag-key>
  • g:EnterpriseProjectId

eip:bandwidthPkgs:list

Grants permission to query bandwidth add-on packages.

list

bandwidthPkg *

-

eip:publicipPools:get

Grants permission to query an EIP pool.

read

publicipPool *

-

Each API of EIP usually supports one or more actions. Table 2 lists the supported actions and dependencies.

Table 2 Actions and dependencies supported by EIP APIs

API

Action

Dependencies

POST /v2.0/{project_id}/publicips

eip:publicIps:create

-

POST /v1/{project_id}/publicips

eip:publicIps:create

-

POST /v2/{project_id}/batchpublicips

eip:publicIps:batchCreate

-

GET /v1/{project_id}/publicips

eip:publicIps:list

-

GET /v2/{project_id}/elasticips

eip:publicIps:count

-

GET /v2/{project_id}/publicip/instances

eip:publicIps:count

-

GET /v1/{project_id}/publicips/{publicip_id}

eip:publicIps:get

-

PUT /v1/{project_id}/publicips/{publicip_id}

eip:publicIps:update

-

POST /v2.0/{project_id}/publicips/change-to-period

eip:publicIps:update

bss:renewal:update

PATCH /v2/{project_id}/batchpublicips

eip:publicIps:disassociateInstance

-

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

-

POST /v3/{project_id}/eip/publicips/attach-share-bandwidth

eip:publicIps:attachBandwidth

-

POST /v3/{project_id}/eip/publicips/{publicip_id}/attach-share-bandwidth

eip:publicIps:attachBandwidth

-

POST /v3/{project_id}/eip/publicips/detach-share-bandwidth

eip:publicIps:detachBandwidth

-

POST /v3/{project_id}/eip/publicips/{publicip_id}/detach-share-bandwidth

eip:publicIps:detachBandwidth

-

DELETE /v1/{project_id}/publicips/{publicip_id}

eip:publicIps:delete

-

DELETE /v2/{project_id}/batchpublicips

eip:publicIps:delete

-

POST /v2.0/{project_id}/publicips/{publicip_id}/tags/action

eip:publicIps:createTags

-

POST 01 /v2.0/{project_id}/publicips/{publicip_id}/tags/action

eip:publicIps:deleteTags

-

POST /v2.0/{project_id}/publicips/{publicip_id}/tags

eip:publicIps:createTags

-

DELETE /v2.0/{project_id}/publicips/{publicip_id}/tags/{key}

eip:publicIps:deleteTags

-

POST /v2.0/{project_id}/publicips/resource_instances/action

eip:publicIps:listTags

-

GET /v2.0/{project_id}/publicips/tags

eip:publicIps:listTags

-

GET /v2.0/{project_id}/publicips/{publicip_id}/tags

eip:publicIps:listTags

-

POST /v2.0/{project_id}/bandwidths/{bandwidth_id}/insert

eip:bandwidths:insertPublicIps

-

POST /v2.0/{project_id}/bandwidths/{bandwidth_id}/remove

eip:bandwidths:removePublicIps

-

POST /v2.0/{project_id}/bandwidths

eip:bandwidths:create

-

POST /v2.0/{project_id}/batch-bandwidths

eip:bandwidths:batchCreate

-

GET /v1/{project_id}/bandwidths

eip:bandwidths:list

-

DELETE /v2.0/{project_id}/bandwidths/{bandwidth_id}

eip:bandwidths:delete

-

GET /v1/{project_id}/bandwidths/{bandwidth_id}

eip:bandwidths:get

-

PUT /v1/{project_id}/bandwidths/{bandwidth_id}

eip:bandwidths:update

-

PUT /v2.0/{project_id}/bandwidths/{bandwidth_id}

eip:bandwidths:update

-

POST /v2.0/{project_id}/bandwidths/change-to-period

eip:bandwidths:update

bss:renewal:update

GET /v2/{project_id}/bandwidthpkgs

eip:bandwidthPkgs:list

-

PUT /v2/{project_id}/bandwidthpkgs/{id}

eip:bandwidthPkgs:update

-

GET /v3/{project_id}/eip/publicip-pools/{publicip_pool_id}

eip:publicipPools:get

-

POST /v3/{project_id}/eip/publicips/{publicip_id}/enable-nat64

eip:publicIps:enableNat64

-

POST /v3/{project_id}/eip/publicips/{publicip_id}/disable-nat64

eip:publicIps:disableNat64

-

Resources

A resource type indicates the resources that an SCP is applied. If you specify a resource type for any action in Table 3, a resource URN must be specified in the SCP policy statements using that action, and the SCP policy applies only to the resource. If no resource type is specified, the Resource element is marked with an asterisk (*) and the SCP policy applies to all resources. You can also set condition keys in an SCP to define resource types.

The following table lists the resource types that you can define in an SCP for EIP.

Table 3 Resource types supported by EIP

Resource Type

URN

bandwidthPkg

eip:<region>:<account-id>:bandwidthPkg:<bandwidthPkg-id>

publicipPool

eip:<region>:<account-id>:publicipPool:<publicipPool-id>

publicip

eip:<region>:<account-id>:publicip:<publicip-id>

bandwidth

eip:<region>:<account-id>:bandwidth:<bandwidth-id>

Conditions

EIP does not support service-specific condition keys in SCPs. It can only use global condition keys applicable to all services. For details, see Global Condition Keys.