The Port endpoint allows you to get a list of port records.
Last updated 11 months ago
Was this helpful?
GET https://api.halosecurity.com/api/v1/port/list.json
GET
https://api.halosecurity.com/api/v1/port/list.json
Returns a paginated list of ports.
state
String
Filter by state
service
Filter by service
protocol
Filter by protocol
port
Integer
Filter by port
risk
Filter by risk
{ "list": [ { "port": { "state_reason": "conn-refused", "target_name": "", "monitor_state": 1, "target_id": 1, "target": "www.example.com", "protocol": "tcp", "port": 22, "service": "ssh", "scope": 0, "service_method": "table", "risk": "none", "scan_id": "id1", "state": "closed", "risk_reason": "Closed", "key": "f44b7be5081eafde96b5c522970830c1", "service_confidence": 3 }, "target": { "target_name": "", "target_id": 1, "target": "www.example.com" } } ] }