GetOrganizationalUnit
Queries the information of an EIAM organization.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:GetOrganizationalUnit |
get |
*OrganizationalUnit
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| OrganizationalUnitId |
string |
Yes |
The organizational unit ID. |
ou_wovwffm62xifdziem7an7xxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response result. |
||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| OrganizationalUnit |
object |
The organizational unit data object. |
|
| OrganizationalUnitId |
string |
The organizational unit ID. |
ou_wovwffm62xifdziem7an7xxxxx |
| OrganizationalUnitName |
string |
The name of the organizational unit. |
test_organizationalUnit_name |
| ParentId |
string |
The ID of the parent organizational unit. |
ou_wovwffm62xifdziem7an7xxxxx |
| OrganizationalUnitExternalId |
string |
The external ID of the organizational unit. It is used to map external data to IDaaS organizational units. The default value is the IDaaS organizational unit ID. Note: The external ID must be unique within the same source type and source ID. |
ou_wovwffm62xifdziem7an7xxxxx |
| OrganizationalUnitSourceType |
string |
The account source type. Valid values:
|
build_in |
| OrganizationalUnitSourceId |
string |
The source ID of the organizational unit. For self-managed organizational units, the default value is the instance ID. For other types, the value corresponds to the enterprise ID of the respective source. For example, for DingTalk, the value is the corpId of the DingTalk enterprise. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| CreateTime |
integer |
The time when the organizational unit was created. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| UpdateTime |
integer |
The time when the organizational unit was last updated. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| Description |
string |
The description of the organizational unit. |
Test organization |
| InstanceId |
string |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| Leaf |
boolean |
Specifies whether the organizational unit is a leaf node. A value of true indicates that the organizational unit has no child nodes. A value of false indicates that the organizational unit has child nodes. |
false |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"OrganizationalUnit": {
"OrganizationalUnitId": "ou_wovwffm62xifdziem7an7xxxxx",
"OrganizationalUnitName": "test_organizationalUnit_name",
"ParentId": "ou_wovwffm62xifdziem7an7xxxxx",
"OrganizationalUnitExternalId": "ou_wovwffm62xifdziem7an7xxxxx",
"OrganizationalUnitSourceType": "build_in",
"OrganizationalUnitSourceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"CreateTime": 1652085686179,
"UpdateTime": 1652085686179,
"Description": "Test organization",
"InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"Leaf": false
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.