NSX-T Data Center REST API
Create a mirror session (Deprecated)
Request:
Method:
POST
URI Path(s):
/api/v1/mirror-sessions
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PortMirroringSession+
Example Request:
{ "display_name":"port-mirror-session-1", "description":"Test pnic port mirror session 1", "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.1-192.168.1.20"] }, "dst_ips": {"ip_addresses": ["192.168.2.1/24"]}, "ip_protocol": "TCP", "src_ports" : 80, "dst_ports" : "80-100", "filter_action": "MIRROR" } ] }Successful Response:
Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
PortMirroringSession+