Rescan a host
Starts a one-shot scan of this host's addresses and nothing else, answering "is this host still there, and is its data current?" without sweeping the whole subnet.
The scan runs on the daemon that last discovered this host — evidence it can reach the address — and only if that daemon still has an interface on a subnet containing one of the host's scannable IPs. Where that interface has a MAC the daemon ARPs the target, which sees a live host even when every port is firewalled; on a MAC-less interface (a point-to-point tunnel) it falls back to a TCP probe. When no interface covers any of the host's addresses the request is refused with the specific reason. A loopback address is not a scannable IP — it is reached locally and is excluded from the target set.
Returns the session, which streams progress over /api/v1/discovery/stream
like any other scan. A Queued phase means the daemon is busy; it will start
when the running scan finishes.
User API key (Bearer scp_u_...). Create in Platform > API Keys.
In: header
Path Parameters
Host ID
uuidResponse Body
application/json
application/json
application/json
curl -X POST "https://app.scanopy.net/api/v1/hosts/497f6eca-6276-4993-bfeb-53cbbbba6f08/rescan"{
"meta": {
"api_version": 1,
"server_version": "0.17.7"
},
"success": true,
"data": {
"daemon_id": "0f0cd6bf-ac90-457b-aa3f-6f24990d5ff6",
"discovery_type": {
"host_id": "eb4e20fc-2b4a-4d0c-811f-48abcf12b89b",
"type": "SelfReport"
},
"network_id": "d6797cf4-42b9-4cad-8591-9dd91c3f0fc3",
"phase": "AwaitingSnapshot",
"progress": 0,
"session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
"discovery_id": "cdd44607-512c-4795-96df-93dabc33c12d",
"error": "string",
"estimated_remaining_secs": 0,
"finished_at": "2019-08-24T14:15:22Z",
"hosts_discovered": 0,
"scanned": {},
"started_at": "2019-08-24T14:15:22Z",
"warnings": [
"string"
]
},
"error": "string"
}{
"meta": {
"api_version": 1,
"server_version": "0.17.7"
},
"success": true,
"code": "string",
"error": "string",
"params": {
"property1": null,
"property2": null
}
}{
"meta": {
"api_version": 1,
"server_version": "0.17.7"
},
"success": true,
"code": "string",
"error": "string",
"params": {
"property1": null,
"property2": null
}
}Create a new host
Creates a host with optional ip_addresses, ports, and services. The `source` field is automatically set to `Manual`. ### Tag Validation - Tags must exist and belong to your organization - Duplicate tag UUIDs are automatically deduplicated - Invalid or cross-organization tag UUIDs return a 400 error
Consolidate hosts
Merges all ip_addresses, ports, and services from `other_host` into `destination_host`, then deletes `other_host`. Both hosts must be on the same network. ### Merge Behavior - **Interfaces**: Transferred to destination. If an interface with matching subnet+IP or MAC already exists on destination, bindings are remapped to use the existing interface. - **Ports**: Transferred to destination. If a port with the same number and protocol already exists, bindings are remapped to use the existing port. - **Services**: Transferred to destination with deduplication. See [upsert behavior](https://scanopy.net/docs/discovery/#upsert-behavior) for details. ### Restrictions - Cannot consolidate a host with itself. - Cannot consolidate a host that has a daemon - consolidate into it instead.