Host and Port Lists

Save reusable host and port lists and reference them by name from a scan.

What lists are

A host list or port list is a named set you can drop into a scan by name. The scan request puts host list names in hosts and port list names in ports, mixed with literal IPs and port numbers. Create returns 201.

Host lists

POST/v3/lists/hosts

Create a host list

FieldNotes
nameThe string you later put in hosts
descriptionOptional note
hostsIPs, ranges, or CIDRs
curl -sS -X POST "https://api.efflux.io/v3/lists/hosts" \
  -H "Authorization: Bearer $EFFLUX_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my_internal_servers",
    "description": "Office edges",
    "hosts": ["203.0.113.10", "203.0.113.0/28"]
  }'
GET/v3/lists/hosts

List host lists

GET/v3/lists/hosts/{list_id}

Get a host list

PUT/v3/lists/hosts/{list_id}

Replace a host list

DELETE/v3/lists/hosts/{list_id}

Delete a host list

The response includes list_id, host_count, and version.

Port lists

POST/v3/lists/ports

Create a port list

FieldNotes
nameThe string you later put in ports
descriptionOptional note
portsPort numbers or ranges
prototcp or udp
curl -sS -X POST "https://api.efflux.io/v3/lists/ports" \
  -H "Authorization: Bearer $EFFLUX_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my_common_ports",
    "description": "Admin surfaces",
    "ports": ["22", "443", "3389"],
    "proto": "tcp"
  }'
GET/v3/lists/ports

List port lists

GET/v3/lists/ports/{list_id}

Get a port list

PUT/v3/lists/ports/{list_id}

Replace a port list

DELETE/v3/lists/ports/{list_id}

Delete a port list

Both lists default to limit 20 (max 200). How many lists you can keep, and how large each one can be, is on GET /limits.