Eureka注册中心常用http rest接口
1.查看所有服务的注册列表:
GET http://10.1.1.122:8761/eureka/apps
2.查看某一服务的注册机列表:
GET http://10.1.1.122:8761/eureka/apps/SERVICE-NAME
3. 暂时剔除某服务下的某注册机(隔几秒会重新注册上来)
DELETE http://10.1.1.122:8761/eureka/apps/SERVICE-NAME/INSTANCE-NAME
4. 下线某一服务的注册机:
PUT http://10.1.1.122:8761/eureka/apps/SERVICE-NAME/INSTANCE-NAME/status?value=OUT_OF_SERVICE
5. 下线后再恢复服务:
PUT http://10.1.1.122:8761/eureka/apps/SERVICE-NAME/INSTANCE-NAME/status?value=UP
SERVICE-NAME:服务名
INSTANCE-NAME:实例名