Views:
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.
  • AtoB (default)
  • BtoA
  • both
action string Optional. Filter action set. For rate limiting, use the rate-limit parameter.
  • block (default)
  • allow
  • trust
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.
  • ip (default)
  • ipv6
  • tcp
  • tcpv6
  • udp
  • udpv6
  • icmp
  • icmpv6
protocol/ip/ipFragments boolean Optional. Applies only to IP fragments; valid only when protocol is IP.
  • false (default)
  • true
protocol/icmp/icmptype integer Optional. ICMP type; valid only when protocol is ICMP.
  • 0-255 (default is 0)
protocol/icmp/icmpcode integer Optional. ICMP code; valid only when protocol is ICMP.
  • 0-255 (0 is default)
protocol/tcp or udp/srcPort integer Optional. Source port; valid only when protocol is TCP or UDP.
  • any
  • 0-65535 (default is 0, and all ports)
protocol/tcp or udp/destPort integer Optional. Destination port; valid only when protocol is TCP or UDP.
  • any
  • 0-65535 (default is 0, and all ports)
position integer Optional. Filter precedence.
  • 0-200 (default is 0, which uses the lowest unused value)
comment string Optional. Filter comments.
state boolean Optional. Filter state.
  • enable (default)
  • disable

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>"