APISIX variable
#
DescriptionBesides NGINX variable, APISIX also provides additional variables.
#
List of variablesVariable 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. | |
consumer_group_id | core | Group ID 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.