IAM 身份中心-添加自定义身份策略:请求示例

时间:2024-09-13 17:36:20

请求示例

在指定的权限集中添加自定义身份策略。

PUT https://{hostname}/v1/instances/{instance_id}/permission-sets/{permission_set_id}/custom-policy

{
  "custom_policy" : "{\"Version\":\"5.0\",\"Statement\":[{\"Effect\":\"Deny\",\"Action\":[\"organizations:ous:delete\"],\"Condition\":{\"StringEquals\":{\"g:ResourceAccount\":[\"0a6d25d23900d45c0faac010e0fb4de0\"]}}}]}"
}
support.huaweicloud.com/api-identitycenter/PutCustomPolicyToPermissionSet.html