Readiness probe. Ready when the database answers.
GET
/readyz
const url = 'http://127.0.0.1:8080/readyz';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://127.0.0.1:8080/readyzResponses
Section titled “Responses”Ready.
Media typeapplication/json
object
status
required
string
reason
string
Example generated
{ "status": "example", "reason": "example"}The database is unreachable.
Media typeapplication/json
object
status
required
string
reason
string
Example generated
{ "status": "example", "reason": "example"}