Skip to main content

tcb fn get-route

Shows the current traffic configuration of a function.

Usage​

tcb fn get-route <functionName>

Flags​

FlagRequiredDescriptionDefault
<functionName>YesFunction name—
--jsonNoOutput 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 as Key = Value
  • Legacy configuration: reported as unsupported, use --json for 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