You need to enable JavaScript to run this app.
导航
基于请求标签(RequestTag)控制权限
最近更新时间:2024.06.24 11:46:36首次发布时间:2023.09.05 17:54:34

场景: 限制仅能为云企业网资源添加标签键为project且标签值为短视频业务的标签或解除标签键为project的标签。
策略示例:

{
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "cen:TagResources"
      ],
      "Resource": [
        "*"
      ],
      "Condition":{
          "StringEquals":{
                  "volc:RequestTag/project":"短视频业务"
          }
			}
		},
    {
      "Effect": "Allow",
      "Action": [
        "cen:UntagResources"
      ],
      "Resource": [
        "*"
      ],
      "Condition":{
          "ForAnyValue:StringEqualsIfExists":{
                  "volc:RequestTagKeys":"project"
          }
			}
		}
  ]
}