liuxiran commented on issue #4946:
URL: https://github.com/apache/apisix/issues/4946#issuecomment-909216659


   Here are the text report:
   
   * The routes in my etcd:
   
   ```shell
   $ etcdctl get --prefix '/apisix/routes'
   /apisix/routes/00000000000000014980
   
{"priority":0,"enable_websocket":true,"id":"00000000000000014980","update_time":1630388825,"create_time":1630388825,"uri":"\/index.html","status":1,"hosts":["foo.com","*.bar.com"],"remote_addrs":["127.0.0.0\/8"],"upstream":{"hash_on":"vars","pass_host":"pass","scheme":"http","type":"roundrobin","nodes":{"39.97.63.215:80":1}},"methods":["PUT","GET"]}
   /apisix/routes/00000000000000015105
   
{"priority":0,"enable_websocket":true,"id":"00000000000000015105","name":"test1","update_time":1630396229,"create_time":1630396229,"uri":"\/index.html","methods":["PUT","GET"],"hosts":["foo.com","*.bar.com"],"remote_addrs":["127.0.0.0\/8"],"upstream":{"hash_on":"vars","pass_host":"pass","scheme":"http","type":"roundrobin","nodes":{"39.97.63.215:80":1}},"status":1}
   /apisix/routes/00000000000000015107
   
{"priority":0,"enable_websocket":true,"id":"00000000000000015107","name":"test1","update_time":1630396241,"create_time":1630396241,"uri":"\/index.html","methods":["PUT","GET"],"hosts":["foo.com","*.bar.com"],"remote_addrs":["127.0.0.0\/8"],"upstream":{"hash_on":"vars","pass_host":"pass","scheme":"http","type":"roundrobin","nodes":{"39.97.63.215:80":1}},"status":1}
   /apisix/routes/00000000000000015110
   
{"priority":0,"enable_websocket":true,"id":"00000000000000015110","name":"test1","update_time":1630396300,"create_time":1630396300,"uri":"\/index.html","methods":["PUT","GET"],"hosts":["foo.com","*.bar.com"],"remote_addrs":["127.0.0.0\/8"],"upstream":{"hash_on":"vars","pass_host":"pass","scheme":"http","type":"roundrobin","nodes":{"39.97.63.215:80":1}},"status":1}
   /apisix/routes/00000000000000015156
   
{"priority":0,"enable_websocket":true,"id":"00000000000000015156","name":"test1","update_time":1630398896,"create_time":1630398896,"uri":"\/index.html","methods":["PUT","GET"],"hosts":["foo.com","*.bar.com"],"remote_addrs":["127.0.0.0\/8"],"upstream":{"hash_on":"vars","pass_host":"pass","scheme":"http","type":"roundrobin","nodes":{"39.97.63.215:80":1}},"status":1}
   /apisix/routes/00000000000000015158
   
{"priority":0,"enable_websocket":true,"id":"00000000000000015158","name":"test1","update_time":1630398948,"create_time":1630398948,"uri":"\/index.html","methods":["PUT","GET"],"hosts":["foo.com","*.bar.com"],"remote_addrs":["127.0.0.0\/8"],"upstream":{"hash_on":"vars","pass_host":"pass","scheme":"http","type":"roundrobin","nodes":{"39.97.63.215:80":1}},"status":1}
   /apisix/routes/361048362004251655__360974644376765447
   
{"create_time":1624731193,"hosts":["test.com"],"id":"361048362004251655__360974644376765447","methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"name":"test1","plugin_config_id":"361048323198551047__360974644376765447","status":1,"update_time":1624731193,"upstream_id":"361048239731901447__360974644376765447","uris":["/get"],"workspace_id":"360974644376765447"}
   /apisix/routes/361121902934098951__361121157203624967
   
{"create_time":1624775027,"hosts":["host.com"],"id":"361121902934098951__361121157203624967","methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"name":"api1","status":1,"update_time":1624775104,"upstream_id":"361121836294996999__361121157203624967","uris":["/get"],"workspace_id":"361121157203624967"}
   /apisix/routes/361121972039451655__361121157203624967
   
{"create_time":1624775068,"hosts":["host.com"],"id":"361121972039451655__361121157203624967","methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"name":"api2","plugins":{"redirect":{"ret_code":302,"uri":"/host"}},"status":1,"update_time":1624775068,"uris":["/test"],"workspace_id":"361121157203624967"}
   /apisix/routes/367356274674764113
   
{"id":"367356274674764113","create_time":1628491002,"update_time":1628491002,"uris":["/*"],"name":"test_WebSocket","methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"upstream":{"nodes":[{"host":"httpbin.org","port":443,"weight":1}],"timeout":{"connect":6,"read":6,"send":6},"type":"roundrobin","scheme":"http","pass_host":"pass"},"enable_websocket":true,"status":1}
   /apisix/routes/367356634143394129
   
{"id":"367356634143394129","create_time":1628491216,"update_time":1628491466,"uris":["/*"],"name":"with_service_websocket","methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"service_id":"367356567235856721","status":1}
   /apisix/routes/367362356667222353
   
{"id":"367362356667222353","create_time":1628494627,"update_time":1628494627,"uris":["/*"],"name":"test11","methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"plugins":{"redirect":{"ret_code":302,"uri":"/get"}},"service_id":"367356567235856721","status":1}
   ```
   
   * The result returned by `GET /apisix/admin/routes` API
   ```shell
   $ curl http://127.0.0.1:9080/apisix/admin/routes -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1'
   
{"node":{"value":{"priority":0,"enable_websocket":true,"id":"00000000000000014980","update_time":1630388825,"methods":["PUT","GET"],"uri":"\/index.html","status":1,"hosts":["foo.com","*.bar.com"],"remote_addrs":["127.0.0.0\/8"],"upstream":{"hash_on":"vars","pass_host":"pass","scheme":"http","type":"roundrobin","nodes":{"39.97.63.215:80":1}},"create_time":1630388825},"key":"\/apisix\/routes\/00000000000000014980"},"action":"get","count":11}
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to