NSX-T Data Center REST API

List all mirror sessions (Deprecated)

Deprecated: This api is now deprecated. Depending on source of port mirroring, use the following apis - Tier-1 Segment: /infra/tier-1s/<tier-1-id>/segments/<segment-id>/segment-monitoring-profile-binding-maps Tier-1 Segment Port: /infra/tier-1s/<tier-1-id>/segments/<segment-id>/ports/<port-id>/port-monitoring-profile-binding-maps Group: /infra/domains/<domain-id>/groups/<group-id>/group-monitoring-profile-binding-maps Infra Segment: /infra/segments/<infra-segment-id>/segment-monitoring-profile-binding-maps Infra Segment Port: /infra/segments/<infra-segment-id>/ports/<infra-port-id>/port-monitoring-profile-binding-maps

Request:

Method:
GET
URI Path(s):
/api/v1/mirror-sessions
Request Headers:
n/a
Query Parameters:
ListRequestParameters+
Request Body:
n/a

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PortMirroringSessionListResult+

Example Response:

{ "cursor": "00369467676a-aeae-46f7-90f1-c771e02d16699467676a-aeae-46f7-90f1-c771e02d1669", "result_count": 1, "results": [ { "id": "e57e8b2d-3047-4550-b230-dd1ee0e10b49", "display_name": "port-mirror-session-1", "description": "Test pnic port mirror session 1", "resource_type": "PortMirroringSession", "direction": "BIDIRECTIONAL", "mirror_sources": [ { "resource_type": "PnicMirrorSource", "source_pnics": ["eth1"], "node_id": "6a361832-43e4-430d-a48a-b84a6cba73c3", "encapsulated": "true" } ], "mirror_destination": { "resource_type": "LogicalPortMirrorDestination", "port_ids": ["3e4e8b2d-3047-4550-b230-dd1ee0e10b34"] }, "port_mirroring_filters": [ { "src_ips": { "ip_addresses": [ "192.168.1.2/31", "192.168.1.8/29", "192.168.1.4/30", "192.168.1.16/30", "192.168.1.20/32", "192.168.1.1/32" ] }, "src_ports": "80", "filter_action": "MIRROR", "dst_ports": "80-100", "dst_ips": { "ip_addresses": [ "192.168.2.1/24" ] }, "ip_protocol": "TCP" } ], "_last_modified_user": "system", "_last_modified_time": 1435282426932, "_create_time": 1435282426867, "_system_owned": false, "_create_user": "system", "_revision": 0 } ] }

Required Permissions:

read

Feature:

tools_port_mirroring

Additional Errors: