Spring-cloud-netflix: How to make Eureka REST API?

Created on 27 May 2016  路  4Comments  路  Source: spring-cloud/spring-cloud-netflix

I was reading this API:
https://github.com/Netflix/eureka/wiki/Eureka-REST-operations

and I would like to learn how to do some queries but testing in my local development, I can't do any query. Is it necessary to enable some point in the configuration?

curl -XGET -H "Content-type: application/json" 'http://ADDRESS_X:PORT_Y/eureka/v2/apps'
question

Most helpful comment

The Spring Cloud service doesn't have "/v2" in the URI path (unless you configure it explicitly).

All 4 comments

The Spring Cloud service doesn't have "/v2" in the URI path (unless you configure it explicitly).

Is there any default endpoint that expose a list registered instance in Eureka Server, need that for health check purposes

You want a health check for the eureka server? How will you know if it healthy based on the service registrations?

Anyway, to answer the question, isn't it just what you already had (but without the /v2 as already indicated).

Closing this due to inactivity. Please re-open if there's more to discuss.

Was this page helpful?
0 / 5 - 0 ratings