Help Center/ Resource Governance Center/ API Reference/ APIs/ Managing Organizations/ Listing Registered OUs Enabled with Governance Policies
Updated on 2025-08-22 GMT+08:00

Listing Registered OUs Enabled with Governance Policies

Function

This API is used to list registered OUs that governance policies have been enabled for.

URI

GET https://{endpoint}/v1/managed-organization/managed-organizational-units

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

control_id

No

String

ID of a governance policy.

limit

No

Integer

Maximum number of pages that can be displayed on at once.

marker

No

String

Page marker.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

managed_organizational_units

Array of ManagedOrganizationalUnit objects

Information about a registered OU.

page_info

PageInfoDto object

Number of items returned on the current page.

Table 3 ManagedOrganizationalUnit

Parameter

Type

Description

manage_account_id

String

Management account ID.

organizational_unit_id

String

ID of a registered OU.

organizational_unit_name

String

Name of a registered OU.

organizational_unit_status

String

Status of a registered OU.

organizational_unit_type

String

Type of an OU.

  • CORE - Foundational OU

  • CUSTOM - OU

  • ROOT - Root OU

parent_organizational_unit_id

String

ID of a registered parent OU.

parent_organizational_unit_name

String

Name of a registered parent OU.

created_at

String

Time when a registered OU was created.

landing_zone_version

String

Landing zone version of a registered OU.

updated_at

String

Time when a registered OU was updated.

message

String

Error description.

Table 4 PageInfoDto

Parameter

Type

Description

next_marker

String

Used in the marker request parameter to get the next part of the output. Repeat this operation until the response element comes back as null. If present, more output is available than that included in the current response.

current_count

Integer

Number of records displayed on the current page.

Status code: 403

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

request_id

String

Unique ID of the request.

encoded_authorization_message

String

Encrypted error message.

details

Array of ForbiddenErrorDetail objects

Error message indicating no permissions for cross-service invoking.

Table 6 ForbiddenErrorDetail

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

Listing registered OUs that governance policies have been enabled for

GET https://{endpoint}/v1/managed-organization/managed-organizational-units

Example Responses

Status code: 200

Request succeeded.

{
  "managed_organizational_units" : [ {
    "manage_account_id" : "string",
    "organizational_unit_id" : "string",
    "organizational_unit_name" : "string",
    "organizational_unit_status" : "string",
    "organizational_unit_type" : "string",
    "parent_organizational_unit_id" : "string",
    "parent_organizational_unit_name" : "string",
    "created_at" : "string",
    "landing_zone_version" : "string",
    "updated_at" : "string",
    "message" : "string"
  } ],
  "page_info" : {
    "next_marker" : "string",
    "current_count" : 1
  }
}

Status Codes

Status Code

Description

200

Request succeeded.

403

No permissions.

Error Codes

See Error Codes.