NSX-T Data Center REST API

Details of Port Mirroring Profile

API will return details of port mirroring profile.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/port-mirroring-profiles/{port-mirroring-profile-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Successful Response:

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

Example Response:

{ "resource_type": "PortMirroringProfile", "id": "session_2", "display_name": "/infra/infra/port-mirroring-profiles/session_2", "path": "/infra/infra/port-mirroring-profiles/session_2", "parent_path": "/infra/domains/d1/groups/group_vm", "relative_path": "session_2", "snap_length": 744, "destination_group": "/infra/domains/d1/groups/group_ip", "direction": "BIDIRECTIONAL", "encapsulation_type":"GRE", "gre_key" : 5, "_create_user": "admin", "_create_time": 1516657975538, "_last_modified_user": "admin", "_last_modified_time": 1517353711231, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 1 }

Required Permissions:

read

Feature:

policy_port_mirroring

Additional Errors: