You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

REST API Method: PUT /rest/portmirror/{identifier}

Creates a Port mirror config given a specific ID.

URL:

https://134.56.227.163/rest/portmirror/{identifier}

HTTP Method

PUT

Requires Authentication:

true



Parameters

Parameter Name Required Service Affecting Data Type Default Value Possible Values Description
PMSrcPortYesNostringnone20 - Max Length Specifies the source interface to be used for mirroring
PMDestPortYesNostringnone20 - Max Length Specifies the port on which the mirrored packets are received.
DirectionNoNoEnum2Possible values:
  • 0 - TRANSMIT
  • 1 - RECEIVE
  • 2 - BOTH
Specifies direction of packets with respect to source port to be mirrored. The direction can be to monitor transmitted packets, received packets or both.

Usage Example: (about cURL | requires a session token)

curl --cookie PHPSESSID=cuc2h83fqaispmu6m519sa5642 -s -k -i https://134.56.72.218/rest/portmirror/1 -X PUT --data "ConfigIEState=1&PMDestPort=tap17&PMSrcPort=tap14&Direction=2"

Response:

<?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>
  • No labels