List Targets Associated to a Specific Upstream

GET {{gateway}}/upstreams/:upstreamHost:portOrId/targets

List Targets Associated to a Specific Upstream konghq

AttributesMandatoryTypeDescription
upstream host:port or idrequiredpathThe unique identifier or the host:port attribute of the Upstream whose Targets are to be retrieved. When using this endpoint, only Targets associated to the specified Upstream will be listed.

RESPONSES

status: OK

{"data":[{"id":"f5a9c0ca-bdbb-490f-8928-2ca95836239a","created_at":1422386534,"upstream":{"id":"173a6cee-90d1-40a7-89cf-0329eca780a6"},"target":"example.com:8000","weight":100,"tags":["user-level","low-priority"]},{"id":"bdab0e47-4e37-4f0b-8fd0-87d95cc4addc","created_at":1422386534,"upstream":{"id":"f00c6da4-3679-4b44-b9fb-36a19bd3ae83"},"target":"example.com:8000","weight":100,"tags":["admin","high-priority","critical"]}],"next":"http://localhost:8001/targets?offset=6378122c-a0a1-438d-a5c6-efabae9fb969"}