REST API Method: PUT /rest/portmirror/{identifier}
Page Tree |
---|
root | Resource - portmirror |
---|
|
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 |
---|
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: - 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. |
---|
Code Block |
---|
|
Put code example herecurl --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"
|
Response:
Code Block |
---|
|
Put Code response here<?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>
|