Discovery Scanner πΒΆ
Data StructuresΒΆ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only. Unique identifier. |
|
|
string |
yes |
Case-insensitive. Unique. |
|
string |
||
|
string {ldap_account, ldap_server, local_account} |
yes |
|
|
string |
if |
Requires |
|
string |
if |
Requires |
|
string |
yes |
Requires |
|
boolean; default value |
yes |
|
|
string {privileged, nonprivileged, all} |
if |
|
|
string |
if |
|
|
string |
if |
|
|
string |
if |
|
|
number {1Β -Β 7} |
with |
Schedule day of week. Value-range: 1 to 7. |
|
string |
with |
|
|
string |
Read-only. Timestamp of the last scan. |
|
|
string |
Read-only. Timestamp of the next scan. |
|
|
string |
Read-only. Timestamp of the next manual scan. |
|
|
string |
if |
|
|
string |
if |
|
|
string |
if |
|
|
number {1Β -Β 65535} |
yes |
Value format: port |
|
string |
Value format: x509-certificate |
|
|
object-array |
Read-only; expensive to use. |
|
|
string-array |
Read-only; expensive to use; hidden. |
|
|
string-array |
Read-only; expensive to use; hidden. |
|
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the DiscoveryScannerModelΒΆ
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get Scanners ListΒΆ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/scanner`
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/scanner'
Response
{
"result": "success",
"scanner": [
{
"id": "5620492334958379009",
"name": "LDAP_scanner",
"type": "ldap_account",
"pool_id": "5620492334958379010",
"server_id": "5620492334958379011",
"account_id": "5620492334958379011",
"enabled": true,
"category": "nonprivileged",
"schedule_dow": 1,
"schedule_time": "23:00:00-07",
"last_scan": "-infinity",
"next_scan": "infinity",
"next_manual_scan": "infinity",
"connection_port": 636,
"created_at": "2024-06-24 04:25:40.966955-07",
"modified_at": "2024-06-24 04:25:40.966955-07"
}
]
}
Get Scanner by IDΒΆ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/scanner/<id>`
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/scanner/5620492334958379009'
Response
{
"result": "success",
"scanner": [
{
"id": "5620492334958379009",
"name": "LDAP_scanner",
"type": "ldap_account",
"pool_id": "5620492334958379010",
"server_id": "5620492334958379011",
"account_id": "5620492334958379011",
"enabled": true,
"category": "nonprivileged",
"schedule_dow": 1,
"schedule_time": "23:00:00-07",
"last_scan": "-infinity",
"next_scan": "infinity",
"next_manual_scan": "infinity",
"connection_port": 636,
"created_at": "2024-06-24 04:25:40.966955-07",
"modified_at": "2024-06-24 04:25:40.966955-07"
}
]
}
Create ScannerΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/scanner`
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/scanner' \
-d'{"name":"LDAP_Scanner","type":"ldap_account","pool_id":"5620492334958379010","server_id":"5620492334958379011","account_id":"5620492334958379011","enabled":false,"category":"nonprivileged","connection_port": 636}'
Response
{
"result": "success",
"scanner": {
"id": "5620492334958379010"
}
}
Modify ScannerΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
PATCH /api/v2/scanner/<id>`
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/scanner/5620492334958379010' \
-d'{"category":"privileged"}'
Response
{
"result": "success"
}
Starting ScanΒΆ
Request
Method |
|
Path |
|
Example Request
POST /api/v2/scanner/<id>/start`
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/scanner/5620492334958379010/start'
Response
{
"result": "success",
"next_manual_scan": "2025-05-05 01:53:54.923673-07"
}
Deleting ScannerΒΆ
Request
Method |
|
Path |
|
Example Request
DELETE /api/v2/scanner/<id>`
curl -s -k -X DELETE \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/scanner/5620492334958379010'
Response
{
"result": "success"
}