Obtaining the OU List of an Organization
Function
This API is used to obtain the organization units (OUs) of an organization in a specified project. Pagination is supported.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/multi-accounts/organizational-unit-list
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID, which is used to identify a specific project. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
account_id |
No |
String |
Account ID, which is used to filter accounts. |
|
limit |
No |
Integer |
Number of records returned on each page. |
|
marker |
No |
String |
Offset of the returned records. |
|
parent_id |
No |
String |
Parent account ID, which is used to filter sub-accounts of a specified parent account. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
ou_list |
Array of OrganizationOU objects |
Organization unit list. |
|
page_info |
PaginationResponse object |
Pagination information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Organization unit ID. |
|
name |
String |
Organization unit name. |
|
ou_list |
Array of OrganizationOU objects |
Sub-organization unit list. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Request succeeded. The OU list is returned. |
|
401 |
Unauthorized access to the resource. |
|
403 |
Access denied. Insufficient permissions. |
|
404 |
The requested resource does not exist. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot