创建账号 - CreateAccount
功能介绍
在组织里的某个注册OU下创建账号。
授权信息
账号根用户具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备如下身份策略权限,更多的权限说明请参见权限和授权项。
授权项 | 访问级别 | 资源类型(*为必须) | 条件键 | 别名 | 依赖的授权项 |
|---|---|---|---|---|---|
rgc:managedAccount:create | Write | - | - | - | - |
URI
POST /v1/managed-organization/managed-accounts
请求参数
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
account_name | 是 | String | 纳管账号名。 |
account_email | 否 | String | 纳管账号邮箱。 |
phone | 否 | String | 手机号码。 |
identity_store_user_name | 否 | String | Identity Center用户名。 |
identity_store_email | 否 | String | Identity Center邮箱。 |
parent_organizational_unit_id | 是 | String | 父注册OU ID。 |
parent_organizational_unit_name | 是 | String | 父注册OU名称。 |
blueprint | 否 | Blueprint object | 模板。 |
响应参数
状态码:201
参数 | 参数类型 | 描述 |
|---|---|---|
operation_id | String | 创建账号、纳管账号、注册OU的操作ID。 |
状态码:403
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码 |
error_msg | String | 错误信息 |
request_id | String | 请求唯一标识 |
encoded_authorization_message | String | 加密的错误信息 |
details | Array of ForbiddenErrorDetail objects | 跨服务调用无权限错误信息 |
请求示例
在组织里的某个注册OU下创建账号。
POST https://{endpoint}/v1/managed-organization/managed-accounts
{
"account_name" : "string",
"account_email" : "string",
"phone" : "string",
"identity_store_user_name" : "string",
"identity_store_email" : "string",
"parent_organizational_unit_id" : "string",
"parent_organizational_unit_name" : "string",
"blueprint" : {
"blueprint_product_id" : "string",
"blueprint_product_version" : "string",
"variables" : "string",
"is_blueprint_has_multi_account_resource" : "boolean"
}
} 响应示例
状态码:201
Successful
{
"operation_id" : "string"
} 状态码
状态码 | 描述 |
|---|---|
201 | Successful |
403 | 请求无权限。 |
错误码
请参见错误码。

