You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "constlhq (via GitHub)" <gi...@apache.org> on 2024/03/27 12:04:22 UTC
[I] Is it possible to get the matched route_id in a custom wasm plugin? [apisix]
constlhq opened a new issue, #11098:
URL: https://github.com/apache/apisix/issues/11098
### Description
I want to access the `route_id` of current matched route , but have no clue after reading the docs and the wasm plugin examples.
### Environment
- APISIX version (run `apisix version`): 3.8
- Operating system (run `uname -a`): 20.04.1-Ubuntu
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Is it possible to get the matched route_id in a custom wasm plugin? [apisix]
Posted by "hanqingwu (via GitHub)" <gi...@apache.org>.
hanqingwu commented on issue #11098:
URL: https://github.com/apache/apisix/issues/11098#issuecomment-2024322037
why does you need get route_id from custom wasm plugin ? what 's your purpose ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Is it possible to get the matched route_id in a custom wasm plugin? [apisix]
Posted by "sunheyi6 (via GitHub)" <gi...@apache.org>.
sunheyi6 commented on issue #11098:
URL: https://github.com/apache/apisix/issues/11098#issuecomment-2024210991
It seems not possible to get route_id in the custom wasm plugin,but you can get the route_id in admin api
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Is it possible to get the matched route_id in a custom wasm plugin? [apisix]
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #11098:
URL: https://github.com/apache/apisix/issues/11098#issuecomment-2024384466
If you have access to the `ctx` variable, you can get it like so: `ctx.matched_route.value.id`. You can learn more here: https://blog.frankel.ch/rabbit-hole-apisix-plugin/. written by @nfrankel 👏🏼
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Is it possible to get the matched route_id in a custom wasm plugin? [apisix]
Posted by "constlhq (via GitHub)" <gi...@apache.org>.
constlhq closed issue #11098: Is it possible to get the matched route_id in a custom wasm plugin?
URL: https://github.com/apache/apisix/issues/11098
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org