更新时间:2025-08-22 GMT+08:00
分享

更新纳管账号

功能介绍

更新组织里某个已在RGC服务的纳管账号。

URI

POST https://{endpoint}/v1/managed-organization/managed-accounts/{managed_account_id}/update

表1 路径参数

参数

是否必选

参数类型

描述

managed_account_id

String

纳管账号ID。

请求参数

表2 请求Body参数

参数

是否必选

参数类型

描述

parent_organizational_unit_id

String

父注册OU ID。

parent_organizational_unit_name

String

父注册OU名称。

blueprint

Blueprint object

模板。

表3 Blueprint

参数

是否必选

参数类型

描述

blueprint_product_id

String

模板ID。

blueprint_product_version

String

模板版本。

variables

String

模板部署参数。

is_blueprint_has_multi_account_resource

Boolean

模板是否包含多账号资源。

响应参数

状态码:200

表4 响应Body参数

参数

参数类型

描述

operation_id

String

创建账号、纳管账号、注册OU的操作ID。

状态码:403

表5 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误信息

request_id

String

请求唯一标识

encoded_authorization_message

String

加密的错误信息

details

Array of ForbiddenErrorDetail objects

跨服务调用无权限错误信息

表6 ForbiddenErrorDetail

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误信息

请求示例

更新组织里某个已在RGC服务的纳管账号。

POST https://{endpoint}/v1/managed-organization/managed-accounts/{managed_account_id}/update

{
  "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"
  }
}

响应示例

状态码:200

请求成功。

{
  "operation_id" : "string"
}

状态码

状态码

描述

200

请求成功。

403

请求无权限。

错误码

请参见错误码

相关文档