gcp.compute.InstanceFromTemplate
Explore with Pulumi AI
Manages a VM instance resource within GCE. For more information see the official documentation and API.
This resource is specifically to create a compute instance from a given
source_instance_template
. To create an instance without a template, use the
gcp.compute.Instance
resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const tpl = new gcp.compute.InstanceTemplate("tpl", {
name: "template",
machineType: "e2-medium",
disks: [{
sourceImage: "debian-cloud/debian-11",
autoDelete: true,
diskSizeGb: 100,
boot: true,
}],
networkInterfaces: [{
network: "default",
}],
metadata: {
foo: "bar",
},
canIpForward: true,
});
const tplInstanceFromTemplate = new gcp.compute.InstanceFromTemplate("tpl", {
name: "instance-from-template",
zone: "us-central1-a",
sourceInstanceTemplate: tpl.selfLinkUnique,
canIpForward: false,
labels: {
my_key: "my_value",
},
});
import pulumi
import pulumi_gcp as gcp
tpl = gcp.compute.InstanceTemplate("tpl",
name="template",
machine_type="e2-medium",
disks=[{
"source_image": "debian-cloud/debian-11",
"auto_delete": True,
"disk_size_gb": 100,
"boot": True,
}],
network_interfaces=[{
"network": "default",
}],
metadata={
"foo": "bar",
},
can_ip_forward=True)
tpl_instance_from_template = gcp.compute.InstanceFromTemplate("tpl",
name="instance-from-template",
zone="us-central1-a",
source_instance_template=tpl.self_link_unique,
can_ip_forward=False,
labels={
"my_key": "my_value",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tpl, err := compute.NewInstanceTemplate(ctx, "tpl", &compute.InstanceTemplateArgs{
Name: pulumi.String("template"),
MachineType: pulumi.String("e2-medium"),
Disks: compute.InstanceTemplateDiskArray{
&compute.InstanceTemplateDiskArgs{
SourceImage: pulumi.String("debian-cloud/debian-11"),
AutoDelete: pulumi.Bool(true),
DiskSizeGb: pulumi.Int(100),
Boot: pulumi.Bool(true),
},
},
NetworkInterfaces: compute.InstanceTemplateNetworkInterfaceArray{
&compute.InstanceTemplateNetworkInterfaceArgs{
Network: pulumi.String("default"),
},
},
Metadata: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
CanIpForward: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = compute.NewInstanceFromTemplate(ctx, "tpl", &compute.InstanceFromTemplateArgs{
Name: pulumi.String("instance-from-template"),
Zone: pulumi.String("us-central1-a"),
SourceInstanceTemplate: tpl.SelfLinkUnique,
CanIpForward: pulumi.Bool(false),
Labels: pulumi.StringMap{
"my_key": pulumi.String("my_value"),
},
})
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 tpl = new Gcp.Compute.InstanceTemplate("tpl", new()
{
Name = "template",
MachineType = "e2-medium",
Disks = new[]
{
new Gcp.Compute.Inputs.InstanceTemplateDiskArgs
{
SourceImage = "debian-cloud/debian-11",
AutoDelete = true,
DiskSizeGb = 100,
Boot = true,
},
},
NetworkInterfaces = new[]
{
new Gcp.Compute.Inputs.InstanceTemplateNetworkInterfaceArgs
{
Network = "default",
},
},
Metadata =
{
{ "foo", "bar" },
},
CanIpForward = true,
});
var tplInstanceFromTemplate = new Gcp.Compute.InstanceFromTemplate("tpl", new()
{
Name = "instance-from-template",
Zone = "us-central1-a",
SourceInstanceTemplate = tpl.SelfLinkUnique,
CanIpForward = false,
Labels =
{
{ "my_key", "my_value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.InstanceTemplate;
import com.pulumi.gcp.compute.InstanceTemplateArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs;
import com.pulumi.gcp.compute.InstanceFromTemplate;
import com.pulumi.gcp.compute.InstanceFromTemplateArgs;
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 tpl = new InstanceTemplate("tpl", InstanceTemplateArgs.builder()
.name("template")
.machineType("e2-medium")
.disks(InstanceTemplateDiskArgs.builder()
.sourceImage("debian-cloud/debian-11")
.autoDelete(true)
.diskSizeGb(100)
.boot(true)
.build())
.networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder()
.network("default")
.build())
.metadata(Map.of("foo", "bar"))
.canIpForward(true)
.build());
var tplInstanceFromTemplate = new InstanceFromTemplate("tplInstanceFromTemplate", InstanceFromTemplateArgs.builder()
.name("instance-from-template")
.zone("us-central1-a")
.sourceInstanceTemplate(tpl.selfLinkUnique())
.canIpForward(false)
.labels(Map.of("my_key", "my_value"))
.build());
}
}
resources:
tpl:
type: gcp:compute:InstanceTemplate
properties:
name: template
machineType: e2-medium
disks:
- sourceImage: debian-cloud/debian-11
autoDelete: true
diskSizeGb: 100
boot: true
networkInterfaces:
- network: default
metadata:
foo: bar
canIpForward: true
tplInstanceFromTemplate:
type: gcp:compute:InstanceFromTemplate
name: tpl
properties:
name: instance-from-template
zone: us-central1-a
sourceInstanceTemplate: ${tpl.selfLinkUnique}
canIpForward: false
labels:
my_key: my_value
Create InstanceFromTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceFromTemplate(name: string, args: InstanceFromTemplateArgs, opts?: CustomResourceOptions);
@overload
def InstanceFromTemplate(resource_name: str,
args: InstanceFromTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceFromTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
source_instance_template: Optional[str] = None,
metadata_startup_script: Optional[str] = None,
allow_stopping_for_update: Optional[bool] = None,
boot_disk: Optional[InstanceFromTemplateBootDiskArgs] = None,
can_ip_forward: Optional[bool] = None,
confidential_instance_config: Optional[InstanceFromTemplateConfidentialInstanceConfigArgs] = None,
deletion_protection: Optional[bool] = None,
min_cpu_platform: Optional[str] = None,
desired_status: Optional[str] = None,
enable_display: Optional[bool] = None,
guest_accelerators: Optional[Sequence[InstanceFromTemplateGuestAcceleratorArgs]] = None,
hostname: Optional[str] = None,
key_revocation_action_type: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
machine_type: Optional[str] = None,
zone: Optional[str] = None,
attached_disks: Optional[Sequence[InstanceFromTemplateAttachedDiskArgs]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[InstanceFromTemplateNetworkInterfaceArgs]] = None,
network_performance_config: Optional[InstanceFromTemplateNetworkPerformanceConfigArgs] = None,
params: Optional[InstanceFromTemplateParamsArgs] = None,
partner_metadata: Optional[Mapping[str, str]] = None,
project: Optional[str] = None,
reservation_affinity: Optional[InstanceFromTemplateReservationAffinityArgs] = None,
resource_policies: Optional[str] = None,
scheduling: Optional[InstanceFromTemplateSchedulingArgs] = None,
scratch_disks: Optional[Sequence[InstanceFromTemplateScratchDiskArgs]] = None,
service_account: Optional[InstanceFromTemplateServiceAccountArgs] = None,
shielded_instance_config: Optional[InstanceFromTemplateShieldedInstanceConfigArgs] = None,
advanced_machine_features: Optional[InstanceFromTemplateAdvancedMachineFeaturesArgs] = None,
tags: Optional[Sequence[str]] = None,
metadata: Optional[Mapping[str, str]] = None)
func NewInstanceFromTemplate(ctx *Context, name string, args InstanceFromTemplateArgs, opts ...ResourceOption) (*InstanceFromTemplate, error)
public InstanceFromTemplate(string name, InstanceFromTemplateArgs args, CustomResourceOptions? opts = null)
public InstanceFromTemplate(String name, InstanceFromTemplateArgs args)
public InstanceFromTemplate(String name, InstanceFromTemplateArgs args, CustomResourceOptions options)
type: gcp:compute:InstanceFromTemplate
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 InstanceFromTemplateArgs
- 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 InstanceFromTemplateArgs
- 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 InstanceFromTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceFromTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceFromTemplateArgs
- 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 instanceFromTemplateResource = new Gcp.Compute.InstanceFromTemplate("instanceFromTemplateResource", new()
{
SourceInstanceTemplate = "string",
MetadataStartupScript = "string",
AllowStoppingForUpdate = false,
BootDisk = new Gcp.Compute.Inputs.InstanceFromTemplateBootDiskArgs
{
AutoDelete = false,
DeviceName = "string",
DiskEncryptionKeyRaw = "string",
DiskEncryptionKeySha256 = "string",
InitializeParams = new Gcp.Compute.Inputs.InstanceFromTemplateBootDiskInitializeParamsArgs
{
EnableConfidentialCompute = false,
Image = "string",
Labels =
{
{ "string", "string" },
},
ProvisionedIops = 0,
ProvisionedThroughput = 0,
ResourceManagerTags =
{
{ "string", "string" },
},
ResourcePolicies = "string",
Size = 0,
StoragePool = "string",
Type = "string",
},
Interface = "string",
KmsKeySelfLink = "string",
Mode = "string",
Source = "string",
},
CanIpForward = false,
ConfidentialInstanceConfig = new Gcp.Compute.Inputs.InstanceFromTemplateConfidentialInstanceConfigArgs
{
ConfidentialInstanceType = "string",
EnableConfidentialCompute = false,
},
DeletionProtection = false,
MinCpuPlatform = "string",
DesiredStatus = "string",
EnableDisplay = false,
GuestAccelerators = new[]
{
new Gcp.Compute.Inputs.InstanceFromTemplateGuestAcceleratorArgs
{
Count = 0,
Type = "string",
},
},
Hostname = "string",
KeyRevocationActionType = "string",
Labels =
{
{ "string", "string" },
},
MachineType = "string",
Zone = "string",
AttachedDisks = new[]
{
new Gcp.Compute.Inputs.InstanceFromTemplateAttachedDiskArgs
{
Source = "string",
DeviceName = "string",
DiskEncryptionKeyRaw = "string",
DiskEncryptionKeySha256 = "string",
KmsKeySelfLink = "string",
Mode = "string",
},
},
Description = "string",
Name = "string",
NetworkInterfaces = new[]
{
new Gcp.Compute.Inputs.InstanceFromTemplateNetworkInterfaceArgs
{
AccessConfigs = new[]
{
new Gcp.Compute.Inputs.InstanceFromTemplateNetworkInterfaceAccessConfigArgs
{
NatIp = "string",
NetworkTier = "string",
PublicPtrDomainName = "string",
SecurityPolicy = "string",
},
},
AliasIpRanges = new[]
{
new Gcp.Compute.Inputs.InstanceFromTemplateNetworkInterfaceAliasIpRangeArgs
{
IpCidrRange = "string",
SubnetworkRangeName = "string",
},
},
InternalIpv6PrefixLength = 0,
Ipv6AccessConfigs = new[]
{
new Gcp.Compute.Inputs.InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArgs
{
NetworkTier = "string",
ExternalIpv6 = "string",
ExternalIpv6PrefixLength = "string",
Name = "string",
PublicPtrDomainName = "string",
SecurityPolicy = "string",
},
},
Ipv6AccessType = "string",
Ipv6Address = "string",
Name = "string",
Network = "string",
NetworkAttachment = "string",
NetworkIp = "string",
NicType = "string",
QueueCount = 0,
SecurityPolicy = "string",
StackType = "string",
Subnetwork = "string",
SubnetworkProject = "string",
},
},
NetworkPerformanceConfig = new Gcp.Compute.Inputs.InstanceFromTemplateNetworkPerformanceConfigArgs
{
TotalEgressBandwidthTier = "string",
},
Params = new Gcp.Compute.Inputs.InstanceFromTemplateParamsArgs
{
ResourceManagerTags =
{
{ "string", "string" },
},
},
PartnerMetadata =
{
{ "string", "string" },
},
Project = "string",
ReservationAffinity = new Gcp.Compute.Inputs.InstanceFromTemplateReservationAffinityArgs
{
Type = "string",
SpecificReservation = new Gcp.Compute.Inputs.InstanceFromTemplateReservationAffinitySpecificReservationArgs
{
Key = "string",
Values = new[]
{
"string",
},
},
},
ResourcePolicies = "string",
Scheduling = new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingArgs
{
AutomaticRestart = false,
HostErrorTimeoutSeconds = 0,
InstanceTerminationAction = "string",
LocalSsdRecoveryTimeout = new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingLocalSsdRecoveryTimeoutArgs
{
Seconds = 0,
Nanos = 0,
},
MaintenanceInterval = "string",
MaxRunDuration = new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingMaxRunDurationArgs
{
Seconds = 0,
Nanos = 0,
},
MinNodeCpus = 0,
NodeAffinities = new[]
{
new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingNodeAffinityArgs
{
Key = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
OnHostMaintenance = "string",
OnInstanceStopAction = new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingOnInstanceStopActionArgs
{
DiscardLocalSsd = false,
},
Preemptible = false,
ProvisioningModel = "string",
},
ScratchDisks = new[]
{
new Gcp.Compute.Inputs.InstanceFromTemplateScratchDiskArgs
{
Interface = "string",
DeviceName = "string",
Size = 0,
},
},
ServiceAccount = new Gcp.Compute.Inputs.InstanceFromTemplateServiceAccountArgs
{
Scopes = new[]
{
"string",
},
Email = "string",
},
ShieldedInstanceConfig = new Gcp.Compute.Inputs.InstanceFromTemplateShieldedInstanceConfigArgs
{
EnableIntegrityMonitoring = false,
EnableSecureBoot = false,
EnableVtpm = false,
},
AdvancedMachineFeatures = new Gcp.Compute.Inputs.InstanceFromTemplateAdvancedMachineFeaturesArgs
{
EnableNestedVirtualization = false,
ThreadsPerCore = 0,
TurboMode = "string",
VisibleCoreCount = 0,
},
Tags = new[]
{
"string",
},
Metadata =
{
{ "string", "string" },
},
});
example, err := compute.NewInstanceFromTemplate(ctx, "instanceFromTemplateResource", &compute.InstanceFromTemplateArgs{
SourceInstanceTemplate: pulumi.String("string"),
MetadataStartupScript: pulumi.String("string"),
AllowStoppingForUpdate: pulumi.Bool(false),
BootDisk: &compute.InstanceFromTemplateBootDiskArgs{
AutoDelete: pulumi.Bool(false),
DeviceName: pulumi.String("string"),
DiskEncryptionKeyRaw: pulumi.String("string"),
DiskEncryptionKeySha256: pulumi.String("string"),
InitializeParams: &compute.InstanceFromTemplateBootDiskInitializeParamsArgs{
EnableConfidentialCompute: pulumi.Bool(false),
Image: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
ProvisionedIops: pulumi.Int(0),
ProvisionedThroughput: pulumi.Int(0),
ResourceManagerTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
ResourcePolicies: pulumi.String("string"),
Size: pulumi.Int(0),
StoragePool: pulumi.String("string"),
Type: pulumi.String("string"),
},
Interface: pulumi.String("string"),
KmsKeySelfLink: pulumi.String("string"),
Mode: pulumi.String("string"),
Source: pulumi.String("string"),
},
CanIpForward: pulumi.Bool(false),
ConfidentialInstanceConfig: &compute.InstanceFromTemplateConfidentialInstanceConfigArgs{
ConfidentialInstanceType: pulumi.String("string"),
EnableConfidentialCompute: pulumi.Bool(false),
},
DeletionProtection: pulumi.Bool(false),
MinCpuPlatform: pulumi.String("string"),
DesiredStatus: pulumi.String("string"),
EnableDisplay: pulumi.Bool(false),
GuestAccelerators: compute.InstanceFromTemplateGuestAcceleratorArray{
&compute.InstanceFromTemplateGuestAcceleratorArgs{
Count: pulumi.Int(0),
Type: pulumi.String("string"),
},
},
Hostname: pulumi.String("string"),
KeyRevocationActionType: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
MachineType: pulumi.String("string"),
Zone: pulumi.String("string"),
AttachedDisks: compute.InstanceFromTemplateAttachedDiskArray{
&compute.InstanceFromTemplateAttachedDiskArgs{
Source: pulumi.String("string"),
DeviceName: pulumi.String("string"),
DiskEncryptionKeyRaw: pulumi.String("string"),
DiskEncryptionKeySha256: pulumi.String("string"),
KmsKeySelfLink: pulumi.String("string"),
Mode: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
NetworkInterfaces: compute.InstanceFromTemplateNetworkInterfaceArray{
&compute.InstanceFromTemplateNetworkInterfaceArgs{
AccessConfigs: compute.InstanceFromTemplateNetworkInterfaceAccessConfigArray{
&compute.InstanceFromTemplateNetworkInterfaceAccessConfigArgs{
NatIp: pulumi.String("string"),
NetworkTier: pulumi.String("string"),
PublicPtrDomainName: pulumi.String("string"),
SecurityPolicy: pulumi.String("string"),
},
},
AliasIpRanges: compute.InstanceFromTemplateNetworkInterfaceAliasIpRangeArray{
&compute.InstanceFromTemplateNetworkInterfaceAliasIpRangeArgs{
IpCidrRange: pulumi.String("string"),
SubnetworkRangeName: pulumi.String("string"),
},
},
InternalIpv6PrefixLength: pulumi.Int(0),
Ipv6AccessConfigs: compute.InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArray{
&compute.InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArgs{
NetworkTier: pulumi.String("string"),
ExternalIpv6: pulumi.String("string"),
ExternalIpv6PrefixLength: pulumi.String("string"),
Name: pulumi.String("string"),
PublicPtrDomainName: pulumi.String("string"),
SecurityPolicy: pulumi.String("string"),
},
},
Ipv6AccessType: pulumi.String("string"),
Ipv6Address: pulumi.String("string"),
Name: pulumi.String("string"),
Network: pulumi.String("string"),
NetworkAttachment: pulumi.String("string"),
NetworkIp: pulumi.String("string"),
NicType: pulumi.String("string"),
QueueCount: pulumi.Int(0),
SecurityPolicy: pulumi.String("string"),
StackType: pulumi.String("string"),
Subnetwork: pulumi.String("string"),
SubnetworkProject: pulumi.String("string"),
},
},
NetworkPerformanceConfig: &compute.InstanceFromTemplateNetworkPerformanceConfigArgs{
TotalEgressBandwidthTier: pulumi.String("string"),
},
Params: &compute.InstanceFromTemplateParamsArgs{
ResourceManagerTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
PartnerMetadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Project: pulumi.String("string"),
ReservationAffinity: &compute.InstanceFromTemplateReservationAffinityArgs{
Type: pulumi.String("string"),
SpecificReservation: &compute.InstanceFromTemplateReservationAffinitySpecificReservationArgs{
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ResourcePolicies: pulumi.String("string"),
Scheduling: &compute.InstanceFromTemplateSchedulingArgs{
AutomaticRestart: pulumi.Bool(false),
HostErrorTimeoutSeconds: pulumi.Int(0),
InstanceTerminationAction: pulumi.String("string"),
LocalSsdRecoveryTimeout: &compute.InstanceFromTemplateSchedulingLocalSsdRecoveryTimeoutArgs{
Seconds: pulumi.Int(0),
Nanos: pulumi.Int(0),
},
MaintenanceInterval: pulumi.String("string"),
MaxRunDuration: &compute.InstanceFromTemplateSchedulingMaxRunDurationArgs{
Seconds: pulumi.Int(0),
Nanos: pulumi.Int(0),
},
MinNodeCpus: pulumi.Int(0),
NodeAffinities: compute.InstanceFromTemplateSchedulingNodeAffinityArray{
&compute.InstanceFromTemplateSchedulingNodeAffinityArgs{
Key: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
OnHostMaintenance: pulumi.String("string"),
OnInstanceStopAction: &compute.InstanceFromTemplateSchedulingOnInstanceStopActionArgs{
DiscardLocalSsd: pulumi.Bool(false),
},
Preemptible: pulumi.Bool(false),
ProvisioningModel: pulumi.String("string"),
},
ScratchDisks: compute.InstanceFromTemplateScratchDiskArray{
&compute.InstanceFromTemplateScratchDiskArgs{
Interface: pulumi.String("string"),
DeviceName: pulumi.String("string"),
Size: pulumi.Int(0),
},
},
ServiceAccount: &compute.InstanceFromTemplateServiceAccountArgs{
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
Email: pulumi.String("string"),
},
ShieldedInstanceConfig: &compute.InstanceFromTemplateShieldedInstanceConfigArgs{
EnableIntegrityMonitoring: pulumi.Bool(false),
EnableSecureBoot: pulumi.Bool(false),
EnableVtpm: pulumi.Bool(false),
},
AdvancedMachineFeatures: &compute.InstanceFromTemplateAdvancedMachineFeaturesArgs{
EnableNestedVirtualization: pulumi.Bool(false),
ThreadsPerCore: pulumi.Int(0),
TurboMode: pulumi.String("string"),
VisibleCoreCount: pulumi.Int(0),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var instanceFromTemplateResource = new InstanceFromTemplate("instanceFromTemplateResource", InstanceFromTemplateArgs.builder()
.sourceInstanceTemplate("string")
.metadataStartupScript("string")
.allowStoppingForUpdate(false)
.bootDisk(InstanceFromTemplateBootDiskArgs.builder()
.autoDelete(false)
.deviceName("string")
.diskEncryptionKeyRaw("string")
.diskEncryptionKeySha256("string")
.initializeParams(InstanceFromTemplateBootDiskInitializeParamsArgs.builder()
.enableConfidentialCompute(false)
.image("string")
.labels(Map.of("string", "string"))
.provisionedIops(0)
.provisionedThroughput(0)
.resourceManagerTags(Map.of("string", "string"))
.resourcePolicies("string")
.size(0)
.storagePool("string")
.type("string")
.build())
.interface_("string")
.kmsKeySelfLink("string")
.mode("string")
.source("string")
.build())
.canIpForward(false)
.confidentialInstanceConfig(InstanceFromTemplateConfidentialInstanceConfigArgs.builder()
.confidentialInstanceType("string")
.enableConfidentialCompute(false)
.build())
.deletionProtection(false)
.minCpuPlatform("string")
.desiredStatus("string")
.enableDisplay(false)
.guestAccelerators(InstanceFromTemplateGuestAcceleratorArgs.builder()
.count(0)
.type("string")
.build())
.hostname("string")
.keyRevocationActionType("string")
.labels(Map.of("string", "string"))
.machineType("string")
.zone("string")
.attachedDisks(InstanceFromTemplateAttachedDiskArgs.builder()
.source("string")
.deviceName("string")
.diskEncryptionKeyRaw("string")
.diskEncryptionKeySha256("string")
.kmsKeySelfLink("string")
.mode("string")
.build())
.description("string")
.name("string")
.networkInterfaces(InstanceFromTemplateNetworkInterfaceArgs.builder()
.accessConfigs(InstanceFromTemplateNetworkInterfaceAccessConfigArgs.builder()
.natIp("string")
.networkTier("string")
.publicPtrDomainName("string")
.securityPolicy("string")
.build())
.aliasIpRanges(InstanceFromTemplateNetworkInterfaceAliasIpRangeArgs.builder()
.ipCidrRange("string")
.subnetworkRangeName("string")
.build())
.internalIpv6PrefixLength(0)
.ipv6AccessConfigs(InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArgs.builder()
.networkTier("string")
.externalIpv6("string")
.externalIpv6PrefixLength("string")
.name("string")
.publicPtrDomainName("string")
.securityPolicy("string")
.build())
.ipv6AccessType("string")
.ipv6Address("string")
.name("string")
.network("string")
.networkAttachment("string")
.networkIp("string")
.nicType("string")
.queueCount(0)
.securityPolicy("string")
.stackType("string")
.subnetwork("string")
.subnetworkProject("string")
.build())
.networkPerformanceConfig(InstanceFromTemplateNetworkPerformanceConfigArgs.builder()
.totalEgressBandwidthTier("string")
.build())
.params(InstanceFromTemplateParamsArgs.builder()
.resourceManagerTags(Map.of("string", "string"))
.build())
.partnerMetadata(Map.of("string", "string"))
.project("string")
.reservationAffinity(InstanceFromTemplateReservationAffinityArgs.builder()
.type("string")
.specificReservation(InstanceFromTemplateReservationAffinitySpecificReservationArgs.builder()
.key("string")
.values("string")
.build())
.build())
.resourcePolicies("string")
.scheduling(InstanceFromTemplateSchedulingArgs.builder()
.automaticRestart(false)
.hostErrorTimeoutSeconds(0)
.instanceTerminationAction("string")
.localSsdRecoveryTimeout(InstanceFromTemplateSchedulingLocalSsdRecoveryTimeoutArgs.builder()
.seconds(0)
.nanos(0)
.build())
.maintenanceInterval("string")
.maxRunDuration(InstanceFromTemplateSchedulingMaxRunDurationArgs.builder()
.seconds(0)
.nanos(0)
.build())
.minNodeCpus(0)
.nodeAffinities(InstanceFromTemplateSchedulingNodeAffinityArgs.builder()
.key("string")
.operator("string")
.values("string")
.build())
.onHostMaintenance("string")
.onInstanceStopAction(InstanceFromTemplateSchedulingOnInstanceStopActionArgs.builder()
.discardLocalSsd(false)
.build())
.preemptible(false)
.provisioningModel("string")
.build())
.scratchDisks(InstanceFromTemplateScratchDiskArgs.builder()
.interface_("string")
.deviceName("string")
.size(0)
.build())
.serviceAccount(InstanceFromTemplateServiceAccountArgs.builder()
.scopes("string")
.email("string")
.build())
.shieldedInstanceConfig(InstanceFromTemplateShieldedInstanceConfigArgs.builder()
.enableIntegrityMonitoring(false)
.enableSecureBoot(false)
.enableVtpm(false)
.build())
.advancedMachineFeatures(InstanceFromTemplateAdvancedMachineFeaturesArgs.builder()
.enableNestedVirtualization(false)
.threadsPerCore(0)
.turboMode("string")
.visibleCoreCount(0)
.build())
.tags("string")
.metadata(Map.of("string", "string"))
.build());
instance_from_template_resource = gcp.compute.InstanceFromTemplate("instanceFromTemplateResource",
source_instance_template="string",
metadata_startup_script="string",
allow_stopping_for_update=False,
boot_disk={
"auto_delete": False,
"device_name": "string",
"disk_encryption_key_raw": "string",
"disk_encryption_key_sha256": "string",
"initialize_params": {
"enable_confidential_compute": False,
"image": "string",
"labels": {
"string": "string",
},
"provisioned_iops": 0,
"provisioned_throughput": 0,
"resource_manager_tags": {
"string": "string",
},
"resource_policies": "string",
"size": 0,
"storage_pool": "string",
"type": "string",
},
"interface": "string",
"kms_key_self_link": "string",
"mode": "string",
"source": "string",
},
can_ip_forward=False,
confidential_instance_config={
"confidential_instance_type": "string",
"enable_confidential_compute": False,
},
deletion_protection=False,
min_cpu_platform="string",
desired_status="string",
enable_display=False,
guest_accelerators=[{
"count": 0,
"type": "string",
}],
hostname="string",
key_revocation_action_type="string",
labels={
"string": "string",
},
machine_type="string",
zone="string",
attached_disks=[{
"source": "string",
"device_name": "string",
"disk_encryption_key_raw": "string",
"disk_encryption_key_sha256": "string",
"kms_key_self_link": "string",
"mode": "string",
}],
description="string",
name="string",
network_interfaces=[{
"access_configs": [{
"nat_ip": "string",
"network_tier": "string",
"public_ptr_domain_name": "string",
"security_policy": "string",
}],
"alias_ip_ranges": [{
"ip_cidr_range": "string",
"subnetwork_range_name": "string",
}],
"internal_ipv6_prefix_length": 0,
"ipv6_access_configs": [{
"network_tier": "string",
"external_ipv6": "string",
"external_ipv6_prefix_length": "string",
"name": "string",
"public_ptr_domain_name": "string",
"security_policy": "string",
}],
"ipv6_access_type": "string",
"ipv6_address": "string",
"name": "string",
"network": "string",
"network_attachment": "string",
"network_ip": "string",
"nic_type": "string",
"queue_count": 0,
"security_policy": "string",
"stack_type": "string",
"subnetwork": "string",
"subnetwork_project": "string",
}],
network_performance_config={
"total_egress_bandwidth_tier": "string",
},
params={
"resource_manager_tags": {
"string": "string",
},
},
partner_metadata={
"string": "string",
},
project="string",
reservation_affinity={
"type": "string",
"specific_reservation": {
"key": "string",
"values": ["string"],
},
},
resource_policies="string",
scheduling={
"automatic_restart": False,
"host_error_timeout_seconds": 0,
"instance_termination_action": "string",
"local_ssd_recovery_timeout": {
"seconds": 0,
"nanos": 0,
},
"maintenance_interval": "string",
"max_run_duration": {
"seconds": 0,
"nanos": 0,
},
"min_node_cpus": 0,
"node_affinities": [{
"key": "string",
"operator": "string",
"values": ["string"],
}],
"on_host_maintenance": "string",
"on_instance_stop_action": {
"discard_local_ssd": False,
},
"preemptible": False,
"provisioning_model": "string",
},
scratch_disks=[{
"interface": "string",
"device_name": "string",
"size": 0,
}],
service_account={
"scopes": ["string"],
"email": "string",
},
shielded_instance_config={
"enable_integrity_monitoring": False,
"enable_secure_boot": False,
"enable_vtpm": False,
},
advanced_machine_features={
"enable_nested_virtualization": False,
"threads_per_core": 0,
"turbo_mode": "string",
"visible_core_count": 0,
},
tags=["string"],
metadata={
"string": "string",
})
const instanceFromTemplateResource = new gcp.compute.InstanceFromTemplate("instanceFromTemplateResource", {
sourceInstanceTemplate: "string",
metadataStartupScript: "string",
allowStoppingForUpdate: false,
bootDisk: {
autoDelete: false,
deviceName: "string",
diskEncryptionKeyRaw: "string",
diskEncryptionKeySha256: "string",
initializeParams: {
enableConfidentialCompute: false,
image: "string",
labels: {
string: "string",
},
provisionedIops: 0,
provisionedThroughput: 0,
resourceManagerTags: {
string: "string",
},
resourcePolicies: "string",
size: 0,
storagePool: "string",
type: "string",
},
"interface": "string",
kmsKeySelfLink: "string",
mode: "string",
source: "string",
},
canIpForward: false,
confidentialInstanceConfig: {
confidentialInstanceType: "string",
enableConfidentialCompute: false,
},
deletionProtection: false,
minCpuPlatform: "string",
desiredStatus: "string",
enableDisplay: false,
guestAccelerators: [{
count: 0,
type: "string",
}],
hostname: "string",
keyRevocationActionType: "string",
labels: {
string: "string",
},
machineType: "string",
zone: "string",
attachedDisks: [{
source: "string",
deviceName: "string",
diskEncryptionKeyRaw: "string",
diskEncryptionKeySha256: "string",
kmsKeySelfLink: "string",
mode: "string",
}],
description: "string",
name: "string",
networkInterfaces: [{
accessConfigs: [{
natIp: "string",
networkTier: "string",
publicPtrDomainName: "string",
securityPolicy: "string",
}],
aliasIpRanges: [{
ipCidrRange: "string",
subnetworkRangeName: "string",
}],
internalIpv6PrefixLength: 0,
ipv6AccessConfigs: [{
networkTier: "string",
externalIpv6: "string",
externalIpv6PrefixLength: "string",
name: "string",
publicPtrDomainName: "string",
securityPolicy: "string",
}],
ipv6AccessType: "string",
ipv6Address: "string",
name: "string",
network: "string",
networkAttachment: "string",
networkIp: "string",
nicType: "string",
queueCount: 0,
securityPolicy: "string",
stackType: "string",
subnetwork: "string",
subnetworkProject: "string",
}],
networkPerformanceConfig: {
totalEgressBandwidthTier: "string",
},
params: {
resourceManagerTags: {
string: "string",
},
},
partnerMetadata: {
string: "string",
},
project: "string",
reservationAffinity: {
type: "string",
specificReservation: {
key: "string",
values: ["string"],
},
},
resourcePolicies: "string",
scheduling: {
automaticRestart: false,
hostErrorTimeoutSeconds: 0,
instanceTerminationAction: "string",
localSsdRecoveryTimeout: {
seconds: 0,
nanos: 0,
},
maintenanceInterval: "string",
maxRunDuration: {
seconds: 0,
nanos: 0,
},
minNodeCpus: 0,
nodeAffinities: [{
key: "string",
operator: "string",
values: ["string"],
}],
onHostMaintenance: "string",
onInstanceStopAction: {
discardLocalSsd: false,
},
preemptible: false,
provisioningModel: "string",
},
scratchDisks: [{
"interface": "string",
deviceName: "string",
size: 0,
}],
serviceAccount: {
scopes: ["string"],
email: "string",
},
shieldedInstanceConfig: {
enableIntegrityMonitoring: false,
enableSecureBoot: false,
enableVtpm: false,
},
advancedMachineFeatures: {
enableNestedVirtualization: false,
threadsPerCore: 0,
turboMode: "string",
visibleCoreCount: 0,
},
tags: ["string"],
metadata: {
string: "string",
},
});
type: gcp:compute:InstanceFromTemplate
properties:
advancedMachineFeatures:
enableNestedVirtualization: false
threadsPerCore: 0
turboMode: string
visibleCoreCount: 0
allowStoppingForUpdate: false
attachedDisks:
- deviceName: string
diskEncryptionKeyRaw: string
diskEncryptionKeySha256: string
kmsKeySelfLink: string
mode: string
source: string
bootDisk:
autoDelete: false
deviceName: string
diskEncryptionKeyRaw: string
diskEncryptionKeySha256: string
initializeParams:
enableConfidentialCompute: false
image: string
labels:
string: string
provisionedIops: 0
provisionedThroughput: 0
resourceManagerTags:
string: string
resourcePolicies: string
size: 0
storagePool: string
type: string
interface: string
kmsKeySelfLink: string
mode: string
source: string
canIpForward: false
confidentialInstanceConfig:
confidentialInstanceType: string
enableConfidentialCompute: false
deletionProtection: false
description: string
desiredStatus: string
enableDisplay: false
guestAccelerators:
- count: 0
type: string
hostname: string
keyRevocationActionType: string
labels:
string: string
machineType: string
metadata:
string: string
metadataStartupScript: string
minCpuPlatform: string
name: string
networkInterfaces:
- accessConfigs:
- natIp: string
networkTier: string
publicPtrDomainName: string
securityPolicy: string
aliasIpRanges:
- ipCidrRange: string
subnetworkRangeName: string
internalIpv6PrefixLength: 0
ipv6AccessConfigs:
- externalIpv6: string
externalIpv6PrefixLength: string
name: string
networkTier: string
publicPtrDomainName: string
securityPolicy: string
ipv6AccessType: string
ipv6Address: string
name: string
network: string
networkAttachment: string
networkIp: string
nicType: string
queueCount: 0
securityPolicy: string
stackType: string
subnetwork: string
subnetworkProject: string
networkPerformanceConfig:
totalEgressBandwidthTier: string
params:
resourceManagerTags:
string: string
partnerMetadata:
string: string
project: string
reservationAffinity:
specificReservation:
key: string
values:
- string
type: string
resourcePolicies: string
scheduling:
automaticRestart: false
hostErrorTimeoutSeconds: 0
instanceTerminationAction: string
localSsdRecoveryTimeout:
nanos: 0
seconds: 0
maintenanceInterval: string
maxRunDuration:
nanos: 0
seconds: 0
minNodeCpus: 0
nodeAffinities:
- key: string
operator: string
values:
- string
onHostMaintenance: string
onInstanceStopAction:
discardLocalSsd: false
preemptible: false
provisioningModel: string
scratchDisks:
- deviceName: string
interface: string
size: 0
serviceAccount:
email: string
scopes:
- string
shieldedInstanceConfig:
enableIntegrityMonitoring: false
enableSecureBoot: false
enableVtpm: false
sourceInstanceTemplate: string
tags:
- string
zone: string
InstanceFromTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InstanceFromTemplate resource accepts the following input properties:
- Source
Instance stringTemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - Advanced
Machine InstanceFeatures From Template Advanced Machine Features - Controls for advanced machine-related behavior features.
- Allow
Stopping boolFor Update - Attached
Disks List<InstanceFrom Template Attached Disk> - List of disks attached to the instance
- Boot
Disk InstanceFrom Template Boot Disk - The boot disk for the instance.
- Can
Ip boolForward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- Confidential
Instance InstanceConfig From Template Confidential Instance Config - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- Deletion
Protection bool - Whether deletion protection is enabled on this instance.
- Description string
- A brief description of the resource.
- Desired
Status string - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- Enable
Display bool - Whether the instance has virtual displays enabled.
- Guest
Accelerators List<InstanceFrom Template Guest Accelerator> - List of the type and count of accelerator cards attached to the instance.
- Hostname string
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- Key
Revocation stringAction Type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- Labels Dictionary<string, string>
- A set of key/value label pairs assigned to the instance. 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.
- Machine
Type string - The machine type to create.
- Metadata Dictionary<string, string>
- Metadata key/value pairs made available within the instance.
- Metadata
Startup stringScript - Metadata startup scripts made available within the instance.
- Min
Cpu stringPlatform - The minimum CPU platform specified for the VM instance.
- Name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network
Interfaces List<InstanceFrom Template Network Interface> - The networks attached to the instance.
- Network
Performance InstanceConfig From Template Network Performance Config - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- Params
Instance
From Template Params - Stores additional params passed with the request, but not persisted as part of resource payload.
- Partner
Metadata Dictionary<string, string> - Partner Metadata Map made available within the instance.
- Project string
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
- Reservation
Affinity InstanceFrom Template Reservation Affinity - Specifies the reservations that this instance can consume from.
- Resource
Policies string - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- Scheduling
Instance
From Template Scheduling - The scheduling strategy being used by the instance.
- Scratch
Disks List<InstanceFrom Template Scratch Disk> - The scratch disks attached to the instance.
- Service
Account InstanceFrom Template Service Account - The service account to attach to the instance.
- Shielded
Instance InstanceConfig From Template Shielded Instance Config - The shielded vm config being used by the instance.
- List<string>
- The list of tags attached to the instance.
- Zone string
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
- Source
Instance stringTemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - Advanced
Machine InstanceFeatures From Template Advanced Machine Features Args - Controls for advanced machine-related behavior features.
- Allow
Stopping boolFor Update - Attached
Disks []InstanceFrom Template Attached Disk Args - List of disks attached to the instance
- Boot
Disk InstanceFrom Template Boot Disk Args - The boot disk for the instance.
- Can
Ip boolForward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- Confidential
Instance InstanceConfig From Template Confidential Instance Config Args - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- Deletion
Protection bool - Whether deletion protection is enabled on this instance.
- Description string
- A brief description of the resource.
- Desired
Status string - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- Enable
Display bool - Whether the instance has virtual displays enabled.
- Guest
Accelerators []InstanceFrom Template Guest Accelerator Args - List of the type and count of accelerator cards attached to the instance.
- Hostname string
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- Key
Revocation stringAction Type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- Labels map[string]string
- A set of key/value label pairs assigned to the instance. 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.
- Machine
Type string - The machine type to create.
- Metadata map[string]string
- Metadata key/value pairs made available within the instance.
- Metadata
Startup stringScript - Metadata startup scripts made available within the instance.
- Min
Cpu stringPlatform - The minimum CPU platform specified for the VM instance.
- Name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network
Interfaces []InstanceFrom Template Network Interface Args - The networks attached to the instance.
- Network
Performance InstanceConfig From Template Network Performance Config Args - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- Params
Instance
From Template Params Args - Stores additional params passed with the request, but not persisted as part of resource payload.
- Partner
Metadata map[string]string - Partner Metadata Map made available within the instance.
- Project string
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
- Reservation
Affinity InstanceFrom Template Reservation Affinity Args - Specifies the reservations that this instance can consume from.
- Resource
Policies string - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- Scheduling
Instance
From Template Scheduling Args - The scheduling strategy being used by the instance.
- Scratch
Disks []InstanceFrom Template Scratch Disk Args - The scratch disks attached to the instance.
- Service
Account InstanceFrom Template Service Account Args - The service account to attach to the instance.
- Shielded
Instance InstanceConfig From Template Shielded Instance Config Args - The shielded vm config being used by the instance.
- []string
- The list of tags attached to the instance.
- Zone string
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
- source
Instance StringTemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - advanced
Machine InstanceFeatures From Template Advanced Machine Features - Controls for advanced machine-related behavior features.
- allow
Stopping BooleanFor Update - attached
Disks List<InstanceFrom Template Attached Disk> - List of disks attached to the instance
- boot
Disk InstanceFrom Template Boot Disk - The boot disk for the instance.
- can
Ip BooleanForward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance InstanceConfig From Template Confidential Instance Config - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- deletion
Protection Boolean - Whether deletion protection is enabled on this instance.
- description String
- A brief description of the resource.
- desired
Status String - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- enable
Display Boolean - Whether the instance has virtual displays enabled.
- guest
Accelerators List<InstanceFrom Template Guest Accelerator> - List of the type and count of accelerator cards attached to the instance.
- hostname String
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- key
Revocation StringAction Type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- labels Map<String,String>
- A set of key/value label pairs assigned to the instance. 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.
- machine
Type String - The machine type to create.
- metadata Map<String,String>
- Metadata key/value pairs made available within the instance.
- metadata
Startup StringScript - Metadata startup scripts made available within the instance.
- min
Cpu StringPlatform - The minimum CPU platform specified for the VM instance.
- name String
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network
Interfaces List<InstanceFrom Template Network Interface> - The networks attached to the instance.
- network
Performance InstanceConfig From Template Network Performance Config - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params - Stores additional params passed with the request, but not persisted as part of resource payload.
- partner
Metadata Map<String,String> - Partner Metadata Map made available within the instance.
- project String
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
- reservation
Affinity InstanceFrom Template Reservation Affinity - Specifies the reservations that this instance can consume from.
- resource
Policies String - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling
Instance
From Template Scheduling - The scheduling strategy being used by the instance.
- scratch
Disks List<InstanceFrom Template Scratch Disk> - The scratch disks attached to the instance.
- service
Account InstanceFrom Template Service Account - The service account to attach to the instance.
- shielded
Instance InstanceConfig From Template Shielded Instance Config - The shielded vm config being used by the instance.
- List<String>
- The list of tags attached to the instance.
- zone String
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
- source
Instance stringTemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - advanced
Machine InstanceFeatures From Template Advanced Machine Features - Controls for advanced machine-related behavior features.
- allow
Stopping booleanFor Update - attached
Disks InstanceFrom Template Attached Disk[] - List of disks attached to the instance
- boot
Disk InstanceFrom Template Boot Disk - The boot disk for the instance.
- can
Ip booleanForward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance InstanceConfig From Template Confidential Instance Config - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- deletion
Protection boolean - Whether deletion protection is enabled on this instance.
- description string
- A brief description of the resource.
- desired
Status string - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- enable
Display boolean - Whether the instance has virtual displays enabled.
- guest
Accelerators InstanceFrom Template Guest Accelerator[] - List of the type and count of accelerator cards attached to the instance.
- hostname string
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- key
Revocation stringAction Type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- labels {[key: string]: string}
- A set of key/value label pairs assigned to the instance. 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.
- machine
Type string - The machine type to create.
- metadata {[key: string]: string}
- Metadata key/value pairs made available within the instance.
- metadata
Startup stringScript - Metadata startup scripts made available within the instance.
- min
Cpu stringPlatform - The minimum CPU platform specified for the VM instance.
- name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network
Interfaces InstanceFrom Template Network Interface[] - The networks attached to the instance.
- network
Performance InstanceConfig From Template Network Performance Config - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params - Stores additional params passed with the request, but not persisted as part of resource payload.
- partner
Metadata {[key: string]: string} - Partner Metadata Map made available within the instance.
- project string
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
- reservation
Affinity InstanceFrom Template Reservation Affinity - Specifies the reservations that this instance can consume from.
- resource
Policies string - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling
Instance
From Template Scheduling - The scheduling strategy being used by the instance.
- scratch
Disks InstanceFrom Template Scratch Disk[] - The scratch disks attached to the instance.
- service
Account InstanceFrom Template Service Account - The service account to attach to the instance.
- shielded
Instance InstanceConfig From Template Shielded Instance Config - The shielded vm config being used by the instance.
- string[]
- The list of tags attached to the instance.
- zone string
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
- source_
instance_ strtemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - advanced_
machine_ Instancefeatures From Template Advanced Machine Features Args - Controls for advanced machine-related behavior features.
- allow_
stopping_ boolfor_ update - attached_
disks Sequence[InstanceFrom Template Attached Disk Args] - List of disks attached to the instance
- boot_
disk InstanceFrom Template Boot Disk Args - The boot disk for the instance.
- can_
ip_ boolforward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential_
instance_ Instanceconfig From Template Confidential Instance Config Args - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- deletion_
protection bool - Whether deletion protection is enabled on this instance.
- description str
- A brief description of the resource.
- desired_
status str - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- enable_
display bool - Whether the instance has virtual displays enabled.
- guest_
accelerators Sequence[InstanceFrom Template Guest Accelerator Args] - List of the type and count of accelerator cards attached to the instance.
- hostname str
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- key_
revocation_ straction_ type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- labels Mapping[str, str]
- A set of key/value label pairs assigned to the instance. 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.
- machine_
type str - The machine type to create.
- metadata Mapping[str, str]
- Metadata key/value pairs made available within the instance.
- metadata_
startup_ strscript - Metadata startup scripts made available within the instance.
- min_
cpu_ strplatform - The minimum CPU platform specified for the VM instance.
- name str
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network_
interfaces Sequence[InstanceFrom Template Network Interface Args] - The networks attached to the instance.
- network_
performance_ Instanceconfig From Template Network Performance Config Args - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params Args - Stores additional params passed with the request, but not persisted as part of resource payload.
- partner_
metadata Mapping[str, str] - Partner Metadata Map made available within the instance.
- project str
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
- reservation_
affinity InstanceFrom Template Reservation Affinity Args - Specifies the reservations that this instance can consume from.
- resource_
policies str - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling
Instance
From Template Scheduling Args - The scheduling strategy being used by the instance.
- scratch_
disks Sequence[InstanceFrom Template Scratch Disk Args] - The scratch disks attached to the instance.
- service_
account InstanceFrom Template Service Account Args - The service account to attach to the instance.
- shielded_
instance_ Instanceconfig From Template Shielded Instance Config Args - The shielded vm config being used by the instance.
- Sequence[str]
- The list of tags attached to the instance.
- zone str
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
- source
Instance StringTemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - advanced
Machine Property MapFeatures - Controls for advanced machine-related behavior features.
- allow
Stopping BooleanFor Update - attached
Disks List<Property Map> - List of disks attached to the instance
- boot
Disk Property Map - The boot disk for the instance.
- can
Ip BooleanForward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance Property MapConfig - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- deletion
Protection Boolean - Whether deletion protection is enabled on this instance.
- description String
- A brief description of the resource.
- desired
Status String - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- enable
Display Boolean - Whether the instance has virtual displays enabled.
- guest
Accelerators List<Property Map> - List of the type and count of accelerator cards attached to the instance.
- hostname String
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- key
Revocation StringAction Type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- labels Map<String>
- A set of key/value label pairs assigned to the instance. 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.
- machine
Type String - The machine type to create.
- metadata Map<String>
- Metadata key/value pairs made available within the instance.
- metadata
Startup StringScript - Metadata startup scripts made available within the instance.
- min
Cpu StringPlatform - The minimum CPU platform specified for the VM instance.
- name String
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network
Interfaces List<Property Map> - The networks attached to the instance.
- network
Performance Property MapConfig - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params Property Map
- Stores additional params passed with the request, but not persisted as part of resource payload.
- partner
Metadata Map<String> - Partner Metadata Map made available within the instance.
- project String
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
- reservation
Affinity Property Map - Specifies the reservations that this instance can consume from.
- resource
Policies String - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling Property Map
- The scheduling strategy being used by the instance.
- scratch
Disks List<Property Map> - The scratch disks attached to the instance.
- service
Account Property Map - The service account to attach to the instance.
- shielded
Instance Property MapConfig - The shielded vm config being used by the instance.
- List<String>
- The list of tags attached to the instance.
- zone String
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceFromTemplate resource produces the following output properties:
- Cpu
Platform string - The CPU platform used by this instance.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Current
Status string - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- Effective
Labels Dictionary<string, string> - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - The server-assigned unique identifier of this instance.
- Label
Fingerprint string - The unique fingerprint of the labels.
- Metadata
Fingerprint string - The unique fingerprint of the metadata.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Self
Link string - The URI of the created resource.
- string
- The unique fingerprint of the tags.
- Cpu
Platform string - The CPU platform used by this instance.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Current
Status string - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- Effective
Labels map[string]string - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - The server-assigned unique identifier of this instance.
- Label
Fingerprint string - The unique fingerprint of the labels.
- Metadata
Fingerprint string - The unique fingerprint of the metadata.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Self
Link string - The URI of the created resource.
- string
- The unique fingerprint of the tags.
- cpu
Platform String - The CPU platform used by this instance.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- current
Status String - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- effective
Labels Map<String,String> - id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - The server-assigned unique identifier of this instance.
- label
Fingerprint String - The unique fingerprint of the labels.
- metadata
Fingerprint String - The unique fingerprint of the metadata.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link String - The URI of the created resource.
- String
- The unique fingerprint of the tags.
- cpu
Platform string - The CPU platform used by this instance.
- creation
Timestamp string - Creation timestamp in RFC3339 text format.
- current
Status string - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- effective
Labels {[key: string]: string} - id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - The server-assigned unique identifier of this instance.
- label
Fingerprint string - The unique fingerprint of the labels.
- metadata
Fingerprint string - The unique fingerprint of the metadata.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link string - The URI of the created resource.
- string
- The unique fingerprint of the tags.
- cpu_
platform str - The CPU platform used by this instance.
- creation_
timestamp str - Creation timestamp in RFC3339 text format.
- current_
status str - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- effective_
labels Mapping[str, str] - id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - The server-assigned unique identifier of this instance.
- label_
fingerprint str - The unique fingerprint of the labels.
- metadata_
fingerprint str - The unique fingerprint of the metadata.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- self_
link str - The URI of the created resource.
- str
- The unique fingerprint of the tags.
- cpu
Platform String - The CPU platform used by this instance.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- current
Status String - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- effective
Labels Map<String> - id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - The server-assigned unique identifier of this instance.
- label
Fingerprint String - The unique fingerprint of the labels.
- metadata
Fingerprint String - The unique fingerprint of the metadata.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link String - The URI of the created resource.
- String
- The unique fingerprint of the tags.
Look up Existing InstanceFromTemplate Resource
Get an existing InstanceFromTemplate 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?: InstanceFromTemplateState, opts?: CustomResourceOptions): InstanceFromTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
advanced_machine_features: Optional[InstanceFromTemplateAdvancedMachineFeaturesArgs] = None,
allow_stopping_for_update: Optional[bool] = None,
attached_disks: Optional[Sequence[InstanceFromTemplateAttachedDiskArgs]] = None,
boot_disk: Optional[InstanceFromTemplateBootDiskArgs] = None,
can_ip_forward: Optional[bool] = None,
confidential_instance_config: Optional[InstanceFromTemplateConfidentialInstanceConfigArgs] = None,
cpu_platform: Optional[str] = None,
creation_timestamp: Optional[str] = None,
current_status: Optional[str] = None,
deletion_protection: Optional[bool] = None,
description: Optional[str] = None,
desired_status: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
enable_display: Optional[bool] = None,
guest_accelerators: Optional[Sequence[InstanceFromTemplateGuestAcceleratorArgs]] = None,
hostname: Optional[str] = None,
instance_id: Optional[str] = None,
key_revocation_action_type: Optional[str] = None,
label_fingerprint: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
machine_type: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
metadata_fingerprint: Optional[str] = None,
metadata_startup_script: Optional[str] = None,
min_cpu_platform: Optional[str] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[InstanceFromTemplateNetworkInterfaceArgs]] = None,
network_performance_config: Optional[InstanceFromTemplateNetworkPerformanceConfigArgs] = None,
params: Optional[InstanceFromTemplateParamsArgs] = None,
partner_metadata: Optional[Mapping[str, str]] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
reservation_affinity: Optional[InstanceFromTemplateReservationAffinityArgs] = None,
resource_policies: Optional[str] = None,
scheduling: Optional[InstanceFromTemplateSchedulingArgs] = None,
scratch_disks: Optional[Sequence[InstanceFromTemplateScratchDiskArgs]] = None,
self_link: Optional[str] = None,
service_account: Optional[InstanceFromTemplateServiceAccountArgs] = None,
shielded_instance_config: Optional[InstanceFromTemplateShieldedInstanceConfigArgs] = None,
source_instance_template: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tags_fingerprint: Optional[str] = None,
zone: Optional[str] = None) -> InstanceFromTemplate
func GetInstanceFromTemplate(ctx *Context, name string, id IDInput, state *InstanceFromTemplateState, opts ...ResourceOption) (*InstanceFromTemplate, error)
public static InstanceFromTemplate Get(string name, Input<string> id, InstanceFromTemplateState? state, CustomResourceOptions? opts = null)
public static InstanceFromTemplate get(String name, Output<String> id, InstanceFromTemplateState 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.
- Advanced
Machine InstanceFeatures From Template Advanced Machine Features - Controls for advanced machine-related behavior features.
- Allow
Stopping boolFor Update - Attached
Disks List<InstanceFrom Template Attached Disk> - List of disks attached to the instance
- Boot
Disk InstanceFrom Template Boot Disk - The boot disk for the instance.
- Can
Ip boolForward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- Confidential
Instance InstanceConfig From Template Confidential Instance Config - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- Cpu
Platform string - The CPU platform used by this instance.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Current
Status string - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- Deletion
Protection bool - Whether deletion protection is enabled on this instance.
- Description string
- A brief description of the resource.
- Desired
Status string - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- Effective
Labels Dictionary<string, string> - Enable
Display bool - Whether the instance has virtual displays enabled.
- Guest
Accelerators List<InstanceFrom Template Guest Accelerator> - List of the type and count of accelerator cards attached to the instance.
- Hostname string
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- Instance
Id string - The server-assigned unique identifier of this instance.
- Key
Revocation stringAction Type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- Label
Fingerprint string - The unique fingerprint of the labels.
- Labels Dictionary<string, string>
- A set of key/value label pairs assigned to the instance. 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.
- Machine
Type string - The machine type to create.
- Metadata Dictionary<string, string>
- Metadata key/value pairs made available within the instance.
- Metadata
Fingerprint string - The unique fingerprint of the metadata.
- Metadata
Startup stringScript - Metadata startup scripts made available within the instance.
- Min
Cpu stringPlatform - The minimum CPU platform specified for the VM instance.
- Name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network
Interfaces List<InstanceFrom Template Network Interface> - The networks attached to the instance.
- Network
Performance InstanceConfig From Template Network Performance Config - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- Params
Instance
From Template Params - Stores additional params passed with the request, but not persisted as part of resource payload.
- Partner
Metadata Dictionary<string, string> - Partner Metadata Map made available within the instance.
- Project string
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are 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.
- Reservation
Affinity InstanceFrom Template Reservation Affinity - Specifies the reservations that this instance can consume from.
- Resource
Policies string - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- Scheduling
Instance
From Template Scheduling - The scheduling strategy being used by the instance.
- Scratch
Disks List<InstanceFrom Template Scratch Disk> - The scratch disks attached to the instance.
- Self
Link string - The URI of the created resource.
- Service
Account InstanceFrom Template Service Account - The service account to attach to the instance.
- Shielded
Instance InstanceConfig From Template Shielded Instance Config - The shielded vm config being used by the instance.
- Source
Instance stringTemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - List<string>
- The list of tags attached to the instance.
- string
- The unique fingerprint of the tags.
- Zone string
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
- Advanced
Machine InstanceFeatures From Template Advanced Machine Features Args - Controls for advanced machine-related behavior features.
- Allow
Stopping boolFor Update - Attached
Disks []InstanceFrom Template Attached Disk Args - List of disks attached to the instance
- Boot
Disk InstanceFrom Template Boot Disk Args - The boot disk for the instance.
- Can
Ip boolForward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- Confidential
Instance InstanceConfig From Template Confidential Instance Config Args - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- Cpu
Platform string - The CPU platform used by this instance.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Current
Status string - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- Deletion
Protection bool - Whether deletion protection is enabled on this instance.
- Description string
- A brief description of the resource.
- Desired
Status string - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- Effective
Labels map[string]string - Enable
Display bool - Whether the instance has virtual displays enabled.
- Guest
Accelerators []InstanceFrom Template Guest Accelerator Args - List of the type and count of accelerator cards attached to the instance.
- Hostname string
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- Instance
Id string - The server-assigned unique identifier of this instance.
- Key
Revocation stringAction Type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- Label
Fingerprint string - The unique fingerprint of the labels.
- Labels map[string]string
- A set of key/value label pairs assigned to the instance. 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.
- Machine
Type string - The machine type to create.
- Metadata map[string]string
- Metadata key/value pairs made available within the instance.
- Metadata
Fingerprint string - The unique fingerprint of the metadata.
- Metadata
Startup stringScript - Metadata startup scripts made available within the instance.
- Min
Cpu stringPlatform - The minimum CPU platform specified for the VM instance.
- Name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network
Interfaces []InstanceFrom Template Network Interface Args - The networks attached to the instance.
- Network
Performance InstanceConfig From Template Network Performance Config Args - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- Params
Instance
From Template Params Args - Stores additional params passed with the request, but not persisted as part of resource payload.
- Partner
Metadata map[string]string - Partner Metadata Map made available within the instance.
- Project string
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are 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.
- Reservation
Affinity InstanceFrom Template Reservation Affinity Args - Specifies the reservations that this instance can consume from.
- Resource
Policies string - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- Scheduling
Instance
From Template Scheduling Args - The scheduling strategy being used by the instance.
- Scratch
Disks []InstanceFrom Template Scratch Disk Args - The scratch disks attached to the instance.
- Self
Link string - The URI of the created resource.
- Service
Account InstanceFrom Template Service Account Args - The service account to attach to the instance.
- Shielded
Instance InstanceConfig From Template Shielded Instance Config Args - The shielded vm config being used by the instance.
- Source
Instance stringTemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - []string
- The list of tags attached to the instance.
- string
- The unique fingerprint of the tags.
- Zone string
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
- advanced
Machine InstanceFeatures From Template Advanced Machine Features - Controls for advanced machine-related behavior features.
- allow
Stopping BooleanFor Update - attached
Disks List<InstanceFrom Template Attached Disk> - List of disks attached to the instance
- boot
Disk InstanceFrom Template Boot Disk - The boot disk for the instance.
- can
Ip BooleanForward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance InstanceConfig From Template Confidential Instance Config - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- cpu
Platform String - The CPU platform used by this instance.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- current
Status String - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- deletion
Protection Boolean - Whether deletion protection is enabled on this instance.
- description String
- A brief description of the resource.
- desired
Status String - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- effective
Labels Map<String,String> - enable
Display Boolean - Whether the instance has virtual displays enabled.
- guest
Accelerators List<InstanceFrom Template Guest Accelerator> - List of the type and count of accelerator cards attached to the instance.
- hostname String
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- instance
Id String - The server-assigned unique identifier of this instance.
- key
Revocation StringAction Type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- label
Fingerprint String - The unique fingerprint of the labels.
- labels Map<String,String>
- A set of key/value label pairs assigned to the instance. 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.
- machine
Type String - The machine type to create.
- metadata Map<String,String>
- Metadata key/value pairs made available within the instance.
- metadata
Fingerprint String - The unique fingerprint of the metadata.
- metadata
Startup StringScript - Metadata startup scripts made available within the instance.
- min
Cpu StringPlatform - The minimum CPU platform specified for the VM instance.
- name String
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network
Interfaces List<InstanceFrom Template Network Interface> - The networks attached to the instance.
- network
Performance InstanceConfig From Template Network Performance Config - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params - Stores additional params passed with the request, but not persisted as part of resource payload.
- partner
Metadata Map<String,String> - Partner Metadata Map made available within the instance.
- project String
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are 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.
- reservation
Affinity InstanceFrom Template Reservation Affinity - Specifies the reservations that this instance can consume from.
- resource
Policies String - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling
Instance
From Template Scheduling - The scheduling strategy being used by the instance.
- scratch
Disks List<InstanceFrom Template Scratch Disk> - The scratch disks attached to the instance.
- self
Link String - The URI of the created resource.
- service
Account InstanceFrom Template Service Account - The service account to attach to the instance.
- shielded
Instance InstanceConfig From Template Shielded Instance Config - The shielded vm config being used by the instance.
- source
Instance StringTemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - List<String>
- The list of tags attached to the instance.
- String
- The unique fingerprint of the tags.
- zone String
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
- advanced
Machine InstanceFeatures From Template Advanced Machine Features - Controls for advanced machine-related behavior features.
- allow
Stopping booleanFor Update - attached
Disks InstanceFrom Template Attached Disk[] - List of disks attached to the instance
- boot
Disk InstanceFrom Template Boot Disk - The boot disk for the instance.
- can
Ip booleanForward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance InstanceConfig From Template Confidential Instance Config - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- cpu
Platform string - The CPU platform used by this instance.
- creation
Timestamp string - Creation timestamp in RFC3339 text format.
- current
Status string - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- deletion
Protection boolean - Whether deletion protection is enabled on this instance.
- description string
- A brief description of the resource.
- desired
Status string - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- effective
Labels {[key: string]: string} - enable
Display boolean - Whether the instance has virtual displays enabled.
- guest
Accelerators InstanceFrom Template Guest Accelerator[] - List of the type and count of accelerator cards attached to the instance.
- hostname string
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- instance
Id string - The server-assigned unique identifier of this instance.
- key
Revocation stringAction Type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- label
Fingerprint string - The unique fingerprint of the labels.
- labels {[key: string]: string}
- A set of key/value label pairs assigned to the instance. 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.
- machine
Type string - The machine type to create.
- metadata {[key: string]: string}
- Metadata key/value pairs made available within the instance.
- metadata
Fingerprint string - The unique fingerprint of the metadata.
- metadata
Startup stringScript - Metadata startup scripts made available within the instance.
- min
Cpu stringPlatform - The minimum CPU platform specified for the VM instance.
- name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network
Interfaces InstanceFrom Template Network Interface[] - The networks attached to the instance.
- network
Performance InstanceConfig From Template Network Performance Config - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params - Stores additional params passed with the request, but not persisted as part of resource payload.
- partner
Metadata {[key: string]: string} - Partner Metadata Map made available within the instance.
- project string
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are 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.
- reservation
Affinity InstanceFrom Template Reservation Affinity - Specifies the reservations that this instance can consume from.
- resource
Policies string - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling
Instance
From Template Scheduling - The scheduling strategy being used by the instance.
- scratch
Disks InstanceFrom Template Scratch Disk[] - The scratch disks attached to the instance.
- self
Link string - The URI of the created resource.
- service
Account InstanceFrom Template Service Account - The service account to attach to the instance.
- shielded
Instance InstanceConfig From Template Shielded Instance Config - The shielded vm config being used by the instance.
- source
Instance stringTemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - string[]
- The list of tags attached to the instance.
- string
- The unique fingerprint of the tags.
- zone string
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
- advanced_
machine_ Instancefeatures From Template Advanced Machine Features Args - Controls for advanced machine-related behavior features.
- allow_
stopping_ boolfor_ update - attached_
disks Sequence[InstanceFrom Template Attached Disk Args] - List of disks attached to the instance
- boot_
disk InstanceFrom Template Boot Disk Args - The boot disk for the instance.
- can_
ip_ boolforward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential_
instance_ Instanceconfig From Template Confidential Instance Config Args - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- cpu_
platform str - The CPU platform used by this instance.
- creation_
timestamp str - Creation timestamp in RFC3339 text format.
- current_
status str - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- deletion_
protection bool - Whether deletion protection is enabled on this instance.
- description str
- A brief description of the resource.
- desired_
status str - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- effective_
labels Mapping[str, str] - enable_
display bool - Whether the instance has virtual displays enabled.
- guest_
accelerators Sequence[InstanceFrom Template Guest Accelerator Args] - List of the type and count of accelerator cards attached to the instance.
- hostname str
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- instance_
id str - The server-assigned unique identifier of this instance.
- key_
revocation_ straction_ type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- label_
fingerprint str - The unique fingerprint of the labels.
- labels Mapping[str, str]
- A set of key/value label pairs assigned to the instance. 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.
- machine_
type str - The machine type to create.
- metadata Mapping[str, str]
- Metadata key/value pairs made available within the instance.
- metadata_
fingerprint str - The unique fingerprint of the metadata.
- metadata_
startup_ strscript - Metadata startup scripts made available within the instance.
- min_
cpu_ strplatform - The minimum CPU platform specified for the VM instance.
- name str
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network_
interfaces Sequence[InstanceFrom Template Network Interface Args] - The networks attached to the instance.
- network_
performance_ Instanceconfig From Template Network Performance Config Args - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params Args - Stores additional params passed with the request, but not persisted as part of resource payload.
- partner_
metadata Mapping[str, str] - Partner Metadata Map made available within the instance.
- project str
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are 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.
- reservation_
affinity InstanceFrom Template Reservation Affinity Args - Specifies the reservations that this instance can consume from.
- resource_
policies str - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling
Instance
From Template Scheduling Args - The scheduling strategy being used by the instance.
- scratch_
disks Sequence[InstanceFrom Template Scratch Disk Args] - The scratch disks attached to the instance.
- self_
link str - The URI of the created resource.
- service_
account InstanceFrom Template Service Account Args - The service account to attach to the instance.
- shielded_
instance_ Instanceconfig From Template Shielded Instance Config Args - The shielded vm config being used by the instance.
- source_
instance_ strtemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - Sequence[str]
- The list of tags attached to the instance.
- str
- The unique fingerprint of the tags.
- zone str
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
- advanced
Machine Property MapFeatures - Controls for advanced machine-related behavior features.
- allow
Stopping BooleanFor Update - attached
Disks List<Property Map> - List of disks attached to the instance
- boot
Disk Property Map - The boot disk for the instance.
- can
Ip BooleanForward - Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance Property MapConfig - The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
- cpu
Platform String - The CPU platform used by this instance.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- current
Status String - Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
- deletion
Protection Boolean - Whether deletion protection is enabled on this instance.
- description String
- A brief description of the resource.
- desired
Status String - Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
- effective
Labels Map<String> - enable
Display Boolean - Whether the instance has virtual displays enabled.
- guest
Accelerators List<Property Map> - List of the type and count of accelerator cards attached to the instance.
- hostname String
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
- instance
Id String - The server-assigned unique identifier of this instance.
- key
Revocation StringAction Type - Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
- label
Fingerprint String - The unique fingerprint of the labels.
- labels Map<String>
- A set of key/value label pairs assigned to the instance. 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.
- machine
Type String - The machine type to create.
- metadata Map<String>
- Metadata key/value pairs made available within the instance.
- metadata
Fingerprint String - The unique fingerprint of the metadata.
- metadata
Startup StringScript - Metadata startup scripts made available within the instance.
- min
Cpu StringPlatform - The minimum CPU platform specified for the VM instance.
- name String
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network
Interfaces List<Property Map> - The networks attached to the instance.
- network
Performance Property MapConfig - Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params Property Map
- Stores additional params passed with the request, but not persisted as part of resource payload.
- partner
Metadata Map<String> - Partner Metadata Map made available within the instance.
- project String
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are 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.
- reservation
Affinity Property Map - Specifies the reservations that this instance can consume from.
- resource
Policies String - A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling Property Map
- The scheduling strategy being used by the instance.
- scratch
Disks List<Property Map> - The scratch disks attached to the instance.
- self
Link String - The URI of the created resource.
- service
Account Property Map - The service account to attach to the instance.
- shielded
Instance Property MapConfig - The shielded vm config being used by the instance.
- source
Instance StringTemplate - Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
self_link_unique
attribute). - List<String>
- The list of tags attached to the instance.
- String
- The unique fingerprint of the tags.
- zone String
The zone that the machine should be created in. If not set, the provider zone is used.
In addition to these, all arguments from
gcp.compute.Instance
are supported as a way to override the properties in the template. All exported attributes fromgcp.compute.Instance
are likewise exported here.
Supporting Types
InstanceFromTemplateAdvancedMachineFeatures, InstanceFromTemplateAdvancedMachineFeaturesArgs
- Enable
Nested boolVirtualization - Whether to enable nested virtualization or not.
- Threads
Per intCore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- Turbo
Mode string - Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
- Visible
Core intCount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
- Enable
Nested boolVirtualization - Whether to enable nested virtualization or not.
- Threads
Per intCore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- Turbo
Mode string - Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
- Visible
Core intCount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
- enable
Nested BooleanVirtualization - Whether to enable nested virtualization or not.
- threads
Per IntegerCore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- turbo
Mode String - Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
- visible
Core IntegerCount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
- enable
Nested booleanVirtualization - Whether to enable nested virtualization or not.
- threads
Per numberCore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- turbo
Mode string - Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
- visible
Core numberCount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
- enable_
nested_ boolvirtualization - Whether to enable nested virtualization or not.
- threads_
per_ intcore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- turbo_
mode str - Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
- visible_
core_ intcount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
- enable
Nested BooleanVirtualization - Whether to enable nested virtualization or not.
- threads
Per NumberCore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- turbo
Mode String - Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
- visible
Core NumberCount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
InstanceFromTemplateAttachedDisk, InstanceFromTemplateAttachedDiskArgs
- Source string
- The name or self_link of the disk attached to this instance.
- Device
Name string - Name with which the attached disk is accessible under /dev/disk/by-id/
- Disk
Encryption stringKey Raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- Disk
Encryption stringKey Sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- Kms
Key stringSelf Link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- Mode string
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- Source string
- The name or self_link of the disk attached to this instance.
- Device
Name string - Name with which the attached disk is accessible under /dev/disk/by-id/
- Disk
Encryption stringKey Raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- Disk
Encryption stringKey Sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- Kms
Key stringSelf Link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- Mode string
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- source String
- The name or self_link of the disk attached to this instance.
- device
Name String - Name with which the attached disk is accessible under /dev/disk/by-id/
- disk
Encryption StringKey Raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- disk
Encryption StringKey Sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- kms
Key StringSelf Link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- mode String
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- source string
- The name or self_link of the disk attached to this instance.
- device
Name string - Name with which the attached disk is accessible under /dev/disk/by-id/
- disk
Encryption stringKey Raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- disk
Encryption stringKey Sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- kms
Key stringSelf Link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- mode string
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- source str
- The name or self_link of the disk attached to this instance.
- device_
name str - Name with which the attached disk is accessible under /dev/disk/by-id/
- disk_
encryption_ strkey_ raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- disk_
encryption_ strkey_ sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- kms_
key_ strself_ link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- mode str
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- source String
- The name or self_link of the disk attached to this instance.
- device
Name String - Name with which the attached disk is accessible under /dev/disk/by-id/
- disk
Encryption StringKey Raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- disk
Encryption StringKey Sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- kms
Key StringSelf Link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- mode String
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
InstanceFromTemplateBootDisk, InstanceFromTemplateBootDiskArgs
- Auto
Delete bool - Whether the disk will be auto-deleted when the instance is deleted.
- Device
Name string - Name with which attached disk will be accessible under /dev/disk/by-id/
- Disk
Encryption stringKey Raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- Disk
Encryption stringKey Sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- Initialize
Params InstanceFrom Template Boot Disk Initialize Params - Parameters with which a disk was created alongside the instance.
- Interface string
- The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
- Kms
Key stringSelf Link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- Mode string
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- Source string
- The name or self_link of the disk attached to this instance.
- Auto
Delete bool - Whether the disk will be auto-deleted when the instance is deleted.
- Device
Name string - Name with which attached disk will be accessible under /dev/disk/by-id/
- Disk
Encryption stringKey Raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- Disk
Encryption stringKey Sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- Initialize
Params InstanceFrom Template Boot Disk Initialize Params - Parameters with which a disk was created alongside the instance.
- Interface string
- The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
- Kms
Key stringSelf Link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- Mode string
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- Source string
- The name or self_link of the disk attached to this instance.
- auto
Delete Boolean - Whether the disk will be auto-deleted when the instance is deleted.
- device
Name String - Name with which attached disk will be accessible under /dev/disk/by-id/
- disk
Encryption StringKey Raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- disk
Encryption StringKey Sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- initialize
Params InstanceFrom Template Boot Disk Initialize Params - Parameters with which a disk was created alongside the instance.
- interface_ String
- The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
- kms
Key StringSelf Link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- mode String
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- source String
- The name or self_link of the disk attached to this instance.
- auto
Delete boolean - Whether the disk will be auto-deleted when the instance is deleted.
- device
Name string - Name with which attached disk will be accessible under /dev/disk/by-id/
- disk
Encryption stringKey Raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- disk
Encryption stringKey Sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- initialize
Params InstanceFrom Template Boot Disk Initialize Params - Parameters with which a disk was created alongside the instance.
- interface string
- The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
- kms
Key stringSelf Link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- mode string
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- source string
- The name or self_link of the disk attached to this instance.
- auto_
delete bool - Whether the disk will be auto-deleted when the instance is deleted.
- device_
name str - Name with which attached disk will be accessible under /dev/disk/by-id/
- disk_
encryption_ strkey_ raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- disk_
encryption_ strkey_ sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- initialize_
params InstanceFrom Template Boot Disk Initialize Params - Parameters with which a disk was created alongside the instance.
- interface str
- The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
- kms_
key_ strself_ link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- mode str
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- source str
- The name or self_link of the disk attached to this instance.
- auto
Delete Boolean - Whether the disk will be auto-deleted when the instance is deleted.
- device
Name String - Name with which attached disk will be accessible under /dev/disk/by-id/
- disk
Encryption StringKey Raw - A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- disk
Encryption StringKey Sha256 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- initialize
Params Property Map - Parameters with which a disk was created alongside the instance.
- interface String
- The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
- kms
Key StringSelf Link - The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
- mode String
- Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
- source String
- The name or self_link of the disk attached to this instance.
InstanceFromTemplateBootDiskInitializeParams, InstanceFromTemplateBootDiskInitializeParamsArgs
- Enable
Confidential boolCompute - A flag to enable confidential compute mode on boot disk
- Image string
- The image from which this disk was initialised.
- Labels Dictionary<string, string>
- A set of key/value label pairs assigned to the disk.
- Provisioned
Iops int - Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
- Provisioned
Throughput int - Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
- Dictionary<string, string>
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- Resource
Policies string - A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
- Size int
- The size of the image in gigabytes.
- Storage
Pool string - The URL of the storage pool in which the new disk is created
- Type string
- The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
- Enable
Confidential boolCompute - A flag to enable confidential compute mode on boot disk
- Image string
- The image from which this disk was initialised.
- Labels map[string]string
- A set of key/value label pairs assigned to the disk.
- Provisioned
Iops int - Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
- Provisioned
Throughput int - Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
- map[string]string
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- Resource
Policies string - A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
- Size int
- The size of the image in gigabytes.
- Storage
Pool string - The URL of the storage pool in which the new disk is created
- Type string
- The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
- enable
Confidential BooleanCompute - A flag to enable confidential compute mode on boot disk
- image String
- The image from which this disk was initialised.
- labels Map<String,String>
- A set of key/value label pairs assigned to the disk.
- provisioned
Iops Integer - Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
- provisioned
Throughput Integer - Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
- Map<String,String>
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- resource
Policies String - A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
- size Integer
- The size of the image in gigabytes.
- storage
Pool String - The URL of the storage pool in which the new disk is created
- type String
- The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
- enable
Confidential booleanCompute - A flag to enable confidential compute mode on boot disk
- image string
- The image from which this disk was initialised.
- labels {[key: string]: string}
- A set of key/value label pairs assigned to the disk.
- provisioned
Iops number - Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
- provisioned
Throughput number - Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
- {[key: string]: string}
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- resource
Policies string - A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
- size number
- The size of the image in gigabytes.
- storage
Pool string - The URL of the storage pool in which the new disk is created
- type string
- The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
- enable_
confidential_ boolcompute - A flag to enable confidential compute mode on boot disk
- image str
- The image from which this disk was initialised.
- labels Mapping[str, str]
- A set of key/value label pairs assigned to the disk.
- provisioned_
iops int - Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
- provisioned_
throughput int - Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
- Mapping[str, str]
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- resource_
policies str - A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
- size int
- The size of the image in gigabytes.
- storage_
pool str - The URL of the storage pool in which the new disk is created
- type str
- The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
- enable
Confidential BooleanCompute - A flag to enable confidential compute mode on boot disk
- image String
- The image from which this disk was initialised.
- labels Map<String>
- A set of key/value label pairs assigned to the disk.
- provisioned
Iops Number - Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
- provisioned
Throughput Number - Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
- Map<String>
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- resource
Policies String - A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
- size Number
- The size of the image in gigabytes.
- storage
Pool String - The URL of the storage pool in which the new disk is created
- type String
- The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
InstanceFromTemplateConfidentialInstanceConfig, InstanceFromTemplateConfidentialInstanceConfigArgs
- Confidential
Instance stringType - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- Enable
Confidential boolCompute - Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
- Confidential
Instance stringType - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- Enable
Confidential boolCompute - Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
- confidential
Instance StringType - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- enable
Confidential BooleanCompute - Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
- confidential
Instance stringType - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- enable
Confidential booleanCompute - Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
- confidential_
instance_ strtype - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- enable_
confidential_ boolcompute - Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
- confidential
Instance StringType - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- enable
Confidential BooleanCompute - Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
InstanceFromTemplateGuestAccelerator, InstanceFromTemplateGuestAcceleratorArgs
InstanceFromTemplateNetworkInterface, InstanceFromTemplateNetworkInterfaceArgs
- Access
Configs List<InstanceFrom Template Network Interface Access Config> - Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
- Alias
Ip List<InstanceRanges From Template Network Interface Alias Ip Range> - An array of alias IP ranges for this network interface.
- Internal
Ipv6Prefix intLength - The prefix length of the primary internal IPv6 range.
- Ipv6Access
Configs List<InstanceFrom Template Network Interface Ipv6Access Config> - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- Ipv6Access
Type string - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- Ipv6Address string
- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- Name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network string
- The name or self_link of the network attached to this interface.
- Network
Attachment string - The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
- Network
Ip string - The private IP address assigned to the instance.
- Nic
Type string - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- Queue
Count int - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- Security
Policy string - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- Stack
Type string - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- Subnetwork string
- The name or self_link of the subnetwork attached to this interface.
- Subnetwork
Project string - The project in which the subnetwork belongs.
- Access
Configs []InstanceFrom Template Network Interface Access Config - Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
- Alias
Ip []InstanceRanges From Template Network Interface Alias Ip Range - An array of alias IP ranges for this network interface.
- Internal
Ipv6Prefix intLength - The prefix length of the primary internal IPv6 range.
- Ipv6Access
Configs []InstanceFrom Template Network Interface Ipv6Access Config - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- Ipv6Access
Type string - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- Ipv6Address string
- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- Name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network string
- The name or self_link of the network attached to this interface.
- Network
Attachment string - The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
- Network
Ip string - The private IP address assigned to the instance.
- Nic
Type string - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- Queue
Count int - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- Security
Policy string - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- Stack
Type string - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- Subnetwork string
- The name or self_link of the subnetwork attached to this interface.
- Subnetwork
Project string - The project in which the subnetwork belongs.
- access
Configs List<InstanceFrom Template Network Interface Access Config> - Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
- alias
Ip List<InstanceRanges From Template Network Interface Alias Ip Range> - An array of alias IP ranges for this network interface.
- internal
Ipv6Prefix IntegerLength - The prefix length of the primary internal IPv6 range.
- ipv6Access
Configs List<InstanceFrom Template Network Interface Ipv6Access Config> - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- ipv6Access
Type String - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- ipv6Address String
- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- name String
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network String
- The name or self_link of the network attached to this interface.
- network
Attachment String - The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
- network
Ip String - The private IP address assigned to the instance.
- nic
Type String - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- queue
Count Integer - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- security
Policy String - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- stack
Type String - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- subnetwork String
- The name or self_link of the subnetwork attached to this interface.
- subnetwork
Project String - The project in which the subnetwork belongs.
- access
Configs InstanceFrom Template Network Interface Access Config[] - Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
- alias
Ip InstanceRanges From Template Network Interface Alias Ip Range[] - An array of alias IP ranges for this network interface.
- internal
Ipv6Prefix numberLength - The prefix length of the primary internal IPv6 range.
- ipv6Access
Configs InstanceFrom Template Network Interface Ipv6Access Config[] - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- ipv6Access
Type string - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- ipv6Address string
- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network string
- The name or self_link of the network attached to this interface.
- network
Attachment string - The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
- network
Ip string - The private IP address assigned to the instance.
- nic
Type string - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- queue
Count number - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- security
Policy string - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- stack
Type string - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- subnetwork string
- The name or self_link of the subnetwork attached to this interface.
- subnetwork
Project string - The project in which the subnetwork belongs.
- access_
configs Sequence[InstanceFrom Template Network Interface Access Config] - Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
- alias_
ip_ Sequence[Instanceranges From Template Network Interface Alias Ip Range] - An array of alias IP ranges for this network interface.
- internal_
ipv6_ intprefix_ length - The prefix length of the primary internal IPv6 range.
- ipv6_
access_ Sequence[Instanceconfigs From Template Network Interface Ipv6Access Config] - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- ipv6_
access_ strtype - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- ipv6_
address str - An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- name str
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network str
- The name or self_link of the network attached to this interface.
- network_
attachment str - The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
- network_
ip str - The private IP address assigned to the instance.
- nic_
type str - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- queue_
count int - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- security_
policy str - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- stack_
type str - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- subnetwork str
- The name or self_link of the subnetwork attached to this interface.
- subnetwork_
project str - The project in which the subnetwork belongs.
- access
Configs List<Property Map> - Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
- alias
Ip List<Property Map>Ranges - An array of alias IP ranges for this network interface.
- internal
Ipv6Prefix NumberLength - The prefix length of the primary internal IPv6 range.
- ipv6Access
Configs List<Property Map> - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- ipv6Access
Type String - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- ipv6Address String
- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- name String
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network String
- The name or self_link of the network attached to this interface.
- network
Attachment String - The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
- network
Ip String - The private IP address assigned to the instance.
- nic
Type String - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- queue
Count Number - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- security
Policy String - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- stack
Type String - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- subnetwork String
- The name or self_link of the subnetwork attached to this interface.
- subnetwork
Project String - The project in which the subnetwork belongs.
InstanceFromTemplateNetworkInterfaceAccessConfig, InstanceFromTemplateNetworkInterfaceAccessConfigArgs
- Nat
Ip string - The IP address that is be 1:1 mapped to the instance's network ip.
- Network
Tier string - The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
- Public
Ptr stringDomain Name - The DNS domain name for the public PTR record.
- Security
Policy string - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- Nat
Ip string - The IP address that is be 1:1 mapped to the instance's network ip.
- Network
Tier string - The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
- Public
Ptr stringDomain Name - The DNS domain name for the public PTR record.
- Security
Policy string - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- nat
Ip String - The IP address that is be 1:1 mapped to the instance's network ip.
- network
Tier String - The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
- public
Ptr StringDomain Name - The DNS domain name for the public PTR record.
- security
Policy String - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- nat
Ip string - The IP address that is be 1:1 mapped to the instance's network ip.
- network
Tier string - The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
- public
Ptr stringDomain Name - The DNS domain name for the public PTR record.
- security
Policy string - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- nat_
ip str - The IP address that is be 1:1 mapped to the instance's network ip.
- network_
tier str - The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
- public_
ptr_ strdomain_ name - The DNS domain name for the public PTR record.
- security_
policy str - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- nat
Ip String - The IP address that is be 1:1 mapped to the instance's network ip.
- network
Tier String - The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
- public
Ptr StringDomain Name - The DNS domain name for the public PTR record.
- security
Policy String - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
InstanceFromTemplateNetworkInterfaceAliasIpRange, InstanceFromTemplateNetworkInterfaceAliasIpRangeArgs
- Ip
Cidr stringRange - The IP CIDR range represented by this alias IP range.
- Subnetwork
Range stringName - The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
- Ip
Cidr stringRange - The IP CIDR range represented by this alias IP range.
- Subnetwork
Range stringName - The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
- ip
Cidr StringRange - The IP CIDR range represented by this alias IP range.
- subnetwork
Range StringName - The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
- ip
Cidr stringRange - The IP CIDR range represented by this alias IP range.
- subnetwork
Range stringName - The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
- ip_
cidr_ strrange - The IP CIDR range represented by this alias IP range.
- subnetwork_
range_ strname - The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
- ip
Cidr StringRange - The IP CIDR range represented by this alias IP range.
- subnetwork
Range StringName - The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
InstanceFromTemplateNetworkInterfaceIpv6AccessConfig, InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArgs
- Network
Tier string - The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
- External
Ipv6 string - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
- External
Ipv6Prefix stringLength - The prefix length of the external IPv6 range.
- Name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Public
Ptr stringDomain Name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- Security
Policy string - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- Network
Tier string - The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
- External
Ipv6 string - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
- External
Ipv6Prefix stringLength - The prefix length of the external IPv6 range.
- Name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Public
Ptr stringDomain Name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- Security
Policy string - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- network
Tier String - The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
- external
Ipv6 String - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
- external
Ipv6Prefix StringLength - The prefix length of the external IPv6 range.
- name String
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- public
Ptr StringDomain Name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- security
Policy String - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- network
Tier string - The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
- external
Ipv6 string - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
- external
Ipv6Prefix stringLength - The prefix length of the external IPv6 range.
- name string
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- public
Ptr stringDomain Name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- security
Policy string - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- network_
tier str - The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
- external_
ipv6 str - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
- external_
ipv6_ strprefix_ length - The prefix length of the external IPv6 range.
- name str
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- public_
ptr_ strdomain_ name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- security_
policy str - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
- network
Tier String - The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
- external
Ipv6 String - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
- external
Ipv6Prefix StringLength - The prefix length of the external IPv6 range.
- name String
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- public
Ptr StringDomain Name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- security
Policy String - A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
InstanceFromTemplateNetworkPerformanceConfig, InstanceFromTemplateNetworkPerformanceConfigArgs
- Total
Egress stringBandwidth Tier - The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
- Total
Egress stringBandwidth Tier - The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
- total
Egress StringBandwidth Tier - The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
- total
Egress stringBandwidth Tier - The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
- total_
egress_ strbandwidth_ tier - The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
- total
Egress StringBandwidth Tier - The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
InstanceFromTemplateParams, InstanceFromTemplateParamsArgs
- Dictionary<string, string>
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- map[string]string
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- Map<String,String>
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- {[key: string]: string}
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- Mapping[str, str]
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- Map<String>
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
InstanceFromTemplateReservationAffinity, InstanceFromTemplateReservationAffinityArgs
- Type string
- The type of reservation from which this instance can consume resources.
- Specific
Reservation InstanceFrom Template Reservation Affinity Specific Reservation - Specifies the label selector for the reservation to use.
- Type string
- The type of reservation from which this instance can consume resources.
- Specific
Reservation InstanceFrom Template Reservation Affinity Specific Reservation - Specifies the label selector for the reservation to use.
- type String
- The type of reservation from which this instance can consume resources.
- specific
Reservation InstanceFrom Template Reservation Affinity Specific Reservation - Specifies the label selector for the reservation to use.
- type string
- The type of reservation from which this instance can consume resources.
- specific
Reservation InstanceFrom Template Reservation Affinity Specific Reservation - Specifies the label selector for the reservation to use.
- type str
- The type of reservation from which this instance can consume resources.
- specific_
reservation InstanceFrom Template Reservation Affinity Specific Reservation - Specifies the label selector for the reservation to use.
- type String
- The type of reservation from which this instance can consume resources.
- specific
Reservation Property Map - Specifies the label selector for the reservation to use.
InstanceFromTemplateReservationAffinitySpecificReservation, InstanceFromTemplateReservationAffinitySpecificReservationArgs
- Key string
- Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.
- Values List<string>
- Corresponds to the label values of a reservation resource.
- key String
- Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.
- values List<String>
- Corresponds to the label values of a reservation resource.
- key str
- Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.
- values Sequence[str]
- Corresponds to the label values of a reservation resource.
- key String
- Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.
- values List<String>
- Corresponds to the label values of a reservation resource.
InstanceFromTemplateScheduling, InstanceFromTemplateSchedulingArgs
- Automatic
Restart bool - Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- Host
Error intTimeout Seconds - Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
- Instance
Termination stringAction - Specifies the action GCE should take when SPOT VM is preempted.
- Local
Ssd InstanceRecovery Timeout From Template Scheduling Local Ssd Recovery Timeout - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- Maintenance
Interval string - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- Max
Run InstanceDuration From Template Scheduling Max Run Duration - The timeout for new network connections to hosts.
- Min
Node intCpus - Node
Affinities List<InstanceFrom Template Scheduling Node Affinity> - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
- On
Host stringMaintenance - Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
- On
Instance InstanceStop Action From Template Scheduling On Instance Stop Action - Defines the behaviour for instances with the instance_termination_action.
- Preemptible bool
- Whether the instance is preemptible.
- Provisioning
Model string - Whether the instance is spot. If this is set as SPOT.
- Automatic
Restart bool - Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- Host
Error intTimeout Seconds - Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
- Instance
Termination stringAction - Specifies the action GCE should take when SPOT VM is preempted.
- Local
Ssd InstanceRecovery Timeout From Template Scheduling Local Ssd Recovery Timeout - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- Maintenance
Interval string - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- Max
Run InstanceDuration From Template Scheduling Max Run Duration - The timeout for new network connections to hosts.
- Min
Node intCpus - Node
Affinities []InstanceFrom Template Scheduling Node Affinity - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
- On
Host stringMaintenance - Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
- On
Instance InstanceStop Action From Template Scheduling On Instance Stop Action - Defines the behaviour for instances with the instance_termination_action.
- Preemptible bool
- Whether the instance is preemptible.
- Provisioning
Model string - Whether the instance is spot. If this is set as SPOT.
- automatic
Restart Boolean - Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- host
Error IntegerTimeout Seconds - Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
- instance
Termination StringAction - Specifies the action GCE should take when SPOT VM is preempted.
- local
Ssd InstanceRecovery Timeout From Template Scheduling Local Ssd Recovery Timeout - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- maintenance
Interval String - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- max
Run InstanceDuration From Template Scheduling Max Run Duration - The timeout for new network connections to hosts.
- min
Node IntegerCpus - node
Affinities List<InstanceFrom Template Scheduling Node Affinity> - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
- on
Host StringMaintenance - Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
- on
Instance InstanceStop Action From Template Scheduling On Instance Stop Action - Defines the behaviour for instances with the instance_termination_action.
- preemptible Boolean
- Whether the instance is preemptible.
- provisioning
Model String - Whether the instance is spot. If this is set as SPOT.
- automatic
Restart boolean - Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- host
Error numberTimeout Seconds - Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
- instance
Termination stringAction - Specifies the action GCE should take when SPOT VM is preempted.
- local
Ssd InstanceRecovery Timeout From Template Scheduling Local Ssd Recovery Timeout - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- maintenance
Interval string - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- max
Run InstanceDuration From Template Scheduling Max Run Duration - The timeout for new network connections to hosts.
- min
Node numberCpus - node
Affinities InstanceFrom Template Scheduling Node Affinity[] - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
- on
Host stringMaintenance - Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
- on
Instance InstanceStop Action From Template Scheduling On Instance Stop Action - Defines the behaviour for instances with the instance_termination_action.
- preemptible boolean
- Whether the instance is preemptible.
- provisioning
Model string - Whether the instance is spot. If this is set as SPOT.
- automatic_
restart bool - Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- host_
error_ inttimeout_ seconds - Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
- instance_
termination_ straction - Specifies the action GCE should take when SPOT VM is preempted.
- local_
ssd_ Instancerecovery_ timeout From Template Scheduling Local Ssd Recovery Timeout - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- maintenance_
interval str - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- max_
run_ Instanceduration From Template Scheduling Max Run Duration - The timeout for new network connections to hosts.
- min_
node_ intcpus - node_
affinities Sequence[InstanceFrom Template Scheduling Node Affinity] - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
- on_
host_ strmaintenance - Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
- on_
instance_ Instancestop_ action From Template Scheduling On Instance Stop Action - Defines the behaviour for instances with the instance_termination_action.
- preemptible bool
- Whether the instance is preemptible.
- provisioning_
model str - Whether the instance is spot. If this is set as SPOT.
- automatic
Restart Boolean - Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- host
Error NumberTimeout Seconds - Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
- instance
Termination StringAction - Specifies the action GCE should take when SPOT VM is preempted.
- local
Ssd Property MapRecovery Timeout - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- maintenance
Interval String - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- max
Run Property MapDuration - The timeout for new network connections to hosts.
- min
Node NumberCpus - node
Affinities List<Property Map> - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
- on
Host StringMaintenance - Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
- on
Instance Property MapStop Action - Defines the behaviour for instances with the instance_termination_action.
- preemptible Boolean
- Whether the instance is preemptible.
- provisioning
Model String - Whether the instance is spot. If this is set as SPOT.
InstanceFromTemplateSchedulingLocalSsdRecoveryTimeout, InstanceFromTemplateSchedulingLocalSsdRecoveryTimeoutArgs
- Seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- Nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- Nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds Integer
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos Integer
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds number
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos number
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds Number
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos Number
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
InstanceFromTemplateSchedulingMaxRunDuration, InstanceFromTemplateSchedulingMaxRunDurationArgs
- Seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- Nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- Nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds Integer
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos Integer
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds number
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos number
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds Number
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos Number
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
InstanceFromTemplateSchedulingNodeAffinity, InstanceFromTemplateSchedulingNodeAffinityArgs
InstanceFromTemplateSchedulingOnInstanceStopAction, InstanceFromTemplateSchedulingOnInstanceStopActionArgs
- Discard
Local boolSsd - If true, the contents of any attached Local SSD disks will be discarded.
- Discard
Local boolSsd - If true, the contents of any attached Local SSD disks will be discarded.
- discard
Local BooleanSsd - If true, the contents of any attached Local SSD disks will be discarded.
- discard
Local booleanSsd - If true, the contents of any attached Local SSD disks will be discarded.
- discard_
local_ boolssd - If true, the contents of any attached Local SSD disks will be discarded.
- discard
Local BooleanSsd - If true, the contents of any attached Local SSD disks will be discarded.
InstanceFromTemplateScratchDisk, InstanceFromTemplateScratchDiskArgs
- Interface string
- The disk interface used for attaching this disk. One of SCSI or NVME.
- Device
Name string - Name with which the attached disk is accessible under /dev/disk/by-id/
- Size int
- The size of the disk in gigabytes. One of 375 or 3000.
- Interface string
- The disk interface used for attaching this disk. One of SCSI or NVME.
- Device
Name string - Name with which the attached disk is accessible under /dev/disk/by-id/
- Size int
- The size of the disk in gigabytes. One of 375 or 3000.
- interface_ String
- The disk interface used for attaching this disk. One of SCSI or NVME.
- device
Name String - Name with which the attached disk is accessible under /dev/disk/by-id/
- size Integer
- The size of the disk in gigabytes. One of 375 or 3000.
- interface string
- The disk interface used for attaching this disk. One of SCSI or NVME.
- device
Name string - Name with which the attached disk is accessible under /dev/disk/by-id/
- size number
- The size of the disk in gigabytes. One of 375 or 3000.
- interface str
- The disk interface used for attaching this disk. One of SCSI or NVME.
- device_
name str - Name with which the attached disk is accessible under /dev/disk/by-id/
- size int
- The size of the disk in gigabytes. One of 375 or 3000.
- interface String
- The disk interface used for attaching this disk. One of SCSI or NVME.
- device
Name String - Name with which the attached disk is accessible under /dev/disk/by-id/
- size Number
- The size of the disk in gigabytes. One of 375 or 3000.
InstanceFromTemplateServiceAccount, InstanceFromTemplateServiceAccountArgs
InstanceFromTemplateShieldedInstanceConfig, InstanceFromTemplateShieldedInstanceConfigArgs
- Enable
Integrity boolMonitoring - Whether integrity monitoring is enabled for the instance.
- Enable
Secure boolBoot - Whether secure boot is enabled for the instance.
- Enable
Vtpm bool - Whether the instance uses vTPM.
- Enable
Integrity boolMonitoring - Whether integrity monitoring is enabled for the instance.
- Enable
Secure boolBoot - Whether secure boot is enabled for the instance.
- Enable
Vtpm bool - Whether the instance uses vTPM.
- enable
Integrity BooleanMonitoring - Whether integrity monitoring is enabled for the instance.
- enable
Secure BooleanBoot - Whether secure boot is enabled for the instance.
- enable
Vtpm Boolean - Whether the instance uses vTPM.
- enable
Integrity booleanMonitoring - Whether integrity monitoring is enabled for the instance.
- enable
Secure booleanBoot - Whether secure boot is enabled for the instance.
- enable
Vtpm boolean - Whether the instance uses vTPM.
- enable_
integrity_ boolmonitoring - Whether integrity monitoring is enabled for the instance.
- enable_
secure_ boolboot - Whether secure boot is enabled for the instance.
- enable_
vtpm bool - Whether the instance uses vTPM.
- enable
Integrity BooleanMonitoring - Whether integrity monitoring is enabled for the instance.
- enable
Secure BooleanBoot - Whether secure boot is enabled for the instance.
- enable
Vtpm Boolean - Whether the instance uses vTPM.
Import
This resource does not support import.
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.