tcb fn get-route
Shows the current traffic configuration of a function.
Usage
tcb fn get-route <functionName>
Flags
| Flag | Required | Description | Default |
|---|---|---|---|
<functionName> | Yes | Function name | — |
--json | No | Output the raw configuration as JSON | — |
The output depends on the traffic strategy type:
- Ratio based (
FLOW): traffic ratio of each version - Header matching (
HEADERS): the request headers each version matches, formatted asKey = Value - Legacy configuration: reported as unsupported, use
--jsonfor the raw data
Example
# Traffic configuration of the app function
tcb fn get-route app
# Raw configuration as JSON
tcb fn get-route app --json