Skip to main content

tcb routes list

List the gateway routes of the current environment, with paging and field filtering.

v3.0.0+

tcb routes has been available since v3.0.0.

Usage​

tcb routes list [options]

Parameters​

ParameterRequiredDescriptionDefault
-e, --env-id <envId>NoEnvironment IDenvId in the configuration
--limit <n>NoPage size—
--offset <n>NoPage offset0
--filter <expr>NoFilter expression, join conditions with &, separate multiple values with commas—
--jsonNoOutput JSONfalse

--filter fields:

FieldDescriptionValues
DomainDomainAny domain string, several comma-separated (OR)
PathRoute pathAny path string
UpstreamResourceTypeUpstream typeSCF, CBR, STATIC_STORE, WEB_SCF, LH

The table includes an upstream version column showing the bound function version, - when unbound (v3.8.10+).

Examples​

# Paged query
tcb routes list -e <envId> --limit 50 --offset 0

# Filter by domain
tcb routes list -e <envId> --filter "Domain=api.example.com"

# Filter by upstream type
tcb routes list -e <envId> --filter "UpstreamResourceType=CBR"

# Combine conditions (AND with &, OR with commas)
tcb routes list -e <envId> --filter "UpstreamResourceType=SCF&Domain=api.example.com,api2.example.com"