Policy > Monitoring > Port Mirroring

Create or Replace Port Mirroring Profile.

Create or Replace port mirroring profile. Packets will be mirrored from
source group, segment, port to destination group.
Realized entities of this API can be found using the path of monitoring
profile binding map that is used to apply this profile.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/port-mirroring-profiles/<port-mirroring-profile-id>
/policy/api/v1/global-infra/port-mirroring-profiles/<port-mirroring-profile-id>
Request Headers:
n/a
Query Parameters:
OverrideRequestParameters+
Request Body:
PortMirroringProfile+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/port-mirroring-profiles/session_2 { "snap_length": 744, "destination_group": "/infra/domains/d1/groups/group_ip", "direction": "BIDIRECTIONAL", "encapsulation_type":"GRE", "gre_key" : 5 }

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": "session_2", "path": "/infra/port-mirroring-profiles/session_2", "parent_path": "/infra", "snap_length": 744, "destination_group": "/infra/domains/d1/groups/group_ip", "relative_path": "session_2" "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": 2 }

Required Permissions:

crud

Feature:

policy_port_mirroring

Additional Errors: