notebook_runtime_templates
Creates, updates, deletes, gets or lists a notebook_runtime_templates
resource.
Overview
Name | notebook_runtime_templates |
Type | Resource |
Id | google.aiplatform.notebook_runtime_templates |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The resource name of the NotebookRuntimeTemplate. |
description | string | The description of the NotebookRuntimeTemplate. |
createTime | string | Output only. Timestamp when this NotebookRuntimeTemplate was created. |
dataPersistentDiskSpec | object | Represents the spec of persistent disk options. |
displayName | string | Required. The display name of the NotebookRuntimeTemplate. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
encryptionSpec | object | Represents a customer-managed encryption key spec that can be applied to a top-level resource. |
etag | string | Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
eucConfig | object | The euc configuration of NotebookRuntimeTemplate. |
idleShutdownConfig | object | The idle shutdown configuration of NotebookRuntimeTemplate, which contains the idle_timeout as required field. |
isDefault | boolean | Output only. The default template to use if not specified. |
labels | object | The 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. |
machineSpec | object | Specification of a single machine. |
networkSpec | object | Network spec. |
networkTags | array | Optional. The Compute Engine tags to add to runtime (see Tagging instances). |
notebookRuntimeType | string | Optional. Immutable. The type of the notebook runtime template. |
serviceAccount | string | The 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. |
shieldedVmConfig | object | A set of Shielded Instance options. See Images using supported Shielded VM features. |
updateTime | string | Output only. Timestamp when this NotebookRuntimeTemplate was most recently updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, notebookRuntimeTemplatesId, projectsId | Gets a NotebookRuntimeTemplate. |
list | SELECT | locationsId, projectsId | Lists NotebookRuntimeTemplates in a Location. |
create | INSERT | locationsId, projectsId | Creates a NotebookRuntimeTemplate. |
delete | DELETE | locationsId, notebookRuntimeTemplatesId, projectsId | Deletes a NotebookRuntimeTemplate. |
patch | UPDATE | locationsId, notebookRuntimeTemplatesId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: serviceAccount
value: string
- name: encryptionSpec
value:
- name: kmsKeyName
value: string
- name: name
value: string
- name: dataPersistentDiskSpec
value:
- name: diskSizeGb
value: string
- name: diskType
value: string
- name: labels
value: object
- name: shieldedVmConfig
value:
- name: enableSecureBoot
value: boolean
- name: displayName
value: string
- name: networkTags
value:
- string
- name: machineSpec
value:
- name: acceleratorCount
value: integer
- name: tpuTopology
value: string
- name: machineType
value: string
- name: acceleratorType
value: string
- name: reservationAffinity
value:
- name: reservationAffinityType
value: string
- name: values
value:
- string
- name: key
value: string
- name: description
value: string
- name: networkSpec
value:
- name: enableInternetAccess
value: boolean
- name: subnetwork
value: string
- name: network
value: string
- name: updateTime
value: string
- name: idleShutdownConfig
value:
- name: idleShutdownDisabled
value: boolean
- name: idleTimeout
value: string
- name: notebookRuntimeType
value: string
- name: isDefault
value: boolean
- name: etag
value: string
- name: eucConfig
value:
- name: eucDisabled
value: boolean
- name: bypassActasCheck
value: boolean
- name: createTime
value: string
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 }}';