1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. getRegionInstanceTemplate
Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi

gcp.compute.getRegionInstanceTemplate

Explore with Pulumi AI

Get information about a VM instance template resource within GCE. For more information see the official documentation and API.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

// by name
const generic = gcp.compute.getRegionInstanceTemplate({
    name: "generic-tpl-20200107",
});
// using a filter
const generic_regex = gcp.compute.getRegionInstanceTemplate({
    filter: "name != generic-tpl-20200107",
    mostRecent: true,
});
Copy
import pulumi
import pulumi_gcp as gcp

# by name
generic = gcp.compute.get_region_instance_template(name="generic-tpl-20200107")
# using a filter
generic_regex = gcp.compute.get_region_instance_template(filter="name != generic-tpl-20200107",
    most_recent=True)
Copy
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 {
		// by name
		_, err := compute.LookupRegionInstanceTemplate(ctx, &compute.LookupRegionInstanceTemplateArgs{
			Name: pulumi.StringRef("generic-tpl-20200107"),
		}, nil)
		if err != nil {
			return err
		}
		// using a filter
		_, err = compute.LookupRegionInstanceTemplate(ctx, &compute.LookupRegionInstanceTemplateArgs{
			Filter:     pulumi.StringRef("name != generic-tpl-20200107"),
			MostRecent: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    // by name
    var generic = Gcp.Compute.GetRegionInstanceTemplate.Invoke(new()
    {
        Name = "generic-tpl-20200107",
    });

    // using a filter
    var generic_regex = Gcp.Compute.GetRegionInstanceTemplate.Invoke(new()
    {
        Filter = "name != generic-tpl-20200107",
        MostRecent = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetRegionInstanceTemplateArgs;
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) {
        // by name
        final var generic = ComputeFunctions.getRegionInstanceTemplate(GetRegionInstanceTemplateArgs.builder()
            .name("generic-tpl-20200107")
            .build());

        // using a filter
        final var generic-regex = ComputeFunctions.getRegionInstanceTemplate(GetRegionInstanceTemplateArgs.builder()
            .filter("name != generic-tpl-20200107")
            .mostRecent(true)
            .build());

    }
}
Copy
variables:
  # by name
  generic:
    fn::invoke:
      function: gcp:compute:getRegionInstanceTemplate
      arguments:
        name: generic-tpl-20200107
  # using a filter
  generic-regex:
    fn::invoke:
      function: gcp:compute:getRegionInstanceTemplate
      arguments:
        filter: name != generic-tpl-20200107
        mostRecent: true
Copy

Using getRegionInstanceTemplate

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRegionInstanceTemplate(args: GetRegionInstanceTemplateArgs, opts?: InvokeOptions): Promise<GetRegionInstanceTemplateResult>
function getRegionInstanceTemplateOutput(args: GetRegionInstanceTemplateOutputArgs, opts?: InvokeOptions): Output<GetRegionInstanceTemplateResult>
Copy
def get_region_instance_template(filter: Optional[str] = None,
                                 most_recent: Optional[bool] = None,
                                 name: Optional[str] = None,
                                 project: Optional[str] = None,
                                 region: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetRegionInstanceTemplateResult
def get_region_instance_template_output(filter: Optional[pulumi.Input[str]] = None,
                                 most_recent: Optional[pulumi.Input[bool]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 project: Optional[pulumi.Input[str]] = None,
                                 region: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetRegionInstanceTemplateResult]
Copy
func LookupRegionInstanceTemplate(ctx *Context, args *LookupRegionInstanceTemplateArgs, opts ...InvokeOption) (*LookupRegionInstanceTemplateResult, error)
func LookupRegionInstanceTemplateOutput(ctx *Context, args *LookupRegionInstanceTemplateOutputArgs, opts ...InvokeOption) LookupRegionInstanceTemplateResultOutput
Copy

> Note: This function is named LookupRegionInstanceTemplate in the Go SDK.

public static class GetRegionInstanceTemplate 
{
    public static Task<GetRegionInstanceTemplateResult> InvokeAsync(GetRegionInstanceTemplateArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionInstanceTemplateResult> Invoke(GetRegionInstanceTemplateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRegionInstanceTemplateResult> getRegionInstanceTemplate(GetRegionInstanceTemplateArgs args, InvokeOptions options)
public static Output<GetRegionInstanceTemplateResult> getRegionInstanceTemplate(GetRegionInstanceTemplateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filter string
A filter to retrieve the instance templates. See API filter parameter documentation for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name or filter must be provided.
MostRecent bool
If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name or filter must be provided.
Name string
The name of the instance template. One of name or filter must be provided.
Project string
The ID of the project in which the resource belongs. If project is not provided, the provider project is used.
Region string
The Region in which the resource belongs. If region is not provided, the provider region is used.
Filter string
A filter to retrieve the instance templates. See API filter parameter documentation for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name or filter must be provided.
MostRecent bool
If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name or filter must be provided.
Name string
The name of the instance template. One of name or filter must be provided.
Project string
The ID of the project in which the resource belongs. If project is not provided, the provider project is used.
Region string
The Region in which the resource belongs. If region is not provided, the provider region is used.
filter String
A filter to retrieve the instance templates. See API filter parameter documentation for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name or filter must be provided.
mostRecent Boolean
If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name or filter must be provided.
name String
The name of the instance template. One of name or filter must be provided.
project String
The ID of the project in which the resource belongs. If project is not provided, the provider project is used.
region String
The Region in which the resource belongs. If region is not provided, the provider region is used.
filter string
A filter to retrieve the instance templates. See API filter parameter documentation for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name or filter must be provided.
mostRecent boolean
If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name or filter must be provided.
name string
The name of the instance template. One of name or filter must be provided.
project string
The ID of the project in which the resource belongs. If project is not provided, the provider project is used.
region string
The Region in which the resource belongs. If region is not provided, the provider region is used.
filter str
A filter to retrieve the instance templates. See API filter parameter documentation for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name or filter must be provided.
most_recent bool
If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name or filter must be provided.
name str
The name of the instance template. One of name or filter must be provided.
project str
The ID of the project in which the resource belongs. If project is not provided, the provider project is used.
region str
The Region in which the resource belongs. If region is not provided, the provider region is used.
filter String
A filter to retrieve the instance templates. See API filter parameter documentation for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name or filter must be provided.
mostRecent Boolean
If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name or filter must be provided.
name String
The name of the instance template. One of name or filter must be provided.
project String
The ID of the project in which the resource belongs. If project is not provided, the provider project is used.
region String
The Region in which the resource belongs. If region is not provided, the provider region is used.

getRegionInstanceTemplate Result

The following output properties are available:

AdvancedMachineFeatures List<GetRegionInstanceTemplateAdvancedMachineFeature>
CanIpForward bool
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
ConfidentialInstanceConfigs List<GetRegionInstanceTemplateConfidentialInstanceConfig>
Enable Confidential Mode on this VM. Structure is documented below
CreationTimestamp string
Creation timestamp in RFC3339 text format.
Description string
A brief description of this resource.
Disks List<GetRegionInstanceTemplateDisk>
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
EffectiveLabels Dictionary<string, string>
EnableDisplay bool
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
GuestAccelerators List<GetRegionInstanceTemplateGuestAccelerator>
List of the type and count of accelerator cards attached to the instance. Structure documented below.
Id string
The provider-assigned unique ID for this managed resource.
InstanceDescription string
A brief description to use for instances created from this template.
KeyRevocationActionType string
Action to be taken when a customer's encryption key is revoked.
Labels Dictionary<string, string>
(Optional) A set of ket/value label pairs to assign to disk created from this template
MachineType string
The machine type to create.
Metadata Dictionary<string, string>
Metadata key/value pairs to make available from within instances created from this template.
MetadataFingerprint string
The unique fingerprint of the metadata.
MetadataStartupScript string
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
MinCpuPlatform string
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
NamePrefix string
Creates a unique name beginning with the specified prefix. Conflicts with name.
NetworkInterfaces List<GetRegionInstanceTemplateNetworkInterface>
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
NetworkPerformanceConfigs List<GetRegionInstanceTemplateNetworkPerformanceConfig>
The network performance configuration setting for the instance, if set. Structure is documented below.
PartnerMetadata Dictionary<string, string>
PulumiLabels Dictionary<string, string>
ReservationAffinities List<GetRegionInstanceTemplateReservationAffinity>
ResourceManagerTags Dictionary<string, string>
ResourcePolicies List<string>
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
Schedulings List<GetRegionInstanceTemplateScheduling>
The scheduling strategy to use. More details about this configuration option are detailed below.
SelfLink string
The URI of the created resource.
ServiceAccounts List<GetRegionInstanceTemplateServiceAccount>
Service account to attach to the instance. Structure is documented below.
ShieldedInstanceConfigs List<GetRegionInstanceTemplateShieldedInstanceConfig>
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
Tags List<string>
Tags to attach to the instance.
TagsFingerprint string
The unique fingerprint of the tags.
Filter string
MostRecent bool
Name string
Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Region string
AdvancedMachineFeatures []GetRegionInstanceTemplateAdvancedMachineFeature
CanIpForward bool
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
ConfidentialInstanceConfigs []GetRegionInstanceTemplateConfidentialInstanceConfig
Enable Confidential Mode on this VM. Structure is documented below
CreationTimestamp string
Creation timestamp in RFC3339 text format.
Description string
A brief description of this resource.
Disks []GetRegionInstanceTemplateDisk
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
EffectiveLabels map[string]string
EnableDisplay bool
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
GuestAccelerators []GetRegionInstanceTemplateGuestAccelerator
List of the type and count of accelerator cards attached to the instance. Structure documented below.
Id string
The provider-assigned unique ID for this managed resource.
InstanceDescription string
A brief description to use for instances created from this template.
KeyRevocationActionType string
Action to be taken when a customer's encryption key is revoked.
Labels map[string]string
(Optional) A set of ket/value label pairs to assign to disk created from this template
MachineType string
The machine type to create.
Metadata map[string]string
Metadata key/value pairs to make available from within instances created from this template.
MetadataFingerprint string
The unique fingerprint of the metadata.
MetadataStartupScript string
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
MinCpuPlatform string
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
NamePrefix string
Creates a unique name beginning with the specified prefix. Conflicts with name.
NetworkInterfaces []GetRegionInstanceTemplateNetworkInterface
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
NetworkPerformanceConfigs []GetRegionInstanceTemplateNetworkPerformanceConfig
The network performance configuration setting for the instance, if set. Structure is documented below.
PartnerMetadata map[string]string
PulumiLabels map[string]string
ReservationAffinities []GetRegionInstanceTemplateReservationAffinity
ResourceManagerTags map[string]string
ResourcePolicies []string
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
Schedulings []GetRegionInstanceTemplateScheduling
The scheduling strategy to use. More details about this configuration option are detailed below.
SelfLink string
The URI of the created resource.
ServiceAccounts []GetRegionInstanceTemplateServiceAccount
Service account to attach to the instance. Structure is documented below.
ShieldedInstanceConfigs []GetRegionInstanceTemplateShieldedInstanceConfig
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
Tags []string
Tags to attach to the instance.
TagsFingerprint string
The unique fingerprint of the tags.
Filter string
MostRecent bool
Name string
Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Region string
advancedMachineFeatures List<GetRegionInstanceTemplateAdvancedMachineFeature>
canIpForward Boolean
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidentialInstanceConfigs List<GetRegionInstanceTemplateConfidentialInstanceConfig>
Enable Confidential Mode on this VM. Structure is documented below
creationTimestamp String
Creation timestamp in RFC3339 text format.
description String
A brief description of this resource.
disks List<GetRegionInstanceTemplateDisk>
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
effectiveLabels Map<String,String>
enableDisplay Boolean
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guestAccelerators List<GetRegionInstanceTemplateGuestAccelerator>
List of the type and count of accelerator cards attached to the instance. Structure documented below.
id String
The provider-assigned unique ID for this managed resource.
instanceDescription String
A brief description to use for instances created from this template.
keyRevocationActionType String
Action to be taken when a customer's encryption key is revoked.
labels Map<String,String>
(Optional) A set of ket/value label pairs to assign to disk created from this template
machineType String
The machine type to create.
metadata Map<String,String>
Metadata key/value pairs to make available from within instances created from this template.
metadataFingerprint String
The unique fingerprint of the metadata.
metadataStartupScript String
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
minCpuPlatform String
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
namePrefix String
Creates a unique name beginning with the specified prefix. Conflicts with name.
networkInterfaces List<GetRegionInstanceTemplateNetworkInterface>
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
networkPerformanceConfigs List<GetRegionInstanceTemplateNetworkPerformanceConfig>
The network performance configuration setting for the instance, if set. Structure is documented below.
partnerMetadata Map<String,String>
pulumiLabels Map<String,String>
reservationAffinities List<GetRegionInstanceTemplateReservationAffinity>
resourceManagerTags Map<String,String>
resourcePolicies List<String>
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
schedulings List<GetRegionInstanceTemplateScheduling>
The scheduling strategy to use. More details about this configuration option are detailed below.
selfLink String
The URI of the created resource.
serviceAccounts List<GetRegionInstanceTemplateServiceAccount>
Service account to attach to the instance. Structure is documented below.
shieldedInstanceConfigs List<GetRegionInstanceTemplateShieldedInstanceConfig>
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags List<String>
Tags to attach to the instance.
tagsFingerprint String
The unique fingerprint of the tags.
filter String
mostRecent Boolean
name String
project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region String
advancedMachineFeatures GetRegionInstanceTemplateAdvancedMachineFeature[]
canIpForward boolean
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidentialInstanceConfigs GetRegionInstanceTemplateConfidentialInstanceConfig[]
Enable Confidential Mode on this VM. Structure is documented below
creationTimestamp string
Creation timestamp in RFC3339 text format.
description string
A brief description of this resource.
disks GetRegionInstanceTemplateDisk[]
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
effectiveLabels {[key: string]: string}
enableDisplay boolean
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guestAccelerators GetRegionInstanceTemplateGuestAccelerator[]
List of the type and count of accelerator cards attached to the instance. Structure documented below.
id string
The provider-assigned unique ID for this managed resource.
instanceDescription string
A brief description to use for instances created from this template.
keyRevocationActionType string
Action to be taken when a customer's encryption key is revoked.
labels {[key: string]: string}
(Optional) A set of ket/value label pairs to assign to disk created from this template
machineType string
The machine type to create.
metadata {[key: string]: string}
Metadata key/value pairs to make available from within instances created from this template.
metadataFingerprint string
The unique fingerprint of the metadata.
metadataStartupScript string
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
minCpuPlatform string
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
namePrefix string
Creates a unique name beginning with the specified prefix. Conflicts with name.
networkInterfaces GetRegionInstanceTemplateNetworkInterface[]
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
networkPerformanceConfigs GetRegionInstanceTemplateNetworkPerformanceConfig[]
The network performance configuration setting for the instance, if set. Structure is documented below.
partnerMetadata {[key: string]: string}
pulumiLabels {[key: string]: string}
reservationAffinities GetRegionInstanceTemplateReservationAffinity[]
resourceManagerTags {[key: string]: string}
resourcePolicies string[]
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
schedulings GetRegionInstanceTemplateScheduling[]
The scheduling strategy to use. More details about this configuration option are detailed below.
selfLink string
The URI of the created resource.
serviceAccounts GetRegionInstanceTemplateServiceAccount[]
Service account to attach to the instance. Structure is documented below.
shieldedInstanceConfigs GetRegionInstanceTemplateShieldedInstanceConfig[]
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags string[]
Tags to attach to the instance.
tagsFingerprint string
The unique fingerprint of the tags.
filter string
mostRecent boolean
name string
project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region string
advanced_machine_features Sequence[GetRegionInstanceTemplateAdvancedMachineFeature]
can_ip_forward bool
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidential_instance_configs Sequence[GetRegionInstanceTemplateConfidentialInstanceConfig]
Enable Confidential Mode on this VM. Structure is documented below
creation_timestamp str
Creation timestamp in RFC3339 text format.
description str
A brief description of this resource.
disks Sequence[GetRegionInstanceTemplateDisk]
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
effective_labels Mapping[str, str]
enable_display bool
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guest_accelerators Sequence[GetRegionInstanceTemplateGuestAccelerator]
List of the type and count of accelerator cards attached to the instance. Structure documented below.
id str
The provider-assigned unique ID for this managed resource.
instance_description str
A brief description to use for instances created from this template.
key_revocation_action_type str
Action to be taken when a customer's encryption key is revoked.
labels Mapping[str, str]
(Optional) A set of ket/value label pairs to assign to disk created from this template
machine_type str
The machine type to create.
metadata Mapping[str, str]
Metadata key/value pairs to make available from within instances created from this template.
metadata_fingerprint str
The unique fingerprint of the metadata.
metadata_startup_script str
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
min_cpu_platform str
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
name_prefix str
Creates a unique name beginning with the specified prefix. Conflicts with name.
network_interfaces Sequence[GetRegionInstanceTemplateNetworkInterface]
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
network_performance_configs Sequence[GetRegionInstanceTemplateNetworkPerformanceConfig]
The network performance configuration setting for the instance, if set. Structure is documented below.
partner_metadata Mapping[str, str]
pulumi_labels Mapping[str, str]
reservation_affinities Sequence[GetRegionInstanceTemplateReservationAffinity]
resource_manager_tags Mapping[str, str]
resource_policies Sequence[str]
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
schedulings Sequence[GetRegionInstanceTemplateScheduling]
The scheduling strategy to use. More details about this configuration option are detailed below.
self_link str
The URI of the created resource.
service_accounts Sequence[GetRegionInstanceTemplateServiceAccount]
Service account to attach to the instance. Structure is documented below.
shielded_instance_configs Sequence[GetRegionInstanceTemplateShieldedInstanceConfig]
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags Sequence[str]
Tags to attach to the instance.
tags_fingerprint str
The unique fingerprint of the tags.
filter str
most_recent bool
name str
project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region str
advancedMachineFeatures List<Property Map>
canIpForward Boolean
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidentialInstanceConfigs List<Property Map>
Enable Confidential Mode on this VM. Structure is documented below
creationTimestamp String
Creation timestamp in RFC3339 text format.
description String
A brief description of this resource.
disks List<Property Map>
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
effectiveLabels Map<String>
enableDisplay Boolean
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guestAccelerators List<Property Map>
List of the type and count of accelerator cards attached to the instance. Structure documented below.
id String
The provider-assigned unique ID for this managed resource.
instanceDescription String
A brief description to use for instances created from this template.
keyRevocationActionType String
Action to be taken when a customer's encryption key is revoked.
labels Map<String>
(Optional) A set of ket/value label pairs to assign to disk created from this template
machineType String
The machine type to create.
metadata Map<String>
Metadata key/value pairs to make available from within instances created from this template.
metadataFingerprint String
The unique fingerprint of the metadata.
metadataStartupScript String
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
minCpuPlatform String
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
namePrefix String
Creates a unique name beginning with the specified prefix. Conflicts with name.
networkInterfaces List<Property Map>
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
networkPerformanceConfigs List<Property Map>
The network performance configuration setting for the instance, if set. Structure is documented below.
partnerMetadata Map<String>
pulumiLabels Map<String>
reservationAffinities List<Property Map>
resourceManagerTags Map<String>
resourcePolicies List<String>
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
schedulings List<Property Map>
The scheduling strategy to use. More details about this configuration option are detailed below.
selfLink String
The URI of the created resource.
serviceAccounts List<Property Map>
Service account to attach to the instance. Structure is documented below.
shieldedInstanceConfigs List<Property Map>
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags List<String>
Tags to attach to the instance.
tagsFingerprint String
The unique fingerprint of the tags.
filter String
mostRecent Boolean
name String
project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region String

Supporting Types

GetRegionInstanceTemplateAdvancedMachineFeature

EnableNestedVirtualization This property is required. bool
Whether to enable nested virtualization or not.
EnableUefiNetworking This property is required. bool
Whether to enable UEFI networking or not.
PerformanceMonitoringUnit This property is required. string
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
ThreadsPerCore This property is required. int
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.
TurboMode This property is required. string
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
VisibleCoreCount This property is required. int
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.
EnableNestedVirtualization This property is required. bool
Whether to enable nested virtualization or not.
EnableUefiNetworking This property is required. bool
Whether to enable UEFI networking or not.
PerformanceMonitoringUnit This property is required. string
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
ThreadsPerCore This property is required. int
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.
TurboMode This property is required. string
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
VisibleCoreCount This property is required. int
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.
enableNestedVirtualization This property is required. Boolean
Whether to enable nested virtualization or not.
enableUefiNetworking This property is required. Boolean
Whether to enable UEFI networking or not.
performanceMonitoringUnit This property is required. String
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
threadsPerCore This property is required. Integer
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.
turboMode This property is required. String
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
visibleCoreCount This property is required. Integer
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.
enableNestedVirtualization This property is required. boolean
Whether to enable nested virtualization or not.
enableUefiNetworking This property is required. boolean
Whether to enable UEFI networking or not.
performanceMonitoringUnit This property is required. string
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
threadsPerCore This property is required. number
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.
turboMode This property is required. string
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
visibleCoreCount This property is required. number
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_virtualization This property is required. bool
Whether to enable nested virtualization or not.
enable_uefi_networking This property is required. bool
Whether to enable UEFI networking or not.
performance_monitoring_unit This property is required. str
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
threads_per_core This property is required. int
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 This property is required. str
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
visible_core_count This property is required. int
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.
enableNestedVirtualization This property is required. Boolean
Whether to enable nested virtualization or not.
enableUefiNetworking This property is required. Boolean
Whether to enable UEFI networking or not.
performanceMonitoringUnit This property is required. String
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
threadsPerCore This property is required. Number
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.
turboMode This property is required. String
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
visibleCoreCount This property is required. Number
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.

GetRegionInstanceTemplateConfidentialInstanceConfig

ConfidentialInstanceType This property is required. string
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.
EnableConfidentialCompute This property is required. bool
Defines whether the instance should have confidential compute enabled. on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
ConfidentialInstanceType This property is required. string
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.
EnableConfidentialCompute This property is required. bool
Defines whether the instance should have confidential compute enabled. on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
confidentialInstanceType This property is required. String
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.
enableConfidentialCompute This property is required. Boolean
Defines whether the instance should have confidential compute enabled. on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
confidentialInstanceType This property is required. string
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.
enableConfidentialCompute This property is required. boolean
Defines whether the instance should have confidential compute enabled. on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
confidential_instance_type This property is required. str
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_compute This property is required. bool
Defines whether the instance should have confidential compute enabled. on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
confidentialInstanceType This property is required. String
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.
enableConfidentialCompute This property is required. Boolean
Defines whether the instance should have confidential compute enabled. on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.

GetRegionInstanceTemplateDisk

AutoDelete This property is required. bool
Whether or not the disk should be auto-deleted. This defaults to true.
Boot This property is required. bool
Indicates that this is a boot disk.
DeviceName This property is required. string
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
DiskEncryptionKeys This property is required. List<GetRegionInstanceTemplateDiskDiskEncryptionKey>
Encrypts or decrypts a disk using a customer-supplied encryption key.
DiskName This property is required. string
Name of the disk. When not provided, this defaults to the name of the instance.
DiskSizeGb This property is required. int
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
DiskType This property is required. string
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
Interface This property is required. string
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
Labels This property is required. Dictionary<string, string>
(Optional) A set of ket/value label pairs to assign to disk created from this template
Mode This property is required. string
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
ProvisionedIops This property is required. 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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
ProvisionedThroughput This property is required. int
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
ResourceManagerTags This property is required. 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.
ResourcePolicies This property is required. List<string>
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
Source This property is required. string

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

SourceImage This property is required. string

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

SourceImageEncryptionKeys This property is required. List<GetRegionInstanceTemplateDiskSourceImageEncryptionKey>

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.

SourceSnapshot This property is required. string
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
SourceSnapshotEncryptionKeys This property is required. List<GetRegionInstanceTemplateDiskSourceSnapshotEncryptionKey>
The customer-supplied encryption key of the source snapshot.
Type This property is required. string
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
AutoDelete This property is required. bool
Whether or not the disk should be auto-deleted. This defaults to true.
Boot This property is required. bool
Indicates that this is a boot disk.
DeviceName This property is required. string
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
DiskEncryptionKeys This property is required. []GetRegionInstanceTemplateDiskDiskEncryptionKey
Encrypts or decrypts a disk using a customer-supplied encryption key.
DiskName This property is required. string
Name of the disk. When not provided, this defaults to the name of the instance.
DiskSizeGb This property is required. int
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
DiskType This property is required. string
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
Interface This property is required. string
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
Labels This property is required. map[string]string
(Optional) A set of ket/value label pairs to assign to disk created from this template
Mode This property is required. string
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
ProvisionedIops This property is required. 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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
ProvisionedThroughput This property is required. int
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
ResourceManagerTags This property is required. 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.
ResourcePolicies This property is required. []string
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
Source This property is required. string

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

SourceImage This property is required. string

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

SourceImageEncryptionKeys This property is required. []GetRegionInstanceTemplateDiskSourceImageEncryptionKey

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.

SourceSnapshot This property is required. string
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
SourceSnapshotEncryptionKeys This property is required. []GetRegionInstanceTemplateDiskSourceSnapshotEncryptionKey
The customer-supplied encryption key of the source snapshot.
Type This property is required. string
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
autoDelete This property is required. Boolean
Whether or not the disk should be auto-deleted. This defaults to true.
boot This property is required. Boolean
Indicates that this is a boot disk.
deviceName This property is required. String
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
diskEncryptionKeys This property is required. List<GetRegionInstanceTemplateDiskDiskEncryptionKey>
Encrypts or decrypts a disk using a customer-supplied encryption key.
diskName This property is required. String
Name of the disk. When not provided, this defaults to the name of the instance.
diskSizeGb This property is required. Integer
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
diskType This property is required. String
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
interface_ This property is required. String
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
labels This property is required. Map<String,String>
(Optional) A set of ket/value label pairs to assign to disk created from this template
mode This property is required. String
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
provisionedIops This property is required. 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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
provisionedThroughput This property is required. Integer
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
resourceManagerTags This property is required. 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.
resourcePolicies This property is required. List<String>
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
source This property is required. String

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImage This property is required. String

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImageEncryptionKeys This property is required. List<GetRegionInstanceTemplateDiskSourceImageEncryptionKey>

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.

sourceSnapshot This property is required. String
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
sourceSnapshotEncryptionKeys This property is required. List<GetRegionInstanceTemplateDiskSourceSnapshotEncryptionKey>
The customer-supplied encryption key of the source snapshot.
type This property is required. String
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
autoDelete This property is required. boolean
Whether or not the disk should be auto-deleted. This defaults to true.
boot This property is required. boolean
Indicates that this is a boot disk.
deviceName This property is required. string
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
diskEncryptionKeys This property is required. GetRegionInstanceTemplateDiskDiskEncryptionKey[]
Encrypts or decrypts a disk using a customer-supplied encryption key.
diskName This property is required. string
Name of the disk. When not provided, this defaults to the name of the instance.
diskSizeGb This property is required. number
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
diskType This property is required. string
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
interface This property is required. string
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
labels This property is required. {[key: string]: string}
(Optional) A set of ket/value label pairs to assign to disk created from this template
mode This property is required. string
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
provisionedIops This property is required. 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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
provisionedThroughput This property is required. number
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
resourceManagerTags This property is required. {[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.
resourcePolicies This property is required. string[]
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
source This property is required. string

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImage This property is required. string

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImageEncryptionKeys This property is required. GetRegionInstanceTemplateDiskSourceImageEncryptionKey[]

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.

sourceSnapshot This property is required. string
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
sourceSnapshotEncryptionKeys This property is required. GetRegionInstanceTemplateDiskSourceSnapshotEncryptionKey[]
The customer-supplied encryption key of the source snapshot.
type This property is required. string
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
auto_delete This property is required. bool
Whether or not the disk should be auto-deleted. This defaults to true.
boot This property is required. bool
Indicates that this is a boot disk.
device_name This property is required. str
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
disk_encryption_keys This property is required. Sequence[GetRegionInstanceTemplateDiskDiskEncryptionKey]
Encrypts or decrypts a disk using a customer-supplied encryption key.
disk_name This property is required. str
Name of the disk. When not provided, this defaults to the name of the instance.
disk_size_gb This property is required. int
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
disk_type This property is required. str
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
interface This property is required. str
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
labels This property is required. Mapping[str, str]
(Optional) A set of ket/value label pairs to assign to disk created from this template
mode This property is required. str
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
provisioned_iops This property is required. 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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
provisioned_throughput This property is required. int
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
resource_manager_tags This property is required. 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 This property is required. Sequence[str]
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
source This property is required. str

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

source_image This property is required. str

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

source_image_encryption_keys This property is required. Sequence[GetRegionInstanceTemplateDiskSourceImageEncryptionKey]

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.

source_snapshot This property is required. str
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
source_snapshot_encryption_keys This property is required. Sequence[GetRegionInstanceTemplateDiskSourceSnapshotEncryptionKey]
The customer-supplied encryption key of the source snapshot.
type This property is required. str
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
autoDelete This property is required. Boolean
Whether or not the disk should be auto-deleted. This defaults to true.
boot This property is required. Boolean
Indicates that this is a boot disk.
deviceName This property is required. String
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
diskEncryptionKeys This property is required. List<Property Map>
Encrypts or decrypts a disk using a customer-supplied encryption key.
diskName This property is required. String
Name of the disk. When not provided, this defaults to the name of the instance.
diskSizeGb This property is required. Number
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
diskType This property is required. String
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
interface This property is required. String
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
labels This property is required. Map<String>
(Optional) A set of ket/value label pairs to assign to disk created from this template
mode This property is required. String
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
provisionedIops This property is required. 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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
provisionedThroughput This property is required. Number
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
resourceManagerTags This property is required. 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.
resourcePolicies This property is required. List<String>
(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
source This property is required. String

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImage This property is required. String

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source or source_image is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImageEncryptionKeys This property is required. List<Property Map>

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.

sourceSnapshot This property is required. String
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
sourceSnapshotEncryptionKeys This property is required. List<Property Map>
The customer-supplied encryption key of the source snapshot.
type This property is required. String
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

GetRegionInstanceTemplateDiskDiskEncryptionKey

KmsKeySelfLink This property is required. string
The self link of the encryption key that is stored in Google Cloud KMS
KmsKeySelfLink This property is required. string
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeySelfLink This property is required. String
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeySelfLink This property is required. string
The self link of the encryption key that is stored in Google Cloud KMS
kms_key_self_link This property is required. str
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeySelfLink This property is required. String
The self link of the encryption key that is stored in Google Cloud KMS

GetRegionInstanceTemplateDiskSourceImageEncryptionKey

KmsKeySelfLink This property is required. string
The self link of the encryption key that is stored in Google Cloud KMS
KmsKeyServiceAccount This property is required. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
KmsKeySelfLink This property is required. string
The self link of the encryption key that is stored in Google Cloud KMS
KmsKeyServiceAccount This property is required. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
kmsKeySelfLink This property is required. String
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeyServiceAccount This property is required. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
kmsKeySelfLink This property is required. string
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeyServiceAccount This property is required. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
kms_key_self_link This property is required. str
The self link of the encryption key that is stored in Google Cloud KMS
kms_key_service_account This property is required. str
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
kmsKeySelfLink This property is required. String
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeyServiceAccount This property is required. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.

GetRegionInstanceTemplateDiskSourceSnapshotEncryptionKey

KmsKeySelfLink This property is required. string
The self link of the encryption key that is stored in Google Cloud KMS
KmsKeyServiceAccount This property is required. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
KmsKeySelfLink This property is required. string
The self link of the encryption key that is stored in Google Cloud KMS
KmsKeyServiceAccount This property is required. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
kmsKeySelfLink This property is required. String
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeyServiceAccount This property is required. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
kmsKeySelfLink This property is required. string
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeyServiceAccount This property is required. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
kms_key_self_link This property is required. str
The self link of the encryption key that is stored in Google Cloud KMS
kms_key_service_account This property is required. str
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
kmsKeySelfLink This property is required. String
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeyServiceAccount This property is required. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.

GetRegionInstanceTemplateGuestAccelerator

Count This property is required. int
The number of the guest accelerator cards exposed to this instance.
Type This property is required. string
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
Count This property is required. int
The number of the guest accelerator cards exposed to this instance.
Type This property is required. string
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
count This property is required. Integer
The number of the guest accelerator cards exposed to this instance.
type This property is required. String
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
count This property is required. number
The number of the guest accelerator cards exposed to this instance.
type This property is required. string
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
count This property is required. int
The number of the guest accelerator cards exposed to this instance.
type This property is required. str
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
count This property is required. Number
The number of the guest accelerator cards exposed to this instance.
type This property is required. String
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

GetRegionInstanceTemplateNetworkInterface

AccessConfigs This property is required. List<GetRegionInstanceTemplateNetworkInterfaceAccessConfig>
AliasIpRanges This property is required. List<GetRegionInstanceTemplateNetworkInterfaceAliasIpRange>
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
InternalIpv6PrefixLength This property is required. int
The prefix length of the primary internal IPv6 range.
Ipv6AccessConfigs This property is required. List<GetRegionInstanceTemplateNetworkInterfaceIpv6AccessConfig>
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.
Ipv6AccessType This property is required. 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 This property is required. 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 This property is required. string
The name of the instance template. One of name or filter must be provided.
Network This property is required. string
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
NetworkIp This property is required. string
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
NicType This property is required. string
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, MRDMA, and IRDMA
QueueCount This property is required. 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.
StackType This property is required. 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 This property is required. string
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
SubnetworkProject This property is required. string
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
AccessConfigs This property is required. []GetRegionInstanceTemplateNetworkInterfaceAccessConfig
AliasIpRanges This property is required. []GetRegionInstanceTemplateNetworkInterfaceAliasIpRange
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
InternalIpv6PrefixLength This property is required. int
The prefix length of the primary internal IPv6 range.
Ipv6AccessConfigs This property is required. []GetRegionInstanceTemplateNetworkInterfaceIpv6AccessConfig
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.
Ipv6AccessType This property is required. 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 This property is required. 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 This property is required. string
The name of the instance template. One of name or filter must be provided.
Network This property is required. string
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
NetworkIp This property is required. string
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
NicType This property is required. string
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, MRDMA, and IRDMA
QueueCount This property is required. 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.
StackType This property is required. 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 This property is required. string
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
SubnetworkProject This property is required. string
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
accessConfigs This property is required. List<GetRegionInstanceTemplateNetworkInterfaceAccessConfig>
aliasIpRanges This property is required. List<GetRegionInstanceTemplateNetworkInterfaceAliasIpRange>
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
internalIpv6PrefixLength This property is required. Integer
The prefix length of the primary internal IPv6 range.
ipv6AccessConfigs This property is required. List<GetRegionInstanceTemplateNetworkInterfaceIpv6AccessConfig>
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.
ipv6AccessType This property is required. 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 This property is required. 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 This property is required. String
The name of the instance template. One of name or filter must be provided.
network This property is required. String
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
networkIp This property is required. String
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
nicType This property is required. String
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, MRDMA, and IRDMA
queueCount This property is required. 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.
stackType This property is required. 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 This property is required. String
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
subnetworkProject This property is required. String
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
accessConfigs This property is required. GetRegionInstanceTemplateNetworkInterfaceAccessConfig[]
aliasIpRanges This property is required. GetRegionInstanceTemplateNetworkInterfaceAliasIpRange[]
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
internalIpv6PrefixLength This property is required. number
The prefix length of the primary internal IPv6 range.
ipv6AccessConfigs This property is required. GetRegionInstanceTemplateNetworkInterfaceIpv6AccessConfig[]
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.
ipv6AccessType This property is required. 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 This property is required. 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 This property is required. string
The name of the instance template. One of name or filter must be provided.
network This property is required. string
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
networkIp This property is required. string
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
nicType This property is required. string
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, MRDMA, and IRDMA
queueCount This property is required. 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.
stackType This property is required. 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 This property is required. string
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
subnetworkProject This property is required. string
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
access_configs This property is required. Sequence[GetRegionInstanceTemplateNetworkInterfaceAccessConfig]
alias_ip_ranges This property is required. Sequence[GetRegionInstanceTemplateNetworkInterfaceAliasIpRange]
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
internal_ipv6_prefix_length This property is required. int
The prefix length of the primary internal IPv6 range.
ipv6_access_configs This property is required. Sequence[GetRegionInstanceTemplateNetworkInterfaceIpv6AccessConfig]
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_type This property is required. str
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 This property is required. 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 This property is required. str
The name of the instance template. One of name or filter must be provided.
network This property is required. str
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
network_ip This property is required. str
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
nic_type This property is required. str
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, MRDMA, and IRDMA
queue_count This property is required. 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.
stack_type This property is required. 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 This property is required. str
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
subnetwork_project This property is required. str
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
accessConfigs This property is required. List<Property Map>
aliasIpRanges This property is required. List<Property Map>
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
internalIpv6PrefixLength This property is required. Number
The prefix length of the primary internal IPv6 range.
ipv6AccessConfigs This property is required. 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.
ipv6AccessType This property is required. 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 This property is required. 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 This property is required. String
The name of the instance template. One of name or filter must be provided.
network This property is required. String
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
networkIp This property is required. String
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
nicType This property is required. String
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, MRDMA, and IRDMA
queueCount This property is required. 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.
stackType This property is required. 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 This property is required. String
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
subnetworkProject This property is required. String
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.

GetRegionInstanceTemplateNetworkInterfaceAccessConfig

NatIp This property is required. string
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
NetworkTier This property is required. string
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
PublicPtrDomainName This property is required. string
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
NatIp This property is required. string
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
NetworkTier This property is required. string
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
PublicPtrDomainName This property is required. string
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
natIp This property is required. String
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
networkTier This property is required. String
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
publicPtrDomainName This property is required. String
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
natIp This property is required. string
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
networkTier This property is required. string
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
publicPtrDomainName This property is required. string
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
nat_ip This property is required. str
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
network_tier This property is required. str
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
public_ptr_domain_name This property is required. str
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
natIp This property is required. String
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
networkTier This property is required. String
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
publicPtrDomainName This property is required. String
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.

GetRegionInstanceTemplateNetworkInterfaceAliasIpRange

IpCidrRange This property is required. string
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
SubnetworkRangeName This property is required. string
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
IpCidrRange This property is required. string
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
SubnetworkRangeName This property is required. string
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
ipCidrRange This property is required. String
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
subnetworkRangeName This property is required. String
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
ipCidrRange This property is required. string
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
subnetworkRangeName This property is required. string
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
ip_cidr_range This property is required. str
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
subnetwork_range_name This property is required. str
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
ipCidrRange This property is required. String
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
subnetworkRangeName This property is required. String
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.

GetRegionInstanceTemplateNetworkInterfaceIpv6AccessConfig

ExternalIpv6 This property is required. string
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
ExternalIpv6PrefixLength This property is required. string
The prefix length of the external IPv6 range.
Name This property is required. string
The name of the instance template. One of name or filter must be provided.
NetworkTier This property is required. string
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
PublicPtrDomainName This property is required. string
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
ExternalIpv6 This property is required. string
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
ExternalIpv6PrefixLength This property is required. string
The prefix length of the external IPv6 range.
Name This property is required. string
The name of the instance template. One of name or filter must be provided.
NetworkTier This property is required. string
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
PublicPtrDomainName This property is required. string
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
externalIpv6 This property is required. String
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
externalIpv6PrefixLength This property is required. String
The prefix length of the external IPv6 range.
name This property is required. String
The name of the instance template. One of name or filter must be provided.
networkTier This property is required. String
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
publicPtrDomainName This property is required. String
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
externalIpv6 This property is required. string
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
externalIpv6PrefixLength This property is required. string
The prefix length of the external IPv6 range.
name This property is required. string
The name of the instance template. One of name or filter must be provided.
networkTier This property is required. string
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
publicPtrDomainName This property is required. string
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
external_ipv6 This property is required. str
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
external_ipv6_prefix_length This property is required. str
The prefix length of the external IPv6 range.
name This property is required. str
The name of the instance template. One of name or filter must be provided.
network_tier This property is required. str
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
public_ptr_domain_name This property is required. str
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
externalIpv6 This property is required. String
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
externalIpv6PrefixLength This property is required. String
The prefix length of the external IPv6 range.
name This property is required. String
The name of the instance template. One of name or filter must be provided.
networkTier This property is required. String
The [networking tier][network-tier] used for configuring this instance template. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
publicPtrDomainName This property is required. String
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.

GetRegionInstanceTemplateNetworkPerformanceConfig

TotalEgressBandwidthTier This property is required. string
The egress bandwidth tier for the instance.
TotalEgressBandwidthTier This property is required. string
The egress bandwidth tier for the instance.
totalEgressBandwidthTier This property is required. String
The egress bandwidth tier for the instance.
totalEgressBandwidthTier This property is required. string
The egress bandwidth tier for the instance.
total_egress_bandwidth_tier This property is required. str
The egress bandwidth tier for the instance.
totalEgressBandwidthTier This property is required. String
The egress bandwidth tier for the instance.

GetRegionInstanceTemplateReservationAffinity

SpecificReservations This property is required. List<GetRegionInstanceTemplateReservationAffinitySpecificReservation>
Specifies the label selector for the reservation to use.
Type This property is required. string
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
SpecificReservations This property is required. []GetRegionInstanceTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.
Type This property is required. string
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
specificReservations This property is required. List<GetRegionInstanceTemplateReservationAffinitySpecificReservation>
Specifies the label selector for the reservation to use.
type This property is required. String
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
specificReservations This property is required. GetRegionInstanceTemplateReservationAffinitySpecificReservation[]
Specifies the label selector for the reservation to use.
type This property is required. string
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
specific_reservations This property is required. Sequence[GetRegionInstanceTemplateReservationAffinitySpecificReservation]
Specifies the label selector for the reservation to use.
type This property is required. str
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
specificReservations This property is required. List<Property Map>
Specifies the label selector for the reservation to use.
type This property is required. String
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

GetRegionInstanceTemplateReservationAffinitySpecificReservation

Key This property is required. string
The key for the node affinity label.
Values This property is required. List<string>
Corresponds to the label values of a reservation resource.
Key This property is required. string
The key for the node affinity label.
Values This property is required. []string
Corresponds to the label values of a reservation resource.
key This property is required. String
The key for the node affinity label.
values This property is required. List<String>
Corresponds to the label values of a reservation resource.
key This property is required. string
The key for the node affinity label.
values This property is required. string[]
Corresponds to the label values of a reservation resource.
key This property is required. str
The key for the node affinity label.
values This property is required. Sequence[str]
Corresponds to the label values of a reservation resource.
key This property is required. String
The key for the node affinity label.
values This property is required. List<String>
Corresponds to the label values of a reservation resource.

GetRegionInstanceTemplateScheduling

AutomaticRestart This property is required. bool
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
AvailabilityDomain This property is required. int
Specifies the availability domain, which this instance should be scheduled on.
GracefulShutdowns This property is required. List<GetRegionInstanceTemplateSchedulingGracefulShutdown>
Settings for the instance to perform a graceful shutdown.
HostErrorTimeoutSeconds This property is required. int
Beta Time in seconds for host error detection.
InstanceTerminationAction This property is required. string
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
LocalSsdRecoveryTimeouts This property is required. List<GetRegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout>
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.
MaintenanceInterval This property is required. string
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
MaxRunDurations This property is required. List<GetRegionInstanceTemplateSchedulingMaxRunDuration>
The timeout for new network connections to hosts.
MinNodeCpus This property is required. int
Minimum number of cpus for the instance.
NodeAffinities This property is required. List<GetRegionInstanceTemplateSchedulingNodeAffinity>
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
OnHostMaintenance This property is required. string
Defines the maintenance behavior for this instance.
OnInstanceStopActions This property is required. List<GetRegionInstanceTemplateSchedulingOnInstanceStopAction>
Defines the behaviour for instances with the instance_termination_action.
Preemptible This property is required. bool
Allows instance to be preempted. This defaults to false. Read more on this here.
ProvisioningModel This property is required. string
Describe the type of preemptible VM.
TerminationTime This property is required. string
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
AutomaticRestart This property is required. bool
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
AvailabilityDomain This property is required. int
Specifies the availability domain, which this instance should be scheduled on.
GracefulShutdowns This property is required. []GetRegionInstanceTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
HostErrorTimeoutSeconds This property is required. int
Beta Time in seconds for host error detection.
InstanceTerminationAction This property is required. string
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
LocalSsdRecoveryTimeouts This property is required. []GetRegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout
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.
MaintenanceInterval This property is required. string
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
MaxRunDurations This property is required. []GetRegionInstanceTemplateSchedulingMaxRunDuration
The timeout for new network connections to hosts.
MinNodeCpus This property is required. int
Minimum number of cpus for the instance.
NodeAffinities This property is required. []GetRegionInstanceTemplateSchedulingNodeAffinity
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
OnHostMaintenance This property is required. string
Defines the maintenance behavior for this instance.
OnInstanceStopActions This property is required. []GetRegionInstanceTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
Preemptible This property is required. bool
Allows instance to be preempted. This defaults to false. Read more on this here.
ProvisioningModel This property is required. string
Describe the type of preemptible VM.
TerminationTime This property is required. string
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
automaticRestart This property is required. Boolean
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
availabilityDomain This property is required. Integer
Specifies the availability domain, which this instance should be scheduled on.
gracefulShutdowns This property is required. List<GetRegionInstanceTemplateSchedulingGracefulShutdown>
Settings for the instance to perform a graceful shutdown.
hostErrorTimeoutSeconds This property is required. Integer
Beta Time in seconds for host error detection.
instanceTerminationAction This property is required. String
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
localSsdRecoveryTimeouts This property is required. List<GetRegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout>
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.
maintenanceInterval This property is required. String
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
maxRunDurations This property is required. List<GetRegionInstanceTemplateSchedulingMaxRunDuration>
The timeout for new network connections to hosts.
minNodeCpus This property is required. Integer
Minimum number of cpus for the instance.
nodeAffinities This property is required. List<GetRegionInstanceTemplateSchedulingNodeAffinity>
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
onHostMaintenance This property is required. String
Defines the maintenance behavior for this instance.
onInstanceStopActions This property is required. List<GetRegionInstanceTemplateSchedulingOnInstanceStopAction>
Defines the behaviour for instances with the instance_termination_action.
preemptible This property is required. Boolean
Allows instance to be preempted. This defaults to false. Read more on this here.
provisioningModel This property is required. String
Describe the type of preemptible VM.
terminationTime This property is required. String
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
automaticRestart This property is required. boolean
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
availabilityDomain This property is required. number
Specifies the availability domain, which this instance should be scheduled on.
gracefulShutdowns This property is required. GetRegionInstanceTemplateSchedulingGracefulShutdown[]
Settings for the instance to perform a graceful shutdown.
hostErrorTimeoutSeconds This property is required. number
Beta Time in seconds for host error detection.
instanceTerminationAction This property is required. string
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
localSsdRecoveryTimeouts This property is required. GetRegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout[]
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.
maintenanceInterval This property is required. string
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
maxRunDurations This property is required. GetRegionInstanceTemplateSchedulingMaxRunDuration[]
The timeout for new network connections to hosts.
minNodeCpus This property is required. number
Minimum number of cpus for the instance.
nodeAffinities This property is required. GetRegionInstanceTemplateSchedulingNodeAffinity[]
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
onHostMaintenance This property is required. string
Defines the maintenance behavior for this instance.
onInstanceStopActions This property is required. GetRegionInstanceTemplateSchedulingOnInstanceStopAction[]
Defines the behaviour for instances with the instance_termination_action.
preemptible This property is required. boolean
Allows instance to be preempted. This defaults to false. Read more on this here.
provisioningModel This property is required. string
Describe the type of preemptible VM.
terminationTime This property is required. string
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
automatic_restart This property is required. bool
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
availability_domain This property is required. int
Specifies the availability domain, which this instance should be scheduled on.
graceful_shutdowns This property is required. Sequence[GetRegionInstanceTemplateSchedulingGracefulShutdown]
Settings for the instance to perform a graceful shutdown.
host_error_timeout_seconds This property is required. int
Beta Time in seconds for host error detection.
instance_termination_action This property is required. str
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
local_ssd_recovery_timeouts This property is required. Sequence[GetRegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout]
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 This property is required. str
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
max_run_durations This property is required. Sequence[GetRegionInstanceTemplateSchedulingMaxRunDuration]
The timeout for new network connections to hosts.
min_node_cpus This property is required. int
Minimum number of cpus for the instance.
node_affinities This property is required. Sequence[GetRegionInstanceTemplateSchedulingNodeAffinity]
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
on_host_maintenance This property is required. str
Defines the maintenance behavior for this instance.
on_instance_stop_actions This property is required. Sequence[GetRegionInstanceTemplateSchedulingOnInstanceStopAction]
Defines the behaviour for instances with the instance_termination_action.
preemptible This property is required. bool
Allows instance to be preempted. This defaults to false. Read more on this here.
provisioning_model This property is required. str
Describe the type of preemptible VM.
termination_time This property is required. str
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
automaticRestart This property is required. Boolean
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
availabilityDomain This property is required. Number
Specifies the availability domain, which this instance should be scheduled on.
gracefulShutdowns This property is required. List<Property Map>
Settings for the instance to perform a graceful shutdown.
hostErrorTimeoutSeconds This property is required. Number
Beta Time in seconds for host error detection.
instanceTerminationAction This property is required. String
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
localSsdRecoveryTimeouts This property is required. List<Property Map>
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.
maintenanceInterval This property is required. String
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
maxRunDurations This property is required. List<Property Map>
The timeout for new network connections to hosts.
minNodeCpus This property is required. Number
Minimum number of cpus for the instance.
nodeAffinities This property is required. 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. Read more on sole-tenant node creation here. Structure documented below.
onHostMaintenance This property is required. String
Defines the maintenance behavior for this instance.
onInstanceStopActions This property is required. List<Property Map>
Defines the behaviour for instances with the instance_termination_action.
preemptible This property is required. Boolean
Allows instance to be preempted. This defaults to false. Read more on this here.
provisioningModel This property is required. String
Describe the type of preemptible VM.
terminationTime This property is required. String
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.

GetRegionInstanceTemplateSchedulingGracefulShutdown

Enabled This property is required. bool
Opts-in for graceful shutdown.
MaxDurations This property is required. List<GetRegionInstanceTemplateSchedulingGracefulShutdownMaxDuration>
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
Enabled This property is required. bool
Opts-in for graceful shutdown.
MaxDurations This property is required. []GetRegionInstanceTemplateSchedulingGracefulShutdownMaxDuration
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
enabled This property is required. Boolean
Opts-in for graceful shutdown.
maxDurations This property is required. List<GetRegionInstanceTemplateSchedulingGracefulShutdownMaxDuration>
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
enabled This property is required. boolean
Opts-in for graceful shutdown.
maxDurations This property is required. GetRegionInstanceTemplateSchedulingGracefulShutdownMaxDuration[]
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
enabled This property is required. bool
Opts-in for graceful shutdown.
max_durations This property is required. Sequence[GetRegionInstanceTemplateSchedulingGracefulShutdownMaxDuration]
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
enabled This property is required. Boolean
Opts-in for graceful shutdown.
maxDurations This property is required. List<Property Map>
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.

GetRegionInstanceTemplateSchedulingGracefulShutdownMaxDuration

Nanos This property is required. 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 This property is required. int
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
Nanos This property is required. 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 This property is required. int
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
nanos This property is required. 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 This property is required. Integer
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
nanos This property is required. 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 This property is required. number
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
nanos This property is required. 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 This property is required. int
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
nanos This property is required. 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 This property is required. Number
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).

GetRegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout

Nanos This property is required. 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 This property is required. int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
Nanos This property is required. 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 This property is required. int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos This property is required. 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 This property is required. Integer
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos This property is required. 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 This property is required. number
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos This property is required. 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 This property is required. int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos This property is required. 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 This property is required. Number
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.

GetRegionInstanceTemplateSchedulingMaxRunDuration

Nanos This property is required. 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 This property is required. int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
Nanos This property is required. 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 This property is required. int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos This property is required. 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 This property is required. Integer
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos This property is required. 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 This property is required. number
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos This property is required. 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 This property is required. int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos This property is required. 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 This property is required. Number
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.

GetRegionInstanceTemplateSchedulingNodeAffinity

Key This property is required. string
The key for the node affinity label.
Operator This property is required. string
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
Values This property is required. List<string>
Key This property is required. string
The key for the node affinity label.
Operator This property is required. string
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
Values This property is required. []string
key This property is required. String
The key for the node affinity label.
operator This property is required. String
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
values This property is required. List<String>
key This property is required. string
The key for the node affinity label.
operator This property is required. string
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
values This property is required. string[]
key This property is required. str
The key for the node affinity label.
operator This property is required. str
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
values This property is required. Sequence[str]
key This property is required. String
The key for the node affinity label.
operator This property is required. String
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
values This property is required. List<String>

GetRegionInstanceTemplateSchedulingOnInstanceStopAction

DiscardLocalSsd This property is required. bool
If true, the contents of any attached Local SSD disks will be discarded.
DiscardLocalSsd This property is required. bool
If true, the contents of any attached Local SSD disks will be discarded.
discardLocalSsd This property is required. Boolean
If true, the contents of any attached Local SSD disks will be discarded.
discardLocalSsd This property is required. boolean
If true, the contents of any attached Local SSD disks will be discarded.
discard_local_ssd This property is required. bool
If true, the contents of any attached Local SSD disks will be discarded.
discardLocalSsd This property is required. Boolean
If true, the contents of any attached Local SSD disks will be discarded.

GetRegionInstanceTemplateServiceAccount

Email This property is required. string
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
Scopes This property is required. List<string>
A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.
Email This property is required. string
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
Scopes This property is required. []string
A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.
email This property is required. String
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
scopes This property is required. List<String>
A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.
email This property is required. string
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
scopes This property is required. string[]
A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.
email This property is required. str
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
scopes This property is required. Sequence[str]
A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.
email This property is required. String
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
scopes This property is required. List<String>
A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.

GetRegionInstanceTemplateShieldedInstanceConfig

EnableIntegrityMonitoring This property is required. bool
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
EnableSecureBoot This property is required. bool
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
EnableVtpm This property is required. bool
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
EnableIntegrityMonitoring This property is required. bool
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
EnableSecureBoot This property is required. bool
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
EnableVtpm This property is required. bool
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
enableIntegrityMonitoring This property is required. Boolean
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
enableSecureBoot This property is required. Boolean
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
enableVtpm This property is required. Boolean
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
enableIntegrityMonitoring This property is required. boolean
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
enableSecureBoot This property is required. boolean
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
enableVtpm This property is required. boolean
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
enable_integrity_monitoring This property is required. bool
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
enable_secure_boot This property is required. bool
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
enable_vtpm This property is required. bool
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
enableIntegrityMonitoring This property is required. Boolean
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
enableSecureBoot This property is required. Boolean
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
enableVtpm This property is required. Boolean
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.

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.