Skip to main content

notebook_runtime_templates

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

Overview

Namenotebook_runtime_templates
TypeResource
Idgoogle.aiplatform.notebook_runtime_templates

Fields

NameDatatypeDescription
namestringThe resource name of the NotebookRuntimeTemplate.
descriptionstringThe description of the NotebookRuntimeTemplate.
createTimestringOutput only. Timestamp when this NotebookRuntimeTemplate was created.
dataPersistentDiskSpecobjectRepresents the spec of persistent disk options.
displayNamestringRequired. The display name of the NotebookRuntimeTemplate. 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.
etagstringUsed to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
eucConfigobjectThe euc configuration of NotebookRuntimeTemplate.
idleShutdownConfigobjectThe idle shutdown configuration of NotebookRuntimeTemplate, which contains the idle_timeout as required field.
isDefaultbooleanOutput only. The default template to use if not specified.
labelsobjectThe labels with user-defined metadata to organize the NotebookRuntimeTemplates. 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. See https://goo.gl/xmQnxf for more information and examples of labels.
machineSpecobjectSpecification of a single machine.
networkSpecobjectNetwork spec.
networkTagsarrayOptional. The Compute Engine tags to add to runtime (see Tagging instances).
notebookRuntimeTypestringOptional. Immutable. The type of the notebook runtime template.
serviceAccountstringThe service account that the runtime workload runs as. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.
shieldedVmConfigobjectA set of Shielded Instance options. See Images using supported Shielded VM features.
updateTimestringOutput only. Timestamp when this NotebookRuntimeTemplate was most recently updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, notebookRuntimeTemplatesId, projectsIdGets a NotebookRuntimeTemplate.
listSELECTlocationsId, projectsIdLists NotebookRuntimeTemplates in a Location.
createINSERTlocationsId, projectsIdCreates a NotebookRuntimeTemplate.
deleteDELETElocationsId, notebookRuntimeTemplatesId, projectsIdDeletes a NotebookRuntimeTemplate.
patchUPDATElocationsId, notebookRuntimeTemplatesId, projectsIdUpdates a NotebookRuntimeTemplate.

SELECT examples

Lists NotebookRuntimeTemplates in a Location.

SELECT
name,
description,
createTime,
dataPersistentDiskSpec,
displayName,
encryptionSpec,
etag,
eucConfig,
idleShutdownConfig,
isDefault,
labels,
machineSpec,
networkSpec,
networkTags,
notebookRuntimeType,
serviceAccount,
shieldedVmConfig,
updateTime
FROM google.aiplatform.notebook_runtime_templates
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new notebook_runtime_templates resource.

/*+ create */
INSERT INTO google.aiplatform.notebook_runtime_templates (
locationsId,
projectsId,
serviceAccount,
encryptionSpec,
name,
dataPersistentDiskSpec,
labels,
shieldedVmConfig,
displayName,
networkTags,
machineSpec,
description,
networkSpec,
idleShutdownConfig,
notebookRuntimeType,
etag,
eucConfig
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ serviceAccount }}',
'{{ encryptionSpec }}',
'{{ name }}',
'{{ dataPersistentDiskSpec }}',
'{{ labels }}',
'{{ shieldedVmConfig }}',
'{{ displayName }}',
'{{ networkTags }}',
'{{ machineSpec }}',
'{{ description }}',
'{{ networkSpec }}',
'{{ idleShutdownConfig }}',
'{{ notebookRuntimeType }}',
'{{ etag }}',
'{{ eucConfig }}'
;

UPDATE example

Updates a notebook_runtime_templates resource.

/*+ update */
UPDATE google.aiplatform.notebook_runtime_templates
SET
serviceAccount = '{{ serviceAccount }}',
encryptionSpec = '{{ encryptionSpec }}',
name = '{{ name }}',
dataPersistentDiskSpec = '{{ dataPersistentDiskSpec }}',
labels = '{{ labels }}',
shieldedVmConfig = '{{ shieldedVmConfig }}',
displayName = '{{ displayName }}',
networkTags = '{{ networkTags }}',
machineSpec = '{{ machineSpec }}',
description = '{{ description }}',
networkSpec = '{{ networkSpec }}',
idleShutdownConfig = '{{ idleShutdownConfig }}',
notebookRuntimeType = '{{ notebookRuntimeType }}',
etag = '{{ etag }}',
eucConfig = '{{ eucConfig }}'
WHERE
locationsId = '{{ locationsId }}'
AND notebookRuntimeTemplatesId = '{{ notebookRuntimeTemplatesId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified notebook_runtime_templates resource.

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