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
Example000000000000000ea4f90001

Query Parameters

ParameterRequiredDescription
state__inOptional
Exampleopen
protocol__inOptional
Exampletcp
orderingOptional
Exampleport
pageOptional
Min 1, max 800. Default 1.
Example1
page_sizeOptional
Min 25, max 100. Default 100.
Example25
port__inOptional
port__ninOptional
state__ninOptional
protocol__ninOptional

Response Fields

FieldTypeDescription
pageinteger
page_sizeinteger
result_countinteger
resultsarray of object
results[].portinteger
results[].statestring
One of open, closed, filtered, unfiltered, open|filtered, closed|filtered
results[].protocolstring

Paginated. See Getting Started → Pagination.

Response Schema

Inferred from examples Built from the saved 2xx example response: the fields it contains, with the types seen there. It is not a contract.

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