Policy > Monitoring > Traceflow

Create or update a traceflow config

If a traceflow config with the traceflow-id is not
already present, create a new traceflow config. If it already exists,
update the traceflow config. This is a full replace. This
configuration will be cleaned up by the system after two hours of inactivity.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/traceflows/<traceflow-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
TraceflowConfig+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/traceflows/t14 { "segment_port_path": "/infra/tier-1s/it_t1/segments/it-t1-seg/ports/default:c8d7ac3f-1904-4088-a9ec-f0183b5b14d6", "packet": { "eth_header": { "src_mac": "00:55:56:8f:49:60", "dst_mac": "00:50:56:8f:2f:97", "eth_type": 2048 }, "ip_header": { "src_ip": "172.16.14.11", "dst_ip": "172.16.16.13", "protocol": 1, "ttl": 64, "flags": 0 }, "transport_header": { "icmp_echo_request_header": { "id": 0, "sequence": 0 } }, "payload": "", "resource_type": "FieldsPacketData", "frame_size": 128, "routed": true, "transport_type": "UNICAST" }, "timeout": 10 }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
TraceflowConfig+

Example Response:

{ "segment_port_path": "/infra/tier-1s/it_t1/segments/it-t1-seg/ports/default:c8d7ac3f-1904-4088-a9ec-f0183b5b14d6", "packet": { "eth_header": { "src_mac": "00:55:56:8f:49:60", "dst_mac": "00:50:56:8f:2f:97", "eth_type": 2048 }, "ip_header": { "src_ip": "172.16.14.11", "dst_ip": "172.16.16.13", "protocol": 1, "ttl": 64, "flags": 0 }, "transport_header": { "icmp_echo_request_header": { "id": 0, "sequence": 0 } }, "payload": "", "resource_type": "FieldsPacketData", "frame_size": 128, "routed": true, "transport_type": "UNICAST" }, "timeout": 10, "resource_type": "TraceflowConfig", "id": "t14", "display_name": "t14", "path": "/infra/traceflows/t14", "relative_path": "t14", "parent_path": "/infra", "unique_id": "d3c59bf3-5de8-4d65-91cc-940458fc8860", "marked_for_delete": false, "overridden": false, "_create_user": "admin", "_create_time": 1579243672065, "_last_modified_user": "admin", "_last_modified_time": 1579243672065, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_traceflow

Additional Errors: