post
/public_api/v1/assets/get_assets_internet_exposure
Get a list of all your assets or a filtered list of your assets.
The maximum result limit is 5000 assets.
Required license: Cortex Xpanse Expander
CURL
curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" -H "authorization: authorization_example" -H "x-xdr-auth-id: xXdrAuthId_example" \
"https://api-yourfqdn/public_api/v1/assets/get_assets_internet_exposure" \
-d '{
"request_data" : {
"search_from" : 0,
"next_page_token" : "next_page_token",
"filters" : [ {
"field" : "field",
"value" : [ "", "" ],
"operator" : "operator"
}, {
"field" : "field",
"value" : [ "", "" ],
"operator" : "operator"
} ],
"sort" : {
"field" : "name",
"keyword" : "ASC"
},
"search_to" : 6,
"use_page_token" : true
}
}'
Request headers
authorization
required
String
api_key
Example:
authorization_example
x-xdr-auth-id
required
String
api_key_id
Example:
xXdrAuthId_example
Request
Body
optional
Example:
{"request_data":{"filters":[{"field":"string","operator":"string","value":["yes"]}],"search_from":0,"search_to":500,"sort":{"field":"name","keyword":"ASC"}}}
request_data
required
A dictionary containing the API request fields.
An empty dictionary returns all results.
filters
optional
Array
An array of filter fields.
field
optional
String
Identifies the assets field the filter is matching. Filters are based on the following case-sensitive keywords:
- business_units_list
- externally_detected_providers
- externally_inferred cves
- has_active_external_services
- has_bu_overrides
- ip_address
- ipv6_address
- name
- tags
- type
operator
optional
String
Identifies the comparison operator you want to use for this filter. Valid keywords and values are:
- contains / not_contains: use with
externally_detected_providers
,externally_inferred_cves
,name
- eq / neq: use with
name
,ip_address
,has_bu_overrides
- in: use with
has_active_external_services
,type
,business_units_list
value
optional
Array
of objects
Value depends on the filter field used.
- business_units_list: string or list of strings in the format "BU name" or "BU:BU name", for example “Acme & Co, Inc.” or “BU:Acme & Co, Inc.”
- externally_detected_providers: string
- externally_inferred_cves: string
- has_active_external_services: list of strings (enum values: "yes", "no", "unknown")
- has_bu_overrides: boolean ("true" or "false")
- ip_addres: string
- ipv6_address: string
- name: string
- type: List of strings (enum values: "certificate", "cloud_integration", "cloud_compute_instance", "domain", "unassociated_responsive_ip")
- tags: List of strings indicating the tags to filter on in the format
"tag-family:tag-name"
, for example"AR:registered to you"
. - type: string
search_from
optional
Integer
Represents the start offset index of results.
search_to
optional
Integer
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.
Max value - 5000
sort
optional
Identifies the sort order for the result set.
field
optional
String
(Enum)
Case sensitive.
Allowed values:
name
first_observed
last_observed
keyword
optional
String
(Enum)
Case sensitive.
Allowed values:
ASC
DESC
use_page_token
optional
Boolean
Use
"use_page_token":true
in the initial request to paginate the response data.
Sort is not supported when using the use_page_token
/next_page_token
fields.
next_page_token
optional
String
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.
Responses