--- title: "Create port mirroring configuration" slug: "create-port-mirroring-configuration" tags: ["Reference"] updated: 2026-09-03T18:40:47Z published: 2026-09-03T18:40:47Z canonical: "docs.trellix.com/create-port-mirroring-configuration" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Create port mirroring configuration Creates port mirroring based on the provided input. ### API URL `POST https://<host>/wsapis/v2.0.0/config/network/portmirror -d <payload>` ### Payload JSON array containing names of the qualified ports. Example: `{"name":"B", "mirror_port":"pether4"}` ### Sample curl request ``` curl -gsk -H "$c" https://172.16.177.50/wsapis/v2.0.0/config/network/portmirror -d '{"name":"A", "mirror_port":"pether5"}' -H 'content-type:application/json' ``` **Availability** This command is available on the following platforms: - Network Security - Helix Enterprise ### Response ``` {  "error": true,  "message": "Port Mirroring configured",  "suggestedHttpCode": 201 } ``` ### Authentication Standard WSAPI authentication ### Response mime type `application/json` :