Skip to main content

notebook_runtimes

Creates, updates, deletes, gets or lists a notebook_runtimes resource.

Overview

Namenotebook_runtimes
TypeResource
Idgoogle.aiplatform.notebook_runtimes

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the NotebookRuntime.
descriptionstringThe description of the NotebookRuntime.
createTimestringOutput only. Timestamp when this NotebookRuntime was created.
displayNamestringRequired. The display name of the NotebookRuntime. The name can be up to 128 characters long and can consist of any UTF-8 characters.
encryptionSpecobjectRepresents a customer-managed encryption key spec that can be applied to a top-level resource.
expirationTimestringOutput only. Timestamp when this NotebookRuntime will be expired: 1. System Predefined NotebookRuntime: 24 hours after creation. After expiration, system predifined runtime will be deleted. 2. User created NotebookRuntime: 6 months after last upgrade. After expiration, user created runtime will be stopped and allowed for upgrade.
healthStatestringOutput only. The health state of the NotebookRuntime.
idleShutdownConfigobjectThe idle shutdown configuration of NotebookRuntimeTemplate, which contains the idle_timeout as required field.
isUpgradablebooleanOutput only. Whether NotebookRuntime is upgradable.
labelsobjectThe labels with user-defined metadata to organize your NotebookRuntime. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one NotebookRuntime (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. Following system labels exist for NotebookRuntime: "aiplatform.googleapis.com/notebook_runtime_gce_instance_id": output only, its value is the Compute Engine instance id. "aiplatform.googleapis.com/colab_enterprise_entry_service": its value is either "bigquery" or "vertex"; if absent, it should be "vertex". This is to describe the entry service, either BigQuery or Vertex.
networkTagsarrayOptional. The Compute Engine tags to add to runtime (see Tagging instances).
notebookRuntimeTemplateRefobjectPoints to a NotebookRuntimeTemplateRef.
notebookRuntimeTypestringOutput only. The type of the notebook runtime.
proxyUristringOutput only. The proxy endpoint used to access the NotebookRuntime.
runtimeStatestringOutput only. The runtime (instance) state of the NotebookRuntime.
runtimeUserstringRequired. The user email of the NotebookRuntime.
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
serviceAccountstringOutput only. The service account that the NotebookRuntime workload runs as.
updateTimestringOutput only. Timestamp when this NotebookRuntime was most recently updated.
versionstringOutput only. The VM os image version of NotebookRuntime.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, notebookRuntimesId, projectsIdGets a NotebookRuntime.
listSELECTlocationsId, projectsIdLists NotebookRuntimes in a Location.
deleteDELETElocationsId, notebookRuntimesId, projectsIdDeletes a NotebookRuntime.
assignEXEClocationsId, projectsIdAssigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.
startEXEClocationsId, notebookRuntimesId, projectsIdStarts a NotebookRuntime.
upgradeEXEClocationsId, notebookRuntimesId, projectsIdUpgrades a NotebookRuntime.

SELECT examples

Lists NotebookRuntimes in a Location.

SELECT
name,
description,
createTime,
displayName,
encryptionSpec,
expirationTime,
healthState,
idleShutdownConfig,
isUpgradable,
labels,
networkTags,
notebookRuntimeTemplateRef,
notebookRuntimeType,
proxyUri,
runtimeState,
runtimeUser,
satisfiesPzi,
satisfiesPzs,
serviceAccount,
updateTime,
version
FROM google.aiplatform.notebook_runtimes
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified notebook_runtimes resource.

/*+ delete */
DELETE FROM google.aiplatform.notebook_runtimes
WHERE locationsId = '{{ locationsId }}'
AND notebookRuntimesId = '{{ notebookRuntimesId }}'
AND projectsId = '{{ projectsId }}';