Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 2.09 KB

apisix-variable.md

File metadata and controls

45 lines (40 loc) · 2.09 KB
title
APISIX variable

Besides Nginx variable, APISIX also provides additional variables.

List in alphabetical order:

Variable Name Origin Description Example
balancer_ip core the IP of picked upstream server 1.1.1.1
balancer_port core the port of picked upstream server 80
consumer_name core username of consumer
graphql_name core the operation name of GraphQL HeroComparison
graphql_operation core the operation type of GraphQL mutation
graphql_root_fields core the top level fields of GraphQL ["hero"]
mqtt_client_id mqtt-proxy the client id in MQTT protocol
route_id core id of route
route_name core name of route
service_id core id of service
service_name core name of service
redis_cmd_line Redis the content of Redis command
rpc_time xRPC time spent at the rpc request level

You can also register your own variable.