mhh12121 commented on issue #1235:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/1235#issuecomment-1211479761

   @tao12345666333 Yes, I did it through 
   
   ```
   curl "http://100.89.161.142:9180/apisix/admin/routes/"; -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1'
   ```
   BUt I moved my service to another namespace that I got these reponse:
   
   ```
   {
       "count": 5,
       "action": "get",
       "node": {
           "key": "\/apisix\/routes",
           "nodes": [
               {
                   "modifiedIndex": 153,
                   "value": {
                       "id": "7ed9320f",
                       "name": "test_route-backend_c",
                       "labels": {
                           "managed-by": "apisix-ingress-controller"
                       },
                       "create_time": 1660182821,
                       "status": 1,
                       "uris": [
                           "\/backend_docs"
                       ],
                       "desc": "Created by apisix-ingress-controller, DO NOT 
modify it manually",
                       "methods": [
                           "GET",
                           "POST",
                           "HEAD",
                           "PATCH"
                       ],
                       "priority": 0,
                       "upstream_id": "12a0880b",
                       "update_time": 1660182821,
                       "plugin_config_id": "6f589781",
                       "plugins": {
                           "proxy-rewrite": {
                               "uri": "\/docs"
                           }
                       }
                   },
                   "key": "\/apisix\/routes\/7ed9320f",
                   "createdIndex": 153
               },
               {
                   "modifiedIndex": 156,
                   "value": {
                       "id": "90d75323",
                       "name": "test_route-backend_a",
                       "labels": {
                           "managed-by": "apisix-ingress-controller"
                       },
                       "create_time": 1660182986,
                       "status": 1,
                       "uris": [
                           "\/api\/*"
                       ],
                       "desc": "Created by apisix-ingress-controller, DO NOT 
modify it manually",
                       "methods": [
                           "GET",
                           "POST",
                           "DELETE",
                           "PUT",
                           "HEAD",
                           "PATCH"
                       ],
                       "priority": 0,
                       "upstream_id": "12a0880b",
                       "update_time": 1660182986,
                       "plugin_config_id": "6f589781",
                       "plugins": {
                           "proxy-rewrite": {
                               "regex_uri": [
                                   "^\/api\/(.*)",
                                   "\/$1"
                               ]
                           },
                           "forward-auth": {
                               "uri": 
"http:\/\/auth.test.svc.cluster.local:8084\/user\/v0\/forward_auth",
                               "ssl_verify": true,
                               "keepalive_pool": 5,
                               "request_headers": [
                                   "Authorization"
                               ],
                               "keepalive_timeout": 60000,
                               "upstream_headers": [
                                   "user-id"
                               ],
                               "client_headers": [
                                   "Location"
                               ],
                               "timeout": 3000,
                               "keepalive": true
                           }
                       }
                   },
                   "key": "\/apisix\/routes\/90d75323",
                   "createdIndex": 156
               },
               {
                   "modifiedIndex": 157,
                   "value": {
                       "id": "9de0299",
                       "name": "test_route-backend_b",
                       "labels": {
                           "managed-by": "apisix-ingress-controller"
                       },
                       "create_time": 1660182986,
                       "upstream_id": "12a0880b",
                       "methods": [
                           "GET"
                       ],
                       "uris": [
                           "\/openapi.json",
                           "\/static\/*"
                       ],
                       "priority": 0,
                       "update_time": 1660182986,
                       "desc": "Created by apisix-ingress-controller, DO NOT 
modify it manually",
                       "status": 1
                   },
                   "key": "\/apisix\/routes\/9de0299",
                   "createdIndex": 157
               },
               {
                   "modifiedIndex": 19,
                   "value": {
                       "id": "f516764f",
                       "name": "test_route-user_user",
                       "labels": {
                           "managed-by": "apisix-ingress-controller"
                       },
                       "create_time": 1660115650,
                       "upstream_id": "aff25bc5",
                       "uris": [
                           "\/user\/v0\/login",
                           "\/user\/v0\/logout",
                           "\/user\/v0\/refresh_token",
                           "\/user\/v0\/register",
                           "\/user\/swagger\/*"
                       ],
                       "status": 1,
                       "priority": 0,
                       "desc": "Created by apisix-ingress-controller, DO NOT 
modify it manually",
                       "update_time": 1660115650
                   },
                   "key": "\/apisix\/routes\/f516764f",
                   "createdIndex": 19
               },
               {
                   "modifiedIndex": 18,
                   "value": {
                       "id": "f8539915",
                       "name": "test_route-user_rule1",
                       "labels": {
                           "managed-by": "apisix-ingress-controller"
                       },
                       "create_time": 1660115650,
                       "uris": [
                           "\/test",
                           "\/user\/v0\/users\/*",
                           "\/user\/v0\/users"
                       ],
                       "status": 1,
                       "plugin_config_id": "8daf7973",
                       "priority": 0,
                       "upstream_id": "aff25bc5",
                       "update_time": 1660115650,
                       "desc": "Created by apisix-ingress-controller, DO NOT 
modify it manually",
                       "plugins": {
                           "forward-auth": {
                               "uri": 
"http:\/\/auth.test.svc.cluster.local:8084\/user\/v0\/forward_auth",
                               "ssl_verify": true,
                               "keepalive_pool": 5,
                               "request_headers": [
                                   "Authorization"
                               ],
                               "keepalive_timeout": 60000,
                               "upstream_headers": [
                                   "user-id"
                               ],
                               "client_headers": [
                                   "Location"
                               ],
                               "timeout": 3000,
                               "keepalive": true
                           }
                       }
                   },
                   "key": "\/apisix\/routes\/f8539915",
                   "createdIndex": 18
               }
           ],
           "dir": true
       }
   }
   ```
   


-- 
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