This URL creates an outbound exception rule.
Resource URL
POST /domain/<domainId>/outboundsslexceptions
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| The id of the domain | Number | Yes |
Payload Request Parameters:
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| State of the rule (Enabled/Disabled) | String | Yes |
| Name of the rule | String | Yes |
| List of resources on which the rule has to be assigned | Array | No |
| List of the objects in the source network rule | Object | Yes |
| List of the objects in the destination network rule | Object | Yes |
| List of the objects in the target host names rule | Array | Yes |
| List of URL categories | Array | Yes |
| Comment | String | No |
Details of object in resource:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Name of the resource | String | Yes |
Details of the attacker:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Attacker rule objects on which the ignore rules will be applied. | Array of string | Yes |
Details of the target:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Target rule objects on which the ignore rules will be applied. | Array of string | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Set to the ID of the rule if the operation was successful | Number |
Example
Request
POST https://<NSM_IP>/sdkapi/domain/0/outboundsslexceptions
Payload
{
"state": "ENABLED",
"name": "test1",
"attack": null,
"resource": [],
"attacker": {
"AttackerEndPoint": [
"FireWall_IPv4_Dst_15_1_7_251"
]
},
"target": {
"TargetEndPoint": [
"FireWall_IPv4_Dst_15_1_7_251"
]
},
"targetHostName": [],
"targetUrlCategories": [
"Entertainment"
],
"comment": "test"
}
Response
{
"createdResourceId": 101
}
Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 500 | 1001 | Internal server error |
2 | 400 | 1720 | Invalid rule object/rule object is not visible in this domain |
3 | 400 | 2513 | Name must only contain letters, numerical, spaces, commas, periods, hyphen, or an underscore |
4 | 400 | 1437 | Rule name should not be longer than 64 characters |
5 | 400 | 1433 | This rule is invalid because it matches all alerts. Please specify at least one alert criterion. |
6 | 400 | 1422 | Resource is not visible in this domain |
7 | 400 | 1001 | Ignore Rule with the same name already exists |
8 | 400 | 1435 | The same combination of IPv4 and IPv6 should be used in the attacker and the target endpoints. |
9 | 400 | 1408 | The following URLs are invalid: <url_list> |