Skip to main content

list-policies

Retrieve gateway policies in evaluation order
1 min read

Retrieve an environment's gateway policies in evaluation order. The gateway evaluates policies top to bottom and the first rejection short-circuits the request. The full list is returned in one response.

Usage#

Flags#

--projectstringrequired#
Project ID or slug.
--appstringrequired#
Application ID or slug.
--environmentstringrequired#
Environment ID or slug.

Global Flags#

FlagTypeDescription
--root-keystringOverride root key ($UNKEY_ROOT_KEY)
--api-urlstringOverride API base URL (default: https://api.unkey.com)
--configstringPath to config file (default: ~/.unkey/config.toml)
--outputstringOutput format, use json for raw JSON
--bodystringSend this JSON string as the request body. You cannot combine it with request-building flags.

Examples#

See the API reference.