Netflix Eureka API 介绍

3 月,跳不动了?>>> hot3.png

    NetFlix Eureka Server 是一个采用 http 协议的服务注册,发现中心。服务端通过 http 协议暴漏接口给客户端进行调用,因为是 http 协议的所以客户端没有语言限制。

Eureka Server API 介绍

a0aa97d5083d55b4f530f6b198e2b9ff6ef.jpg

    

接口 接口地址 请求方法 接口参数 响应数据
服务注册接口 (register) /apps/{服务名称} POST    
服务取消注册( cancel ) /apps/{服务名称}/{实例ID} DELETE    
客户端发送心跳 (sendHeartBeat) /apps/{服务名称}/{实例ID} PUT  status , lastDirtyTimestamp , overriddenstatus  
更新实例状态 (statusUpdate) /apps/{服务名称}/{实例ID} PUT status , lastDirtyTimestamp  
deleteStatusOverride /apps/{服务名称}/{实例ID}/status DELETE lastDirtyTimestamp  
获取服务列表 (getApplications) /apps/ GET regions  
getDelta /apps/delta GET regions  
getVip /vips/ GET vipAddress , regions   
getSecureVip /svips/ GET secureVipAddress , regions  
getApplication /apps/{服务名称} GET    
getInstance /apps/{服务名称}/{实例ID} GET    
getInstance /instances/{实例ID} GET    
shutdown        

        

发布了132 篇原创文章 · 获赞 2 · 访问量 564

猜你喜欢

转载自blog.csdn.net/weixin_45839894/article/details/105198305