Eureka状态变更的接口

Eureka信息查看

1
get: {ip:port}/eureka/status

注册到Eureka的服务信息查看

1
get: {ip:port}/eureka/apps

注册到Eureka的具体的服务查看

1
2
get: {ip:port}/eureka/apps/{appname}
get: {ip:port}/eureka/apps/{appname}/{id}

对应Eureka源码的:InstanceResource.getInstanceInfo

服务续约

1
put:{ip:port}/eureka/apps/{appname}/{id}?lastDirtyTimestamp={}&status=up

对应Eureka的源码:InstanceResource.renewLease

更改服务状态

1
put:{ip:port}/eureka/apps/{appname}/{id}/status?lastDirtyTimestamp={}&value={UP/DOWN/OUT_OF_SERVICE}

对应Eureka的源码:InstanceResource.statusUpdate

删除状态更新

1
delete:{ip:port}/eureka/apps/{appname}/{id}/status?lastDirtyTimestamp={}&value={UP/DOWN/OUT_OF_SERVICE}

对应Eureka的源码:InstanceResource.deleteStatusUpdate

删除服务

1
delete: {ip:port}/eureka/apps/{appname}/{id}

对应Eureka的源码:InstanceResource.cancelLease

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :