116 Star 700 Fork 167

GVPiresty / Apache APISIX

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
apisix-variable.md 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.

Lua
1
https://gitee.com/iresty/apisix.git
git@gitee.com:iresty/apisix.git
iresty
apisix
Apache APISIX
master

搜索帮助