List Organizational Units
Returns a list of organizational units.
Query Parameters
- limit int64
Limits the size of the response on each page to the specified number of items.
- start string
Sets the page number used to browse the collection. Pages are indexed starting from 1 (i.e.,
?start=1
). - filter string
Narrows down the results to only the items that satisfy the filter criteria. The following table lists the supported filter fields for this resource and the filter conditions that can be applied on those fields:
For more information about filtering, refer to the Filtering section of this guide.Field Filter Condition Description parent_id $eq Retrieve the list of child OUs under this organizational unit. name $contains A substring of the name of the organizational unit. id $in Filter OUs whose ID is one of the given values.
- 200
- default
Success
- application/api.clumio.organizational-units=v2+json
- Schema
- Example (from schema)
Schema
_embedded object
_links object
- current_count int64
The number of items listed on the current page.
- filter_applied string
The filter used in the request. The filter includes both manually-specified and system-generated filters.
- limit int64
The maximum number of items displayed per page in the response.
- start string
The page number used to get this response. Pages are indexed starting from 1 (i.e.,
"start": "1"
). - total_count int64
The total number of items, summed across all pages.
- total_pages_count int64
The total number of pages of results.
{
"_embedded": {
"items": [
{
"_embedded": {},
"_etag": "string",
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
},
"delete-organizational-unit": {
"href": "string",
"templated": true,
"type": "string"
},
"patch-organizational-unit": {
"href": "string",
"templated": true,
"type": "string"
},
"read-task": {
"href": "string",
"templated": true,
"type": "string"
}
},
"children_count": 0,
"configured_datasource_types": [
"string"
],
"descendant_ids": [
"string"
],
"description": "string",
"id": "string",
"name": "string",
"parent_id": "string",
"task_id": "string",
"user_count": 0,
"users": [
{
"assigned_role": "string",
"user_id": "string"
}
]
}
]
},
"_links": {
"_first": {
"href": "string",
"templated": true,
"type": "string"
},
"_last": {
"href": "string",
"templated": true,
"type": "string"
},
"_next": {
"href": "string",
"templated": true,
"type": "string"
},
"_prev": {
"href": "string",
"templated": true,
"type": "string"
},
"_self": {
"href": "string",
"templated": true,
"type": "string"
}
},
"current_count": 0,
"filter_applied": "string",
"limit": 0,
"start": "string",
"total_count": 0,
"total_pages_count": 0
}
Error
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}
GET /organizational-units
Authorization
Request
Request
curl -L -X GET 'https://us-west-2.api.clumio.com/organizational-units' \
-H 'Accept: application/api.clumio.organizational-units=v2+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/organizational-units' \
-H 'Accept: application/api.clumio.organizational-units=v2+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/organizational-units' \
-H 'Accept: application/api.clumio.organizational-units=v2+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/organizational-units' \
-H 'Accept: application/api.clumio.organizational-units=v2+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/organizational-units' \
-H 'Accept: application/api.clumio.organizational-units=v2+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/organizational-units' \
-H 'Accept: application/api.clumio.organizational-units=v2+json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://us-west-2.api.clumio.com/organizational-units' \
-H 'Accept: application/api.clumio.organizational-units=v2+json' \
-H 'Authorization: Bearer <TOKEN>'