projects

PATCH /v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}

Changed on

UpdateInstance updates an Instance.

Request

  • Base URL
    https://notebooks.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/notebooks
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/notebooks

Path parameters

projectsId, string required
locationsId, string required
instancesId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

requestId, string

Optional. Idempotent request UUID.

updateMask, string google-fieldmask

Required. Mask used to update an instance. Updatable fields: * labels * gce_setup.min_cpu_platform * gce_setup.metadata * gce_setup.machine_type * gce_setup.accelerator_configs * gce_setup.accelerator_configs.type * gce_setup.accelerator_configs.core_count * gce_setup.gpu_driver_config * gce_setup.gpu_driver_config.enable_gpu_driver * gce_setup.gpu_driver_config.custom_gpu_driver_path * gce_setup.shielded_instance_config * gce_setup.shielded_instance_config.enable_secure_boot * gce_setup.shielded_instance_config.enable_vtpm * gce_setup.shielded_instance_config.enable_integrity_monitoring * gce_setup.reservation_affinity * gce_setup.reservation_affinity.consume_reservation_type * gce_setup.reservation_affinity.key * gce_setup.reservation_affinity.values * gce_setup.tags * gce_setup.container_image * gce_setup.container_image.repository * gce_setup.container_image.tag * gce_setup.disable_public_ip * disable_proxy_access Note: gce_setup.disable_public_ip and disable_proxy_access are one-way on update -- they can only be used to disable the feature (set the field to true). Requests that set either field back to false (re-enabling the external IP or proxy access) are rejected with INVALID_ARGUMENT.

Request body

Instance required

The definition of a notebook instance.

createTime, string google-datetime

Output only. Instance creation time.

creator, string

Output only. Email address of entity that sent original CreateInstance request.

disableProxyAccess, boolean

Optional. If true, the notebook instance will not register with the proxy.

enableDeletionProtection, boolean

Optional. If true, deletion protection will be enabled for this Workbench Instance. If false, deletion protection will be disabled for this Workbench Instance.

enableManagedEuc, boolean

Optional. Flag to enable managed end user credentials for the instance.

enableThirdPartyIdentity, boolean

Optional. Flag that specifies that a notebook can be accessed with third party identity provider.

gceSetup, GceSetup

The definition of how to configure a VM instance outside of Resources and Identity.

healthInfo, object

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" }

healthState, 'HEALTH_STATE_UNSPECIFIED' | 'HEALTHY' | 'UNHEALTHY' | 'AGENT_NOT_INSTALLED' | 'AGENT_NOT_RUNNING'

Output only. Instance health_state.

id, string

Output only. Unique ID of the resource.

instanceOwners, string[]

Optional. The owner of this instance after creation. Format: alias@example.com Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

labels, object

Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.

name, string

Output only. Identifier. The name of this notebook instance. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

proxyUri, string

Output only. The proxy endpoint that is used to access the Jupyter notebook.

satisfiesPzi, boolean

Output only. Reserved for future use for Zone Isolation.

satisfiesPzs, boolean

Output only. Reserved for future use for Zone Separation.

state, 'STATE_UNSPECIFIED' | 'STARTING' | 'PROVISIONING' | 'ACTIVE' | 'STOPPING' | 'STOPPED' | 'DELETED' | 'UPGRADING' | 'INITIALIZING' | 'SUSPENDING' | 'SUSPENDED' | 'ORPHANED'

Output only. The state of this instance.

thirdPartyProxyUrl, string

Output only. The workforce pools proxy endpoint that is used to access the Jupyter notebook.

updateTime, string google-datetime

Output only. Instance update time.

upgradeHistory, UpgradeHistoryEntry[]

Output only. The upgrade history of this instance.

Response

Successful response

Operation required

This resource represents a long-running operation that is the result of a network API call.

done, boolean

If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.

error, Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

metadata, object

Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.

name, string

The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.

response, object

The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/notebooks was removed from the endpoint's security scheme Oauth2

    1 more change in this revision