NSX-T Data Center REST API

Create or update a livetrace config

If a livetrace config with the specified identifier is not present, then
create a new livetrace config. If it already exists, update the livetrace
config with a full replacement.

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/infra/livetraces/{livetrace-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LiveTraceConfig+

Example Request:

{ "src_port_path": "/infra/segments/policy_segment/ports/default:0affc6ef-79b5-4a5b-9af8-d3046d101386", "actions": { "trace_config": { "sampling": { "match_number": 2 }, "trace_type": "UNI_DIRECTIONAL" } }, "filter": { "resource_type": "FieldsFilterData", "ip_info": { "src_ip": "10.185.241.17/24", "dst_ip": "10.185.243.227/24" }, "transport_info": { "protocol": "TCP", "src_port": 16637, "dst_port": 80 } }, "timeout": 20 }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

{}

Required Permissions:

crud

Feature:

policy_livetrace

Additional Errors: