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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The resource name of the NotebookRuntime.
createTimestring (google-datetime)Output only. Timestamp when this NotebookRuntime was created.
dataPersistentDiskSpecobjectOutput only. The specification of persistent disk attached to the notebook runtime as data disk storage. (id: GoogleCloudAiplatformV1PersistentDiskSpec)
descriptionstringThe description of the NotebookRuntime.
displayNamestringRequired. The display name of the NotebookRuntime. The name can be up to 128 characters long and can consist of any UTF-8 characters.
encryptionSpecobjectOutput only. Customer-managed encryption key spec for the notebook runtime. (id: GoogleCloudAiplatformV1EncryptionSpec)
eucConfigobjectOutput only. EUC configuration of the notebook runtime. (id: GoogleCloudAiplatformV1NotebookEucConfig)
expirationTimestring (google-datetime)Output 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.
idleShutdownConfigobjectOutput only. The idle shutdown configuration of the notebook runtime. (id: GoogleCloudAiplatformV1NotebookIdleShutdownConfig)
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.
machineSpecobjectOutput only. The specification of a single machine used by the notebook runtime. (id: GoogleCloudAiplatformV1MachineSpec)
networkSpecobjectOutput only. Network spec of the notebook runtime. (id: GoogleCloudAiplatformV1NetworkSpec)
networkTagsarrayOptional. The Compute Engine tags to add to runtime (see Tagging instances).
notebookRuntimeTemplateRefobjectOutput only. The pointer to NotebookRuntimeTemplate this NotebookRuntime is created from. (id: GoogleCloudAiplatformV1NotebookRuntimeTemplateRef)
notebookRuntimeTypestringOutput only. The type of the notebook runtime.
proxyUristringOutput only. The proxy endpoint used to access the NotebookRuntime.
reservationAffinityobjectOutput only. Reservation Affinity of the notebook runtime. (id: GoogleCloudAiplatformV1NotebookReservationAffinity)
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. Deprecated: This field is no longer used and the "Vertex AI Notebook Service Account" (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is used for the runtime workload identity. See https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account for more details. The service account that the NotebookRuntime workload runs as.
shieldedVmConfigobjectOutput only. Runtime Shielded VM spec. (id: GoogleCloudAiplatformV1ShieldedVmConfig)
softwareConfigobjectOutput only. Software config of the notebook runtime. (id: GoogleCloudAiplatformV1NotebookSoftwareConfig)
updateTimestring (google-datetime)Output only. Timestamp when this NotebookRuntime was most recently updated.
versionstringOutput only. The VM os image version of NotebookRuntime.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, notebookRuntimesIdGets a NotebookRuntime.
listselectprojectsId, locationsIdfilter, pageSize, pageToken, readMask, orderByLists NotebookRuntimes in a Location.
deletedeleteprojectsId, locationsId, notebookRuntimesIdDeletes a NotebookRuntime.
assignexecprojectsId, locationsIdAssigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.
upgradeexecprojectsId, locationsId, notebookRuntimesIdUpgrades a NotebookRuntime.
startexecprojectsId, locationsId, notebookRuntimesIdStarts a NotebookRuntime.
stopexecprojectsId, locationsId, notebookRuntimesIdStops a NotebookRuntime.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
notebookRuntimesIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
readMaskstring (google-fieldmask)

SELECT examples

Gets a NotebookRuntime.

SELECT
name,
createTime,
dataPersistentDiskSpec,
description,
displayName,
encryptionSpec,
eucConfig,
expirationTime,
healthState,
idleShutdownConfig,
isUpgradable,
labels,
machineSpec,
networkSpec,
networkTags,
notebookRuntimeTemplateRef,
notebookRuntimeType,
proxyUri,
reservationAffinity,
runtimeState,
runtimeUser,
satisfiesPzi,
satisfiesPzs,
serviceAccount,
shieldedVmConfig,
softwareConfig,
updateTime,
version
FROM google.aiplatform.notebook_runtimes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND notebookRuntimesId = '{{ notebookRuntimesId }}' -- required;

DELETE examples

Deletes a NotebookRuntime.

DELETE FROM google.aiplatform.notebook_runtimes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND notebookRuntimesId = '{{ notebookRuntimesId }}' --required;

Lifecycle Methods

Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.

EXEC google.aiplatform.notebook_runtimes.assign 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"notebookRuntimeTemplate": "{{ notebookRuntimeTemplate }}",
"notebookRuntime": "{{ notebookRuntime }}",
"notebookRuntimeId": "{{ notebookRuntimeId }}"
}';