Skip to content

Commit

Permalink
client sync
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdan committed Jun 24, 2024
1 parent f7aa29d commit 99c6aa6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/FusionAuth/FusionAuthClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -3982,6 +3982,48 @@ public function retrieveSystemConfiguration()
->go();
}

/**
* Retrieves the FusionAuth system health. This API will return 200 if the system is healthy, and 500 if the system is un-healthy.
*
*
* @return ClientResponse The ClientResponse.
* @throws \Exception
*/
public function retrieveSystemHealth()
{
return $this->startAnonymous()->uri("/api/health")
->get()
->go();
}

/**
* 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.
*
*
* @return ClientResponse The ClientResponse.
* @throws \Exception
*/
public function retrieveSystemStatus()
{
return $this->startAnonymous()->uri("/api/status")
->get()
->go();
}

/**
* 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.
*
*
* @return ClientResponse The ClientResponse.
* @throws \Exception
*/
public function retrieveSystemStatusUsingAPIKey()
{
return $this->start()->uri("/api/status")
->get()
->go();
}

/**
* Retrieves the tenant for the given Id.
*
Expand Down

0 comments on commit 99c6aa6

Please sign in to comment.