public interface EurekaOperations
@Post(uri="/apps/{appId}", single=true) @Retryable(attempts="${eureka.client.registration.retry-count:10}", delay="${eureka.client.registration.retry-delay:3s}") Publisher<HttpStatus> register(@NotBlank @NotBlank String appId, @Valid @NotNull @Body @Valid @NotNull InstanceInfo instance)
InstanceInfo with the Eureka server.appId - The application idinstance - The instanceHttpStatus.NO_CONTENT on success@Delete(uri="/apps/{appId}/{instanceId}", single=true) @Retryable(attempts="${eureka.client.registration.retry-count:10}", delay="${eureka.client.registration.retry-delay:3s}") Publisher<HttpStatus> deregister(@NotBlank @NotBlank String appId, @NotBlank @NotBlank String instanceId)
InstanceInfo with the Eureka server.appId - The application idinstanceId - The instance id (this is the value of InstanceInfo.getId())HttpStatus.OK on success@Get(uri="/apps/{appId}", single=true) Publisher<ApplicationInfo> getApplicationInfo(@NotBlank @NotBlank String appId)
ApplicationInfo for the given app id.appId - The app idApplicationInfo instance@Get(uri="/apps/{appId}/{instanceId}", single=true) Publisher<InstanceInfo> getInstanceInfo(@NotBlank @NotBlank String appId, @NotBlank @NotBlank String instanceId)
InstanceInfo for the given app id.appId - The app idinstanceId - The instance id (this is the value of InstanceInfo.getId())InstanceInfo instancePublisher<List<ApplicationInfo>> getApplicationInfos()
ApplicationInfo registered with Eureka.ApplicationInfo instancesPublisher<List<ApplicationInfo>> getApplicationVips(String vipAddress)
ApplicationInfo registered with Eureka under the given VIP address.vipAddress - The InstanceInfo.vipAddressApplicationInfo instancesInstanceInfo.vipAddress@Put(uri="/apps/{appId}/{instanceId}", single=true) Publisher<HttpStatus> heartbeat(@NotBlank @NotBlank String appId, @NotBlank @NotBlank String instanceId)
appId - The application idinstanceId - The instance idHttpStatus.OK on success@Put(uri="/apps/{appId}/{instanceId}/status?value={status}", single=true) Publisher<HttpStatus> updateStatus(@NotBlank @NotBlank String appId, @NotBlank @NotBlank String instanceId, @NotNull InstanceInfo.Status status)
appId - The application idinstanceId - The instance idstatus - The status to useHttpStatus.OK on success@Put(uri="/apps/{appId}/{instanceId}/metadata?{key}={value}", single=true) Publisher<HttpStatus> updateMetadata(@NotBlank @NotBlank String appId, @NotBlank @NotBlank String instanceId, @NotBlank @NotBlank String key, @NotBlank @NotBlank String value)
appId - The application idinstanceId - The instance idkey - The key to updatevalue - The value to updateHttpStatus.OK on success