Check liveness
GET
/livez
const url = 'http://127.0.0.1:9090/livez';const options = { method: 'GET', headers: {'X-Request-Id': '4f1c2b0e-8a7d-4c51-9e2f-3a6b8d0c1e7f'}};
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:9090/livez \ --header 'X-Request-Id: 4f1c2b0e-8a7d-4c51-9e2f-3a6b8d0c1e7f'Answers 200 with ok whenever the process answers, from the moment the admin listener opens: for a liveness
probe and the container image’s health check. It asks nothing of the database or of readiness, so a database
outage or a drain never gets an instance restarted. It needs no login.
Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Request-Id
string
An id to follow the request by: answered back in X-Request-Id, and in the log, the audit trail and the events the request causes. 1 to 128 letters, digits, -, _, . or :; anything else is replaced by a new id.
Example
4f1c2b0e-8a7d-4c51-9e2f-3a6b8d0c1e7fResponses
Section titled “Responses”The process answers: ok and a line break.
Media typetext/plain
string
Example
ok