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
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The resource name of the NotebookRuntimeTemplate. |
createTime | string (google-datetime) | Output only. Timestamp when this NotebookRuntimeTemplate was created. |
dataPersistentDiskSpec | object | Optional. The specification of persistent disk attached to the runtime as data disk storage. (id: GoogleCloudAiplatformV1PersistentDiskSpec) |
description | string | The description of the NotebookRuntimeTemplate. |
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 | Customer-managed encryption key spec for the notebook runtime. (id: GoogleCloudAiplatformV1EncryptionSpec) |
etag | string | Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
eucConfig | object | EUC configuration of the NotebookRuntimeTemplate. (id: GoogleCloudAiplatformV1NotebookEucConfig) |
idleShutdownConfig | object | The idle shutdown configuration of NotebookRuntimeTemplate. This config will only be set when idle shutdown is enabled. (id: GoogleCloudAiplatformV1NotebookIdleShutdownConfig) |
isDefault | boolean | Output only. Deprecated: This field has no behavior. Use notebook_runtime_type = 'ONE_CLICK' instead. 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 | Optional. Immutable. The specification of a single machine for the template. (id: GoogleCloudAiplatformV1MachineSpec) |
networkSpec | object | Optional. Network spec. (id: GoogleCloudAiplatformV1NetworkSpec) |
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. |
reservationAffinity | object | Optional. Reservation Affinity of the notebook runtime template. (id: GoogleCloudAiplatformV1NotebookReservationAffinity) |
serviceAccount | string | Deprecated: This field is ignored 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. For NotebookExecutionJob, use NotebookExecutionJob.service_account instead. 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 | Optional. Immutable. Runtime Shielded VM spec. (id: GoogleCloudAiplatformV1ShieldedVmConfig) |
softwareConfig | object | Optional. The notebook software configuration of the notebook runtime. (id: GoogleCloudAiplatformV1NotebookSoftwareConfig) |
updateTime | string (google-datetime) | Output only. Timestamp when this NotebookRuntimeTemplate was most recently updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The resource name of the NotebookRuntimeTemplate. |
createTime | string (google-datetime) | Output only. Timestamp when this NotebookRuntimeTemplate was created. |
dataPersistentDiskSpec | object | Optional. The specification of persistent disk attached to the runtime as data disk storage. (id: GoogleCloudAiplatformV1PersistentDiskSpec) |
description | string | The description of the NotebookRuntimeTemplate. |
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 | Customer-managed encryption key spec for the notebook runtime. (id: GoogleCloudAiplatformV1EncryptionSpec) |
etag | string | Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
eucConfig | object | EUC configuration of the NotebookRuntimeTemplate. (id: GoogleCloudAiplatformV1NotebookEucConfig) |
idleShutdownConfig | object | The idle shutdown configuration of NotebookRuntimeTemplate. This config will only be set when idle shutdown is enabled. (id: GoogleCloudAiplatformV1NotebookIdleShutdownConfig) |
isDefault | boolean | Output only. Deprecated: This field has no behavior. Use notebook_runtime_type = 'ONE_CLICK' instead. 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 | Optional. Immutable. The specification of a single machine for the template. (id: GoogleCloudAiplatformV1MachineSpec) |
networkSpec | object | Optional. Network spec. (id: GoogleCloudAiplatformV1NetworkSpec) |
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. |
reservationAffinity | object | Optional. Reservation Affinity of the notebook runtime template. (id: GoogleCloudAiplatformV1NotebookReservationAffinity) |
serviceAccount | string | Deprecated: This field is ignored 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. For NotebookExecutionJob, use NotebookExecutionJob.service_account instead. 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 | Optional. Immutable. Runtime Shielded VM spec. (id: GoogleCloudAiplatformV1ShieldedVmConfig) |
softwareConfig | object | Optional. The notebook software configuration of the notebook runtime. (id: GoogleCloudAiplatformV1NotebookSoftwareConfig) |
updateTime | string (google-datetime) | Output only. Timestamp when this NotebookRuntimeTemplate was most recently updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , notebookRuntimeTemplatesId | Gets a NotebookRuntimeTemplate. | |
list | select | projectsId , locationsId | filter , pageSize , pageToken , readMask , orderBy | Lists NotebookRuntimeTemplates in a Location. |
create | insert | projectsId , locationsId | notebookRuntimeTemplateId | Creates a NotebookRuntimeTemplate. |
patch | update | projectsId , locationsId , notebookRuntimeTemplatesId | updateMask | Updates a NotebookRuntimeTemplate. |
delete | delete | projectsId , locationsId , notebookRuntimeTemplatesId | Deletes a NotebookRuntimeTemplate. |
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.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
notebookRuntimeTemplatesId | string | |
projectsId | string | |
filter | string | |
notebookRuntimeTemplateId | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
readMask | string (google-fieldmask) | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets a NotebookRuntimeTemplate.
SELECT
name,
createTime,
dataPersistentDiskSpec,
description,
displayName,
encryptionSpec,
etag,
eucConfig,
idleShutdownConfig,
isDefault,
labels,
machineSpec,
networkSpec,
networkTags,
notebookRuntimeType,
reservationAffinity,
serviceAccount,
shieldedVmConfig,
softwareConfig,
updateTime
FROM google.aiplatform.notebook_runtime_templates
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND notebookRuntimeTemplatesId = '{{ notebookRuntimeTemplatesId }}' -- required;
Lists NotebookRuntimeTemplates in a Location.
SELECT
name,
createTime,
dataPersistentDiskSpec,
description,
displayName,
encryptionSpec,
etag,
eucConfig,
idleShutdownConfig,
isDefault,
labels,
machineSpec,
networkSpec,
networkTags,
notebookRuntimeType,
reservationAffinity,
serviceAccount,
shieldedVmConfig,
softwareConfig,
updateTime
FROM google.aiplatform.notebook_runtime_templates
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND readMask = '{{ readMask }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- create
- Manifest
Creates a NotebookRuntimeTemplate.
INSERT INTO google.aiplatform.notebook_runtime_templates (
data__name,
data__displayName,
data__description,
data__machineSpec,
data__dataPersistentDiskSpec,
data__networkSpec,
data__serviceAccount,
data__etag,
data__labels,
data__idleShutdownConfig,
data__eucConfig,
data__notebookRuntimeType,
data__shieldedVmConfig,
data__networkTags,
data__reservationAffinity,
data__encryptionSpec,
data__softwareConfig,
projectsId,
locationsId,
notebookRuntimeTemplateId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ description }}',
'{{ machineSpec }}',
'{{ dataPersistentDiskSpec }}',
'{{ networkSpec }}',
'{{ serviceAccount }}',
'{{ etag }}',
'{{ labels }}',
'{{ idleShutdownConfig }}',
'{{ eucConfig }}',
'{{ notebookRuntimeType }}',
'{{ shieldedVmConfig }}',
'{{ networkTags }}',
'{{ reservationAffinity }}',
'{{ encryptionSpec }}',
'{{ softwareConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ notebookRuntimeTemplateId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: notebook_runtime_templates
props:
- name: projectsId
value: string
description: Required parameter for the notebook_runtime_templates resource.
- name: locationsId
value: string
description: Required parameter for the notebook_runtime_templates resource.
- name: name
value: string
description: >
The resource name of the NotebookRuntimeTemplate.
- name: displayName
value: string
description: >
Required. The display name of the NotebookRuntimeTemplate. The name can be up to 128 characters long and can consist of any UTF-8 characters.
- name: description
value: string
description: >
The description of the NotebookRuntimeTemplate.
- name: machineSpec
value: object
description: >
Optional. Immutable. The specification of a single machine for the template.
- name: dataPersistentDiskSpec
value: object
description: >
Optional. The specification of persistent disk attached to the runtime as data disk storage.
- name: networkSpec
value: object
description: >
Optional. Network spec.
- name: serviceAccount
value: string
description: >
Deprecated: This field is ignored 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. For NotebookExecutionJob, use NotebookExecutionJob.service_account instead. 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](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
- name: etag
value: string
description: >
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
- name: labels
value: object
description: >
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.
- name: idleShutdownConfig
value: object
description: >
The idle shutdown configuration of NotebookRuntimeTemplate. This config will only be set when idle shutdown is enabled.
- name: eucConfig
value: object
description: >
EUC configuration of the NotebookRuntimeTemplate.
- name: notebookRuntimeType
value: string
description: >
Optional. Immutable. The type of the notebook runtime template.
valid_values: ['NOTEBOOK_RUNTIME_TYPE_UNSPECIFIED', 'USER_DEFINED', 'ONE_CLICK']
- name: shieldedVmConfig
value: object
description: >
Optional. Immutable. Runtime Shielded VM spec.
- name: networkTags
value: array
description: >
Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
- name: reservationAffinity
value: object
description: >
Optional. Reservation Affinity of the notebook runtime template.
- name: encryptionSpec
value: object
description: >
Customer-managed encryption key spec for the notebook runtime.
- name: softwareConfig
value: object
description: >
Optional. The notebook software configuration of the notebook runtime.
- name: notebookRuntimeTemplateId
value: string
UPDATE
examples
- patch
Updates a NotebookRuntimeTemplate.
UPDATE google.aiplatform.notebook_runtime_templates
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__machineSpec = '{{ machineSpec }}',
data__dataPersistentDiskSpec = '{{ dataPersistentDiskSpec }}',
data__networkSpec = '{{ networkSpec }}',
data__serviceAccount = '{{ serviceAccount }}',
data__etag = '{{ etag }}',
data__labels = '{{ labels }}',
data__idleShutdownConfig = '{{ idleShutdownConfig }}',
data__eucConfig = '{{ eucConfig }}',
data__notebookRuntimeType = '{{ notebookRuntimeType }}',
data__shieldedVmConfig = '{{ shieldedVmConfig }}',
data__networkTags = '{{ networkTags }}',
data__reservationAffinity = '{{ reservationAffinity }}',
data__encryptionSpec = '{{ encryptionSpec }}',
data__softwareConfig = '{{ softwareConfig }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND notebookRuntimeTemplatesId = '{{ notebookRuntimeTemplatesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
dataPersistentDiskSpec,
description,
displayName,
encryptionSpec,
etag,
eucConfig,
idleShutdownConfig,
isDefault,
labels,
machineSpec,
networkSpec,
networkTags,
notebookRuntimeType,
reservationAffinity,
serviceAccount,
shieldedVmConfig,
softwareConfig,
updateTime;
DELETE
examples
- delete
Deletes a NotebookRuntimeTemplate.
DELETE FROM google.aiplatform.notebook_runtime_templates
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND notebookRuntimeTemplatesId = '{{ notebookRuntimeTemplatesId }}' --required;