|
129 | 129 | import io.fusionauth.domain.api.ReactorRequest;
|
130 | 130 | import io.fusionauth.domain.api.ReactorResponse;
|
131 | 131 | import io.fusionauth.domain.api.ReindexRequest;
|
| 132 | +import io.fusionauth.domain.api.StatusResponse; |
132 | 133 | import io.fusionauth.domain.api.SystemConfigurationRequest;
|
133 | 134 | import io.fusionauth.domain.api.SystemConfigurationResponse;
|
134 | 135 | import io.fusionauth.domain.api.TenantDeleteRequest;
|
@@ -3789,6 +3790,42 @@ public ClientResponse<SystemConfigurationResponse, Void> retrieveSystemConfigura
|
3789 | 3790 | .go();
|
3790 | 3791 | }
|
3791 | 3792 |
|
| 3793 | + /** |
| 3794 | + * Retrieves the FusionAuth system health. This API will return 200 if the system is healthy, and 500 if the system is un-healthy. |
| 3795 | + * |
| 3796 | + * @return The ClientResponse object. |
| 3797 | + */ |
| 3798 | + public ClientResponse<Void, Void> retrieveSystemHealth() { |
| 3799 | + return startAnonymous(Void.TYPE, Void.TYPE) |
| 3800 | + .uri("/api/health") |
| 3801 | + .get() |
| 3802 | + .go(); |
| 3803 | + } |
| 3804 | + |
| 3805 | + /** |
| 3806 | + * Retrieves the FusionAuth system status. This request is anonymous and does not require an API key. When an API key is not provided the response will contain a single value in the JSON response indicating the current health check. |
| 3807 | + * |
| 3808 | + * @return The ClientResponse object. |
| 3809 | + */ |
| 3810 | + public ClientResponse<StatusResponse, Void> retrieveSystemStatus() { |
| 3811 | + return startAnonymous(StatusResponse.class, Void.TYPE) |
| 3812 | + .uri("/api/status") |
| 3813 | + .get() |
| 3814 | + .go(); |
| 3815 | + } |
| 3816 | + |
| 3817 | + /** |
| 3818 | + * Retrieves the FusionAuth system status using an API key. Using an API key will cause the response to include the product version, health checks and various runtime metrics. |
| 3819 | + * |
| 3820 | + * @return The ClientResponse object. |
| 3821 | + */ |
| 3822 | + public ClientResponse<StatusResponse, Void> retrieveSystemStatusUsingAPIKey() { |
| 3823 | + return start(StatusResponse.class, Void.TYPE) |
| 3824 | + .uri("/api/status") |
| 3825 | + .get() |
| 3826 | + .go(); |
| 3827 | + } |
| 3828 | + |
3792 | 3829 | /**
|
3793 | 3830 | * Retrieves the tenant for the given Id.
|
3794 | 3831 | *
|
|
0 commit comments