DescribeOrgs
Queries the list of organizations.
Operation description
Organizations use a tree structure. The root organization ID is org-aliyun-wy-org-id.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:DescribeOrgs |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
The maximum number of results to return. Valid values: 1 to 100. Default value: 100. |
20 |
| NextToken |
string |
No |
The pagination token. Set the value to the NextToken parameter returned by the previous API call. |
AAAAAV3MpHK**** |
| OrgName |
string |
No |
The name of the organization. |
Product Department |
| ParentOrgId |
string |
No |
The ID of the parent organization. |
org-11fs**** |
| IsQueryAllSubOrgs |
boolean |
No |
Specifies whether to query all subordinate organizations when a parent organization is specified. |
|
| ShowExtras |
object |
No |
The switch mapping for additional response information. This parameter controls whether to return organization paths and resource policy information. |
|
|
any |
No |
Specifies whether to return the corresponding additional organization information. |
||
| BusinessChannel |
string |
No |
The business channel. |
ENTERPRISE |
| IncludeOrgIds |
array |
No |
The list of organization IDs to query. |
|
|
string |
No |
The organization ID. |
org-1mox**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response information. |
||
| RequestId |
string |
The request ID. |
0B4BB**** |
| NextToken |
string |
The pagination token. Set the value to the NextToken parameter returned by the previous API call. |
AAAAAV3MpHK**** |
| Orgs |
array<object> |
The list of organizations. |
|
|
array<object> |
The organization details. |
||
| AccessType |
string |
The access type of the organization node. A value of MANAGEABLE indicates a manageable node. A value of PATH_ONLY indicates that the node is used only to display the full path to the root organization. |
MANAGEABLE |
| OrgName |
string |
The name of the organization. |
Design Department**** |
| OrgId |
string |
The organization ID. |
org-1mox**** |
| ParentOrgId |
string |
The ID of the parent organization. |
org-ezqr**** |
| OrgNamePath |
string |
The name path from the root organization to the current organization. |
Product Department/Design Department |
| ResourcePolicyList |
array<object> |
The list of resource policies associated with the organization. |
|
|
object |
The resource policy associated with the organization. |
||
| PolicyId |
string |
The resource policy ID. |
|
| PolicyName |
string |
The Policy Name. |
Examples
Success response
JSON format
{
"RequestId": "0B4BB****",
"NextToken": "AAAAAV3MpHK****",
"Orgs": [
{
"AccessType": "MANAGEABLE",
"OrgName": "Design Department****",
"OrgId": "org-1mox****",
"ParentOrgId": "org-ezqr****",
"OrgNamePath": "Product Department/Design Department",
"ResourcePolicyList": [
{
"PolicyId": "",
"PolicyName": ""
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.