
# 查询纳管账号信息 - ShowManagedAccount
#### 功能介绍
查询组织里某个纳管账号信息。
#### 授权信息
账号根用户具备所有API的调用权限，如果使用账号下的IAM用户调用当前API，该IAM用户需具备如下身份策略权限，更多的权限说明请参见[权限和授权项](https://support.huaweicloud.com/api-rgc/rgc_02_0016.html)。
| 授权项                    | 访问级别 | 资源类型（\*为必须） | 条件键 | 别名 | 依赖的授权项 |
|:---|:---|:---|:---|:---|:---|
| rgc:managedAccount:get | Read | -           | -   | -  | -      |
   
#### URI
GET /v1/managed-organization/managed-accounts/{managed_account_id}
表1路径参数 
| 参数                 | 是否必选 | 参数类型   | 描述      |
|:---|:---|:---|:---|
| managed_account_id | 是    | String | 纳管账号ID。 |
   
#### 请求参数
无
#### 响应参数
**状态码：200**
表2响应Body参数 
| 参数                                      | 参数类型                                                                                  | 描述                                                |
|:---|:---|:---|
| landing_zone_version                    | String                                                                                | 纳管账号的Landing Zone版本。                              |
| manage_account_id                       | String                                                                                | 管理员账号ID。                                          |
| account_id                              | String                                                                                | 纳管账号ID。                                           |
| account_name                            | String                                                                                | 纳管账号名称。                                           |
| account_type                            | String                                                                                | 纳管账号类型。LOGGING:日志记录账号;SECURITY:安全账号;PRIMARY:管理账号。 |
| owner                                   | String                                                                                | 纳管账号的创建来源，包括CUSTOM和RGC。                           |
| state                                   | String                                                                                | 纳管账号状态。                                           |
| message                                 | String                                                                                | 错误状态描述信息。                                         |
| parent_organizational_unit_id           | String                                                                                | 父注册OU ID。                                         |
| parent_organizational_unit_name         | String                                                                                | 父注册OU名称。                                          |
| identity_store_user_name                | String                                                                                | Identity Center用户名。                               |
| blueprint_product_id                    | String                                                                                | 模板ID。                                             |
| blueprint_product_version               | String                                                                                | 模板版本。                                             |
| blueprint_status                        | String                                                                                | 模板部署状态，包括失败, 完成, 进行中。                             |
| is_blueprint_has_multi_account_resource | Boolean                                                                               | 模板是否包含多账号资源。                                      |
| regions                                 | Array of [RegionManagedList] objects | 区域信息。                                             |
| created_at                              | String                                                                                | 纳管账号的创建时间。                                        |
| updated_at                              | String                                                                                | 纳管账号的更新时间。                                        |
   
 表3RegionManagedList 
| 参数            | 参数类型   | 描述                |
|:---|:---|:---|
| region        | String | 区域名字。             |
| region_status | String | 区域的状态，取值为可用或者不可用。 |
   
**状态码：403**
表4响应Body参数 
| 参数                            | 参数类型                                                                                        | 描述           |
|:---|:---|:---|
| error_code                    | String                                                                                      | 错误码          |
| error_msg                     | String                                                                                      | 错误信息         |
| request_id                    | String                                                                                      | 请求唯一标识       |
| encoded_authorization_message | String                                                                                      | 加密的错误信息      |
| details                       | Array of [ForbiddenErrorDetail] objects | 跨服务调用无权限错误信息 |
   
 表5ForbiddenErrorDetail 
| 参数         | 参数类型   | 描述   |
|:---|:---|:---|
| error_code | String | 错误码  |
| error_msg  | String | 错误信息 |
   
#### 请求示例
查询组织里某个纳管账号信息。
```
GET https://{endpoint}/v1/managed-organization/managed-accounts/{managed_account_id}
```
#### 响应示例
**状态码：200**
请求成功。
```
{
  "manage_account_id" : "string",
  "account_id" : "string",
  "account_name" : "string",
  "account_type" : "string",
  "owner" : "string",
  "state" : "string",
  "message" : "string",
  "parent_organizational_unit_id" : "string",
  "parent_organizational_unit_name" : "string",
  "identity_store_user_name" : "string",
  "blueprint_product_id" : "string",
  "blueprint_product_version" : "string",
  "blueprint_status" : "string",
  "is_blueprint_has_multi_account_resource" : "boolean",
  "regions" : [ {
    "region" : "string",
    "region_status" : "string"
  } ],
  "created_at" : "2023-11-15T07:32:12.283Z",
  "updated_at" : "2023-11-15T07:32:12.283Z"
}
```
#### 状态码
| 状态码 | 描述     |
|:---|:---|
| 200 | 请求成功。  |
| 403 | 请求无权限。 |
   
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-rgc/ErrorCode.html)。
