NSX-T Data Center REST API
Create or update a livetrace config
If a livetrace config with the specified identifier is not present, thencreate a new livetrace config. If it already exists, update the livetrace
config with a full replacement.
Request:
Method:
PUT
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": { "counter_config": { "trace_type": "UNI_DIRECTIONAL" }, "trace_config": { "sampling": { "match_number": 1 }, "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": 10 }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
LiveTraceConfig+