Get all/Search lookup elements
POST/v1/lookup-lists/:lookupListId/elements/search
Searches elements in a specified lookup list. Can also be run without a filter to return the full list of elements. Returns a paginated list of results. Please ensure to change the region in the URL to match your account's region.
Request
Path Parameters
GUID of the lookup list.
- application/json
Body
filter object
Filter for elements by value, element ID, or by comments that contain a search term. If multiple properties are sent, they must all be satisfied (AND
logic).
Filters for values or comments that contain the search term.
Filters by element IDs.
Filters by exact value. (Looks for elements that match any one of the values in the array.)
pagination object
Default pagination is a page of 25 results. Look for the total
field in the response for the number of available results overall, and use the pagination function to page through the results.
Default value: 1
If you overshoot the page number, it will return empty with no results, but it won't fail the request.
Possible values: <= 1000
Default value: 25
Controls the number of results per page. Valid inputs are 1 to 1000.
Responses
- 200
successful operation
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Total number of search results. The results are relvent elements contained in the lookup list.
results object[]
ID of the element in the Lookup list.
Possible values: non-empty
and <= 80 characters
A single field value. You should ensure that the lookup list contains a list of values all mapped to the same field.
Possible values: <= 200 characters
Optional. A place to add a note or additional details about the value. For example, if the value is an IP address, the comment can identify the server.
Optional. The expiration date and time of the lookup list as UNIX epoch milliseconds. When this parameter is left empty, the lookup list does not expire.
pagination object
Default pagination is a page of 25 results. Look for the total
field in the response for the number of available results overall, and use the pagination function to page through the results.
Default value: 1
If you overshoot the page number, it will return empty with no results, but it won't fail the request.
Possible values: <= 1000
Default value: 25
Controls the number of results per page. Valid inputs are 1 to 1000.
{
"total": 0,
"results": [
{
"id": 0,
"value": "54.53.1.1",
"comment": "ABC Server",
"expirationDate": 0
}
],
"pagination": {
"pageNumber": 1,
"pageSize": 100
}
}