创建账号
功能介绍
在组织里的某个注册OU下创建账号。
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 |
请求无权限。 |
错误码
请参见错误码。