NSX-T Data Center REST API

PortMirroringFilter (type)

{
  "id": "PortMirroringFilter",
  "module_id": "PortMirroring",
  "properties": {
    "dst_ips": {
      "$ref": "IPAddresses",
      "description": "Destination IP in the form of IPAddresses, used to match the destination IP of a packet. If not provided, no filtering by destination IPs is performed.",
      "required": false,
      "title": "Destination IP used to filter packets"
    },
    "dst_ports": {
      "$ref": "PortElement",
      "description": "Destination port in the form of a port or port range, used to match the destination port of a packet. If not provided, no filtering by destination port is performed.",
      "required": false,
      "title": "Destination port or port range used to filter packets"
    },
    "filter_action": {
      "default": "MIRROR",
      "description": "If set to MIRROR, packets will be mirrored. If set to DO_NOT_MIRROR, packets will not be mirrored.",
      "enum": [
        "MIRROR",
        "DO_NOT_MIRROR"
      ],
      "required": false,
      "title": "Mirror action to filter packets",
      "type": "string"
    },
    "ip_protocol": {
      "description": "The transport protocols of TCP or UDP, used to match the transport protocol of a packet. If not provided, no filtering by IP protocols is performed.",
      "enum": [
        "TCP",
        "UDP"
      ],
      "required": false,
      "title": "The protocol used to filter packets.",
      "type": "string"
    },
    "src_ips": {
      "$ref": "IPAddresses",
      "description": "Source IP in the form of IPAddresses, used to match the source IP of a packet. If not provided, no filtering by source IPs is performed.",
      "required": false,
      "title": "Source IP used to filter packets"
    },
    "src_ports": {
      "$ref": "PortElement",
      "description": "Source port in the form of a port or port range, used to match the source port of a packet. If not provided, no filtering by source port is performed.",
      "required": false,
      "title": "Source port or port range used to filter packets"
    }
  },
  "type": "object"
}