monitor/session

Configures, modifies, or retrieves complete list of configured mirroring sessions.

Resource URIs

URI Description
<base_URI>/config/running/monitor/session Configures complete list of configured mirroring sessions.
GET URIs Description
<base_URI>/config/running/monitor Retrieves complete list of configured mirroring sessions.
<base_URI>/config/running/monitor/session/{session-number} Retrieves mirroring information of particular session.
<base_URI>/config/running/monitor/session/{session-number}/description Retrieves description of particular mirroring session.
<base_URI>/config/running/monitor/session/{session-number}/direction Retrieves direction information of particular session.
POST URIs Payload Description
<base_URI>/config/running/monitor <session><session-number>{session-type}</session-number></session> Configures mirroring session.
PATCH URIs Payload Description
<base_URI>/config/running/monitor/session/{session-number} <session><description>{string}</description></session> Adds description information to an existing mirroring session.
<base_URI>/config/running/monitor/session/{session-number} <session><source>source</source><src-ethernet-val>{slot/port}</src-ethernet-val><src-ethernet>ethernet</src-ethernet><destination>destination</destination><dest- ethernet>ethernet</dest-ethernet><dest-ethernet-val>{slot/port}</dest-ethernet-val><direction>{rx|tx|both}</direction></session> Adds source interface, destination interface, and direction information to an existing mirroring session created using POST command.
<base_URI>/config/running/monitor/session/{session-number} <session><source>source</source><src-ethernet-val>{slot/port}</src-ethernet-val><src-ethernet>ethernet</src-ethernet><destination>destination</destination><dest- ethernet>ethernet</dest-ethernet><dest-port-channel-val>{port-channel number}</dest-port-channel-val><direction>{rx|tx|both}</direction></session> Adds source interface, destination port-channel number, and direction information to an existing mirroring session created using POST command.
PUT URIs Payload Description
<base_URI>/config/running/monitor/session/{session-number}/description <description>{string}</description> Adds description information to an existing mirroring session.
DELETE URIs
<base_URI>/config/running/monitor/session/{session-number}

Usage Guidelines

GET, PUT, PATCH, DELETE, OPTIONS, and HEAD operations are supported.

Examples

URI

The following example uses the GET option to retrieve the configuration details.

http://host:80/rest/config/running/monitor/session/3

None

<session xmlns="urn:brocade.com:mgmt:brocade-span" xmlns:y="http://brocade.com/ns/rest" 
y:self="/rest/config/running/monitor/session/3">
  <session-number>3</session-number>
  <source>source</source>
  <src-ethernet>ethernet</src-ethernet>
  <src-ethernet-val>1/3</src-ethernet-val>
  <destination>destination</destination>
  <dest-ethernet>ethernet</dest-ethernet>
  <dest-ethernet-val>1/4</dest-ethernet-val>
  <direction>tx</direction>
</session>

URI

The following example uses the POST option to configure mirroring session.

http://host:80/rest/config/running/monitor

<session><session-number>{session-type}</session-number></session>

None

URI

The following example uses the DELETE option to remove mirror session.

http://host:80/rest/config/running/monitor/session/3

None

None