This URL gets default recon policies at domain level.
Resource URL
GET /domain/<domain_id>/defaultreconpolicies
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain Id | Number | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Array of object that contains the details of the fields | Array |
Details of Object in ReconPolicyDesc:
Field Name | Description | Data Type |
|---|---|---|
| Policy name | String |
| Policy Id | String |
Example
Request
GET https://<NSM_IP>/sdkapi/domain/101/defaultreconpolicies
Response
{
" reconPolicyList ":
[
{
"policyName": " Default Reconnaissance Policy ",
"policyId": "0"
},
{
"policyName": " NSAT 7.1 Reconnaissance Policy ",
"policyId": "301"
}
]
}
Error Information
Following error codes are returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1105 | Invalid domain |