Accepted values
ReferenceFacts to look up.
Every field that takes one of a fixed set of values, in one place. Policy settings are listed
in the policy reference, generated from the code; this page covers
the rest of the model and the value formats. The console offers these same values in its
drop-downs; the YAML and the Admin API accept them as written here, in lower case.
| Kind |
Format |
Examples |
| Duration |
A number with a unit: ms, s, m, h. 0s means unlimited where that is allowed |
250ms, 30s, 5m, 1h |
| Size |
A number with an optional unit: B, KB, MB, GB (powers of 1024) |
64KB, 1MB, 1048576 |
| Name |
Lower-case letters, digits and hyphens, 1 to 63 characters, unique within its kind |
orders-v2, hr-mobile |
| Path pattern |
Starts with /; {param} captures one segment, {rest...} the remainder (last segment only); trailing slash is significant |
/orders/{id}, /files/{rest...} |
| Host |
Exact name, *.suffix, or * |
api.example.com, *.example.com, * |
| Address |
host:port or :port; loopback only for the demo backend |
:8080, 127.0.0.1:9100 |
| HTTP method |
Upper case |
GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE, CONNECT |
| Status |
An integer 100 to 599, or a class where the field says so |
404, "5xx" |
| Boolean |
true or false |
|
| Timestamp |
RFC 3339, UTC |
2026-12-31T00:00:00Z |
Enumerated values are case-sensitive unless the field says otherwise.
Listeners
| Field |
Values |
Default |
protocol |
http, https |
http |
h2c |
true, false (HTTP/2 cleartext, http listeners only) |
false |
tls.client_auth |
none, request, require |
none |
tls.min_version |
"1.2", "1.3" |
"1.2" |
Upstreams
| Field |
Values |
Default |
balancer |
round_robin, weighted, least_connections, consistent_hash |
round_robin |
hash.source (consistent_hash) |
header, cookie, ip |
|
targets[].url scheme |
http, https |
|
retry.conditions[] |
connect_error, reset, timeout, 5xx, 502, 503, 504, retriable_4xx |
connect_error, reset, 503 |
retry.methods[] |
HTTP methods |
the idempotent set: GET, HEAD, OPTIONS, TRACE, PUT, DELETE |
health.active.expected_statuses[] |
status codes |
200 to 399 |
Routes and operations
| Field |
Values |
Default |
methods[] |
HTTP methods; empty means any |
any |
headers[] |
one of value (exact), regex, present: true per entry; a value too long for its regex to read in about 200 ms does not match |
|
hosts[] |
host patterns |
* |
strip_prefix |
true, false |
API's setting |
websocket.enabled |
true, false |
false |
APIs and versions
| Field |
Values |
Default |
enabled |
true, false |
true |
lifecycle.state |
created, published, deprecated, retired |
published |
version_selector |
{header, value}: the header and value that select this version on a shared base path |
|
Moves between lifecycle states: created → published → deprecated → retired; a
deprecated version may return to published. See
Versions and lifecycle.
Policy bindings
| Field |
Values |
Default |
strategy |
override, merge, append |
override |
enabled |
true, false |
true |
type |
any type in the policy reference |
|
Products, plans and subscriptions
| Field |
Values |
Default |
plans[].rate_limit.per |
second, minute, hour |
|
plans[].quota.period |
day (resets 00:00 UTC), month (resets on the 1st, UTC) |
|
plans[].approval_required |
true, false |
false |
plans[].state |
active, retired |
active |
rate_limit.limit, quota.limit |
integers of at least 1 |
|
| Subscription state |
pending, active, suspended, revoked |
active, or pending when the plan requires approval |
Consumers and keys
| Field |
Values |
API key status (derived from expires_at and revoked_at) |
active; expiring after a rotation, until the overlap ends; revoked |
allowed_sources[] |
IP addresses or CIDR ranges, on an application or on a key |
Process configuration
Enumerated settings of apinx.yaml (logging.level, logging.format, access_log.sink,
storage.driver, security.master_key_provider, …) are listed with their values in the
process configuration reference.