The maximum result limit is 5000 assets.
Required license: **Cortex Xpanse Expander**
Get a list of all your assets or a filtered list of your assets.
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_assets_internet_exposure/" \
-d '{
"request_data" : {
"search_from" : 0,
"next_page_token" : "next_page_token",
"filters" : [ {
"field" : "name",
"value" : "AsmAssetsFilter_value",
"operator" : "in"
}, {
"field" : "name",
"value" : "AsmAssetsFilter_value",
"operator" : "in"
} ],
"sort" : {
"field" : "name",
"keyword" : "asc"
},
"search_to" : 0,
"use_page_token" : true
}
}'
{{api_key}}
{{api_key_id}}
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
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 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
Max value - 5000
"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.
"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.'
OK
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Unprocessable Entity
Internal server error. A unified status for API communication type errors.