Resource: Instance
The definition of a notebook instance.
JSON representation |
---|
{ "name": string, "postStartupScript": string, "proxyUri": string, "instanceOwners": [ string ], "serviceAccount": string, "serviceAccountScopes": [ string ], "machineType": string, "acceleratorConfig": { object ( |
Fields | |
---|---|
name |
Output only. The name of this notebook instance. Format: |
post |
Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path ( |
proxy |
Output only. The proxy endpoint that is used to access the Jupyter notebook. |
instance |
Input only. The owner of this instance after creation. Format: Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance. |
service |
The service account on this instance, giving access to other Google Cloud services. 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. |
service |
Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following scopes are defined: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute |
machine |
Required. The Compute Engine machine type of this instance. |
accelerator |
The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the |
state |
Output only. The state of this instance. |
install |
Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs. |
custom |
Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers. |
boot |
Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk ( |
boot |
Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100. |
data |
Input only. The type of the data disk attached to this instance, defaults to standard persistent disk ( |
data |
Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100. |
no |
Input only. If true, the data disk will not be auto deleted when deleting the instance. |
disk |
Input only. Disk encryption method used on the boot and data disks, defaults to GMEK. |
kms |
Input only. The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. Format: Learn more about using your own encryption keys. |
disks[] |
Output only. Attached disks to notebook instance. |
shielded |
Optional. Shielded VM configuration. Images using supported Shielded VM features. |
no |
If true, no external IP will be assigned to this instance. |
no |
If true, the notebook instance will not register with the proxy. |
network |
The name of the VPC that this instance is in. Format: |
subnet |
The name of the subnet that this instance is in. Format: |
labels |
Labels to apply to this instance. These can be later modified by the setLabels method. An object containing a list of |
metadata |
Custom metadata to apply to this instance. For example, to specify a Cloud Storage bucket for automatic backup, you can use the An object containing a list of |
tags[] |
Optional. The Compute Engine network tags to add to runtime (see Add network tags). |
upgrade |
The upgrade history of this instance. |
nic |
Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. |
reservation |
Optional. The optional reservation affinity. Setting this field will apply the specified Zonal Compute Reservation to this notebook instance. |
creator |
Output only. Email address of entity that sent original instances.create request. |
can |
Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward |
create |
Output only. Instance creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
update |
Output only. Instance update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
instance |
Output only. Checks how feasible a migration from UmN to WbI is. |
Union field environment . Type of the environment; can be one of VM image, or container image. environment can be only one of the following: |
|
vm |
Use a Compute Engine VM image to start the notebook instance. |
container |
Use a container image to start the notebook instance. |
migrated |
Output only. Bool indicating whether this notebook has been migrated to a Workbench Instance |
AcceleratorConfig
Definition of a hardware accelerator. Note that not all combinations of type
and coreCount
are valid. See GPUs on Compute Engine to find a valid combination. TPUs are not supported.
JSON representation |
---|
{
"type": enum ( |
Fields | |
---|---|
type |
Type of this accelerator. |
core |
Count of cores of this accelerator. |
AcceleratorType
Definition of the types of hardware accelerators that can be used on this instance.
Enums | |
---|---|
ACCELERATOR_TYPE_UNSPECIFIED |
Accelerator type is not specified. |
NVIDIA_TESLA_K80 |
Accelerator type is Nvidia Tesla K80. |
NVIDIA_TESLA_P100 |
Accelerator type is Nvidia Tesla P100. |
NVIDIA_TESLA_V100 |
Accelerator type is Nvidia Tesla V100. |
NVIDIA_TESLA_P4 |
Accelerator type is Nvidia Tesla P4. |
NVIDIA_TESLA_T4 |
Accelerator type is Nvidia Tesla T4. |
NVIDIA_TESLA_A100 |
Accelerator type is Nvidia Tesla A100. |
NVIDIA_L4 |
Accelerator type is Nvidia Tesla L4. |
NVIDIA_A100_80GB |
Accelerator type is Nvidia Tesla A100 80GB. |
NVIDIA_TESLA_T4_VWS |
Accelerator type is NVIDIA Tesla T4 Virtual Workstations. |
NVIDIA_TESLA_P100_VWS |
Accelerator type is NVIDIA Tesla P100 Virtual Workstations. |
NVIDIA_TESLA_P4_VWS |
Accelerator type is NVIDIA Tesla P4 Virtual Workstations. |
NVIDIA_H100_80GB |
Accelerator type is NVIDIA H100 80GB. |
NVIDIA_H100_MEGA_80GB |
Accelerator type is NVIDIA H100 Mega 80GB. |
TPU_V2 |
(Coming soon) Accelerator type is TPU V2. |
TPU_V3 |
(Coming soon) Accelerator type is TPU V3. |
State
The definition of the states of this instance.
Enums | |
---|---|
STATE_UNSPECIFIED |
State is not specified. |
STARTING |
The control logic is starting the instance. |
PROVISIONING |
The control logic is installing required frameworks and registering the instance with notebook proxy |
ACTIVE |
The instance is running. |
STOPPING |
The control logic is stopping the instance. |
STOPPED |
The instance is stopped. |
DELETED |
The instance is deleted. |
UPGRADING |
The instance is upgrading. |
INITIALIZING |
The instance is being created. |
REGISTERING |
The instance is getting registered. |
SUSPENDING |
The instance is suspending. |
SUSPENDED |
The instance is suspended. |
DiskType
Possible disk types for notebook instances.
Enums | |
---|---|
DISK_TYPE_UNSPECIFIED |
Disk type not set. |
PD_STANDARD |
Standard persistent disk type. |
PD_SSD |
SSD persistent disk type. |
PD_BALANCED |
Balanced persistent disk type. |
PD_EXTREME |
Extreme persistent disk type. |
DiskEncryption
Definition of the disk encryption options.
Enums | |
---|---|
DISK_ENCRYPTION_UNSPECIFIED |
Disk encryption is not specified. |
GMEK |
Use Google managed encryption keys to encrypt the boot disk. |
CMEK |
Use customer managed encryption keys to encrypt the boot disk. |
Disk
An instance-attached disk resource.
JSON representation |
---|
{
"autoDelete": boolean,
"boot": boolean,
"deviceName": string,
"diskSizeGb": string,
"guestOsFeatures": [
{
object ( |
Fields | |
---|---|
auto |
Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). |
boot |
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. |
device |
Indicates a unique device name of your choice that is reflected into the If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks. |
disk |
Indicates the size of the disk in base-2 GB. |
guest |
Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
index |
A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number. |
interface |
Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values:
|
kind |
Type of the resource. Always compute#attachedDisk for attached disks. |
licenses[] |
A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images. |
mode |
The mode in which to attach this disk, either
|
source |
Indicates a valid partial or full URL to an existing Persistent Disk resource. |
type |
Indicates the type of the disk, either
|
GuestOsFeature
Guest OS features for boot disk.
JSON representation |
---|
{ "type": string } |
Fields | |
---|---|
type |
The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. Valid values:
|
ShieldedInstanceConfig
A set of Shielded Instance options. See Images using supported Shielded VM features. Not all combinations are valid.
JSON representation |
---|
{ "enableSecureBoot": boolean, "enableVtpm": boolean, "enableIntegrityMonitoring": boolean } |
Fields | |
---|---|
enable |
Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails. Disabled by default. |
enable |
Defines whether the instance has the vTPM enabled. Enabled by default. |
enable |
Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created. Enabled by default. |
UpgradeHistoryEntry
The entry of VM image upgrade history.
JSON representation |
---|
{ "snapshot": string, "vmImage": string, "containerImage": string, "framework": string, "version": string, "state": enum ( |
Fields | |
---|---|
snapshot |
The snapshot of the boot disk of this notebook instance before upgrade. |
vm |
The VM image before this instance upgrade. |
container |
The container image before this instance upgrade. |
framework |
The framework of this notebook instance. |
version |
The version of the notebook instance before this upgrade. |
state |
The state of this instance upgrade history entry. |
create |
The time that this instance upgrade history entry is created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
targetImage |
Target VM Image. Format: |
action |
Action. Rolloback or Upgrade. |
target |
Target VM Version, like m63. |
State
The definition of the states of this upgrade history entry.
Enums | |
---|---|
STATE_UNSPECIFIED |
State is not specified. |
STARTED |
The instance upgrade is started. |
SUCCEEDED |
The instance upgrade is succeeded. |
FAILED |
The instance upgrade is failed. |
Action
The definition of operations of this upgrade history entry.
Enums | |
---|---|
ACTION_UNSPECIFIED |
Operation is not specified. |
UPGRADE |
Upgrade. |
ROLLBACK |
Rollback. |
NicType
The type of vNIC driver. Default should be UNSPECIFIED_NIC_TYPE.
Enums | |
---|---|
UNSPECIFIED_NIC_TYPE |
No type specified. |
VIRTIO_NET |
VIRTIO |
GVNIC |
GVNIC |
ReservationAffinity
Reservation Affinity for consuming Zonal reservation.
JSON representation |
---|
{
"consumeReservationType": enum ( |
Fields | |
---|---|
consume |
Optional. Type of reservation to consume |
key |
Optional. Corresponds to the label key of reservation resource. |
values[] |
Optional. Corresponds to the label values of reservation resource. |
Type
Indicates whether to consume capacity from an reservation or not.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Default type. |
NO_RESERVATION |
Do not consume from any allocated capacity. |
ANY_RESERVATION |
Consume any reservation available. |
SPECIFIC_RESERVATION |
Must consume from a specific reservation. Must specify key value fields for specifying the reservations. |
InstanceMigrationEligibility
InstanceMigrationEligibility represents the feasibility information of a migration from UmN to WbI.
JSON representation |
---|
{ "warnings": [ enum ( |
Fields | |
---|---|
warnings[] |
Output only. Certain configurations will be defaulted during the migration. |
errors[] |
Output only. Certain configurations make the UmN ineligible for an automatic migration. A manual migration is required. |
Warning
A migration warning message means certain configurations will be defaulted during the migration.
Enums | |
---|---|
WARNING_UNSPECIFIED |
Default type. |
UNSUPPORTED_MACHINE_TYPE |
The UmN uses an machine type that's unsupported in WbI. It will be migrated with the default machine type e2-standard-4. Users can change the machine type after the migration. |
UNSUPPORTED_ACCELERATOR_TYPE |
The UmN uses an accelerator type that's unsupported in WbI. It will be migrated without an accelerator. User can attach an accelerator after the migration. |
UNSUPPORTED_OS |
The UmN uses an operating system that's unsupported in WbI (e.g. Debian 10, Ubuntu). It will be replaced with Debian 11 in WbI. |
NO_REMOVE_DATA_DISK |
This UmN is configured with noRemoveDataDisk, which is no longer available in WbI. |
GCS_BACKUP |
This UmN is configured with the Cloud Storage backup feature, which is no longer available in WbI. |
POST_STARTUP_SCRIPT |
This UmN is configured with a post startup script. Please optionally provide the postStartupScriptOption for the migration. |
Error
A migration error message means certain configurations make the UmN ineligible for an automatic migration. A manual migration is required.
Enums | |
---|---|
ERROR_UNSPECIFIED |
Default type. |
DATAPROC_HUB |
The UmN uses Dataproc Hub and cannot be migrated. |
Methods |
|
---|---|
|
Creates a new Instance in a given project and location. |
|
Deletes a single Instance. |
|
Creates a Diagnostic File and runs Diagnostic Tool given an Instance. |
|
Gets details of a single Instance. |
|
Gets the access control policy for a resource. |
|
Checks whether a notebook instance is healthy. |
|
Checks whether a notebook instance is upgradable. |
|
Lists instances in a given project and location. |
|
Migrates an existing User-Managed Notebook to Workbench Instances. |
|
Registers an existing legacy notebook instance to the Notebooks API server. |
|
Allows notebook instances to report their latest instance information to the Notebooks API server. |
|
Resets a notebook instance. |
|
Rollbacks a notebook instance to the previous version. |
|
Updates the guest accelerators of a single Instance. |
|
Sets the access control policy on the specified resource. |
|
Replaces all the labels of an Instance. |
|
Updates the machine type of a single Instance. |
|
Starts a notebook instance. |
|
Stops a notebook instance. |
|
Returns permissions that a caller has on the specified resource. |
|
Update Notebook Instance configurations. |
|
Add/update metadata items for an instance. |
|
Updates the Shielded instance configuration of a single Instance. |
|
Upgrades a notebook instance to the latest version. |