PATCH /v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}
Changed onUpdateInstance updates an Instance.
Request
- Base URLhttps://notebooks.googleapis.com
- Auth
- OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/cloud-platformAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/cloud-platform
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/notebooksAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/notebooks
Path parameters
Query parameters
V1 error format.
OAuth access token.
Data format for response.
JSONP
Selector specifying which fields to include in a partial response.
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 2.0 token for the current user.
Returns response with indentations and line breaks.
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.
Legacy upload protocol for media (e.g. "media", "multipart").
Upload protocol for media (e.g. "raw", "multipart").
Optional. Idempotent request UUID.
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
The definition of a notebook instance.
Output only. Instance creation time.
Output only. Email address of entity that sent original CreateInstance request.
Optional. If true, the notebook instance will not register with the proxy.
Optional. If true, deletion protection will be enabled for this Workbench Instance. If false, deletion protection will be disabled for this Workbench Instance.
Optional. Flag to enable managed end user credentials for the instance.
Optional. Flag that specifies that a notebook can be accessed with third party identity provider.
The definition of how to configure a VM instance outside of Resources and Identity.
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" }
Output only. Instance health_state.
Output only. Unique ID of the resource.
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.
Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
Output only. Identifier. The name of this notebook instance. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Output only. The proxy endpoint that is used to access the Jupyter notebook.
Output only. Reserved for future use for Zone Isolation.
Output only. Reserved for future use for Zone Separation.
Output only. The state of this instance.
Output only. The workforce pools proxy endpoint that is used to access the Jupyter notebook.
Output only. Instance update time.
Output only. The upgrade history of this instance.
Response
Successful response
This resource represents a long-running operation that is the result of a network API call.
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.
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.
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.
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}.
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-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/notebookswas removed from the endpoint's security schemeOauth2
1 more change in this revision
- info