Asset Open Port List
GET
https://api.deepinfo.com/v1/easm/assets/{asset_id}/open-portsLists 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
| Parameter | Required | Description |
|---|---|---|
asset_ | Required | 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.Example 000000000000000ea4f90001 |
Query Parameters
| Parameter | Required | Description |
|---|---|---|
state__ | Optional | Keeps the records whose state is one of the values (comma-separated).Example open |
protocol__ | Optional | Keeps the records whose protocol is one of the values (comma-separated).Example tcp |
ordering | Optional | Sort order: a field name, with - in front for descending (e.g. -added_date). Measured on DEMO, this endpoint accepts port, protocol, state.Example port |
page | Optional | Min 1, max 800.0. Default 1.Example 1 |
page_ | Optional | Min 25, max 100. Default 100.Example 25 |
port__ | Optional | Keeps the records whose port is one of the values (comma-separated). |
port__ | Optional | Keeps the records whose port is none of the values (comma-separated). |
state__ | Optional | Keeps the records whose state is none of the values (comma-separated). |
protocol__ | Optional | Keeps the records whose protocol is none of the values (comma-separated). |
Response Fields
| Field | Type | Description |
|---|---|---|
page | integer | The page this response is from, echoing the page query parameter. |
page_ | integer | How many results one page holds, echoing the page_size query parameter. |
result_ | integer | How many records match in total, not how many are on this page. |
results | array of object | The records on this page, with the results[].* fields below. |
results[]. | integer | The port number. |
results[]. | string | The record's state; the values are listed in the endpoint's description. One of open, closed, filtered, unfiltered, open|filtered, closed|filtered |
results[]. | string | The transport protocol: tcp or udp. |
Paginated. See Getting Started → Pagination.
Response Schema
| Field | Type | Example |
|---|---|---|
page | number | 1 |
page_size | number | 25 |
result_count | number | 21 |
results | array< | |
results[]. | number | 443 |
results[]. | string | "open" |
results[]. | string | "tcp" |
Examples
Selecting one loads it into the request and response panels.