DescribeOrgs

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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.