Discovery Scanner-Rule Assignment πΒΆ
Data StructuresΒΆ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only. Protected. |
|
|
string |
yes |
Immutable. Uniqueness is required in the combination of attribute |
|
string |
yes |
Immutable. Uniqueness is required in the combination of attribute |
|
number |
||
|
string |
Read-only; Expensive to use. |
|
|
string |
Read-only; Expensive to use. |
|
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the DiscoveryScannerRuleModelΒΆ
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get List of Scanner-Rule AssignmentΒΆ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/scanner/rule`
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/scanner/rule'
Response
{
"result": "success",
"scanner_rule": [
{
"scanner_id": "9115285645797883907",
"rule_id": "9115285645797883905",
"position": 0,
"scanner_name": "LDAP_Scanner",
"rule_name": "Rule_1",
"created_at": "2025-05-06 02:58:54.21643-07",
"modified_at": "2025-05-06 02:58:54.21643-07"
},
{
"scanner_id": "9115285645797883907",
"rule_id": "9115285645797883906",
"position": 1,
"scanner_name": "LDAP_Scanner",
"rule_name": "Rule_2",
"created_at": "2025-05-06 02:58:54.227576-07",
"modified_at": "2025-05-06 02:58:54.227576-07"
}
]
}
Get Scanner-Rule Assignment by IDΒΆ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/discovery/scanner/<id>/rule/<id>`
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/scanner/9115285645797883907/rule/9115285645797883906'
Response
{
"result": "success",
"scanner_rule": [
{
"scanner_id": "9115285645797883907",
"rule_id": "9115285645797883906",
"position": 1,
"scanner_name": "LDAP_Scanner",
"rule_name": "Rule_2",
"created_at": "2025-05-06 02:58:54.227576-07",
"modified_at": "2025-05-06 02:58:54.227576-07"
}
]
}
Create Scanner-Rule AssignmentΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/scanner/rule`
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/scanner/rule' \
-d'{"scanner_id":"9115285645797883907","rule_id":"9115285645797883908"}'
Response
{
"result": "success"
}
Modify ScannerβRule Assignment AttributesΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
PATCH /api/v2/scanner/<scanner_id>/rule/<rule_id>
Example Request
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.31.87.227/api/v2/scanner/9115285645797883907/rule/9115285645797883908' \
-d'{"position": 1}'
Response
{
"result": "success"
}
Deleting Scanner-Rule AssignmentΒΆ
Request
Method |
|
Path |
|
Example Request
DELETE /api/v2/scanner/<id>/rule/<id>`
curl -s -k -X DELETE \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/scanner/9115285645797883907/rule/9115285645797883908'
Response
{
"result": "success"
}