统一身份认证服务 IAM-创建委托:请求示例

时间:2024-08-16 08:45:06

请求示例

创建一个名为“ IAM Agency”的委托,被委托账号ID是c2cd82a33fb043dc9304bf72a...,账号名是IAMDomainB,委托的有效期限是永久。

POST https://iam.myhuaweicloud.com/v3.0/OS-AGENCY/agencies
{
    "agency": {
        "name": "IAMAgency",
        "domain_id": "d78cbac186b744899480f25bd...",
        "trust_domain_id": "c2cd82a33fb043dc9304bf72a...",
        "trust_domain_name": "IAMDomainB",
        "duration": "FOREVER",
        "description": "IAMDescription"
    }
}
support.huaweicloud.com/api-iam/iam_12_0003.html