CAM Overview
Features
Scenarios
Basic Concepts
Use Limits
User Types
Scenario | Description | Sample |
The condition operator contains a condition value of a condition key. | The VPC is allowed to bind with the specified peering connection. The region of the VPC must be specified. | |
| Only cloud server instances with bound tags can be restarted. | |
The condition operator contains multiple condition values of a single condition key. | Users with two specified IP addresses are allowed to access. | |
Scenarios with multiple condition operators. | Users with a specified IP are allowed to access on the specified date. | |
A single condition operator contains multiple condition keys. | Multiple condition keys are attached to a single condition operator. | |
Application of Boolean Condition Operators | Sub-users must bind the token before they can delete the API key. | |
Shanghai:{"version": "2.0","statement": [{"effect": "allow","action": "name/vpc:AcceptVpcPeeringConnection","resource": "qcs::vpc:sh::pcx/2341","condition": {"string_equal_if_exist": {"vpc:region": "sh"}}}]}
{"version": "2.0","statement": [{"effect": "allow","action": ["cvm:RebootInstances"],"resource": "*","condition": {"for_any_value:string_equal": {"qcs:resource_tag": ["Department&Research and Development"]}}}]}
10.217.182.3/24 or 111.21.33.72/24 IP range to upload objects (cos:PutObject).{"version": "2.0","statement": [{"effect": "allow","action": "cos:PutObject","resource": "*","condition": {"ip_equal": {"qcs:ip": ["10.217.182.3/24","111.21.33.72/24"]}}}]}
192.168.1.1, and the request date must be earlier than 2022-05-31 00:00:00 in order to match."condition": {"ip_equal": {"qcs:ip": "192.168.1.1"},"date_less_than": {"qcs:current_time": "2022-05-31 00:00:00"}}
"condition": {"string_equal": {"qcs:resource_tag": ["Department&Research and Development"],"qcs:request_tag": ["Department&Research and Development"]}}
{"version": "2.0","statement": [{"effect": "allow","action": ["cam:DeleteApiKey"],"resource": ["*"],"condition": {"bool_equal": {"qcs:BindToken": "true"}}}]}
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan