Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.11.0:List active targets failed #2895

Closed
wuyachao opened this issue Sep 19, 2017 · 2 comments
Closed

0.11.0:List active targets failed #2895

wuyachao opened this issue Sep 19, 2017 · 2 comments

Comments

@wuyachao
Copy link

curl  -X GET "http://127.0.0.1:8001/upstreams/test_v1/targets" |python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   681    0   681    0     0  89664      0 --:--:-- --:--:-- --:--:-- 97285
{
    "data": [
        {
            "created_at": 1505813694259,
            "id": "cf7592ae-4cef-41fe-a863-2edf308fb48c",
            "target": "wychao.com:8890",
            "upstream_id": "d0920d83-42e7-4a86-aba5-7691d51a4fe5",
            "weight": 10
        },
        {
            "created_at": 1505813697492,
            "id": "34a136b3-d2eb-4a2d-8ce3-14692bcd793a",
            "target": "wychao.com:8891",
            "upstream_id": "d0920d83-42e7-4a86-aba5-7691d51a4fe5",
            "weight": 10
        },
        {
            "created_at": 1505813700460,
            "id": "78fb2df7-68de-48b8-bebd-fa9d59342d37",
            "target": "wychao.com:8892",
            "upstream_id": "d0920d83-42e7-4a86-aba5-7691d51a4fe5",
            "weight": 10
        },
        {
            "created_at": 1505813689632,
            "id": "939ee1ec-8f17-419b-81ca-3183e58b3e87",
            "target": "wychao.com:8889",
            "upstream_id": "d0920d83-42e7-4a86-aba5-7691d51a4fe5",
            "weight": 10
        }
    ],
    "total": 4
}
➜  data curl  -X GET "http://127.0.0.1:8001/upstreams/test_v1/targets/active"              
{"message":"Method not allowed"}

request http://127.0.0.1:8001/upstreams/test_v1/targets is ok. But request http://127.0.0.1:8001/upstreams/test_v1/targets/active is return Method not allowed.
I just use GET method.
kong version:0.11.0

@PapyKahan
Copy link

Hello,

It has already been reported in this issue #2840

@wuyachao
Copy link
Author

@cfajardo ok,I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants