Skip to main content

tcb policy list

View the list of gateway authentication policies for the environment.

Returns an empty list in PG environments and OPA engine environments.

Usage​

tcb policy list [options]

Parameters​

ParameterDescriptionDefault
-e, --env-id <envId>Environment ID—
--resource-type <type>Filter by resource type, available value: policyAll
--jsonOutput JSON—

Output Fields​

FieldDescription
PolicyIdPolicy ID
ResourceTypeResource type
ResourceIdResource ID
ResourceTitleResource title
ResourceNameResource name
EffectEffect (Allow/Deny)
IsAccessIs accessible
RoleIdentityRole identity
RoleNameRole name
SafeRuleSafe rule

Examples​

# View all policies
tcb policy list -e my-env-id

# Filter by resource type
tcb policy list --resource-type policy -e my-env-id

# Output in JSON format
tcb policy list --json -e my-env-id