Skip to content

Latest commit

 

History

History
52 lines (46 loc) · 3.23 KB

apisix-variable.md

File metadata and controls

52 lines (46 loc) · 3.23 KB
title keywords description
APISIX variable
Apache APISIX
API Gateway
APISIX variable
This article describes the variables supported by Apache APISIX.

Description

Besides NGINX variable, APISIX also provides additional variables.

List of variables

Variable Name Origin Description Example
balancer_ip core The IP of picked upstream server. 192.168.1.2
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.