GET /asset_model/saved_searches/{saved_search_id}/results
Retrieves a list of assets based on the results of an asset saved search.
Retrieves a list of assets based on the results of an asset saved search.
MIME Type |
---|
application/json |
Parameter | Type | Optionality | Data Type | MIME Type | Description |
---|---|---|---|---|---|
saved_search_id |
path |
Required |
String |
text/plain |
Unique identifier of the saved search used to retrieve assets. |
fields |
query |
Optional |
String |
text/plain |
Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas. |
Range |
header |
Optional |
String |
text/plain |
Optional - Use this parameter to restrict the number of elements that are returned in the list to a specified range. The list is indexed starting at zero. |
filter |
query |
Optional |
String |
text/plain |
Optional - This parameter is used to restrict the elements in a list base on the contents of various fields. |
HTTP Response Code | Unique Code | Description |
---|---|---|
200 |
The request to retrieve assets completed successfully. |
|
404 |
1002 |
null |
422 |
1005 |
The unique identifier of the saved search provided was invalid. |
500 |
1003 |
The server encountered an error executing the saved search. |
Response Description
List of assets retrieved using the associated asset saved search.
Response Sample
[
{
"domain_id": 42,
"id": 42,
"interfaces": [
{
"created": 42,
"first_seen_profiler": 42,
"first_seen_scanner": 42,
"id": 42,
"ip_addresses": [
{
"created": 42,
"first_seen_profiler": 42,
"first_seen_scanner": 42,
"id": 42,
"last_seen_profiler": 42,
"last_seen_scanner": 42,
"network_id": 42,
"type": "String",
"value": "String"
}
],
"last_seen_profiler": 42,
"last_seen_scanner": 42,
"mac_address": "String"
}
],
"properties": [
{
"id": 42,
"last_reported": 42,
"last_reported_by": "String",
"name": "String",
"type_id": 42,
"value": "String"
}
]
}
]