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 |
You can also register your own variable.