This URL gets a connection limiting policy.
Resource URL
GET /connectionlimitingpolicy/<policy_id>
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Policy 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 |
|---|---|---|
| Object that contains the basic properties of the policy | Object |
| List of object that contains rules | Array |
Details of fields in properties:
Field Name | Description | Data Type |
|---|---|---|
| Policy Id | Number |
| Policy name | String |
| Description of the policy | String |
| Domain Id | Number |
| Is policy visible to child | Boolean |
| Last modified time | String |
| Last modified user | String |
Details of fields in connectionLimitingRules:
Field Name | Description | Data Type |
|---|---|---|
| Is rule enabled | Boolean |
| Description of the rule | String |
| Can be one of these: INBOUND/OUTBOUND/EITHER | String |
| Can be one of these: GTI/PROTOCOL | String |
| Can be one of these: CONNECTION_RATE/ACTIVE_CONNECTIONS | String |
| A valid threshold value between 1 and 65535 | Number |
| Will be returned when ruleType is GTI. Can be one of these: HIGH_RISK/MEDIUM_OR_HIGH_RISK/UNVERIFIED_MEDIUM_OR_HIGH_RISK/ANY | String |
| Will be returned when ruleType is GTI. Can be either "Any" or one of the country from the list of country obtained using the URL: https://<NSM_IP>/sdkapi/connectionlimitingpolicy/countrylist | String |
| Will be returned when ruleType is PROTOCOL Can be one of these: TCP/UDP/PING_ICMP_ECHO_REQ/ALL_TCP_AND_UDP | String |
| Will be returned when serviceType is TCP/UDP. A valid port number between 1 and 65535. | Number |
| Can be one of these: ALERT_ONLY/ALERT_AND_DROP_EXCESS_CONNECTIONS/ALERT_AND_DENY_EXCESS_CONNECTIONS/ALERT_AND_QUARANTINE | String |
Example
Request
GET https://<NSM_IP>/sdkapi/connectionlimitingpolicy/104
Response
{
"properties":
{
"policyId": 104,
"name": "Updated_Test_CLP1",
"description": "CLP of Child Domain1",
"domainId": 101,
"visibleToChild": false,
"lastModTimestamp": "2013-05-08 09:32:41",
"lastModUser": "admin"
},
"connectionLimitingRules":
[
{
"enabled": true,
"description": "",
"direction": "EITHER",
"ruleType": "PROTOCOL",
"thresholdType": "CONNECTION_RATE",
"thresholdValue": 100,
"externalReputation": null,
"externalLocation": "Any",
"serviceType": "UDP",
"portNumber": 123,
"response": "ALERT_AND_QUARANTINE"
}
]
}
Error Information
Following error code is returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 400 | 1901 | Invalid connection limiting policy id/connection limiting policy not visible in this domain |