IAM 身份中心-创建账号分配:请求示例

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

请求示例

使用指定的权限集为指定账号分配对应 IAM 身份中心用户的访问权限。

POST https://{hostname}/v1/instances/{instance_id}/account-assignments/create

{
  "permission_set_id" : "848805579************03de60620a5",
  "principal_id" : "ac6aa714-daa7-1aaa-aaa2-6715aaaa4dd9",
  "principal_type" : "USER",
  "target_id" : "5146d03d8aaaaaaaaaaaabbae60620a5",
  "target_type" : "ACCOUNT"
}
support.huaweicloud.com/api-identitycenter/CreateAccountAssignment.html