Fetches business unit information for all or a subset of the business units in your Cortex Xpanse tenant. The results are sorted by business_unit_name.
authorization
String
required
{{api_key}}
x-xdr-auth-id
String
required
{{api_key_id}}
request_dataObject
A dictionary containing the API request fields. An empty dictionary returns all results.
filtersArray
An array of filter fields.
fieldObject (Enum)
Identifies the business unit field the filter is matching.
operatorObject (Enum)
Identifies the comparison operator you want to use for this filter. All operators listed can be used with all filter fields.
valueString
Value depends on the filter field used. - business_unit_id: string - business_unit_name: string - parent_id: string
use_page_tokenBoolean
Use "use_page_token":true
in the initial request to paginate the response data.
next_page_tokenString
If "use_page_token":true
was included in the initial request, the response for that request will include a page token.
Use "next_page_token":"string"
to pass that page token into the next request to paginate the next set of data.'
{
"request_data": {
"filters": [
{
"field": "business_unit_id",
"operator": "contains",
"value": "string"
}
],
"use_page_token": true,
"next_page_token": "string"
}
}
curl -X 'POST'
-H
'Accept: application/json'
-H
'Content-Type: application/json'
-H
'authorization: {{api_key}}'
-H
'x-xdr-auth-id: {{api_key_id}}'
'https://api-}/public_api/v1/assets/get_business_units'
-d
''