10.217.182.3/24
或者 111.21.33.72/24
网段才能调用云 API 访问 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"]}}}]}
{"version": "2.0","statement": [{"effect": "allow","action": "name/vpc:AcceptVpcPeeringConnection","resource": "qcs::vpc:sh::pcx/2341","condition": {"string_equal_if_exist": {"vpc:region": "sh"}}}]}
条件操作符 | 含义 | 条件名 | 举例 |
string_equal | 字符串等于(区分大小写) | qcs:tag | {"string_equal":{"qcs:tag/tag_name1":"tag_value1"}} |
string_not_equal | 字符串不等于(区分大小写) | qcs:tag | {"string_not_equal":{"qcs:tag/tag_name1":"tag_value1"}} |
string_equal_ignore_case | 字符串等于(不区分大小写) | qcs:tag | {"string_equal_ignore_case":{"qcs:tag/tag_name1":"tag_value1"}} |
string_not_equal_ignore_case | 字符串不等于(不区分大小写) | qcs:tag | {"string_not_equal_ignore_case":{"qcs:tag/tag_name1":"tag_value1"}} |
binary_equal | 字符串等于(区分大小写) | qcs:tag | {"binary_equal":{"qcs:tag/tag_name1":"tag_value1"}} |
date_not_equal | 时间不等于 | qcs:current_time | {"date_not_equal":{"qcs:current_time":"2016-06-01T00:01:00Z"}} |
date_greater_than | 时间大于 | qcs:current_time | {" date_greater_than ":{"qcs:current_time":"2016-06-01T00:01:00Z"}} |
date_greater_than_equal | 时间大于等于 | qcs:current_time | {" date_greater_than_equal ":{"qcs:current_time":"2016-06-01T00:01:00Z"}} |
date_less_than | 时间小于 | qcs:current_time | {" date_less_than ":{"qcs:current_time":"2016-06-01T 00:01:00Z"}} |
date_less_than_equal | 时间小于等于 | qcs:current_time | {" date_less_than_equal ":{"qcs:current_time":"2016-06-01T 00:01:00Z"}} |
date_equal | 时间等于 | qcs:current_time | {"date_equal ":{"qcs:current_time":"2016-06-01T00:01:00Z"}} |
ip_equal | IP 等于 | qcs:ip | {"ip_equal":{"qcs:ip ":"10.121.2.10/24"}} |
ip_not_equal | IP 不等于 | qcs:ip | {"ip_not_equal":{"qcs:ip ":["10.121.2.10/24", "10.121.2.20/24"]}} |
numeric_greater_than | 数值大于 | - | {"numeric_greater_than ":{"cvm_system_disk_size":10}} |
numeric_greater_than_equal | 数值大于等于 | - | {"numeric_greater_than_equal ":{"cvm_system_disk_size":10}} |
numeric_less_than | 数值小于 | - | {"numeric_less_than ":{"cvm_system_disk_size":10}} |
numeric_less_than_equal | 数值小于等于 | - | {"numeric_less_than_equal ":{"cvm_system_disk_size":10}} |
bool_equal | 布尔值匹配 | - | - |
null_equal | 条件键为空匹配 | - | - |
本页内容是否解决了您的问题?