|
For the latest stable version, please use spring-cloud-bus 4.3.0! |
Bus Endpoints
Spring Cloud Bus provides two endpoints, /actuator/busrefresh and /actuator/busenv
that correspond to individual actuator endpoints in Spring Cloud Commons,
/actuator/refresh and /actuator/env respectively.
Bus Refresh Endpoint
The /actuator/busrefresh endpoint clears the RefreshScope cache and rebinds
@ConfigurationProperties. See the Refresh Scope documentation for
more information.
To expose the /actuator/busrefresh endpoint, you need to add following configuration to your
application:
management.endpoints.web.exposure.include=busrefresh
Bus Env Endpoint
The /actuator/busenv endpoint updates each instances environment with the specified
key/value pair across multiple instances.
To expose the /actuator/busenv endpoint, you need to add following configuration to your
application:
management.endpoints.web.exposure.include=busenv
The /actuator/busenv endpoint accepts POST requests with the following shape:
{
"name": "key1",
"value": "value1"
}