GEThttps://api.deepinfo.com/v1/easm/assets/{asset_id}/open-ports/history/{history_id}

Returns the ports of one historical port scan. Same filters as Asset Open Port List.

Authentication

Send your API key in the apikey request header.

Path Parameters

ParameterRequiredDescription
asset_idRequired
Id of one of your monitored assets, the id field of EASM → Assets → Asset Search. For a discovered asset it is the id from Discovered Asset Search.
Example000000000000000ea4f90001
history_idRequired
Id of one history snapshot, the id returned by the matching history list endpoint of the same asset.
Example00000000000000000000000ebd470001

Query Parameters

ParameterRequiredDescription
pageOptional
Min 1, max 800.0. Default 1.
Example1
page_sizeOptional
Min 25, max 100. Default 100.
Example25
port__inOptional
Keeps the records whose port is one of the values (comma-separated).
port__ninOptional
Keeps the records whose port is none of the values (comma-separated).
state__inOptional
Keeps the records whose state is one of the values (comma-separated).
state__ninOptional
Keeps the records whose state is none of the values (comma-separated).
protocol__inOptional
Keeps the records whose protocol is one of the values (comma-separated).
protocol__ninOptional
Keeps the records whose protocol is none of the values (comma-separated).
orderingOptional
Sort order: a field name, with - in front for descending (e.g. -added_date). Measured on DEMO, this endpoint accepts port, protocol, state.

Response Fields

FieldTypeDescription
pageinteger
The page this response is from, echoing the page query parameter.
page_sizeinteger
How many results one page holds, echoing the page_size query parameter.
result_countinteger
How many records match in total, not how many are on this page.
resultsarray of object
The records on this page, with the results[].* fields below.
results[].portinteger
The port number.
results[].statestring
The record's state; the values are listed in the endpoint's description. One of open, closed, filtered, unfiltered, open|filtered, closed|filtered
results[].protocolstring
The transport protocol: tcp or udp.

Paginated. See Getting Started → Pagination.

Response Schema

FieldTypeExample
pagenumber1
page_sizenumber25
result_countnumber21
resultsarray<object>
results[].portnumber443
results[].statestring"filtered"
results[].protocolstring"tcp"

Examples

Selecting one loads it into the request and response panels.

Reference updated