List routes via Admin API
List all APISIX routes with URI and upstream
curl -s http://apisix:9180/apisix/admin/routes -H 'X-API-KEY: <key>' | jq '.list[].value | {id:.id, uri:.uri, upstream:.upstream.nodes}'
- tool
- apisix16 commands
More apisix commands
-
curl -s http://apisix:9180/apisix/admin/routes/<id> -H 'X-API-KEY: <key>' | jq .Inspect a single APISIX route configuration
-
curl -s http://apisix:9180/apisix/admin/upstreams -H 'X-API-KEY: <key>' | jq '.list[].value | {id:.id, nodes:.nodes}'All APISIX upstream definitions with nodes
-
curl -s http://apisix:9180/apisix/admin/plugins/list -H 'X-API-KEY: <key>' | jq .All available APISIX plugins
-
curl -X PUT http://apisix:9180/apisix/admin/configs/reload -H 'X-API-KEY: <key>'Hot-reload APISIX configuration from etcd
-
curl -s http://apisix:9080/apisix/status | jq .APISIX process health via control plane API