Policy > Monitoring > Port Mirroring

Patch Port Mirroring Profile.

Create a new Port Mirroring Profile if the Port Mirroring Profile with
given id does not already exist. If the Port Mirroring Profile with the
given id already exists, patch with the existing Port Mirroring Profile.
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:
PATCH
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:

PATCH https://<policy-mgr>/policy/api/v1/infra/port-mirroring-profiles/session_1 { "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:
n/a
Response Body:
n/a

Required Permissions:

crud

Feature:

policy_port_mirroring

Additional Errors: