Method: projects.locations.instances.getInstanceHealth

Checks whether a notebook instance is healthy.

HTTP request

GET https://notebooks.googleapis.com/v1/{name}:getInstanceHealth

Path parameters

Parameters
name

string

Required. Format: projects/{projectId}/locations/{location}/instances/{instanceId}

Authorization requires the following IAM permission on the specified resource name:

  • notebooks.instances.getHealth

Request body

The request body must be empty.

Response body

Response for checking if a notebook instance is healthy.

If successful, the response body contains data with the following structure:

JSON representation
{
  "healthState": enum (HealthState),
  "healthInfo": {
    string: string,
    ...
  }
}
Fields
healthState

enum (HealthState)

Output only. Runtime healthState.

healthInfo

map (key: string, value: string)

Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

HealthState

If an instance is healthy or not.

Enums
HEALTH_STATE_UNSPECIFIED The instance substate is unknown.
HEALTHY The instance is known to be in an healthy state (for example, critical daemons are running) Applies to ACTIVE state.
UNHEALTHY The instance is known to be in an unhealthy state (for example, critical daemons are not running) Applies to ACTIVE state.
AGENT_NOT_INSTALLED The instance has not installed health monitoring agent. Applies to ACTIVE state.
AGENT_NOT_RUNNING The instance health monitoring agent is not running. Applies to ACTIVE state.