ScanopyScanopy
Hosts

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.

POST
/api/v1/hosts/{id}/rescan
Authorization<token>

User API key (Bearer scp_u_...). Create in Platform > API Keys.

In: header

Path Parameters

id*string

Host ID

Formatuuid

Response 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
  }
}