1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. getInstanceTemplate
Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi

gcp.compute.getInstanceTemplate

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi

    Note: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template.

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

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var generic_regex = Gcp.Compute.GetInstanceTemplate.Invoke(new()
        {
            Filter = "name != generic-tpl-20200107",
            MostRecent = true,
        });
    
        var generic = Gcp.Compute.GetInstanceTemplate.Invoke(new()
        {
            SelfLinkUnique = "https://www.googleapis.com/compute/v1/projects/your-project-name/global/instanceTemplates/example-template-custom?uniqueId=1234",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.LookupInstanceTemplate(ctx, &compute.LookupInstanceTemplateArgs{
    			Filter:     pulumi.StringRef("name != generic-tpl-20200107"),
    			MostRecent: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = compute.LookupInstanceTemplate(ctx, &compute.LookupInstanceTemplateArgs{
    			SelfLinkUnique: pulumi.StringRef("https://www.googleapis.com/compute/v1/projects/your-project-name/global/instanceTemplates/example-template-custom?uniqueId=1234"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.GetInstanceTemplateArgs;
    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) {
            final var generic-regex = ComputeFunctions.getInstanceTemplate(GetInstanceTemplateArgs.builder()
                .filter("name != generic-tpl-20200107")
                .mostRecent(true)
                .build());
    
            final var generic = ComputeFunctions.getInstanceTemplate(GetInstanceTemplateArgs.builder()
                .selfLinkUnique("https://www.googleapis.com/compute/v1/projects/your-project-name/global/instanceTemplates/example-template-custom?uniqueId=1234")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    generic_regex = gcp.compute.get_instance_template(filter="name != generic-tpl-20200107",
        most_recent=True)
    generic = gcp.compute.get_instance_template(self_link_unique="https://www.googleapis.com/compute/v1/projects/your-project-name/global/instanceTemplates/example-template-custom?uniqueId=1234")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const generic-regex = gcp.compute.getInstanceTemplate({
        filter: "name != generic-tpl-20200107",
        mostRecent: true,
    });
    const generic = gcp.compute.getInstanceTemplate({
        selfLinkUnique: "https://www.googleapis.com/compute/v1/projects/your-project-name/global/instanceTemplates/example-template-custom?uniqueId=1234",
    });
    
    variables:
      generic-regex:
        fn::invoke:
          Function: gcp:compute:getInstanceTemplate
          Arguments:
            filter: name != generic-tpl-20200107
            mostRecent: true
      generic:
        fn::invoke:
          Function: gcp:compute:getInstanceTemplate
          Arguments:
            selfLinkUnique: https://www.googleapis.com/compute/v1/projects/your-project-name/global/instanceTemplates/example-template-custom?uniqueId=1234
    

    Using getInstanceTemplate

    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 getInstanceTemplate(args: GetInstanceTemplateArgs, opts?: InvokeOptions): Promise<GetInstanceTemplateResult>
    function getInstanceTemplateOutput(args: GetInstanceTemplateOutputArgs, opts?: InvokeOptions): Output<GetInstanceTemplateResult>
    def get_instance_template(filter: Optional[str] = None,
                              most_recent: Optional[bool] = None,
                              name: Optional[str] = None,
                              project: Optional[str] = None,
                              self_link_unique: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetInstanceTemplateResult
    def get_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,
                              self_link_unique: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetInstanceTemplateResult]
    func LookupInstanceTemplate(ctx *Context, args *LookupInstanceTemplateArgs, opts ...InvokeOption) (*LookupInstanceTemplateResult, error)
    func LookupInstanceTemplateOutput(ctx *Context, args *LookupInstanceTemplateOutputArgs, opts ...InvokeOption) LookupInstanceTemplateResultOutput

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

    public static class GetInstanceTemplate 
    {
        public static Task<GetInstanceTemplateResult> InvokeAsync(GetInstanceTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceTemplateResult> Invoke(GetInstanceTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstanceTemplateResult> getInstanceTemplate(GetInstanceTemplateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:compute/getInstanceTemplate:getInstanceTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filter string

    A filter to retrieve the instance templates. See gcloud topic filters for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name, filter or self_link_unique must be provided.

    MostRecent bool

    If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name, filter or self_link_unique must be provided.

    Name string

    The name of the instance template. One of name, filter or self_link_unique 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.

    SelfLinkUnique string

    The self_link_unique URI of the instance template. One of name, filter or self_link_unique must be provided.

    Filter string

    A filter to retrieve the instance templates. See gcloud topic filters for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name, filter or self_link_unique must be provided.

    MostRecent bool

    If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name, filter or self_link_unique must be provided.

    Name string

    The name of the instance template. One of name, filter or self_link_unique 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.

    SelfLinkUnique string

    The self_link_unique URI of the instance template. One of name, filter or self_link_unique must be provided.

    filter String

    A filter to retrieve the instance templates. See gcloud topic filters for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name, filter or self_link_unique must be provided.

    mostRecent Boolean

    If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name, filter or self_link_unique must be provided.

    name String

    The name of the instance template. One of name, filter or self_link_unique 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.

    selfLinkUnique String

    The self_link_unique URI of the instance template. One of name, filter or self_link_unique must be provided.

    filter string

    A filter to retrieve the instance templates. See gcloud topic filters for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name, filter or self_link_unique must be provided.

    mostRecent boolean

    If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name, filter or self_link_unique must be provided.

    name string

    The name of the instance template. One of name, filter or self_link_unique 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.

    selfLinkUnique string

    The self_link_unique URI of the instance template. One of name, filter or self_link_unique must be provided.

    filter str

    A filter to retrieve the instance templates. See gcloud topic filters for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name, filter or self_link_unique 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, filter or self_link_unique must be provided.

    name str

    The name of the instance template. One of name, filter or self_link_unique 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.

    self_link_unique str

    The self_link_unique URI of the instance template. One of name, filter or self_link_unique must be provided.

    filter String

    A filter to retrieve the instance templates. See gcloud topic filters for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name, filter or self_link_unique must be provided.

    mostRecent Boolean

    If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name, filter or self_link_unique must be provided.

    name String

    The name of the instance template. One of name, filter or self_link_unique 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.

    selfLinkUnique String

    The self_link_unique URI of the instance template. One of name, filter or self_link_unique must be provided.

    getInstanceTemplate Result

    The following output properties are available:

    AdvancedMachineFeatures List<GetInstanceTemplateAdvancedMachineFeature>
    CanIpForward bool

    Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.

    ConfidentialInstanceConfigs List<GetInstanceTemplateConfidentialInstanceConfig>

    Enable Confidential Mode on this VM. Structure is documented below

    Description string

    A brief description of this resource.

    Disks List<GetInstanceTemplateDisk>

    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<GetInstanceTemplateGuestAccelerator>

    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.

    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, object>

    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<GetInstanceTemplateNetworkInterface>
    NetworkPerformanceConfigs List<GetInstanceTemplateNetworkPerformanceConfig>

    The network performance configuration setting for the instance, if set. Structure is documented below.

    PulumiLabels Dictionary<string, string>
    Region string

    An instance template is a global resource that is not bound to a zone or a region. However, you can still specify some regional resources in an instance template, which restricts the template to the region where that resource resides. For example, a custom subnetwork resource is tied to a specific region. Defaults to the region of the Provider if no value is given.

    ReservationAffinities List<GetInstanceTemplateReservationAffinity>
    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<GetInstanceTemplateScheduling>

    The scheduling strategy to use. More details about this configuration option are detailed below.

    SelfLink string

    The URI of the created resource.

    ServiceAccounts List<GetInstanceTemplateServiceAccount>

    Service account to attach to the instance. Structure is documented below.

    ShieldedInstanceConfigs List<GetInstanceTemplateShieldedInstanceConfig>

    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

    The name of the instance template. If you leave this blank, the provider will auto-generate a unique name.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    SelfLinkUnique string

    A special URI of the created resource that uniquely identifies this instance template with the following format: projects/{{project}}/global/instanceTemplates/{{name}}?uniqueId={{uniqueId}} Referencing an instance template via this attribute prevents Time of Check to Time of Use attacks when the instance template resides in a shared/untrusted environment.

    AdvancedMachineFeatures []GetInstanceTemplateAdvancedMachineFeature
    CanIpForward bool

    Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.

    ConfidentialInstanceConfigs []GetInstanceTemplateConfidentialInstanceConfig

    Enable Confidential Mode on this VM. Structure is documented below

    Description string

    A brief description of this resource.

    Disks []GetInstanceTemplateDisk

    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 []GetInstanceTemplateGuestAccelerator

    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.

    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]interface{}

    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 []GetInstanceTemplateNetworkInterface
    NetworkPerformanceConfigs []GetInstanceTemplateNetworkPerformanceConfig

    The network performance configuration setting for the instance, if set. Structure is documented below.

    PulumiLabels map[string]string
    Region string

    An instance template is a global resource that is not bound to a zone or a region. However, you can still specify some regional resources in an instance template, which restricts the template to the region where that resource resides. For example, a custom subnetwork resource is tied to a specific region. Defaults to the region of the Provider if no value is given.

    ReservationAffinities []GetInstanceTemplateReservationAffinity
    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 []GetInstanceTemplateScheduling

    The scheduling strategy to use. More details about this configuration option are detailed below.

    SelfLink string

    The URI of the created resource.

    ServiceAccounts []GetInstanceTemplateServiceAccount

    Service account to attach to the instance. Structure is documented below.

    ShieldedInstanceConfigs []GetInstanceTemplateShieldedInstanceConfig

    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

    The name of the instance template. If you leave this blank, the provider will auto-generate a unique name.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    SelfLinkUnique string

    A special URI of the created resource that uniquely identifies this instance template with the following format: projects/{{project}}/global/instanceTemplates/{{name}}?uniqueId={{uniqueId}} Referencing an instance template via this attribute prevents Time of Check to Time of Use attacks when the instance template resides in a shared/untrusted environment.

    advancedMachineFeatures List<GetInstanceTemplateAdvancedMachineFeature>
    canIpForward Boolean

    Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.

    confidentialInstanceConfigs List<GetInstanceTemplateConfidentialInstanceConfig>

    Enable Confidential Mode on this VM. Structure is documented below

    description String

    A brief description of this resource.

    disks List<GetInstanceTemplateDisk>

    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<GetInstanceTemplateGuestAccelerator>

    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.

    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,Object>

    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<GetInstanceTemplateNetworkInterface>
    networkPerformanceConfigs List<GetInstanceTemplateNetworkPerformanceConfig>

    The network performance configuration setting for the instance, if set. Structure is documented below.

    pulumiLabels Map<String,String>
    region String

    An instance template is a global resource that is not bound to a zone or a region. However, you can still specify some regional resources in an instance template, which restricts the template to the region where that resource resides. For example, a custom subnetwork resource is tied to a specific region. Defaults to the region of the Provider if no value is given.

    reservationAffinities List<GetInstanceTemplateReservationAffinity>
    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<GetInstanceTemplateScheduling>

    The scheduling strategy to use. More details about this configuration option are detailed below.

    selfLink String

    The URI of the created resource.

    serviceAccounts List<GetInstanceTemplateServiceAccount>

    Service account to attach to the instance. Structure is documented below.

    shieldedInstanceConfigs List<GetInstanceTemplateShieldedInstanceConfig>

    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

    The name of the instance template. If you leave this blank, the provider will auto-generate a unique name.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    selfLinkUnique String

    A special URI of the created resource that uniquely identifies this instance template with the following format: projects/{{project}}/global/instanceTemplates/{{name}}?uniqueId={{uniqueId}} Referencing an instance template via this attribute prevents Time of Check to Time of Use attacks when the instance template resides in a shared/untrusted environment.

    advancedMachineFeatures GetInstanceTemplateAdvancedMachineFeature[]
    canIpForward boolean

    Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.

    confidentialInstanceConfigs GetInstanceTemplateConfidentialInstanceConfig[]

    Enable Confidential Mode on this VM. Structure is documented below

    description string

    A brief description of this resource.

    disks GetInstanceTemplateDisk[]

    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 GetInstanceTemplateGuestAccelerator[]

    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.

    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]: any}

    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 GetInstanceTemplateNetworkInterface[]
    networkPerformanceConfigs GetInstanceTemplateNetworkPerformanceConfig[]

    The network performance configuration setting for the instance, if set. Structure is documented below.

    pulumiLabels {[key: string]: string}
    region string

    An instance template is a global resource that is not bound to a zone or a region. However, you can still specify some regional resources in an instance template, which restricts the template to the region where that resource resides. For example, a custom subnetwork resource is tied to a specific region. Defaults to the region of the Provider if no value is given.

    reservationAffinities GetInstanceTemplateReservationAffinity[]
    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 GetInstanceTemplateScheduling[]

    The scheduling strategy to use. More details about this configuration option are detailed below.

    selfLink string

    The URI of the created resource.

    serviceAccounts GetInstanceTemplateServiceAccount[]

    Service account to attach to the instance. Structure is documented below.

    shieldedInstanceConfigs GetInstanceTemplateShieldedInstanceConfig[]

    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

    The name of the instance template. If you leave this blank, the provider will auto-generate a unique name.

    project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    selfLinkUnique string

    A special URI of the created resource that uniquely identifies this instance template with the following format: projects/{{project}}/global/instanceTemplates/{{name}}?uniqueId={{uniqueId}} Referencing an instance template via this attribute prevents Time of Check to Time of Use attacks when the instance template resides in a shared/untrusted environment.

    advanced_machine_features Sequence[GetInstanceTemplateAdvancedMachineFeature]
    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[GetInstanceTemplateConfidentialInstanceConfig]

    Enable Confidential Mode on this VM. Structure is documented below

    description str

    A brief description of this resource.

    disks Sequence[GetInstanceTemplateDisk]

    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[GetInstanceTemplateGuestAccelerator]

    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.

    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, Any]

    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[GetInstanceTemplateNetworkInterface]
    network_performance_configs Sequence[GetInstanceTemplateNetworkPerformanceConfig]

    The network performance configuration setting for the instance, if set. Structure is documented below.

    pulumi_labels Mapping[str, str]
    region str

    An instance template is a global resource that is not bound to a zone or a region. However, you can still specify some regional resources in an instance template, which restricts the template to the region where that resource resides. For example, a custom subnetwork resource is tied to a specific region. Defaults to the region of the Provider if no value is given.

    reservation_affinities Sequence[GetInstanceTemplateReservationAffinity]
    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[GetInstanceTemplateScheduling]

    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[GetInstanceTemplateServiceAccount]

    Service account to attach to the instance. Structure is documented below.

    shielded_instance_configs Sequence[GetInstanceTemplateShieldedInstanceConfig]

    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

    The name of the instance template. If you leave this blank, the provider will auto-generate a unique name.

    project str

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    self_link_unique str

    A special URI of the created resource that uniquely identifies this instance template with the following format: projects/{{project}}/global/instanceTemplates/{{name}}?uniqueId={{uniqueId}} Referencing an instance template via this attribute prevents Time of Check to Time of Use attacks when the instance template resides in a shared/untrusted environment.

    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

    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.

    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<Any>

    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>
    networkPerformanceConfigs List<Property Map>

    The network performance configuration setting for the instance, if set. Structure is documented below.

    pulumiLabels Map<String>
    region String

    An instance template is a global resource that is not bound to a zone or a region. However, you can still specify some regional resources in an instance template, which restricts the template to the region where that resource resides. For example, a custom subnetwork resource is tied to a specific region. Defaults to the region of the Provider if no value is given.

    reservationAffinities List<Property Map>
    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

    The name of the instance template. If you leave this blank, the provider will auto-generate a unique name.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    selfLinkUnique String

    A special URI of the created resource that uniquely identifies this instance template with the following format: projects/{{project}}/global/instanceTemplates/{{name}}?uniqueId={{uniqueId}} Referencing an instance template via this attribute prevents Time of Check to Time of Use attacks when the instance template resides in a shared/untrusted environment.

    Supporting Types

    GetInstanceTemplateAdvancedMachineFeature

    GetInstanceTemplateConfidentialInstanceConfig

    EnableConfidentialCompute 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.

    EnableConfidentialCompute 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.

    enableConfidentialCompute 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.

    enableConfidentialCompute 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.

    enable_confidential_compute 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.

    enableConfidentialCompute 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.

    GetInstanceTemplateDisk

    AutoDelete bool

    Whether or not the disk should be auto-deleted. This defaults to true.

    Boot bool

    Indicates that this is a boot disk.

    DeviceName 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 List<GetInstanceTemplateDiskDiskEncryptionKey>

    Encrypts or decrypts a disk using a customer-supplied encryption key.

    DiskName string

    Name of the disk. When not provided, this defaults to the name of the instance.

    DiskSizeGb 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 string

    The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".

    Interface string

    Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.

    Labels Dictionary<string, string>

    (Optional) A set of ket/value label pairs to assign to disk created from this template

    Mode 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 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.

    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.

    Source 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 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 List<GetInstanceTemplateDiskSourceImageEncryptionKey>
    SourceSnapshot string
    SourceSnapshotEncryptionKeys List<GetInstanceTemplateDiskSourceSnapshotEncryptionKey>
    Type string

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    AutoDelete bool

    Whether or not the disk should be auto-deleted. This defaults to true.

    Boot bool

    Indicates that this is a boot disk.

    DeviceName 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 []GetInstanceTemplateDiskDiskEncryptionKey

    Encrypts or decrypts a disk using a customer-supplied encryption key.

    DiskName string

    Name of the disk. When not provided, this defaults to the name of the instance.

    DiskSizeGb 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 string

    The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".

    Interface string

    Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.

    Labels map[string]string

    (Optional) A set of ket/value label pairs to assign to disk created from this template

    Mode 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 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.

    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.

    Source 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 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 []GetInstanceTemplateDiskSourceImageEncryptionKey
    SourceSnapshot string
    SourceSnapshotEncryptionKeys []GetInstanceTemplateDiskSourceSnapshotEncryptionKey
    Type string

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    autoDelete Boolean

    Whether or not the disk should be auto-deleted. This defaults to true.

    boot Boolean

    Indicates that this is a boot disk.

    deviceName 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 List<GetInstanceTemplateDiskDiskEncryptionKey>

    Encrypts or decrypts a disk using a customer-supplied encryption key.

    diskName String

    Name of the disk. When not provided, this defaults to the name of the instance.

    diskSizeGb 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 String

    The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".

    interface_ String

    Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.

    labels Map<String,String>

    (Optional) A set of ket/value label pairs to assign to disk created from this template

    mode 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 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.

    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.

    source 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 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 List<GetInstanceTemplateDiskSourceImageEncryptionKey>
    sourceSnapshot String
    sourceSnapshotEncryptionKeys List<GetInstanceTemplateDiskSourceSnapshotEncryptionKey>
    type String

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    autoDelete boolean

    Whether or not the disk should be auto-deleted. This defaults to true.

    boot boolean

    Indicates that this is a boot disk.

    deviceName 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 GetInstanceTemplateDiskDiskEncryptionKey[]

    Encrypts or decrypts a disk using a customer-supplied encryption key.

    diskName string

    Name of the disk. When not provided, this defaults to the name of the instance.

    diskSizeGb 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 string

    The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".

    interface string

    Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.

    labels {[key: string]: string}

    (Optional) A set of ket/value label pairs to assign to disk created from this template

    mode 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 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.

    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.

    source 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 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 GetInstanceTemplateDiskSourceImageEncryptionKey[]
    sourceSnapshot string
    sourceSnapshotEncryptionKeys GetInstanceTemplateDiskSourceSnapshotEncryptionKey[]
    type string

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    auto_delete bool

    Whether or not the disk should be auto-deleted. This defaults to true.

    boot bool

    Indicates that this is a boot disk.

    device_name 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 Sequence[GetInstanceTemplateDiskDiskEncryptionKey]

    Encrypts or decrypts a disk using a customer-supplied encryption key.

    disk_name str

    Name of the disk. When not provided, this defaults to the name of the instance.

    disk_size_gb 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 str

    The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".

    interface str

    Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.

    labels Mapping[str, str]

    (Optional) A set of ket/value label pairs to assign to disk created from this template

    mode 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 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.

    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.

    source 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 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 Sequence[GetInstanceTemplateDiskSourceImageEncryptionKey]
    source_snapshot str
    source_snapshot_encryption_keys Sequence[GetInstanceTemplateDiskSourceSnapshotEncryptionKey]
    type str

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    autoDelete Boolean

    Whether or not the disk should be auto-deleted. This defaults to true.

    boot Boolean

    Indicates that this is a boot disk.

    deviceName 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 List<Property Map>

    Encrypts or decrypts a disk using a customer-supplied encryption key.

    diskName String

    Name of the disk. When not provided, this defaults to the name of the instance.

    diskSizeGb 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 String

    The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".

    interface String

    Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.

    labels Map<String>

    (Optional) A set of ket/value label pairs to assign to disk created from this template

    mode 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 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.

    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.

    source 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 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 List<Property Map>
    sourceSnapshot String
    sourceSnapshotEncryptionKeys List<Property Map>
    type String

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    GetInstanceTemplateDiskDiskEncryptionKey

    KmsKeySelfLink string

    The self link of the encryption key that is stored in Google Cloud KMS

    KmsKeySelfLink string

    The self link of the encryption key that is stored in Google Cloud KMS

    kmsKeySelfLink String

    The self link of the encryption key that is stored in Google Cloud KMS

    kmsKeySelfLink string

    The self link of the encryption key that is stored in Google Cloud KMS

    kms_key_self_link str

    The self link of the encryption key that is stored in Google Cloud KMS

    kmsKeySelfLink String

    The self link of the encryption key that is stored in Google Cloud KMS

    GetInstanceTemplateDiskSourceImageEncryptionKey

    KmsKeySelfLink string

    The self link of the encryption key that is stored in Google Cloud KMS

    KmsKeyServiceAccount string
    KmsKeySelfLink string

    The self link of the encryption key that is stored in Google Cloud KMS

    KmsKeyServiceAccount string
    kmsKeySelfLink String

    The self link of the encryption key that is stored in Google Cloud KMS

    kmsKeyServiceAccount String
    kmsKeySelfLink string

    The self link of the encryption key that is stored in Google Cloud KMS

    kmsKeyServiceAccount string
    kms_key_self_link str

    The self link of the encryption key that is stored in Google Cloud KMS

    kms_key_service_account str
    kmsKeySelfLink String

    The self link of the encryption key that is stored in Google Cloud KMS

    kmsKeyServiceAccount String

    GetInstanceTemplateDiskSourceSnapshotEncryptionKey

    KmsKeySelfLink string

    The self link of the encryption key that is stored in Google Cloud KMS

    KmsKeyServiceAccount string
    KmsKeySelfLink string

    The self link of the encryption key that is stored in Google Cloud KMS

    KmsKeyServiceAccount string
    kmsKeySelfLink String

    The self link of the encryption key that is stored in Google Cloud KMS

    kmsKeyServiceAccount String
    kmsKeySelfLink string

    The self link of the encryption key that is stored in Google Cloud KMS

    kmsKeyServiceAccount string
    kms_key_self_link str

    The self link of the encryption key that is stored in Google Cloud KMS

    kms_key_service_account str
    kmsKeySelfLink String

    The self link of the encryption key that is stored in Google Cloud KMS

    kmsKeyServiceAccount String

    GetInstanceTemplateGuestAccelerator

    Count int

    The number of the guest accelerator cards exposed to this instance.

    Type string

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    Count int

    The number of the guest accelerator cards exposed to this instance.

    Type string

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    count Integer

    The number of the guest accelerator cards exposed to this instance.

    type String

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    count number

    The number of the guest accelerator cards exposed to this instance.

    type string

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    count int

    The number of the guest accelerator cards exposed to this instance.

    type str

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    count Number

    The number of the guest accelerator cards exposed to this instance.

    type String

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    GetInstanceTemplateNetworkInterface

    AccessConfigs List<GetInstanceTemplateNetworkInterfaceAccessConfig>

    Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet (this means that ssh provisioners will not work unless you are running the provider can send traffic to the instance's network (e.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.

    AliasIpRanges List<GetInstanceTemplateNetworkInterfaceAliasIpRange>

    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 int
    Ipv6AccessConfigs List<GetInstanceTemplateNetworkInterfaceIpv6AccessConfig>
    Ipv6AccessType string
    Ipv6Address string
    Name string

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    Network 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.

    NetworkAttachment string
    NetworkIp string

    The private IP address to assign to the instance. If empty, the address will be automatically assigned.

    NicType string
    QueueCount int
    StackType string
    Subnetwork 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 string

    The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.

    AccessConfigs []GetInstanceTemplateNetworkInterfaceAccessConfig

    Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet (this means that ssh provisioners will not work unless you are running the provider can send traffic to the instance's network (e.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.

    AliasIpRanges []GetInstanceTemplateNetworkInterfaceAliasIpRange

    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 int
    Ipv6AccessConfigs []GetInstanceTemplateNetworkInterfaceIpv6AccessConfig
    Ipv6AccessType string
    Ipv6Address string
    Name string

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    Network 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.

    NetworkAttachment string
    NetworkIp string

    The private IP address to assign to the instance. If empty, the address will be automatically assigned.

    NicType string
    QueueCount int
    StackType string
    Subnetwork 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 string

    The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.

    accessConfigs List<GetInstanceTemplateNetworkInterfaceAccessConfig>

    Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet (this means that ssh provisioners will not work unless you are running the provider can send traffic to the instance's network (e.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.

    aliasIpRanges List<GetInstanceTemplateNetworkInterfaceAliasIpRange>

    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 Integer
    ipv6AccessConfigs List<GetInstanceTemplateNetworkInterfaceIpv6AccessConfig>
    ipv6AccessType String
    ipv6Address String
    name String

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    network 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.

    networkAttachment String
    networkIp String

    The private IP address to assign to the instance. If empty, the address will be automatically assigned.

    nicType String
    queueCount Integer
    stackType String
    subnetwork 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 String

    The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.

    accessConfigs GetInstanceTemplateNetworkInterfaceAccessConfig[]

    Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet (this means that ssh provisioners will not work unless you are running the provider can send traffic to the instance's network (e.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.

    aliasIpRanges GetInstanceTemplateNetworkInterfaceAliasIpRange[]

    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 number
    ipv6AccessConfigs GetInstanceTemplateNetworkInterfaceIpv6AccessConfig[]
    ipv6AccessType string
    ipv6Address string
    name string

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    network 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.

    networkAttachment string
    networkIp string

    The private IP address to assign to the instance. If empty, the address will be automatically assigned.

    nicType string
    queueCount number
    stackType string
    subnetwork 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 string

    The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.

    access_configs Sequence[GetInstanceTemplateNetworkInterfaceAccessConfig]

    Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet (this means that ssh provisioners will not work unless you are running the provider can send traffic to the instance's network (e.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.

    alias_ip_ranges Sequence[GetInstanceTemplateNetworkInterfaceAliasIpRange]

    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 int
    ipv6_access_configs Sequence[GetInstanceTemplateNetworkInterfaceIpv6AccessConfig]
    ipv6_access_type str
    ipv6_address str
    name str

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    network 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_attachment str
    network_ip str

    The private IP address to assign to the instance. If empty, the address will be automatically assigned.

    nic_type str
    queue_count int
    stack_type str
    subnetwork 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 str

    The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.

    accessConfigs List<Property Map>

    Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet (this means that ssh provisioners will not work unless you are running the provider can send traffic to the instance's network (e.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.

    aliasIpRanges 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 Number
    ipv6AccessConfigs List<Property Map>
    ipv6AccessType String
    ipv6Address String
    name String

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    network 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.

    networkAttachment String
    networkIp String

    The private IP address to assign to the instance. If empty, the address will be automatically assigned.

    nicType String
    queueCount Number
    stackType String
    subnetwork 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 String

    The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.

    GetInstanceTemplateNetworkInterfaceAccessConfig

    NatIp string

    The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.

    NetworkTier 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 string
    NatIp string

    The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.

    NetworkTier 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 string
    natIp String

    The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.

    networkTier 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 String
    natIp string

    The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.

    networkTier 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 string
    nat_ip 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 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 str
    natIp String

    The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.

    networkTier 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 String

    GetInstanceTemplateNetworkInterfaceAliasIpRange

    IpCidrRange 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 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 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 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 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 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 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 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 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 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 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 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.

    GetInstanceTemplateNetworkInterfaceIpv6AccessConfig

    ExternalIpv6 string
    ExternalIpv6PrefixLength string
    Name string

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    NetworkTier 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 string
    ExternalIpv6 string
    ExternalIpv6PrefixLength string
    Name string

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    NetworkTier 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 string
    externalIpv6 String
    externalIpv6PrefixLength String
    name String

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    networkTier 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 String
    externalIpv6 string
    externalIpv6PrefixLength string
    name string

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    networkTier 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 string
    external_ipv6 str
    external_ipv6_prefix_length str
    name str

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    network_tier 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 str
    externalIpv6 String
    externalIpv6PrefixLength String
    name String

    The name of the instance template. One of name, filter or self_link_unique must be provided.

    networkTier 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 String

    GetInstanceTemplateNetworkPerformanceConfig

    TotalEgressBandwidthTier string

    The egress bandwidth tier for the instance.

    TotalEgressBandwidthTier string

    The egress bandwidth tier for the instance.

    totalEgressBandwidthTier String

    The egress bandwidth tier for the instance.

    totalEgressBandwidthTier string

    The egress bandwidth tier for the instance.

    total_egress_bandwidth_tier str

    The egress bandwidth tier for the instance.

    totalEgressBandwidthTier String

    The egress bandwidth tier for the instance.

    GetInstanceTemplateReservationAffinity

    SpecificReservations List<GetInstanceTemplateReservationAffinitySpecificReservation>
    Type string

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    SpecificReservations []GetInstanceTemplateReservationAffinitySpecificReservation
    Type string

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    specificReservations List<GetInstanceTemplateReservationAffinitySpecificReservation>
    type String

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    specificReservations GetInstanceTemplateReservationAffinitySpecificReservation[]
    type string

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    specific_reservations Sequence[GetInstanceTemplateReservationAffinitySpecificReservation]
    type str

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    specificReservations List<Property Map>
    type String

    The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

    GetInstanceTemplateReservationAffinitySpecificReservation

    Key string

    The key for the node affinity label.

    Values List<string>
    Key string

    The key for the node affinity label.

    Values []string
    key String

    The key for the node affinity label.

    values List<String>
    key string

    The key for the node affinity label.

    values string[]
    key str

    The key for the node affinity label.

    values Sequence[str]
    key String

    The key for the node affinity label.

    values List<String>

    GetInstanceTemplateScheduling

    AutomaticRestart 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.

    InstanceTerminationAction string

    Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here

    LocalSsdRecoveryTimeouts List<GetInstanceTemplateSchedulingLocalSsdRecoveryTimeout>
    MaintenanceInterval string
    MaxRunDurations List<GetInstanceTemplateSchedulingMaxRunDuration>
    MinNodeCpus int
    NodeAffinities List<GetInstanceTemplateSchedulingNodeAffinity>

    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 string

    Defines the maintenance behavior for this instance.

    Preemptible bool

    Allows instance to be preempted. This defaults to false. Read more on this here.

    ProvisioningModel string

    Describe the type of preemptible VM.

    AutomaticRestart 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.

    InstanceTerminationAction string

    Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here

    LocalSsdRecoveryTimeouts []GetInstanceTemplateSchedulingLocalSsdRecoveryTimeout
    MaintenanceInterval string
    MaxRunDurations []GetInstanceTemplateSchedulingMaxRunDuration
    MinNodeCpus int
    NodeAffinities []GetInstanceTemplateSchedulingNodeAffinity

    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 string

    Defines the maintenance behavior for this instance.

    Preemptible bool

    Allows instance to be preempted. This defaults to false. Read more on this here.

    ProvisioningModel string

    Describe the type of preemptible VM.

    automaticRestart 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.

    instanceTerminationAction String

    Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here

    localSsdRecoveryTimeouts List<GetInstanceTemplateSchedulingLocalSsdRecoveryTimeout>
    maintenanceInterval String
    maxRunDurations List<GetInstanceTemplateSchedulingMaxRunDuration>
    minNodeCpus Integer
    nodeAffinities List<GetInstanceTemplateSchedulingNodeAffinity>

    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 String

    Defines the maintenance behavior for this instance.

    preemptible Boolean

    Allows instance to be preempted. This defaults to false. Read more on this here.

    provisioningModel String

    Describe the type of preemptible VM.

    automaticRestart 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.

    instanceTerminationAction string

    Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here

    localSsdRecoveryTimeouts GetInstanceTemplateSchedulingLocalSsdRecoveryTimeout[]
    maintenanceInterval string
    maxRunDurations GetInstanceTemplateSchedulingMaxRunDuration[]
    minNodeCpus number
    nodeAffinities GetInstanceTemplateSchedulingNodeAffinity[]

    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 string

    Defines the maintenance behavior for this instance.

    preemptible boolean

    Allows instance to be preempted. This defaults to false. Read more on this here.

    provisioningModel string

    Describe the type of preemptible VM.

    automatic_restart 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.

    instance_termination_action str

    Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here

    local_ssd_recovery_timeouts Sequence[GetInstanceTemplateSchedulingLocalSsdRecoveryTimeout]
    maintenance_interval str
    max_run_durations Sequence[GetInstanceTemplateSchedulingMaxRunDuration]
    min_node_cpus int
    node_affinities Sequence[GetInstanceTemplateSchedulingNodeAffinity]

    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 str

    Defines the maintenance behavior for this instance.

    preemptible bool

    Allows instance to be preempted. This defaults to false. Read more on this here.

    provisioning_model str

    Describe the type of preemptible VM.

    automaticRestart 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.

    instanceTerminationAction String

    Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here

    localSsdRecoveryTimeouts List<Property Map>
    maintenanceInterval String
    maxRunDurations List<Property Map>
    minNodeCpus Number
    nodeAffinities 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 String

    Defines the maintenance behavior for this instance.

    preemptible Boolean

    Allows instance to be preempted. This defaults to false. Read more on this here.

    provisioningModel String

    Describe the type of preemptible VM.

    GetInstanceTemplateSchedulingLocalSsdRecoveryTimeout

    Nanos int
    Seconds int
    Nanos int
    Seconds int
    nanos Integer
    seconds Integer
    nanos number
    seconds number
    nanos int
    seconds int
    nanos Number
    seconds Number

    GetInstanceTemplateSchedulingMaxRunDuration

    Nanos int
    Seconds int
    Nanos int
    Seconds int
    nanos Integer
    seconds Integer
    nanos number
    seconds number
    nanos int
    seconds int
    nanos Number
    seconds Number

    GetInstanceTemplateSchedulingNodeAffinity

    Key string

    The key for the node affinity label.

    Operator string

    The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.

    Values List<string>
    Key string

    The key for the node affinity label.

    Operator string

    The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.

    Values []string
    key String

    The key for the node affinity label.

    operator String

    The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.

    values List<String>
    key string

    The key for the node affinity label.

    operator string

    The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.

    values string[]
    key str

    The key for the node affinity label.

    operator str

    The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.

    values Sequence[str]
    key String

    The key for the node affinity label.

    operator String

    The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.

    values List<String>

    GetInstanceTemplateServiceAccount

    Email string

    The service account e-mail address. If not given, the default Google Compute Engine service account is used.

    Scopes 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 string

    The service account e-mail address. If not given, the default Google Compute Engine service account is used.

    Scopes []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 String

    The service account e-mail address. If not given, the default Google Compute Engine service account is used.

    scopes 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 string

    The service account e-mail address. If not given, the default Google Compute Engine service account is used.

    scopes 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 str

    The service account e-mail address. If not given, the default Google Compute Engine service account is used.

    scopes 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 String

    The service account e-mail address. If not given, the default Google Compute Engine service account is used.

    scopes 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.

    GetInstanceTemplateShieldedInstanceConfig

    EnableIntegrityMonitoring 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 bool
    • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
    EnableVtpm 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 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 bool
    • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
    EnableVtpm 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 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 Boolean
    • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
    enableVtpm 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 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 boolean
    • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
    enableVtpm 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 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 bool
    • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
    enable_vtpm 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 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 Boolean
    • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
    enableVtpm 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.

    gcp logo
    Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi