APISIX variable

Besides Nginx variable, APISIX also provides additional variables.

List in alphabetical order:

Variable NameDescriptionExample
balancer_ipthe IP of picked upstream server1.1.1.1
balancer_portthe port of picked upstream server80
consumer_nameusername of consumer
graphql_namethe operation name of GraphQLHeroComparison
graphql_operationthe operation type of GraphQLmutation
graphql_root_fieldsthe top level fields of GraphQL[“hero”]
mqtt_client_idthe client id in MQTT protocol
route_idid of route
route_namename of route
service_idid of service
service_namename of service

You can also register your own variable.