Netflix Eureka API 介绍

原创
2019/06/17 14:42
阅读数 734

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

 

Eureka Server API 介绍

    

接口 接口地址 请求方法 接口参数 响应数据
服务注册接口 (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        

        

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部