应用身份管理服务 ONEACCESS-新增应用账号:请求示例

时间:2024-08-30 15:55:32

请求示例

创建指定应用的应用账号并关联指定用户,账号名为zhangshan,账号名称为zs,关联用户的user_id为20220331164602949-904C-D475B60AE,应用账号为启用状态。

POST https://{domain_name}/api/v2/tenant/applications/{application_id}/accounts/basic-account

Authorization: Bearer 334963fc-1e4a-473b-9096-52a929140...

{
    "account_name":"zhangsan",
    "user_id":"20220331164602949-904C-D475B60AE",
    "name":"zs",
    "org_code":"",
    "password":"",
    "disabled":false,
    "extension":{}
}
support.huaweicloud.com/api-oneaccess/CreateAppAccount.html