Scan

The Scan endpoint allows you to launch scans, get details about scans, and list/cancel scans that currently in progress.

Get a list of scans.

GET https://api.halosecurity.com/api/v1/scan/list.json

Returns a paginated list of scans.

https://app.halosecurity.com/user/security/targets/scanning

Query Parameters

Name
Type
Description

sort

Integer

0 = scan id (default)

sort_desc

Integer

0 = No (default)

1 = Yes

type

string

current = (default)

recent = recent scans per target

prior = prior scans

all = all scans

{
    "list": [
        {
            "scan": {
                "date": "0000-00-00 00:00",
                "scan_id": "id1"
            },
            "target": {
                "target_name": "",
                "target_id": 1,
                "target": "www.example.com"
            }
        }
    ]
}

Get the details of a scan.

GET https://api.halosecurity.com/api/v1/scan/get.json

Returns the details of a scan.

https://app.halosecurity.com/user/security/targets/scanning

Query Parameters

Name
Type
Description

scan_id*

String

Launch a scan on a given target.

GET https://api.halosecurity.com/api/v1/scan/start.json

Launch a scan on a given target. Requires the security_scan_start permission.

Learn about permissions: Permissions

https://app.halosecurity.com/user/security/targets/scanning

Query Parameters

Name
Type
Description

target_d*

Integer

Get a list of active scans.

GET https://api.halosecurity.com/api/v1/scan/inprogress-list.json

Returns a paginated list of active scans.

https://app.halosecurity.com/user/security/targets/scanning

Query Parameters

Name
Type
Description

sort

Integer

0

= created date (default)

sort_desc

Integer

0 = No (default)

1 = Yes

target_id

Integer

Filter by target id

scan_id

String

Filter by scan id

Cancel a scan that is currently in progress.

GET https://api.halosecurity.com/api/v1/scan/inprogress-cancel.json

Cancel a scan that is currently in progress. Requires the security_scan_cancel permission.

Learn about permissions: Permissions

https://app.halosecurity.com/user/security/targets/scanning

Query Parameters

Name
Type
Description

scan_id

String

Last updated

Was this helpful?