Create a traffic management filter.
Definition
ipsProfileMgmt/createTrafficMgmt
Parameters
| Parameter | Type | Description |
| name | string | Required. Name of the traffic management filter; must be unique for each profile. |
| profile | string | Required. Name of the profile that contains the traffic management filter; the profile must already exist on the SMS. |
| srcAddr | IP address | Required. Source address for the filter. Valid values: any or IP address. |
| destAddr | IP address | Required. Destination address for the filter. Valid values: any or an IP address. |
| direction | string | Optional. Filter direction. If a parameter is not
specified, the default value is used.
|
| action | string | Optional. Filter action set. For rate limiting, use the
rate-limit parameter.
|
| rate-limit | string | Optional. Filter rate-limit action set; the action set must already be defined and set to rate-limit. |
| protocol | string | Optional. Filter protocol.
|
| protocol/ip/ipFragments | boolean | Optional. Applies only to IP fragments; valid only when
protocol is IP.
|
| protocol/icmp/icmptype | integer | Optional. ICMP type; valid only when protocol is ICMP.
|
| protocol/icmp/icmpcode | integer | Optional. ICMP code; valid only when protocol is ICMP.
|
| protocol/tcp or udp/srcPort | integer | Optional. Source port; valid only when protocol is TCP or
UDP.
|
| protocol/tcp or udp/destPort | integer | Optional. Destination port; valid only when protocol is TCP
or UDP.
|
| position | integer | Optional. Filter precedence.
|
| comment | string | Optional. Filter comments. |
| state | boolean | Optional. Filter state.
|
Example
curl -k --header "X-SMS-API-KEY: <string>" "https://<sms_server>/ipsProfileMgmt/ createTrafficMgmt?name=<name>&profile=<p_name>&srcAddr=<ip_address>&destAddr=<ip_address>"
