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

Lists the ports found on an asset, with the state and protocol of each. Filter and sort with the optional query parameters.

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

Query Parameters

ParameterRequiredDescription
state__inOptional
Keeps the records whose state is one of the values (comma-separated).
Exampleopen
protocol__inOptional
Keeps the records whose protocol is one of the values (comma-separated).
Exampletcp
orderingOptional
Sort order: a field name, with - in front for descending (e.g. -added_date). Measured on DEMO, this endpoint accepts port, protocol, state.
Exampleport
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__ninOptional
Keeps the records whose state is none of the values (comma-separated).
protocol__ninOptional
Keeps the records whose protocol is none of the values (comma-separated).

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"open"
results[].protocolstring"tcp"

Examples

Selecting one loads it into the request and response panels.

Reference updated