Get a list of all your owned IP address ranges filtered by business units and organization handles.
The maximum result limit is 1000 ranges.
Note: You can send a request to retrieve either all or filtered results.
Required license: Cortex Xpanse Expander
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
Array of filter fields.
fieldString (Enum)
Identifies the external IP ranges field the filter is matching. Filters are based on the following case-sensitive keywords: - business_units_list - organization_handles - Ipaddress_version - has_bu_overrides - tags
operatorString (Enum)
Identifies the comparison operator you want to use for this filter. Valid keywords and values are: - contains / not_contains - organization_handles - in - business_units_list - tags - eq / neq - ipaddress_version - has_bu_overrides
valueObject
Values depend on the filter field used.
- organization_handles — string
- business_units_list — string or list of strings with syntax “Acme & Co, Inc.”
or “BU:Acme & Co, Inc.”
- tags — list of strings in format “{family alias}:{tag name}”
- ipaddress_version — integer
- has_bu_overrides - boolean (true/false)
search_fromInteger
Represents the start offset index of results.
search_toInteger
An integer representing the start offset index of results. Use this field to specify the number of results on a page when using page token pagination.
Default value - 500
Max value - 1000
sortObject
Identifies the sort order for the result set.
fieldString (Enum)
Values are:
- Id
- first_ip
- last_ip
Case sensitive.
Default is first_ip
.
keywordString (Enum)
Value are:
- ASC
(ascending order)
- DESC
(descending order).
Case sensitive. Default is DESC
.
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": {
"search_from": 0,
"next_page_token": "next_page_token",
"filters": [
{
"field": "organization_handles",
"value": "ExternalIpAddressRangesFilter_value",
"operator": "in"
},
{
"field": "organization_handles",
"value": "ExternalIpAddressRangesFilter_value",
"operator": "in"
}
],
"sort": {
"field": "first_ip",
"keyword": "desc"
},
"search_to": 0,
"use_page_token": true
}
}
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_external_ip_address_ranges/'
-d
'{
"request_data" : {
"search_from" : 0,
"next_page_token" : "next_page_token",
"filters" : [ {
"field" : "organization_handles",
"value" : "ExternalIpAddressRangesFilter_value",
"operator" : "in"
}, {
"field" : "organization_handles",
"value" : "ExternalIpAddressRangesFilter_value",
"operator" : "in"
} ],
"sort" : {
"field" : "first_ip",
"keyword" : "desc"
},
"search_to" : 0,
"use_page_token" : true
}
}'