获取企业组织所有单元列表
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListOrganizationalUnits | 要执行的操作,取值:ListOrganizationalUnits |
Version | String | 是 | 2022-01-01 | API的版本,取值:2022-01-01 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
SubUnitList | Array of OrganizationUnit | 单元列表详情 |
GET /?Action=ListOrganizationalUnits&Version=2022-01-01&OrgId=0011223344556677889
{ "ResponseMetadata": { "RequestId": "20231013162052F34A54826CC7100A60F7", "Action": "ListOrganizationalUnits", "Version": "2022-01-01", "Service": "organization", "Region": "cn-north-1" }, "Result": { "SubUnitList": [ { "ID": "1122334455667788990", "CreatedTime": "2022-11-23T16:10:19+08:00", "UpdatedTime": "2022-11-23T16:10:19+08:00", "Owner": "2100245176", "OrgID": "0011223344556677889", "OrgType": 1, "ParentID": "0", "Depth": 0, "Name": "Root", "Description": "" } ] } }
下表提供了该接口业务逻辑相关的错误码。公共错误码请参见公共错误码。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
500 | InternalError | Unknown internal error: %v | 未知错误,根据错误信息判断详情 |
400 | PermissionError | No permission to perform action[%s] on resource %s | 无权限,没有对该资源进行该操作的权限 |
400 | InvalidParam | The parameter %v[%v] is invalid. | 参数不合法 |