This URL retrieves the details of quarantine zone at domain level.
Resource URL
GET /domain/<domainId>/quarantineZone/<quarantineZoneID>
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain id | Number | Yes |
| Quarantine zone id | Number | Yes |
Response Parameters
Following fields are returned.
Field Name | Description | Data Type |
|---|---|---|
| Quarantine zone unique id | Number |
| Name of quarantine zone | String |
| Description of quarantine zone | String |
| Domain id | Number |
| Is quarantine zone visible to child domain | Boolean |
| Is quarantine zone editable or not | Boolean |
| Quarantine zone version | Number |
| The time quarantine zone last modified | String |
| Last user that modified the quarantine zone | String |
| List of rules | Array |
Details of rules:
Field Name | Description | Data Type |
|---|---|---|
| Unique id of rule | Number |
| Is rule enabled or not | Boolean |
| Description of rule | String |
| Destination rule object | Object |
| Service rule object | Object |
| Action to be performed if the traffic matches this rule, can be "PERMIT"/ "DROP" | String |
| Is logging enabled for this rule | Boolean |
Details of destObjList:
Field Name | Description | Data Type |
|---|---|---|
| Unique rule object id | String |
| Rule object name | String |
| Destination mode. Can be "IPV4_NETWORK" / "IPV4_ENDPOINT" | String |
Details of serviceObjList:
Field Name | Description | Data Type |
|---|---|---|
| Unique rule object id | String |
| Rule object name | String |
| Destination mode. Can be "SERVICE" | String |
| Application type. Can be "DEFAULT" / "CUSTOM" | String |
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/quarantineZone/220
Response
{
"quarantineZoneId": 220,
"quarantineZoneName": "Quarantine20",
"quarantineZoneDescription": "Desc:Adds a new Quarantine Zone",
"ownerId": 0,
"visibleToChild": true,
"isEditable": true,
"quarantineZoneVersion": 0,
"lastModifiedTime": "2017-06-21 11:13:38",
"lastModifiedUser": "admin",
"rules": [
{
"uuid": 125,
"state": true,
"ruleDescription": "create a new rule",
"destObjList": [],
"serviceObjList": [],
"action": "PERMIT",
"islogging": true
},
{
"uuid": 126,
"state": true,
"ruleDescription": "create a new rule",
"destObjList": [
{
"ruleObjectId": "12",
"ruleObjectName": "The 172.16.0.0/12 network",
"ruleObjectType": "IPV4_NETWORK"
}
],
"serviceObjList": [
{
"ruleObjectId": "130",
"ruleObjectName": "ssl",
"ruleObjectType": "SERVICE",
"applicationType": "DEFAULT"
}
],
"action": "PERMIT",
"islogging": true
}
]
}
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 |
2 | 500 | 1001 | Invalid quarantine zone id |