Advanced Anti-DDoS
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 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 AAD, 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 AAD, 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 AAD.
|
Action |
Description |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
|---|---|---|---|---|---|
|
aad:alarmConfig:create |
Grants permission to create alarm settings. |
Write |
alarmConfig * |
- |
- |
|
aad:alarmConfig:put |
Grants permission to modify alarm settings. |
Write |
alarmConfig * |
- |
- |
|
aad:alarmConfig:get |
Grants permission to query alarm settings. |
Read |
alarmConfig * |
- |
- |
|
aad:alarmConfig:delete |
Grants permission to delete alarm settings. |
Write |
alarmConfig * |
- |
- |
|
aad:certificate:delete |
Grants permission to delete certificates. |
Write |
certificate * |
- |
- |
|
aad:certificate:list |
Grants permission to query the certificate list. |
List |
certificate * |
- |
- |
|
aad:certificate:set |
Grants permission to modify the certificate for a domain name. |
Write |
certificate * |
- |
- |
|
domain * |
|||||
|
aad:dashboard:delete |
Grants permission to delete report log configurations. |
Write |
- |
- |
- |
|
aad:dashboard:get |
Grants permission to obtain report data and log configurations. |
Read |
- |
- |
- |
|
aad:dashboard:set |
Grants permission to modify report log configurations. |
Write |
- |
- |
- |
|
aad:domain:create |
Grants permission to add protected domain names. |
Write |
domain * |
- |
|
|
aad:domain:delete |
Grants permission to delete protected domain names. |
Write |
domain * |
- |
|
|
aad:domain:get |
Grants permission to query domain name details. |
Read |
domain * |
- |
|
|
aad:domain:list |
Grants permission to query the domain name list. |
List |
domain * |
- |
|
|
aad:domain:put |
Grants permission to modify domain protection attributes. |
Write |
domain * |
- |
|
|
aad:forwardingRule:create |
Grants permission to add forwarding rules. |
Write |
forwardingRule * |
- |
|
|
aad:forwardingRule:delete |
Grants permission to delete forwarding rules. |
Write |
forwardingRule * |
- |
|
|
aad:forwardingRule:get |
Grants permission to query forwarding rules. |
Read |
forwardingRule * |
- |
|
|
aad:forwardingRule:list |
Grants permission to export forwarding rules. |
List |
forwardingRule * |
- |
|
|
aad:forwardingRule:put |
Grants permission to modify the back-to-source IP address in the forwarding rule. |
Write |
forwardingRule * |
- |
|
|
aad:instance:create |
Grants permission to create an instance. |
Write |
instance * |
- |
|
|
aad:instance:get |
Grants permission to query instance attributes. |
Read |
instance * |
- |
|
|
aad:instance:list |
Grants permission to query the instance list. |
List |
instance * |
- |
|
|
aad:instance:put |
Grants permission to modify instance attributes. |
Write |
instance * |
- |
|
|
aad:policy:create |
Grants permission to add protection rules. |
Write |
policy * |
- |
|
|
aad:policy:delete |
Grants permission to delete protection rules. |
Write |
policy * |
- |
|
|
aad:policy:get |
Grants permission to query protection rule details. |
Read |
policy * |
- |
|
|
aad:policy:list |
Grants permission to query protection rules. |
List |
policy * |
- |
|
|
aad:policy:put |
Grants permission to modify protection rules. |
Write |
policy * |
- |
|
|
aad:quotas:get |
Grants permission to query protection specifications. |
Read |
- |
- |
- |
|
aad:whiteBlackIpRule:create |
Grants permission to add IP addresses to the blacklist or whitelist. |
Write |
whiteBlackIpRule * |
- |
|
|
aad:whiteBlackIpRule:delete |
Grants permission to delete IP addresses from the blacklist or whitelist. |
Write |
whiteBlackIpRule * |
- |
|
|
aad:whiteBlackIpRule:list |
Grants permission to query the protection blacklist and whitelist. |
List |
whiteBlackIpRule * |
- |
|
|
aad:protectedIp:put |
Grants permission to modify tags for protected ip. |
Write |
- |
- |
- |
|
aad:protectedIp:list |
Grants permission to query the protected ip list. |
List |
- |
- |
- |
|
aad:package:put |
Grants permission to modify protection package. |
Write |
package * |
- |
- |
|
aad:package:list |
Grants permission to query the protection package list. |
List |
package * |
- |
- |
|
aad:block:put |
Grants permission to unblock ip. |
Write |
- |
- |
- |
|
aad:block:list |
Grants permission to query the blocked ip list. |
List |
- |
- |
- |
|
aad:block:get |
Grants permission to query the blocking and unblocking information. |
Read |
- |
- |
- |
Each API of AAD usually supports one or more actions. Table 2 lists the supported actions and dependencies.
|
API |
Action |
Dependencies |
|---|---|---|
|
POST /v1/{project_id}/cad/alart/config |
aad:alarmConfig:create |
- |
|
POST /v1/cnad/alarm-config |
aad:alarmConfig:put |
- |
|
DELETE /v1/cnad/alarm-config |
aad:alarmConfig:delete |
- |
|
GET /v1/{project_id}/cad/alart/list |
aad:alarmConfig:get |
- |
|
GET /v1/cnad/alarm-config |
aad:alarmConfig:get |
- |
|
DELETE /v1/aad/certificate/del |
aad:certificate:delete |
- |
|
GET /v1/{project_id}/cad/domains/certificatelist |
aad:certificate:list |
- |
|
GET /v1/aad/certificate-details |
aad:certificate:list |
- |
|
POST /v1/{project_id}/cad/domains/certificate |
aad:certificate:set |
- |
|
POST /v1/aad/configs/lts/delete |
aad:dashboard:delete |
- |
|
GET /v1/{project_id}/cad/ddosinfo/events_type |
aad:dashboard:get |
- |
|
GET /v1/aad/configs/lts_region |
aad:dashboard:get |
- |
|
GET /v1/aad/configs/lts |
aad:dashboard:get |
- |
|
GET /v1/{project_id}/waf/event/timeline |
aad:dashboard:get |
- |
|
GET /v1/{project_id}/waf/event/request/peak |
aad:dashboard:get |
- |
|
GET /v1/{project_id}/waf/event/attack/type |
aad:dashboard:get |
- |
|
GET /v1/{project_id}/waf/event/attack/source/num |
aad:dashboard:get |
- |
|
GET /v1/{project_id}/waf/event/attack/source |
aad:dashboard:get |
- |
|
GET /v1/{project_id}/cad/instances/flow_pps |
aad:dashboard:get |
- |
|
GET /v1/{project_id}/cad/instances/flow_bps |
aad:dashboard:get |
- |
|
GET /v1/{project_id}/cad/instances/events |
aad:dashboard:get |
- |
|
GET /v1/{project_id}/cad/ddosinfo/peak |
aad:dashboard:get |
- |
|
POST /v1/aad/configs/lts |
aad:dashboard:set |
- |
|
POST /v1/{project_id}/aad/domains |
aad:domain:create |
- |
|
POST /v1/{project_id}/cad/domains/del |
aad:domain:delete |
- |
|
GET /v1/{project_id}/aad/domains/{domain_id}/service-config |
aad:domain:get |
- |
|
GET /v1/{project_id}/cad/domains/ports |
aad:domain:list |
- |
|
GET /v1/{project_id}/cad/domains/name |
aad:domain:get |
- |
|
GET /v1/{project_id}/cad/domains/line/{enterprise_project_id} |
aad:domain:list |
- |
|
GET /v1/{project_id}/cad/domains/instances |
aad:domain:get |
- |
|
GET /v1/{project_id}/cad/domains/brief |
aad:domain:get |
- |
|
GET /v1/{project_id}/aad/domains/waf-list |
aad:domain:list |
- |
|
GET /v1/{project_id}/cad/domains |
aad:domain:list |
- |
|
POST /v1/{project_id}/aad/domains/{domain_id}/service-config |
aad:domain:put |
- |
|
POST /v1/{project_id}/cad/domains/switch |
aad:domain:put |
- |
|
POST /v1/{project_id}/cad/domains/cnameDispatchSwitch |
aad:domain:put |
- |
|
POST /v1/{project_id}/cad/domains/cname/switch |
aad:domain:put |
- |
|
POST /v1/{project_id}/cad/instances/protocol_rule |
aad:forwardingRule:create |
- |
|
POST /v1/{project_id}/cad/instances/protocol_rule/import |
aad:forwardingRule:create |
- |
|
DELETE /v1/{project_id}/cad/instances/protocol_rule/{rule_id} |
aad:forwardingRule:delete |
- |
|
POST /v1/{project_id}/cad/instances/protocol_rule/batchdel |
aad:forwardingRule:delete |
- |
|
GET /v1/{project_id}/cad/instances/rules |
aad:forwardingRule:get |
- |
|
GET /v1/{project_id}/cad/instances/protocol_rule/export |
aad:forwardingRule:list |
- |
|
PUT /v1/{project_id}/cad/instances/protocol_rule/{rule_id} |
aad:forwardingRule:put |
- |
|
POST /v1/{project_id}/cad/instances/cad_open |
aad:instance:create |
- |
|
GET /v1/{project_id}/cad/products |
aad:instance:create |
- |
|
GET /v1/{project_id}/{resource_type}/{resource_id}/tags |
aad:instance:get |
- |
|
GET /v1/{project_id}/cad/upgradeproducts/{instance_id} |
aad:instance:get |
- |
|
GET /v1/{project_id}/cad/instances/detail/{instance_id} |
aad:instance:get |
- |
|
GET /v1/{project_id}/aad/instances/brief-list |
aad:instance:list |
- |
|
GET /v1/{project_id}/cad/sourceip |
aad:instance:list |
- |
|
GET /v1/{project_id}/cad/instances |
aad:instance:list |
- |
|
POST /v1/{project_id}/{resource_type}/{resource_id}/tags/action |
aad:instance:put |
- |
|
POST /v1/{project_id}/cad/instances/cad_spec_upgrade |
aad:instance:put |
- |
|
PUT /v1/{project_id}/cad/instances/{instance_id}/name |
aad:instance:put |
- |
|
PUT /v1/{project_id}/cad/instances/{instance_id}/elastic/{ip_id} |
aad:instance:put |
- |
|
POST /v1/{project_id}/aad/policies/waf/cc |
aad:policy:create |
- |
|
POST /v1/cnad/policies |
aad:policy:create |
- |
|
DELETE /v1/{project_id}/aad/policies/waf/cc/{rule_id} |
aad:policy:delete |
- |
|
DELETE /v1/cnad/policies/{policy_id} |
aad:policy:delete |
- |
|
GET /v1/{project_id}/cad/flowblock |
aad:policy:get |
- |
|
GET /v1/cnad/policies/{policy_id} |
aad:policy:get |
- |
|
GET /v1/{project_id}/aad/policies/waf/cc |
aad:policy:list |
- |
|
GET /v1/cnad/policies |
aad:policy:list |
- |
|
PUT /v1/{project_id}/aad/policies/waf/cc/{rule_id} |
aad:policy:put |
- |
|
POST /v1/{project_id}/cad/flowblock/udp |
aad:policy:put |
- |
|
POST /v1/{project_id}/cad/flowblock/foreign |
aad:policy:put |
- |
|
POST /v1/cnad/policies/{policy_id}/ip-list/add |
aad:policy:put |
- |
|
POST /v1/cnad/policies/{policy_id}/bind |
aad:policy:put |
- |
|
POST /v1/cnad/policies/{policy_id}/ip-list/delete |
aad:policy:put |
- |
|
POST /v1/cnad/policies/{policy_id}/unbind |
aad:policy:put |
- |
|
PUT /v1/cnad/policies/{policy_id} |
aad:policy:put |
- |
|
GET /v1/{project_id}/aad/quotas/domain-port |
aad:quotas:get |
- |
|
GET /v1/{project_id}/scc/waf/quota |
aad:quotas:get |
- |
|
GET /v1/{project_id}/cad/quotas |
aad:quotas:get |
- |
|
GET /v1/{project_id}/cad/ip/quotas |
aad:quotas:get |
- |
|
GET /v1/{project_id}/cad/bwlist/quota |
aad:quotas:get |
- |
|
GET /v1/{project_id}/aad/user-configs |
aad:quotas:get |
- |
|
POST /v1/{project_id}/cad/bwlist |
aad:whiteBlackIpRule:create |
- |
|
POST /v1/{project_id}/cad/bwlist/delete |
aad:whiteBlackIpRule:delete |
- |
|
GET /v1/{project_id}/cad/bwlist |
aad:whiteBlackIpRule:list |
- |
|
PUT /v1/cnad/protected-ips/tags |
aad:protectedIp:put |
- |
|
GET /v1/cnad/protected-ips |
aad:protectedIp:list |
- |
|
POST /v1/cnad/packages/{package_id}/protected-ips |
aad:package:put |
- |
|
PUT /v1/cnad/packages/{package_id}/name |
aad:package:put |
- |
|
GET /v1/cnad/packages |
aad:package:list |
- |
|
GET /v1/cnad/packages/{package_id}/unbound-protected-ips |
aad:package:list |
- |
|
POST /v1/unblockservice/{domain_id}/unblock |
aad:block:put |
- |
|
GET /v1/unblockservice/{domain_id}/block-list |
aad:block:list |
- |
|
GET /v1/unblockservice/{domain_id}/unblock-quota-statistics |
aad:block:get |
- |
|
GET /v1/unblockservice/{domain_id}/block-statistics |
aad:block:get |
- |
|
GET /v1/unblockservice/{domain_id}/unblock-record |
aad:block:get |
- |
|
GET /v1/{project_id}/cad/instances/{instance_id}/elastic_count/{ip_id} |
aad:instance:get |
- |
|
GET /v1/{project_id}/cad/instances/{data_center}/elastic/{line}/{ip_id} |
aad:instance:get |
- |
|
GET /v1/aad/remain-vip-number |
aad:quotas:get |
- |
|
GET /v1/aad/instance/connection-num |
aad:dashboard:get |
- |
|
PUT /v1/{project_id}/cad/instances/{instance_id}/pp-switch |
aad:instance:put |
- |
|
GET /v1/aad-service/ces/{domain_id}/dims-info |
aad:instance:list |
- |
|
GET /v1/aad-service/ces/v2/{domain_id}/instances |
aad:instance:list |
- |
|
GET /v1/{project_id}/cad/instances/security-statistics |
aad:instance:list |
- |
|
GET /v1/aad/domain/instances/rules |
aad:domain:list |
- |
|
POST /v1/aad/policy/modify |
aad:policy:put |
- |
|
POST /v1/aad/geoip |
aad:policy:put |
- |
|
GET /v1/aad/geoip |
aad:policy:get |
- |
|
DELETE /v1/aad/geoip/{ruleId} |
aad:policy:delete |
- |
|
PUT /v1/aad/geoip/{ruleId} |
aad:policy:put |
- |
|
POST /v1/aad/whiteip |
aad:policy:put |
- |
|
GET /v1/aad/whiteip |
aad:policy:get |
- |
|
DELETE /v1/aad/whiteip |
aad:policy:delete |
- |
|
POST /v1/aad/custom |
aad:policy:put |
- |
|
GET /v1/aad/custom |
aad:policy:get |
- |
|
PUT /v1/aad/custom/{ruleId} |
aad:policy:put |
- |
|
DELETE /v1/aad/custom/{ruleId} |
aad:policy:delete |
- |
|
GET /v1/aad/policy/details |
aad:policy:get |
- |
|
POST /v1/aad/cc/intelligent/modify |
aad:policy:put |
- |
|
GET /v1/aad/geoip/map |
aad:policy:get |
- |
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 define in identity policy statements for AAD.
|
Resource Type |
URN |
|---|---|
|
forwardingRule |
aad::<account-id>:forwardingRule:<forwarding-rule-id> |
|
package |
aad::<account-id>:package:<package-id> |
|
policy |
aad::<account-id>:policy:<policy-id> |
|
alarmConfig |
aad::<account-id>:alarmConfig:<alarm-config-id> |
|
domain |
aad::<account-id>:domain:<domain-id> |
|
certificate |
aad::<account-id>:certificate:<certificate-id> |
|
instance |
aad::<account-id>:instance:<instance-id> |
|
whiteBlackIpRule |
aad::<account-id>:whiteBlackIpRule:<white-black-ip-rule-id> |
Conditions
AAD 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.
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