gcp.notebooks.Runtime
Explore with Pulumi AI
A Cloud AI Platform Notebook runtime.
Note: Due to limitations of the Notebooks Runtime API, many fields in this resource do not properly detect drift. These fields will also not appear in state once imported.
To get more information about Runtime, see:
- API documentation
- How-to Guides
Example Usage
Notebook Runtime Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const runtime = new gcp.notebooks.Runtime("runtime", {
name: "notebooks-runtime",
location: "us-central1",
accessConfig: {
accessType: "SINGLE_USER",
runtimeOwner: "admin@hashicorptest.com",
},
virtualMachine: {
virtualMachineConfig: {
machineType: "n1-standard-4",
dataDisk: {
initializeParams: {
diskSizeGb: 100,
diskType: "PD_STANDARD",
},
},
},
},
});
import pulumi
import pulumi_gcp as gcp
runtime = gcp.notebooks.Runtime("runtime",
name="notebooks-runtime",
location="us-central1",
access_config=gcp.notebooks.RuntimeAccessConfigArgs(
access_type="SINGLE_USER",
runtime_owner="admin@hashicorptest.com",
),
virtual_machine=gcp.notebooks.RuntimeVirtualMachineArgs(
virtual_machine_config=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigArgs(
machine_type="n1-standard-4",
data_disk=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs(
initialize_params=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs(
disk_size_gb=100,
disk_type="PD_STANDARD",
),
),
),
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/notebooks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notebooks.NewRuntime(ctx, "runtime", ¬ebooks.RuntimeArgs{
Name: pulumi.String("notebooks-runtime"),
Location: pulumi.String("us-central1"),
AccessConfig: ¬ebooks.RuntimeAccessConfigArgs{
AccessType: pulumi.String("SINGLE_USER"),
RuntimeOwner: pulumi.String("admin@hashicorptest.com"),
},
VirtualMachine: ¬ebooks.RuntimeVirtualMachineArgs{
VirtualMachineConfig: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigArgs{
MachineType: pulumi.String("n1-standard-4"),
DataDisk: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs{
InitializeParams: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs{
DiskSizeGb: pulumi.Int(100),
DiskType: pulumi.String("PD_STANDARD"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var runtime = new Gcp.Notebooks.Runtime("runtime", new()
{
Name = "notebooks-runtime",
Location = "us-central1",
AccessConfig = new Gcp.Notebooks.Inputs.RuntimeAccessConfigArgs
{
AccessType = "SINGLE_USER",
RuntimeOwner = "admin@hashicorptest.com",
},
VirtualMachine = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineArgs
{
VirtualMachineConfig = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigArgs
{
MachineType = "n1-standard-4",
DataDisk = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs
{
InitializeParams = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs
{
DiskSizeGb = 100,
DiskType = "PD_STANDARD",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.notebooks.Runtime;
import com.pulumi.gcp.notebooks.RuntimeArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeAccessConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var runtime = new Runtime("runtime", RuntimeArgs.builder()
.name("notebooks-runtime")
.location("us-central1")
.accessConfig(RuntimeAccessConfigArgs.builder()
.accessType("SINGLE_USER")
.runtimeOwner("admin@hashicorptest.com")
.build())
.virtualMachine(RuntimeVirtualMachineArgs.builder()
.virtualMachineConfig(RuntimeVirtualMachineVirtualMachineConfigArgs.builder()
.machineType("n1-standard-4")
.dataDisk(RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.builder()
.initializeParams(RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs.builder()
.diskSizeGb("100")
.diskType("PD_STANDARD")
.build())
.build())
.build())
.build())
.build());
}
}
resources:
runtime:
type: gcp:notebooks:Runtime
properties:
name: notebooks-runtime
location: us-central1
accessConfig:
accessType: SINGLE_USER
runtimeOwner: admin@hashicorptest.com
virtualMachine:
virtualMachineConfig:
machineType: n1-standard-4
dataDisk:
initializeParams:
diskSizeGb: '100'
diskType: PD_STANDARD
Notebook Runtime Basic Gpu
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const runtimeGpu = new gcp.notebooks.Runtime("runtime_gpu", {
name: "notebooks-runtime-gpu",
location: "us-central1",
accessConfig: {
accessType: "SINGLE_USER",
runtimeOwner: "admin@hashicorptest.com",
},
softwareConfig: {
installGpuDriver: true,
},
virtualMachine: {
virtualMachineConfig: {
machineType: "n1-standard-4",
dataDisk: {
initializeParams: {
diskSizeGb: 100,
diskType: "PD_STANDARD",
},
},
acceleratorConfig: {
coreCount: 1,
type: "NVIDIA_TESLA_V100",
},
},
},
});
import pulumi
import pulumi_gcp as gcp
runtime_gpu = gcp.notebooks.Runtime("runtime_gpu",
name="notebooks-runtime-gpu",
location="us-central1",
access_config=gcp.notebooks.RuntimeAccessConfigArgs(
access_type="SINGLE_USER",
runtime_owner="admin@hashicorptest.com",
),
software_config=gcp.notebooks.RuntimeSoftwareConfigArgs(
install_gpu_driver=True,
),
virtual_machine=gcp.notebooks.RuntimeVirtualMachineArgs(
virtual_machine_config=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigArgs(
machine_type="n1-standard-4",
data_disk=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs(
initialize_params=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs(
disk_size_gb=100,
disk_type="PD_STANDARD",
),
),
accelerator_config=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs(
core_count=1,
type="NVIDIA_TESLA_V100",
),
),
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/notebooks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notebooks.NewRuntime(ctx, "runtime_gpu", ¬ebooks.RuntimeArgs{
Name: pulumi.String("notebooks-runtime-gpu"),
Location: pulumi.String("us-central1"),
AccessConfig: ¬ebooks.RuntimeAccessConfigArgs{
AccessType: pulumi.String("SINGLE_USER"),
RuntimeOwner: pulumi.String("admin@hashicorptest.com"),
},
SoftwareConfig: ¬ebooks.RuntimeSoftwareConfigArgs{
InstallGpuDriver: pulumi.Bool(true),
},
VirtualMachine: ¬ebooks.RuntimeVirtualMachineArgs{
VirtualMachineConfig: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigArgs{
MachineType: pulumi.String("n1-standard-4"),
DataDisk: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs{
InitializeParams: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs{
DiskSizeGb: pulumi.Int(100),
DiskType: pulumi.String("PD_STANDARD"),
},
},
AcceleratorConfig: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs{
CoreCount: pulumi.Int(1),
Type: pulumi.String("NVIDIA_TESLA_V100"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var runtimeGpu = new Gcp.Notebooks.Runtime("runtime_gpu", new()
{
Name = "notebooks-runtime-gpu",
Location = "us-central1",
AccessConfig = new Gcp.Notebooks.Inputs.RuntimeAccessConfigArgs
{
AccessType = "SINGLE_USER",
RuntimeOwner = "admin@hashicorptest.com",
},
SoftwareConfig = new Gcp.Notebooks.Inputs.RuntimeSoftwareConfigArgs
{
InstallGpuDriver = true,
},
VirtualMachine = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineArgs
{
VirtualMachineConfig = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigArgs
{
MachineType = "n1-standard-4",
DataDisk = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs
{
InitializeParams = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs
{
DiskSizeGb = 100,
DiskType = "PD_STANDARD",
},
},
AcceleratorConfig = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs
{
CoreCount = 1,
Type = "NVIDIA_TESLA_V100",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.notebooks.Runtime;
import com.pulumi.gcp.notebooks.RuntimeArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeAccessConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeSoftwareConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var runtimeGpu = new Runtime("runtimeGpu", RuntimeArgs.builder()
.name("notebooks-runtime-gpu")
.location("us-central1")
.accessConfig(RuntimeAccessConfigArgs.builder()
.accessType("SINGLE_USER")
.runtimeOwner("admin@hashicorptest.com")
.build())
.softwareConfig(RuntimeSoftwareConfigArgs.builder()
.installGpuDriver(true)
.build())
.virtualMachine(RuntimeVirtualMachineArgs.builder()
.virtualMachineConfig(RuntimeVirtualMachineVirtualMachineConfigArgs.builder()
.machineType("n1-standard-4")
.dataDisk(RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.builder()
.initializeParams(RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs.builder()
.diskSizeGb("100")
.diskType("PD_STANDARD")
.build())
.build())
.acceleratorConfig(RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs.builder()
.coreCount("1")
.type("NVIDIA_TESLA_V100")
.build())
.build())
.build())
.build());
}
}
resources:
runtimeGpu:
type: gcp:notebooks:Runtime
name: runtime_gpu
properties:
name: notebooks-runtime-gpu
location: us-central1
accessConfig:
accessType: SINGLE_USER
runtimeOwner: admin@hashicorptest.com
softwareConfig:
installGpuDriver: true
virtualMachine:
virtualMachineConfig:
machineType: n1-standard-4
dataDisk:
initializeParams:
diskSizeGb: '100'
diskType: PD_STANDARD
acceleratorConfig:
coreCount: '1'
type: NVIDIA_TESLA_V100
Notebook Runtime Basic Container
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const runtimeContainer = new gcp.notebooks.Runtime("runtime_container", {
name: "notebooks-runtime-container",
location: "us-central1",
accessConfig: {
accessType: "SINGLE_USER",
runtimeOwner: "admin@hashicorptest.com",
},
virtualMachine: {
virtualMachineConfig: {
machineType: "n1-standard-4",
dataDisk: {
initializeParams: {
diskSizeGb: 100,
diskType: "PD_STANDARD",
},
},
containerImages: [
{
repository: "gcr.io/deeplearning-platform-release/base-cpu",
tag: "latest",
},
{
repository: "gcr.io/deeplearning-platform-release/beam-notebooks",
tag: "latest",
},
],
},
},
});
import pulumi
import pulumi_gcp as gcp
runtime_container = gcp.notebooks.Runtime("runtime_container",
name="notebooks-runtime-container",
location="us-central1",
access_config=gcp.notebooks.RuntimeAccessConfigArgs(
access_type="SINGLE_USER",
runtime_owner="admin@hashicorptest.com",
),
virtual_machine=gcp.notebooks.RuntimeVirtualMachineArgs(
virtual_machine_config=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigArgs(
machine_type="n1-standard-4",
data_disk=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs(
initialize_params=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs(
disk_size_gb=100,
disk_type="PD_STANDARD",
),
),
container_images=[
gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs(
repository="gcr.io/deeplearning-platform-release/base-cpu",
tag="latest",
),
gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs(
repository="gcr.io/deeplearning-platform-release/beam-notebooks",
tag="latest",
),
],
),
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/notebooks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notebooks.NewRuntime(ctx, "runtime_container", ¬ebooks.RuntimeArgs{
Name: pulumi.String("notebooks-runtime-container"),
Location: pulumi.String("us-central1"),
AccessConfig: ¬ebooks.RuntimeAccessConfigArgs{
AccessType: pulumi.String("SINGLE_USER"),
RuntimeOwner: pulumi.String("admin@hashicorptest.com"),
},
VirtualMachine: ¬ebooks.RuntimeVirtualMachineArgs{
VirtualMachineConfig: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigArgs{
MachineType: pulumi.String("n1-standard-4"),
DataDisk: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs{
InitializeParams: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs{
DiskSizeGb: pulumi.Int(100),
DiskType: pulumi.String("PD_STANDARD"),
},
},
ContainerImages: notebooks.RuntimeVirtualMachineVirtualMachineConfigContainerImageArray{
¬ebooks.RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs{
Repository: pulumi.String("gcr.io/deeplearning-platform-release/base-cpu"),
Tag: pulumi.String("latest"),
},
¬ebooks.RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs{
Repository: pulumi.String("gcr.io/deeplearning-platform-release/beam-notebooks"),
Tag: pulumi.String("latest"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var runtimeContainer = new Gcp.Notebooks.Runtime("runtime_container", new()
{
Name = "notebooks-runtime-container",
Location = "us-central1",
AccessConfig = new Gcp.Notebooks.Inputs.RuntimeAccessConfigArgs
{
AccessType = "SINGLE_USER",
RuntimeOwner = "admin@hashicorptest.com",
},
VirtualMachine = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineArgs
{
VirtualMachineConfig = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigArgs
{
MachineType = "n1-standard-4",
DataDisk = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs
{
InitializeParams = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs
{
DiskSizeGb = 100,
DiskType = "PD_STANDARD",
},
},
ContainerImages = new[]
{
new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs
{
Repository = "gcr.io/deeplearning-platform-release/base-cpu",
Tag = "latest",
},
new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs
{
Repository = "gcr.io/deeplearning-platform-release/beam-notebooks",
Tag = "latest",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.notebooks.Runtime;
import com.pulumi.gcp.notebooks.RuntimeArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeAccessConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var runtimeContainer = new Runtime("runtimeContainer", RuntimeArgs.builder()
.name("notebooks-runtime-container")
.location("us-central1")
.accessConfig(RuntimeAccessConfigArgs.builder()
.accessType("SINGLE_USER")
.runtimeOwner("admin@hashicorptest.com")
.build())
.virtualMachine(RuntimeVirtualMachineArgs.builder()
.virtualMachineConfig(RuntimeVirtualMachineVirtualMachineConfigArgs.builder()
.machineType("n1-standard-4")
.dataDisk(RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.builder()
.initializeParams(RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs.builder()
.diskSizeGb("100")
.diskType("PD_STANDARD")
.build())
.build())
.containerImages(
RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs.builder()
.repository("gcr.io/deeplearning-platform-release/base-cpu")
.tag("latest")
.build(),
RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs.builder()
.repository("gcr.io/deeplearning-platform-release/beam-notebooks")
.tag("latest")
.build())
.build())
.build())
.build());
}
}
resources:
runtimeContainer:
type: gcp:notebooks:Runtime
name: runtime_container
properties:
name: notebooks-runtime-container
location: us-central1
accessConfig:
accessType: SINGLE_USER
runtimeOwner: admin@hashicorptest.com
virtualMachine:
virtualMachineConfig:
machineType: n1-standard-4
dataDisk:
initializeParams:
diskSizeGb: '100'
diskType: PD_STANDARD
containerImages:
- repository: gcr.io/deeplearning-platform-release/base-cpu
tag: latest
- repository: gcr.io/deeplearning-platform-release/beam-notebooks
tag: latest
Notebook Runtime Kernels
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const runtimeContainer = new gcp.notebooks.Runtime("runtime_container", {
name: "notebooks-runtime-kernel",
location: "us-central1",
accessConfig: {
accessType: "SINGLE_USER",
runtimeOwner: "admin@hashicorptest.com",
},
softwareConfig: {
kernels: [{
repository: "gcr.io/deeplearning-platform-release/base-cpu",
tag: "latest",
}],
},
virtualMachine: {
virtualMachineConfig: {
machineType: "n1-standard-4",
dataDisk: {
initializeParams: {
diskSizeGb: 100,
diskType: "PD_STANDARD",
},
},
},
},
labels: {
k: "val",
},
});
import pulumi
import pulumi_gcp as gcp
runtime_container = gcp.notebooks.Runtime("runtime_container",
name="notebooks-runtime-kernel",
location="us-central1",
access_config=gcp.notebooks.RuntimeAccessConfigArgs(
access_type="SINGLE_USER",
runtime_owner="admin@hashicorptest.com",
),
software_config=gcp.notebooks.RuntimeSoftwareConfigArgs(
kernels=[gcp.notebooks.RuntimeSoftwareConfigKernelArgs(
repository="gcr.io/deeplearning-platform-release/base-cpu",
tag="latest",
)],
),
virtual_machine=gcp.notebooks.RuntimeVirtualMachineArgs(
virtual_machine_config=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigArgs(
machine_type="n1-standard-4",
data_disk=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs(
initialize_params=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs(
disk_size_gb=100,
disk_type="PD_STANDARD",
),
),
),
),
labels={
"k": "val",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/notebooks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notebooks.NewRuntime(ctx, "runtime_container", ¬ebooks.RuntimeArgs{
Name: pulumi.String("notebooks-runtime-kernel"),
Location: pulumi.String("us-central1"),
AccessConfig: ¬ebooks.RuntimeAccessConfigArgs{
AccessType: pulumi.String("SINGLE_USER"),
RuntimeOwner: pulumi.String("admin@hashicorptest.com"),
},
SoftwareConfig: ¬ebooks.RuntimeSoftwareConfigArgs{
Kernels: notebooks.RuntimeSoftwareConfigKernelArray{
¬ebooks.RuntimeSoftwareConfigKernelArgs{
Repository: pulumi.String("gcr.io/deeplearning-platform-release/base-cpu"),
Tag: pulumi.String("latest"),
},
},
},
VirtualMachine: ¬ebooks.RuntimeVirtualMachineArgs{
VirtualMachineConfig: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigArgs{
MachineType: pulumi.String("n1-standard-4"),
DataDisk: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs{
InitializeParams: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs{
DiskSizeGb: pulumi.Int(100),
DiskType: pulumi.String("PD_STANDARD"),
},
},
},
},
Labels: pulumi.StringMap{
"k": pulumi.String("val"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var runtimeContainer = new Gcp.Notebooks.Runtime("runtime_container", new()
{
Name = "notebooks-runtime-kernel",
Location = "us-central1",
AccessConfig = new Gcp.Notebooks.Inputs.RuntimeAccessConfigArgs
{
AccessType = "SINGLE_USER",
RuntimeOwner = "admin@hashicorptest.com",
},
SoftwareConfig = new Gcp.Notebooks.Inputs.RuntimeSoftwareConfigArgs
{
Kernels = new[]
{
new Gcp.Notebooks.Inputs.RuntimeSoftwareConfigKernelArgs
{
Repository = "gcr.io/deeplearning-platform-release/base-cpu",
Tag = "latest",
},
},
},
VirtualMachine = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineArgs
{
VirtualMachineConfig = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigArgs
{
MachineType = "n1-standard-4",
DataDisk = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs
{
InitializeParams = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs
{
DiskSizeGb = 100,
DiskType = "PD_STANDARD",
},
},
},
},
Labels =
{
{ "k", "val" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.notebooks.Runtime;
import com.pulumi.gcp.notebooks.RuntimeArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeAccessConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeSoftwareConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var runtimeContainer = new Runtime("runtimeContainer", RuntimeArgs.builder()
.name("notebooks-runtime-kernel")
.location("us-central1")
.accessConfig(RuntimeAccessConfigArgs.builder()
.accessType("SINGLE_USER")
.runtimeOwner("admin@hashicorptest.com")
.build())
.softwareConfig(RuntimeSoftwareConfigArgs.builder()
.kernels(RuntimeSoftwareConfigKernelArgs.builder()
.repository("gcr.io/deeplearning-platform-release/base-cpu")
.tag("latest")
.build())
.build())
.virtualMachine(RuntimeVirtualMachineArgs.builder()
.virtualMachineConfig(RuntimeVirtualMachineVirtualMachineConfigArgs.builder()
.machineType("n1-standard-4")
.dataDisk(RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.builder()
.initializeParams(RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs.builder()
.diskSizeGb("100")
.diskType("PD_STANDARD")
.build())
.build())
.build())
.build())
.labels(Map.of("k", "val"))
.build());
}
}
resources:
runtimeContainer:
type: gcp:notebooks:Runtime
name: runtime_container
properties:
name: notebooks-runtime-kernel
location: us-central1
accessConfig:
accessType: SINGLE_USER
runtimeOwner: admin@hashicorptest.com
softwareConfig:
kernels:
- repository: gcr.io/deeplearning-platform-release/base-cpu
tag: latest
virtualMachine:
virtualMachineConfig:
machineType: n1-standard-4
dataDisk:
initializeParams:
diskSizeGb: '100'
diskType: PD_STANDARD
labels:
k: val
Notebook Runtime Script
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const runtimeContainer = new gcp.notebooks.Runtime("runtime_container", {
name: "notebooks-runtime-script",
location: "us-central1",
accessConfig: {
accessType: "SINGLE_USER",
runtimeOwner: "admin@hashicorptest.com",
},
softwareConfig: {
postStartupScriptBehavior: "RUN_EVERY_START",
},
virtualMachine: {
virtualMachineConfig: {
machineType: "n1-standard-4",
dataDisk: {
initializeParams: {
diskSizeGb: 100,
diskType: "PD_STANDARD",
},
},
},
},
labels: {
k: "val",
},
});
import pulumi
import pulumi_gcp as gcp
runtime_container = gcp.notebooks.Runtime("runtime_container",
name="notebooks-runtime-script",
location="us-central1",
access_config=gcp.notebooks.RuntimeAccessConfigArgs(
access_type="SINGLE_USER",
runtime_owner="admin@hashicorptest.com",
),
software_config=gcp.notebooks.RuntimeSoftwareConfigArgs(
post_startup_script_behavior="RUN_EVERY_START",
),
virtual_machine=gcp.notebooks.RuntimeVirtualMachineArgs(
virtual_machine_config=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigArgs(
machine_type="n1-standard-4",
data_disk=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs(
initialize_params=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs(
disk_size_gb=100,
disk_type="PD_STANDARD",
),
),
),
),
labels={
"k": "val",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/notebooks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notebooks.NewRuntime(ctx, "runtime_container", ¬ebooks.RuntimeArgs{
Name: pulumi.String("notebooks-runtime-script"),
Location: pulumi.String("us-central1"),
AccessConfig: ¬ebooks.RuntimeAccessConfigArgs{
AccessType: pulumi.String("SINGLE_USER"),
RuntimeOwner: pulumi.String("admin@hashicorptest.com"),
},
SoftwareConfig: ¬ebooks.RuntimeSoftwareConfigArgs{
PostStartupScriptBehavior: pulumi.String("RUN_EVERY_START"),
},
VirtualMachine: ¬ebooks.RuntimeVirtualMachineArgs{
VirtualMachineConfig: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigArgs{
MachineType: pulumi.String("n1-standard-4"),
DataDisk: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs{
InitializeParams: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs{
DiskSizeGb: pulumi.Int(100),
DiskType: pulumi.String("PD_STANDARD"),
},
},
},
},
Labels: pulumi.StringMap{
"k": pulumi.String("val"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var runtimeContainer = new Gcp.Notebooks.Runtime("runtime_container", new()
{
Name = "notebooks-runtime-script",
Location = "us-central1",
AccessConfig = new Gcp.Notebooks.Inputs.RuntimeAccessConfigArgs
{
AccessType = "SINGLE_USER",
RuntimeOwner = "admin@hashicorptest.com",
},
SoftwareConfig = new Gcp.Notebooks.Inputs.RuntimeSoftwareConfigArgs
{
PostStartupScriptBehavior = "RUN_EVERY_START",
},
VirtualMachine = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineArgs
{
VirtualMachineConfig = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigArgs
{
MachineType = "n1-standard-4",
DataDisk = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs
{
InitializeParams = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs
{
DiskSizeGb = 100,
DiskType = "PD_STANDARD",
},
},
},
},
Labels =
{
{ "k", "val" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.notebooks.Runtime;
import com.pulumi.gcp.notebooks.RuntimeArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeAccessConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeSoftwareConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs;
import com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var runtimeContainer = new Runtime("runtimeContainer", RuntimeArgs.builder()
.name("notebooks-runtime-script")
.location("us-central1")
.accessConfig(RuntimeAccessConfigArgs.builder()
.accessType("SINGLE_USER")
.runtimeOwner("admin@hashicorptest.com")
.build())
.softwareConfig(RuntimeSoftwareConfigArgs.builder()
.postStartupScriptBehavior("RUN_EVERY_START")
.build())
.virtualMachine(RuntimeVirtualMachineArgs.builder()
.virtualMachineConfig(RuntimeVirtualMachineVirtualMachineConfigArgs.builder()
.machineType("n1-standard-4")
.dataDisk(RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.builder()
.initializeParams(RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs.builder()
.diskSizeGb("100")
.diskType("PD_STANDARD")
.build())
.build())
.build())
.build())
.labels(Map.of("k", "val"))
.build());
}
}
resources:
runtimeContainer:
type: gcp:notebooks:Runtime
name: runtime_container
properties:
name: notebooks-runtime-script
location: us-central1
accessConfig:
accessType: SINGLE_USER
runtimeOwner: admin@hashicorptest.com
softwareConfig:
postStartupScriptBehavior: RUN_EVERY_START
virtualMachine:
virtualMachineConfig:
machineType: n1-standard-4
dataDisk:
initializeParams:
diskSizeGb: '100'
diskType: PD_STANDARD
labels:
k: val
Create Runtime Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Runtime(name: string, args: RuntimeArgs, opts?: CustomResourceOptions);
@overload
def Runtime(resource_name: str,
args: RuntimeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Runtime(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
access_config: Optional[RuntimeAccessConfigArgs] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None,
software_config: Optional[RuntimeSoftwareConfigArgs] = None,
virtual_machine: Optional[RuntimeVirtualMachineArgs] = None)
func NewRuntime(ctx *Context, name string, args RuntimeArgs, opts ...ResourceOption) (*Runtime, error)
public Runtime(string name, RuntimeArgs args, CustomResourceOptions? opts = null)
public Runtime(String name, RuntimeArgs args)
public Runtime(String name, RuntimeArgs args, CustomResourceOptions options)
type: gcp:notebooks:Runtime
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RuntimeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RuntimeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RuntimeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuntimeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuntimeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var runtimeResource = new Gcp.Notebooks.Runtime("runtimeResource", new()
{
Location = "string",
AccessConfig = new Gcp.Notebooks.Inputs.RuntimeAccessConfigArgs
{
AccessType = "string",
ProxyUri = "string",
RuntimeOwner = "string",
},
Labels =
{
{ "string", "string" },
},
Name = "string",
Project = "string",
SoftwareConfig = new Gcp.Notebooks.Inputs.RuntimeSoftwareConfigArgs
{
CustomGpuDriverPath = "string",
EnableHealthMonitoring = false,
IdleShutdown = false,
IdleShutdownTimeout = 0,
InstallGpuDriver = false,
Kernels = new[]
{
new Gcp.Notebooks.Inputs.RuntimeSoftwareConfigKernelArgs
{
Repository = "string",
Tag = "string",
},
},
NotebookUpgradeSchedule = "string",
PostStartupScript = "string",
PostStartupScriptBehavior = "string",
Upgradeable = false,
},
VirtualMachine = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineArgs
{
InstanceId = "string",
InstanceName = "string",
VirtualMachineConfig = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigArgs
{
DataDisk = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs
{
AutoDelete = false,
Boot = false,
DeviceName = "string",
GuestOsFeatures = new[]
{
"string",
},
Index = 0,
InitializeParams = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs
{
Description = "string",
DiskName = "string",
DiskSizeGb = 0,
DiskType = "string",
Labels =
{
{ "string", "string" },
},
},
Interface = "string",
Kind = "string",
Licenses = new[]
{
"string",
},
Mode = "string",
Source = "string",
Type = "string",
},
MachineType = "string",
Metadata =
{
{ "string", "string" },
},
Network = "string",
GuestAttributes =
{
{ "string", "string" },
},
InternalIpOnly = false,
Labels =
{
{ "string", "string" },
},
ContainerImages = new[]
{
new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs
{
Repository = "string",
Tag = "string",
},
},
AcceleratorConfig = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs
{
CoreCount = 0,
Type = "string",
},
EncryptionConfig = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigEncryptionConfigArgs
{
KmsKey = "string",
},
NicType = "string",
ReservedIpRange = "string",
ShieldedInstanceConfig = new Gcp.Notebooks.Inputs.RuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfigArgs
{
EnableIntegrityMonitoring = false,
EnableSecureBoot = false,
EnableVtpm = false,
},
Subnet = "string",
Tags = new[]
{
"string",
},
Zone = "string",
},
},
});
example, err := notebooks.NewRuntime(ctx, "runtimeResource", ¬ebooks.RuntimeArgs{
Location: pulumi.String("string"),
AccessConfig: ¬ebooks.RuntimeAccessConfigArgs{
AccessType: pulumi.String("string"),
ProxyUri: pulumi.String("string"),
RuntimeOwner: pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
SoftwareConfig: ¬ebooks.RuntimeSoftwareConfigArgs{
CustomGpuDriverPath: pulumi.String("string"),
EnableHealthMonitoring: pulumi.Bool(false),
IdleShutdown: pulumi.Bool(false),
IdleShutdownTimeout: pulumi.Int(0),
InstallGpuDriver: pulumi.Bool(false),
Kernels: notebooks.RuntimeSoftwareConfigKernelArray{
¬ebooks.RuntimeSoftwareConfigKernelArgs{
Repository: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
NotebookUpgradeSchedule: pulumi.String("string"),
PostStartupScript: pulumi.String("string"),
PostStartupScriptBehavior: pulumi.String("string"),
Upgradeable: pulumi.Bool(false),
},
VirtualMachine: ¬ebooks.RuntimeVirtualMachineArgs{
InstanceId: pulumi.String("string"),
InstanceName: pulumi.String("string"),
VirtualMachineConfig: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigArgs{
DataDisk: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs{
AutoDelete: pulumi.Bool(false),
Boot: pulumi.Bool(false),
DeviceName: pulumi.String("string"),
GuestOsFeatures: pulumi.StringArray{
pulumi.String("string"),
},
Index: pulumi.Int(0),
InitializeParams: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs{
Description: pulumi.String("string"),
DiskName: pulumi.String("string"),
DiskSizeGb: pulumi.Int(0),
DiskType: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Interface: pulumi.String("string"),
Kind: pulumi.String("string"),
Licenses: pulumi.StringArray{
pulumi.String("string"),
},
Mode: pulumi.String("string"),
Source: pulumi.String("string"),
Type: pulumi.String("string"),
},
MachineType: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Network: pulumi.String("string"),
GuestAttributes: pulumi.StringMap{
"string": pulumi.String("string"),
},
InternalIpOnly: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
ContainerImages: notebooks.RuntimeVirtualMachineVirtualMachineConfigContainerImageArray{
¬ebooks.RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs{
Repository: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
AcceleratorConfig: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs{
CoreCount: pulumi.Int(0),
Type: pulumi.String("string"),
},
EncryptionConfig: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigEncryptionConfigArgs{
KmsKey: pulumi.String("string"),
},
NicType: pulumi.String("string"),
ReservedIpRange: pulumi.String("string"),
ShieldedInstanceConfig: ¬ebooks.RuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfigArgs{
EnableIntegrityMonitoring: pulumi.Bool(false),
EnableSecureBoot: pulumi.Bool(false),
EnableVtpm: pulumi.Bool(false),
},
Subnet: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Zone: pulumi.String("string"),
},
},
})
var runtimeResource = new Runtime("runtimeResource", RuntimeArgs.builder()
.location("string")
.accessConfig(RuntimeAccessConfigArgs.builder()
.accessType("string")
.proxyUri("string")
.runtimeOwner("string")
.build())
.labels(Map.of("string", "string"))
.name("string")
.project("string")
.softwareConfig(RuntimeSoftwareConfigArgs.builder()
.customGpuDriverPath("string")
.enableHealthMonitoring(false)
.idleShutdown(false)
.idleShutdownTimeout(0)
.installGpuDriver(false)
.kernels(RuntimeSoftwareConfigKernelArgs.builder()
.repository("string")
.tag("string")
.build())
.notebookUpgradeSchedule("string")
.postStartupScript("string")
.postStartupScriptBehavior("string")
.upgradeable(false)
.build())
.virtualMachine(RuntimeVirtualMachineArgs.builder()
.instanceId("string")
.instanceName("string")
.virtualMachineConfig(RuntimeVirtualMachineVirtualMachineConfigArgs.builder()
.dataDisk(RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs.builder()
.autoDelete(false)
.boot(false)
.deviceName("string")
.guestOsFeatures("string")
.index(0)
.initializeParams(RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs.builder()
.description("string")
.diskName("string")
.diskSizeGb(0)
.diskType("string")
.labels(Map.of("string", "string"))
.build())
.interface_("string")
.kind("string")
.licenses("string")
.mode("string")
.source("string")
.type("string")
.build())
.machineType("string")
.metadata(Map.of("string", "string"))
.network("string")
.guestAttributes(Map.of("string", "string"))
.internalIpOnly(false)
.labels(Map.of("string", "string"))
.containerImages(RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs.builder()
.repository("string")
.tag("string")
.build())
.acceleratorConfig(RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs.builder()
.coreCount(0)
.type("string")
.build())
.encryptionConfig(RuntimeVirtualMachineVirtualMachineConfigEncryptionConfigArgs.builder()
.kmsKey("string")
.build())
.nicType("string")
.reservedIpRange("string")
.shieldedInstanceConfig(RuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfigArgs.builder()
.enableIntegrityMonitoring(false)
.enableSecureBoot(false)
.enableVtpm(false)
.build())
.subnet("string")
.tags("string")
.zone("string")
.build())
.build())
.build());
runtime_resource = gcp.notebooks.Runtime("runtimeResource",
location="string",
access_config=gcp.notebooks.RuntimeAccessConfigArgs(
access_type="string",
proxy_uri="string",
runtime_owner="string",
),
labels={
"string": "string",
},
name="string",
project="string",
software_config=gcp.notebooks.RuntimeSoftwareConfigArgs(
custom_gpu_driver_path="string",
enable_health_monitoring=False,
idle_shutdown=False,
idle_shutdown_timeout=0,
install_gpu_driver=False,
kernels=[gcp.notebooks.RuntimeSoftwareConfigKernelArgs(
repository="string",
tag="string",
)],
notebook_upgrade_schedule="string",
post_startup_script="string",
post_startup_script_behavior="string",
upgradeable=False,
),
virtual_machine=gcp.notebooks.RuntimeVirtualMachineArgs(
instance_id="string",
instance_name="string",
virtual_machine_config=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigArgs(
data_disk=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs(
auto_delete=False,
boot=False,
device_name="string",
guest_os_features=["string"],
index=0,
initialize_params=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs(
description="string",
disk_name="string",
disk_size_gb=0,
disk_type="string",
labels={
"string": "string",
},
),
interface="string",
kind="string",
licenses=["string"],
mode="string",
source="string",
type="string",
),
machine_type="string",
metadata={
"string": "string",
},
network="string",
guest_attributes={
"string": "string",
},
internal_ip_only=False,
labels={
"string": "string",
},
container_images=[gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs(
repository="string",
tag="string",
)],
accelerator_config=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs(
core_count=0,
type="string",
),
encryption_config=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigEncryptionConfigArgs(
kms_key="string",
),
nic_type="string",
reserved_ip_range="string",
shielded_instance_config=gcp.notebooks.RuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfigArgs(
enable_integrity_monitoring=False,
enable_secure_boot=False,
enable_vtpm=False,
),
subnet="string",
tags=["string"],
zone="string",
),
))
const runtimeResource = new gcp.notebooks.Runtime("runtimeResource", {
location: "string",
accessConfig: {
accessType: "string",
proxyUri: "string",
runtimeOwner: "string",
},
labels: {
string: "string",
},
name: "string",
project: "string",
softwareConfig: {
customGpuDriverPath: "string",
enableHealthMonitoring: false,
idleShutdown: false,
idleShutdownTimeout: 0,
installGpuDriver: false,
kernels: [{
repository: "string",
tag: "string",
}],
notebookUpgradeSchedule: "string",
postStartupScript: "string",
postStartupScriptBehavior: "string",
upgradeable: false,
},
virtualMachine: {
instanceId: "string",
instanceName: "string",
virtualMachineConfig: {
dataDisk: {
autoDelete: false,
boot: false,
deviceName: "string",
guestOsFeatures: ["string"],
index: 0,
initializeParams: {
description: "string",
diskName: "string",
diskSizeGb: 0,
diskType: "string",
labels: {
string: "string",
},
},
"interface": "string",
kind: "string",
licenses: ["string"],
mode: "string",
source: "string",
type: "string",
},
machineType: "string",
metadata: {
string: "string",
},
network: "string",
guestAttributes: {
string: "string",
},
internalIpOnly: false,
labels: {
string: "string",
},
containerImages: [{
repository: "string",
tag: "string",
}],
acceleratorConfig: {
coreCount: 0,
type: "string",
},
encryptionConfig: {
kmsKey: "string",
},
nicType: "string",
reservedIpRange: "string",
shieldedInstanceConfig: {
enableIntegrityMonitoring: false,
enableSecureBoot: false,
enableVtpm: false,
},
subnet: "string",
tags: ["string"],
zone: "string",
},
},
});
type: gcp:notebooks:Runtime
properties:
accessConfig:
accessType: string
proxyUri: string
runtimeOwner: string
labels:
string: string
location: string
name: string
project: string
softwareConfig:
customGpuDriverPath: string
enableHealthMonitoring: false
idleShutdown: false
idleShutdownTimeout: 0
installGpuDriver: false
kernels:
- repository: string
tag: string
notebookUpgradeSchedule: string
postStartupScript: string
postStartupScriptBehavior: string
upgradeable: false
virtualMachine:
instanceId: string
instanceName: string
virtualMachineConfig:
acceleratorConfig:
coreCount: 0
type: string
containerImages:
- repository: string
tag: string
dataDisk:
autoDelete: false
boot: false
deviceName: string
guestOsFeatures:
- string
index: 0
initializeParams:
description: string
diskName: string
diskSizeGb: 0
diskType: string
labels:
string: string
interface: string
kind: string
licenses:
- string
mode: string
source: string
type: string
encryptionConfig:
kmsKey: string
guestAttributes:
string: string
internalIpOnly: false
labels:
string: string
machineType: string
metadata:
string: string
network: string
nicType: string
reservedIpRange: string
shieldedInstanceConfig:
enableIntegrityMonitoring: false
enableSecureBoot: false
enableVtpm: false
subnet: string
tags:
- string
zone: string
Runtime Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Runtime resource accepts the following input properties:
- Location string
- A reference to the zone where the machine resides.
- Access
Config RuntimeAccess Config - The config settings for accessing runtime. Structure is documented below.
- Labels Dictionary<string, string>
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The name specified for the Notebook runtime.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Software
Config RuntimeSoftware Config - The config settings for software inside the runtime. Structure is documented below.
- Virtual
Machine RuntimeVirtual Machine - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
- Location string
- A reference to the zone where the machine resides.
- Access
Config RuntimeAccess Config Args - The config settings for accessing runtime. Structure is documented below.
- Labels map[string]string
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The name specified for the Notebook runtime.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Software
Config RuntimeSoftware Config Args - The config settings for software inside the runtime. Structure is documented below.
- Virtual
Machine RuntimeVirtual Machine Args - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
- location String
- A reference to the zone where the machine resides.
- access
Config RuntimeAccess Config - The config settings for accessing runtime. Structure is documented below.
- labels Map<String,String>
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The name specified for the Notebook runtime.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- software
Config RuntimeSoftware Config - The config settings for software inside the runtime. Structure is documented below.
- virtual
Machine RuntimeVirtual Machine - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
- location string
- A reference to the zone where the machine resides.
- access
Config RuntimeAccess Config - The config settings for accessing runtime. Structure is documented below.
- labels {[key: string]: string}
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name string
- The name specified for the Notebook runtime.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- software
Config RuntimeSoftware Config - The config settings for software inside the runtime. Structure is documented below.
- virtual
Machine RuntimeVirtual Machine - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
- location str
- A reference to the zone where the machine resides.
- access_
config RuntimeAccess Config Args - The config settings for accessing runtime. Structure is documented below.
- labels Mapping[str, str]
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name str
- The name specified for the Notebook runtime.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- software_
config RuntimeSoftware Config Args - The config settings for software inside the runtime. Structure is documented below.
- virtual_
machine RuntimeVirtual Machine Args - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
- location String
- A reference to the zone where the machine resides.
- access
Config Property Map - The config settings for accessing runtime. Structure is documented below.
- labels Map<String>
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The name specified for the Notebook runtime.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- software
Config Property Map - The config settings for software inside the runtime. Structure is documented below.
- virtual
Machine Property Map - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Runtime resource produces the following output properties:
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Health
State string - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - Id string
- The provider-assigned unique ID for this managed resource.
- Metrics
List<Runtime
Metric> - Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- The state of this runtime.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Health
State string - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - Id string
- The provider-assigned unique ID for this managed resource.
- Metrics
[]Runtime
Metric - Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- The state of this runtime.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- health
State String - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - id String
- The provider-assigned unique ID for this managed resource.
- metrics
List<Runtime
Metric> - Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- The state of this runtime.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- health
State string - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - id string
- The provider-assigned unique ID for this managed resource.
- metrics
Runtime
Metric[] - Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- The state of this runtime.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- health_
state str - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - id str
- The provider-assigned unique ID for this managed resource.
- metrics
Sequence[Runtime
Metric] - Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- state str
- The state of this runtime.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- health
State String - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - id String
- The provider-assigned unique ID for this managed resource.
- metrics List<Property Map>
- Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- The state of this runtime.
Look up Existing Runtime Resource
Get an existing Runtime resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RuntimeState, opts?: CustomResourceOptions): Runtime
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_config: Optional[RuntimeAccessConfigArgs] = None,
effective_labels: Optional[Mapping[str, str]] = None,
health_state: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
metrics: Optional[Sequence[RuntimeMetricArgs]] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
software_config: Optional[RuntimeSoftwareConfigArgs] = None,
state: Optional[str] = None,
virtual_machine: Optional[RuntimeVirtualMachineArgs] = None) -> Runtime
func GetRuntime(ctx *Context, name string, id IDInput, state *RuntimeState, opts ...ResourceOption) (*Runtime, error)
public static Runtime Get(string name, Input<string> id, RuntimeState? state, CustomResourceOptions? opts = null)
public static Runtime get(String name, Output<String> id, RuntimeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Config RuntimeAccess Config - The config settings for accessing runtime. Structure is documented below.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Health
State string - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - Labels Dictionary<string, string>
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- A reference to the zone where the machine resides.
- Metrics
List<Runtime
Metric> - Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- Name string
- The name specified for the Notebook runtime.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Software
Config RuntimeSoftware Config - The config settings for software inside the runtime. Structure is documented below.
- State string
- The state of this runtime.
- Virtual
Machine RuntimeVirtual Machine - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
- Access
Config RuntimeAccess Config Args - The config settings for accessing runtime. Structure is documented below.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Health
State string - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - Labels map[string]string
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- A reference to the zone where the machine resides.
- Metrics
[]Runtime
Metric Args - Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- Name string
- The name specified for the Notebook runtime.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Software
Config RuntimeSoftware Config Args - The config settings for software inside the runtime. Structure is documented below.
- State string
- The state of this runtime.
- Virtual
Machine RuntimeVirtual Machine Args - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
- access
Config RuntimeAccess Config - The config settings for accessing runtime. Structure is documented below.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- health
State String - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - labels Map<String,String>
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- A reference to the zone where the machine resides.
- metrics
List<Runtime
Metric> - Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- name String
- The name specified for the Notebook runtime.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- software
Config RuntimeSoftware Config - The config settings for software inside the runtime. Structure is documented below.
- state String
- The state of this runtime.
- virtual
Machine RuntimeVirtual Machine - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
- access
Config RuntimeAccess Config - The config settings for accessing runtime. Structure is documented below.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- health
State string - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - labels {[key: string]: string}
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location string
- A reference to the zone where the machine resides.
- metrics
Runtime
Metric[] - Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- name string
- The name specified for the Notebook runtime.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- software
Config RuntimeSoftware Config - The config settings for software inside the runtime. Structure is documented below.
- state string
- The state of this runtime.
- virtual
Machine RuntimeVirtual Machine - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
- access_
config RuntimeAccess Config Args - The config settings for accessing runtime. Structure is documented below.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- health_
state str - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - labels Mapping[str, str]
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location str
- A reference to the zone where the machine resides.
- metrics
Sequence[Runtime
Metric Args] - Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- name str
- The name specified for the Notebook runtime.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- software_
config RuntimeSoftware Config Args - The config settings for software inside the runtime. Structure is documented below.
- state str
- The state of this runtime.
- virtual_
machine RuntimeVirtual Machine Args - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
- access
Config Property Map - The config settings for accessing runtime. Structure is documented below.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- health
State String - The health state of this runtime. For a list of possible output
values, see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate
. - labels Map<String>
The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- A reference to the zone where the machine resides.
- metrics List<Property Map>
- Contains Runtime daemon metrics such as Service status and JupyterLab status Structure is documented below.
- name String
- The name specified for the Notebook runtime.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- software
Config Property Map - The config settings for software inside the runtime. Structure is documented below.
- state String
- The state of this runtime.
- virtual
Machine Property Map - Use a Compute Engine VM image to start the managed notebook instance. Structure is documented below.
Supporting Types
RuntimeAccessConfig, RuntimeAccessConfigArgs
- Access
Type string - The type of access mode this instance. For valid values, see
https://cloud.google.com/vertex-ai/docs/workbench/reference/ rest/v1/projects.locations.runtimes#RuntimeAccessType
. - Proxy
Uri string - (Output) The proxy endpoint that is used to access the runtime.
- Runtime
Owner string - The owner of this runtime after creation. Format:
alias@example.com
. Currently supports one owner only.
- Access
Type string - The type of access mode this instance. For valid values, see
https://cloud.google.com/vertex-ai/docs/workbench/reference/ rest/v1/projects.locations.runtimes#RuntimeAccessType
. - Proxy
Uri string - (Output) The proxy endpoint that is used to access the runtime.
- Runtime
Owner string - The owner of this runtime after creation. Format:
alias@example.com
. Currently supports one owner only.
- access
Type String - The type of access mode this instance. For valid values, see
https://cloud.google.com/vertex-ai/docs/workbench/reference/ rest/v1/projects.locations.runtimes#RuntimeAccessType
. - proxy
Uri String - (Output) The proxy endpoint that is used to access the runtime.
- runtime
Owner String - The owner of this runtime after creation. Format:
alias@example.com
. Currently supports one owner only.
- access
Type string - The type of access mode this instance. For valid values, see
https://cloud.google.com/vertex-ai/docs/workbench/reference/ rest/v1/projects.locations.runtimes#RuntimeAccessType
. - proxy
Uri string - (Output) The proxy endpoint that is used to access the runtime.
- runtime
Owner string - The owner of this runtime after creation. Format:
alias@example.com
. Currently supports one owner only.
- access_
type str - The type of access mode this instance. For valid values, see
https://cloud.google.com/vertex-ai/docs/workbench/reference/ rest/v1/projects.locations.runtimes#RuntimeAccessType
. - proxy_
uri str - (Output) The proxy endpoint that is used to access the runtime.
- runtime_
owner str - The owner of this runtime after creation. Format:
alias@example.com
. Currently supports one owner only.
- access
Type String - The type of access mode this instance. For valid values, see
https://cloud.google.com/vertex-ai/docs/workbench/reference/ rest/v1/projects.locations.runtimes#RuntimeAccessType
. - proxy
Uri String - (Output) The proxy endpoint that is used to access the runtime.
- runtime
Owner String - The owner of this runtime after creation. Format:
alias@example.com
. Currently supports one owner only.
RuntimeMetric, RuntimeMetricArgs
- System
Metrics Dictionary<string, string> - (Output) Contains runtime daemon metrics, such as OS and kernels and sessions stats.
- System
Metrics map[string]string - (Output) Contains runtime daemon metrics, such as OS and kernels and sessions stats.
- system
Metrics Map<String,String> - (Output) Contains runtime daemon metrics, such as OS and kernels and sessions stats.
- system
Metrics {[key: string]: string} - (Output) Contains runtime daemon metrics, such as OS and kernels and sessions stats.
- system_
metrics Mapping[str, str] - (Output) Contains runtime daemon metrics, such as OS and kernels and sessions stats.
- system
Metrics Map<String> - (Output) Contains runtime daemon metrics, such as OS and kernels and sessions stats.
RuntimeSoftwareConfig, RuntimeSoftwareConfigArgs
- Custom
Gpu stringDriver Path - Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.
- Enable
Health boolMonitoring - Verifies core internal services are running. Default: True.
- Idle
Shutdown bool - Runtime will automatically shutdown after idle_shutdown_time. Default: True
- Idle
Shutdown intTimeout - Time in minutes to wait before shuting down runtime. Default: 180 minutes
- Install
Gpu boolDriver - Install Nvidia Driver automatically.
- Kernels
List<Runtime
Software Config Kernel> - Use a list of container images to use as Kernels in the notebook instance. Structure is documented below.
- Notebook
Upgrade stringSchedule - Cron expression in UTC timezone for schedule instance auto upgrade. Please follow the cron format.
- Post
Startup stringScript - 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 (gs://path-to-file/file-name).
- Post
Startup stringScript Behavior - Behavior for the post startup script.
Possible values are:
POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED
,RUN_EVERY_START
,DOWNLOAD_AND_RUN_EVERY_START
. - Upgradeable bool
- (Output) Bool indicating whether an newer image is available in an image family.
- Custom
Gpu stringDriver Path - Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.
- Enable
Health boolMonitoring - Verifies core internal services are running. Default: True.
- Idle
Shutdown bool - Runtime will automatically shutdown after idle_shutdown_time. Default: True
- Idle
Shutdown intTimeout - Time in minutes to wait before shuting down runtime. Default: 180 minutes
- Install
Gpu boolDriver - Install Nvidia Driver automatically.
- Kernels
[]Runtime
Software Config Kernel - Use a list of container images to use as Kernels in the notebook instance. Structure is documented below.
- Notebook
Upgrade stringSchedule - Cron expression in UTC timezone for schedule instance auto upgrade. Please follow the cron format.
- Post
Startup stringScript - 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 (gs://path-to-file/file-name).
- Post
Startup stringScript Behavior - Behavior for the post startup script.
Possible values are:
POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED
,RUN_EVERY_START
,DOWNLOAD_AND_RUN_EVERY_START
. - Upgradeable bool
- (Output) Bool indicating whether an newer image is available in an image family.
- custom
Gpu StringDriver Path - Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.
- enable
Health BooleanMonitoring - Verifies core internal services are running. Default: True.
- idle
Shutdown Boolean - Runtime will automatically shutdown after idle_shutdown_time. Default: True
- idle
Shutdown IntegerTimeout - Time in minutes to wait before shuting down runtime. Default: 180 minutes
- install
Gpu BooleanDriver - Install Nvidia Driver automatically.
- kernels
List<Runtime
Software Config Kernel> - Use a list of container images to use as Kernels in the notebook instance. Structure is documented below.
- notebook
Upgrade StringSchedule - Cron expression in UTC timezone for schedule instance auto upgrade. Please follow the cron format.
- post
Startup StringScript - 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 (gs://path-to-file/file-name).
- post
Startup StringScript Behavior - Behavior for the post startup script.
Possible values are:
POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED
,RUN_EVERY_START
,DOWNLOAD_AND_RUN_EVERY_START
. - upgradeable Boolean
- (Output) Bool indicating whether an newer image is available in an image family.
- custom
Gpu stringDriver Path - Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.
- enable
Health booleanMonitoring - Verifies core internal services are running. Default: True.
- idle
Shutdown boolean - Runtime will automatically shutdown after idle_shutdown_time. Default: True
- idle
Shutdown numberTimeout - Time in minutes to wait before shuting down runtime. Default: 180 minutes
- install
Gpu booleanDriver - Install Nvidia Driver automatically.
- kernels
Runtime
Software Config Kernel[] - Use a list of container images to use as Kernels in the notebook instance. Structure is documented below.
- notebook
Upgrade stringSchedule - Cron expression in UTC timezone for schedule instance auto upgrade. Please follow the cron format.
- post
Startup stringScript - 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 (gs://path-to-file/file-name).
- post
Startup stringScript Behavior - Behavior for the post startup script.
Possible values are:
POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED
,RUN_EVERY_START
,DOWNLOAD_AND_RUN_EVERY_START
. - upgradeable boolean
- (Output) Bool indicating whether an newer image is available in an image family.
- custom_
gpu_ strdriver_ path - Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.
- enable_
health_ boolmonitoring - Verifies core internal services are running. Default: True.
- idle_
shutdown bool - Runtime will automatically shutdown after idle_shutdown_time. Default: True
- idle_
shutdown_ inttimeout - Time in minutes to wait before shuting down runtime. Default: 180 minutes
- install_
gpu_ booldriver - Install Nvidia Driver automatically.
- kernels
Sequence[Runtime
Software Config Kernel] - Use a list of container images to use as Kernels in the notebook instance. Structure is documented below.
- notebook_
upgrade_ strschedule - Cron expression in UTC timezone for schedule instance auto upgrade. Please follow the cron format.
- post_
startup_ strscript - 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 (gs://path-to-file/file-name).
- post_
startup_ strscript_ behavior - Behavior for the post startup script.
Possible values are:
POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED
,RUN_EVERY_START
,DOWNLOAD_AND_RUN_EVERY_START
. - upgradeable bool
- (Output) Bool indicating whether an newer image is available in an image family.
- custom
Gpu StringDriver Path - Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.
- enable
Health BooleanMonitoring - Verifies core internal services are running. Default: True.
- idle
Shutdown Boolean - Runtime will automatically shutdown after idle_shutdown_time. Default: True
- idle
Shutdown NumberTimeout - Time in minutes to wait before shuting down runtime. Default: 180 minutes
- install
Gpu BooleanDriver - Install Nvidia Driver automatically.
- kernels List<Property Map>
- Use a list of container images to use as Kernels in the notebook instance. Structure is documented below.
- notebook
Upgrade StringSchedule - Cron expression in UTC timezone for schedule instance auto upgrade. Please follow the cron format.
- post
Startup StringScript - 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 (gs://path-to-file/file-name).
- post
Startup StringScript Behavior - Behavior for the post startup script.
Possible values are:
POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED
,RUN_EVERY_START
,DOWNLOAD_AND_RUN_EVERY_START
. - upgradeable Boolean
- (Output) Bool indicating whether an newer image is available in an image family.
RuntimeSoftwareConfigKernel, RuntimeSoftwareConfigKernelArgs
- Repository string
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- Tag string
- The tag of the container image. If not specified, this defaults to the latest tag.
- Repository string
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- Tag string
- The tag of the container image. If not specified, this defaults to the latest tag.
- repository String
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- tag String
- The tag of the container image. If not specified, this defaults to the latest tag.
- repository string
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- tag string
- The tag of the container image. If not specified, this defaults to the latest tag.
- repository str
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- tag str
- The tag of the container image. If not specified, this defaults to the latest tag.
- repository String
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- tag String
- The tag of the container image. If not specified, this defaults to the latest tag.
RuntimeVirtualMachine, RuntimeVirtualMachineArgs
- Instance
Id string - (Output) The unique identifier of the Managed Compute Engine instance.
- Instance
Name string - (Output) The user-friendly name of the Managed Compute Engine instance.
- Virtual
Machine RuntimeConfig Virtual Machine Virtual Machine Config - Virtual Machine configuration settings. Structure is documented below.
- Instance
Id string - (Output) The unique identifier of the Managed Compute Engine instance.
- Instance
Name string - (Output) The user-friendly name of the Managed Compute Engine instance.
- Virtual
Machine RuntimeConfig Virtual Machine Virtual Machine Config - Virtual Machine configuration settings. Structure is documented below.
- instance
Id String - (Output) The unique identifier of the Managed Compute Engine instance.
- instance
Name String - (Output) The user-friendly name of the Managed Compute Engine instance.
- virtual
Machine RuntimeConfig Virtual Machine Virtual Machine Config - Virtual Machine configuration settings. Structure is documented below.
- instance
Id string - (Output) The unique identifier of the Managed Compute Engine instance.
- instance
Name string - (Output) The user-friendly name of the Managed Compute Engine instance.
- virtual
Machine RuntimeConfig Virtual Machine Virtual Machine Config - Virtual Machine configuration settings. Structure is documented below.
- instance_
id str - (Output) The unique identifier of the Managed Compute Engine instance.
- instance_
name str - (Output) The user-friendly name of the Managed Compute Engine instance.
- virtual_
machine_ Runtimeconfig Virtual Machine Virtual Machine Config - Virtual Machine configuration settings. Structure is documented below.
- instance
Id String - (Output) The unique identifier of the Managed Compute Engine instance.
- instance
Name String - (Output) The user-friendly name of the Managed Compute Engine instance.
- virtual
Machine Property MapConfig - Virtual Machine configuration settings. Structure is documented below.
RuntimeVirtualMachineVirtualMachineConfig, RuntimeVirtualMachineVirtualMachineConfigArgs
- Data
Disk RuntimeVirtual Machine Virtual Machine Config Data Disk - Data disk option configuration settings. Structure is documented below.
- Machine
Type string - The Compute Engine machine type used for runtimes.
- Accelerator
Config RuntimeVirtual Machine Virtual Machine Config Accelerator Config - The Compute Engine accelerator configuration for this runtime. Structure is documented below.
- Container
Images List<RuntimeVirtual Machine Virtual Machine Config Container Image> - Use a list of container images to start the notebook instance. Structure is documented below.
- Encryption
Config RuntimeVirtual Machine Virtual Machine Config Encryption Config - Encryption settings for virtual machine data disk. Structure is documented below.
- Guest
Attributes Dictionary<string, string> - (Output) The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/ storing-retrieving-metadata#guest_attributes)).
- Internal
Ip boolOnly - If true, runtime will only have internal IP addresses. By default,
runtimes are not restricted to internal IP addresses, and will
have ephemeral external IP addresses assigned to each vm. This
internal_ip_only
restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses. - Labels Dictionary<string, string>
- The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
- Metadata Dictionary<string, string>
- The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com /compute/docs/storing-retrieving-metadata#project_and_instance _metadata)).
- Network string
- The Compute Engine network to be used for machine communications.
Cannot be specified with subnetwork. If neither
network
norsubnet
is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples:https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/global/default
projects/[project_id]/regions/global/default
Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations:- Google Managed Network (Network & subnet are empty)
- Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access.
- Shared VPC (network & subnet are required). Requires configuring Private Service Access.
- Nic
Type string - The type of vNIC to be used on this interface. This may be gVNIC
or VirtioNet.
Possible values are:
UNSPECIFIED_NIC_TYPE
,VIRTIO_NET
,GVNIC
. - Reserved
Ip stringRange - Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range name if it's assigned.
- Shielded
Instance RuntimeConfig Virtual Machine Virtual Machine Config Shielded Instance Config - Shielded VM Instance configuration settings. Structure is documented below.
- Subnet string
- The Compute Engine subnetwork to be used for machine
communications. Cannot be specified with network. A full URL or
partial URI are valid. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/us-east1/subnetworks/sub0
projects/[project_id]/regions/us-east1/subnetworks/sub0
- List<string>
- The Compute Engine tags to add to runtime (see [Tagging instances] (https://cloud.google.com/compute/docs/ label-or-tag-resources#tags)).
- Zone string
- (Output) The zone where the virtual machine is located.
- Data
Disk RuntimeVirtual Machine Virtual Machine Config Data Disk - Data disk option configuration settings. Structure is documented below.
- Machine
Type string - The Compute Engine machine type used for runtimes.
- Accelerator
Config RuntimeVirtual Machine Virtual Machine Config Accelerator Config - The Compute Engine accelerator configuration for this runtime. Structure is documented below.
- Container
Images []RuntimeVirtual Machine Virtual Machine Config Container Image - Use a list of container images to start the notebook instance. Structure is documented below.
- Encryption
Config RuntimeVirtual Machine Virtual Machine Config Encryption Config - Encryption settings for virtual machine data disk. Structure is documented below.
- Guest
Attributes map[string]string - (Output) The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/ storing-retrieving-metadata#guest_attributes)).
- Internal
Ip boolOnly - If true, runtime will only have internal IP addresses. By default,
runtimes are not restricted to internal IP addresses, and will
have ephemeral external IP addresses assigned to each vm. This
internal_ip_only
restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses. - Labels map[string]string
- The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
- Metadata map[string]string
- The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com /compute/docs/storing-retrieving-metadata#project_and_instance _metadata)).
- Network string
- The Compute Engine network to be used for machine communications.
Cannot be specified with subnetwork. If neither
network
norsubnet
is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples:https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/global/default
projects/[project_id]/regions/global/default
Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations:- Google Managed Network (Network & subnet are empty)
- Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access.
- Shared VPC (network & subnet are required). Requires configuring Private Service Access.
- Nic
Type string - The type of vNIC to be used on this interface. This may be gVNIC
or VirtioNet.
Possible values are:
UNSPECIFIED_NIC_TYPE
,VIRTIO_NET
,GVNIC
. - Reserved
Ip stringRange - Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range name if it's assigned.
- Shielded
Instance RuntimeConfig Virtual Machine Virtual Machine Config Shielded Instance Config - Shielded VM Instance configuration settings. Structure is documented below.
- Subnet string
- The Compute Engine subnetwork to be used for machine
communications. Cannot be specified with network. A full URL or
partial URI are valid. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/us-east1/subnetworks/sub0
projects/[project_id]/regions/us-east1/subnetworks/sub0
- []string
- The Compute Engine tags to add to runtime (see [Tagging instances] (https://cloud.google.com/compute/docs/ label-or-tag-resources#tags)).
- Zone string
- (Output) The zone where the virtual machine is located.
- data
Disk RuntimeVirtual Machine Virtual Machine Config Data Disk - Data disk option configuration settings. Structure is documented below.
- machine
Type String - The Compute Engine machine type used for runtimes.
- accelerator
Config RuntimeVirtual Machine Virtual Machine Config Accelerator Config - The Compute Engine accelerator configuration for this runtime. Structure is documented below.
- container
Images List<RuntimeVirtual Machine Virtual Machine Config Container Image> - Use a list of container images to start the notebook instance. Structure is documented below.
- encryption
Config RuntimeVirtual Machine Virtual Machine Config Encryption Config - Encryption settings for virtual machine data disk. Structure is documented below.
- guest
Attributes Map<String,String> - (Output) The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/ storing-retrieving-metadata#guest_attributes)).
- internal
Ip BooleanOnly - If true, runtime will only have internal IP addresses. By default,
runtimes are not restricted to internal IP addresses, and will
have ephemeral external IP addresses assigned to each vm. This
internal_ip_only
restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses. - labels Map<String,String>
- The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
- metadata Map<String,String>
- The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com /compute/docs/storing-retrieving-metadata#project_and_instance _metadata)).
- network String
- The Compute Engine network to be used for machine communications.
Cannot be specified with subnetwork. If neither
network
norsubnet
is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples:https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/global/default
projects/[project_id]/regions/global/default
Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations:- Google Managed Network (Network & subnet are empty)
- Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access.
- Shared VPC (network & subnet are required). Requires configuring Private Service Access.
- nic
Type String - The type of vNIC to be used on this interface. This may be gVNIC
or VirtioNet.
Possible values are:
UNSPECIFIED_NIC_TYPE
,VIRTIO_NET
,GVNIC
. - reserved
Ip StringRange - Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range name if it's assigned.
- shielded
Instance RuntimeConfig Virtual Machine Virtual Machine Config Shielded Instance Config - Shielded VM Instance configuration settings. Structure is documented below.
- subnet String
- The Compute Engine subnetwork to be used for machine
communications. Cannot be specified with network. A full URL or
partial URI are valid. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/us-east1/subnetworks/sub0
projects/[project_id]/regions/us-east1/subnetworks/sub0
- List<String>
- The Compute Engine tags to add to runtime (see [Tagging instances] (https://cloud.google.com/compute/docs/ label-or-tag-resources#tags)).
- zone String
- (Output) The zone where the virtual machine is located.
- data
Disk RuntimeVirtual Machine Virtual Machine Config Data Disk - Data disk option configuration settings. Structure is documented below.
- machine
Type string - The Compute Engine machine type used for runtimes.
- accelerator
Config RuntimeVirtual Machine Virtual Machine Config Accelerator Config - The Compute Engine accelerator configuration for this runtime. Structure is documented below.
- container
Images RuntimeVirtual Machine Virtual Machine Config Container Image[] - Use a list of container images to start the notebook instance. Structure is documented below.
- encryption
Config RuntimeVirtual Machine Virtual Machine Config Encryption Config - Encryption settings for virtual machine data disk. Structure is documented below.
- guest
Attributes {[key: string]: string} - (Output) The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/ storing-retrieving-metadata#guest_attributes)).
- internal
Ip booleanOnly - If true, runtime will only have internal IP addresses. By default,
runtimes are not restricted to internal IP addresses, and will
have ephemeral external IP addresses assigned to each vm. This
internal_ip_only
restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses. - labels {[key: string]: string}
- The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
- metadata {[key: string]: string}
- The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com /compute/docs/storing-retrieving-metadata#project_and_instance _metadata)).
- network string
- The Compute Engine network to be used for machine communications.
Cannot be specified with subnetwork. If neither
network
norsubnet
is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples:https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/global/default
projects/[project_id]/regions/global/default
Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations:- Google Managed Network (Network & subnet are empty)
- Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access.
- Shared VPC (network & subnet are required). Requires configuring Private Service Access.
- nic
Type string - The type of vNIC to be used on this interface. This may be gVNIC
or VirtioNet.
Possible values are:
UNSPECIFIED_NIC_TYPE
,VIRTIO_NET
,GVNIC
. - reserved
Ip stringRange - Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range name if it's assigned.
- shielded
Instance RuntimeConfig Virtual Machine Virtual Machine Config Shielded Instance Config - Shielded VM Instance configuration settings. Structure is documented below.
- subnet string
- The Compute Engine subnetwork to be used for machine
communications. Cannot be specified with network. A full URL or
partial URI are valid. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/us-east1/subnetworks/sub0
projects/[project_id]/regions/us-east1/subnetworks/sub0
- string[]
- The Compute Engine tags to add to runtime (see [Tagging instances] (https://cloud.google.com/compute/docs/ label-or-tag-resources#tags)).
- zone string
- (Output) The zone where the virtual machine is located.
- data_
disk RuntimeVirtual Machine Virtual Machine Config Data Disk - Data disk option configuration settings. Structure is documented below.
- machine_
type str - The Compute Engine machine type used for runtimes.
- accelerator_
config RuntimeVirtual Machine Virtual Machine Config Accelerator Config - The Compute Engine accelerator configuration for this runtime. Structure is documented below.
- container_
images Sequence[RuntimeVirtual Machine Virtual Machine Config Container Image] - Use a list of container images to start the notebook instance. Structure is documented below.
- encryption_
config RuntimeVirtual Machine Virtual Machine Config Encryption Config - Encryption settings for virtual machine data disk. Structure is documented below.
- guest_
attributes Mapping[str, str] - (Output) The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/ storing-retrieving-metadata#guest_attributes)).
- internal_
ip_ boolonly - If true, runtime will only have internal IP addresses. By default,
runtimes are not restricted to internal IP addresses, and will
have ephemeral external IP addresses assigned to each vm. This
internal_ip_only
restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses. - labels Mapping[str, str]
- The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
- metadata Mapping[str, str]
- The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com /compute/docs/storing-retrieving-metadata#project_and_instance _metadata)).
- network str
- The Compute Engine network to be used for machine communications.
Cannot be specified with subnetwork. If neither
network
norsubnet
is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples:https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/global/default
projects/[project_id]/regions/global/default
Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations:- Google Managed Network (Network & subnet are empty)
- Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access.
- Shared VPC (network & subnet are required). Requires configuring Private Service Access.
- nic_
type str - The type of vNIC to be used on this interface. This may be gVNIC
or VirtioNet.
Possible values are:
UNSPECIFIED_NIC_TYPE
,VIRTIO_NET
,GVNIC
. - reserved_
ip_ strrange - Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range name if it's assigned.
- shielded_
instance_ Runtimeconfig Virtual Machine Virtual Machine Config Shielded Instance Config - Shielded VM Instance configuration settings. Structure is documented below.
- subnet str
- The Compute Engine subnetwork to be used for machine
communications. Cannot be specified with network. A full URL or
partial URI are valid. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/us-east1/subnetworks/sub0
projects/[project_id]/regions/us-east1/subnetworks/sub0
- Sequence[str]
- The Compute Engine tags to add to runtime (see [Tagging instances] (https://cloud.google.com/compute/docs/ label-or-tag-resources#tags)).
- zone str
- (Output) The zone where the virtual machine is located.
- data
Disk Property Map - Data disk option configuration settings. Structure is documented below.
- machine
Type String - The Compute Engine machine type used for runtimes.
- accelerator
Config Property Map - The Compute Engine accelerator configuration for this runtime. Structure is documented below.
- container
Images List<Property Map> - Use a list of container images to start the notebook instance. Structure is documented below.
- encryption
Config Property Map - Encryption settings for virtual machine data disk. Structure is documented below.
- guest
Attributes Map<String> - (Output) The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/ storing-retrieving-metadata#guest_attributes)).
- internal
Ip BooleanOnly - If true, runtime will only have internal IP addresses. By default,
runtimes are not restricted to internal IP addresses, and will
have ephemeral external IP addresses assigned to each vm. This
internal_ip_only
restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses. - labels Map<String>
- The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
- metadata Map<String>
- The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com /compute/docs/storing-retrieving-metadata#project_and_instance _metadata)).
- network String
- The Compute Engine network to be used for machine communications.
Cannot be specified with subnetwork. If neither
network
norsubnet
is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples:https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/global/default
projects/[project_id]/regions/global/default
Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations:- Google Managed Network (Network & subnet are empty)
- Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access.
- Shared VPC (network & subnet are required). Requires configuring Private Service Access.
- nic
Type String - The type of vNIC to be used on this interface. This may be gVNIC
or VirtioNet.
Possible values are:
UNSPECIFIED_NIC_TYPE
,VIRTIO_NET
,GVNIC
. - reserved
Ip StringRange - Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range name if it's assigned.
- shielded
Instance Property MapConfig - Shielded VM Instance configuration settings. Structure is documented below.
- subnet String
- The Compute Engine subnetwork to be used for machine
communications. Cannot be specified with network. A full URL or
partial URI are valid. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/us-east1/subnetworks/sub0
projects/[project_id]/regions/us-east1/subnetworks/sub0
- List<String>
- The Compute Engine tags to add to runtime (see [Tagging instances] (https://cloud.google.com/compute/docs/ label-or-tag-resources#tags)).
- zone String
- (Output) The zone where the virtual machine is located.
RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfig, RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs
- core_
count int - Count of cores of this accelerator.
- type str
- Accelerator model. For valid values, see
https://cloud.google.com/vertex-ai/docs/workbench/reference/ rest/v1/projects.locations.runtimes#AcceleratorType
RuntimeVirtualMachineVirtualMachineConfigContainerImage, RuntimeVirtualMachineVirtualMachineConfigContainerImageArgs
- Repository string
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- Tag string
- The tag of the container image. If not specified, this defaults to the latest tag.
- Repository string
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- Tag string
- The tag of the container image. If not specified, this defaults to the latest tag.
- repository String
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- tag String
- The tag of the container image. If not specified, this defaults to the latest tag.
- repository string
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- tag string
- The tag of the container image. If not specified, this defaults to the latest tag.
- repository str
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- tag str
- The tag of the container image. If not specified, this defaults to the latest tag.
- repository String
- The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- tag String
- The tag of the container image. If not specified, this defaults to the latest tag.
RuntimeVirtualMachineVirtualMachineConfigDataDisk, RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs
- Auto
Delete bool - (Output) Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
- Boot bool
- (Output) Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- Device
Name string - (Output) Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. 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.
- Guest
Os List<string>Features - (Output)
Indicates a list of features to enable on the guest operating
system. Applicable only for bootable images. To see a list of
available features, read
https://cloud.google.com/compute/docs/ images/create-delete-deprecate-private-images#guest-os-features
options. `` - Index int
- (Output) Output only. 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.
- Initialize
Params RuntimeVirtual Machine Virtual Machine Config Data Disk Initialize Params - Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. Structure is documented below.
- Interface string
- "Specifies 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: * NVME * SCSI".
- Kind string
- (Output) Type of the resource. Always compute#attachedDisk for attached disks.
- Licenses List<string>
- (Output) Output only. Any valid publicly visible licenses.
- Mode string
- The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
- Source string
- Specifies a valid partial or full URL to an existing Persistent Disk resource.
- Type string
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
- Auto
Delete bool - (Output) Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
- Boot bool
- (Output) Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- Device
Name string - (Output) Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. 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.
- Guest
Os []stringFeatures - (Output)
Indicates a list of features to enable on the guest operating
system. Applicable only for bootable images. To see a list of
available features, read
https://cloud.google.com/compute/docs/ images/create-delete-deprecate-private-images#guest-os-features
options. `` - Index int
- (Output) Output only. 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.
- Initialize
Params RuntimeVirtual Machine Virtual Machine Config Data Disk Initialize Params - Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. Structure is documented below.
- Interface string
- "Specifies 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: * NVME * SCSI".
- Kind string
- (Output) Type of the resource. Always compute#attachedDisk for attached disks.
- Licenses []string
- (Output) Output only. Any valid publicly visible licenses.
- Mode string
- The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
- Source string
- Specifies a valid partial or full URL to an existing Persistent Disk resource.
- Type string
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
- auto
Delete Boolean - (Output) Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
- boot Boolean
- (Output) Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- device
Name String - (Output) Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. 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.
- guest
Os List<String>Features - (Output)
Indicates a list of features to enable on the guest operating
system. Applicable only for bootable images. To see a list of
available features, read
https://cloud.google.com/compute/docs/ images/create-delete-deprecate-private-images#guest-os-features
options. `` - index Integer
- (Output) Output only. 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.
- initialize
Params RuntimeVirtual Machine Virtual Machine Config Data Disk Initialize Params - Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. Structure is documented below.
- interface_ String
- "Specifies 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: * NVME * SCSI".
- kind String
- (Output) Type of the resource. Always compute#attachedDisk for attached disks.
- licenses List<String>
- (Output) Output only. Any valid publicly visible licenses.
- mode String
- The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
- source String
- Specifies a valid partial or full URL to an existing Persistent Disk resource.
- type String
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
- auto
Delete boolean - (Output) Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
- boot boolean
- (Output) Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- device
Name string - (Output) Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. 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.
- guest
Os string[]Features - (Output)
Indicates a list of features to enable on the guest operating
system. Applicable only for bootable images. To see a list of
available features, read
https://cloud.google.com/compute/docs/ images/create-delete-deprecate-private-images#guest-os-features
options. `` - index number
- (Output) Output only. 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.
- initialize
Params RuntimeVirtual Machine Virtual Machine Config Data Disk Initialize Params - Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. Structure is documented below.
- interface string
- "Specifies 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: * NVME * SCSI".
- kind string
- (Output) Type of the resource. Always compute#attachedDisk for attached disks.
- licenses string[]
- (Output) Output only. Any valid publicly visible licenses.
- mode string
- The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
- source string
- Specifies a valid partial or full URL to an existing Persistent Disk resource.
- type string
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
- auto_
delete bool - (Output) Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
- boot bool
- (Output) Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- device_
name str - (Output) Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. 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.
- guest_
os_ Sequence[str]features - (Output)
Indicates a list of features to enable on the guest operating
system. Applicable only for bootable images. To see a list of
available features, read
https://cloud.google.com/compute/docs/ images/create-delete-deprecate-private-images#guest-os-features
options. `` - index int
- (Output) Output only. 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.
- initialize_
params RuntimeVirtual Machine Virtual Machine Config Data Disk Initialize Params - Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. Structure is documented below.
- interface str
- "Specifies 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: * NVME * SCSI".
- kind str
- (Output) Type of the resource. Always compute#attachedDisk for attached disks.
- licenses Sequence[str]
- (Output) Output only. Any valid publicly visible licenses.
- mode str
- The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
- source str
- Specifies a valid partial or full URL to an existing Persistent Disk resource.
- type str
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
- auto
Delete Boolean - (Output) Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
- boot Boolean
- (Output) Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- device
Name String - (Output) Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. 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.
- guest
Os List<String>Features - (Output)
Indicates a list of features to enable on the guest operating
system. Applicable only for bootable images. To see a list of
available features, read
https://cloud.google.com/compute/docs/ images/create-delete-deprecate-private-images#guest-os-features
options. `` - index Number
- (Output) Output only. 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.
- initialize
Params Property Map - Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. Structure is documented below.
- interface String
- "Specifies 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: * NVME * SCSI".
- kind String
- (Output) Type of the resource. Always compute#attachedDisk for attached disks.
- licenses List<String>
- (Output) Output only. Any valid publicly visible licenses.
- mode String
- The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
- source String
- Specifies a valid partial or full URL to an existing Persistent Disk resource.
- type String
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParams, RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs
- Description string
- Provide this property when creating the disk.
- Disk
Name string - Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
- Disk
Size intGb - Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
- Disk
Type string - The type of the boot disk attached to this runtime,
defaults to standard persistent disk. For valid values,
see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#disktype
- Labels Dictionary<string, string>
- Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
- Description string
- Provide this property when creating the disk.
- Disk
Name string - Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
- Disk
Size intGb - Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
- Disk
Type string - The type of the boot disk attached to this runtime,
defaults to standard persistent disk. For valid values,
see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#disktype
- Labels map[string]string
- Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
- description String
- Provide this property when creating the disk.
- disk
Name String - Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
- disk
Size IntegerGb - Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
- disk
Type String - The type of the boot disk attached to this runtime,
defaults to standard persistent disk. For valid values,
see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#disktype
- labels Map<String,String>
- Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
- description string
- Provide this property when creating the disk.
- disk
Name string - Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
- disk
Size numberGb - Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
- disk
Type string - The type of the boot disk attached to this runtime,
defaults to standard persistent disk. For valid values,
see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#disktype
- labels {[key: string]: string}
- Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
- description str
- Provide this property when creating the disk.
- disk_
name str - Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
- disk_
size_ intgb - Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
- disk_
type str - The type of the boot disk attached to this runtime,
defaults to standard persistent disk. For valid values,
see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#disktype
- labels Mapping[str, str]
- Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
- description String
- Provide this property when creating the disk.
- disk
Name String - Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
- disk
Size NumberGb - Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
- disk
Type String - The type of the boot disk attached to this runtime,
defaults to standard persistent disk. For valid values,
see
https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#disktype
- labels Map<String>
- Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
RuntimeVirtualMachineVirtualMachineConfigEncryptionConfig, RuntimeVirtualMachineVirtualMachineConfigEncryptionConfigArgs
- Kms
Key string - The Cloud KMS resource identifier of the customer-managed
encryption key used to protect a resource, such as a disks.
It has the following format:
projects/{PROJECT_ID}/locations/{REGION}/keyRings/ {KEY_RING_NAME}/cryptoKeys/{KEY_NAME}
- Kms
Key string - The Cloud KMS resource identifier of the customer-managed
encryption key used to protect a resource, such as a disks.
It has the following format:
projects/{PROJECT_ID}/locations/{REGION}/keyRings/ {KEY_RING_NAME}/cryptoKeys/{KEY_NAME}
- kms
Key String - The Cloud KMS resource identifier of the customer-managed
encryption key used to protect a resource, such as a disks.
It has the following format:
projects/{PROJECT_ID}/locations/{REGION}/keyRings/ {KEY_RING_NAME}/cryptoKeys/{KEY_NAME}
- kms
Key string - The Cloud KMS resource identifier of the customer-managed
encryption key used to protect a resource, such as a disks.
It has the following format:
projects/{PROJECT_ID}/locations/{REGION}/keyRings/ {KEY_RING_NAME}/cryptoKeys/{KEY_NAME}
- kms_
key str - The Cloud KMS resource identifier of the customer-managed
encryption key used to protect a resource, such as a disks.
It has the following format:
projects/{PROJECT_ID}/locations/{REGION}/keyRings/ {KEY_RING_NAME}/cryptoKeys/{KEY_NAME}
- kms
Key String - The Cloud KMS resource identifier of the customer-managed
encryption key used to protect a resource, such as a disks.
It has the following format:
projects/{PROJECT_ID}/locations/{REGION}/keyRings/ {KEY_RING_NAME}/cryptoKeys/{KEY_NAME}
RuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfig, RuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfigArgs
- Enable
Integrity boolMonitoring - 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.
- Enable
Secure boolBoot - 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
Vtpm bool - Defines whether the instance has the vTPM enabled. Enabled by default.
- Enable
Integrity boolMonitoring - 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.
- Enable
Secure boolBoot - 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
Vtpm bool - Defines whether the instance has the vTPM enabled. Enabled by default.
- enable
Integrity BooleanMonitoring - 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.
- enable
Secure BooleanBoot - 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
Vtpm Boolean - Defines whether the instance has the vTPM enabled. Enabled by default.
- enable
Integrity booleanMonitoring - 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.
- enable
Secure booleanBoot - 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
Vtpm boolean - Defines whether the instance has the vTPM enabled. Enabled by default.
- enable_
integrity_ boolmonitoring - 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.
- enable_
secure_ boolboot - 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_
vtpm bool - Defines whether the instance has the vTPM enabled. Enabled by default.
- enable
Integrity BooleanMonitoring - 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.
- enable
Secure BooleanBoot - 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
Vtpm Boolean - Defines whether the instance has the vTPM enabled. Enabled by default.
Import
Runtime can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/runtimes/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
When using the pulumi import
command, Runtime can be imported using one of the formats above. For example:
$ pulumi import gcp:notebooks/runtime:Runtime default projects/{{project}}/locations/{{location}}/runtimes/{{name}}
$ pulumi import gcp:notebooks/runtime:Runtime default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:notebooks/runtime:Runtime default {{location}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.