Creates a Port mirror config given a specific ID.
https://134.56.227.163/rest/portmirror/{identifier}
PUT
true
Parameter Name | Required | Service Affecting | Data Type | Default Value | Possible Values | Description |
---|---|---|---|---|---|---|
PMSrcPort | Yes | No | string | none | 20 - Max Length | Specifies the source interface to be used for mirroring |
PMDestPort | Yes | No | string | none | 20 - Max Length | Specifies the port on which the mirrored packets are received. |
Direction | No | No | Enum | 2 | Possible values:
| Specifies direction of packets with respect to source port to be mirrored. The direction can be to monitor transmitted packets, received packets or both. |
curl --cookie PHPSESSID=fsqgefadjojefv6lmdtij6lh44 -s -k -i https://134.56.72.218/rest/portmirror/1 -X PUT --data "ConfigIEState=1&PMDestPort=tap17&PMSrcPort=tap14&Direction=2"
<?xml version="1.0"?> <root> <status> <http_code>200</http_code> </status> <portmirror id="1" href="https://134.56.72.218/rest/portmirror/1"> <Direction>2</Direction> <PMDestPort>tap17</PMDestPort> <PMSrcPort>tap14</PMSrcPort> </portmirror> </root>