gcp.compute.getRegionInstanceTemplate
Explore with Pulumi AI
Get information about a VM instance template resource within GCE. For more information see the official documentation and API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
// by name
const generic = gcp.compute.getRegionInstanceTemplate({
name: "generic-tpl-20200107",
});
// using a filter
const generic-regex = gcp.compute.getRegionInstanceTemplate({
filter: "name != generic-tpl-20200107",
mostRecent: true,
});
import pulumi
import pulumi_gcp as gcp
# by name
generic = gcp.compute.get_region_instance_template(name="generic-tpl-20200107")
# using a filter
generic_regex = gcp.compute.get_region_instance_template(filter="name != generic-tpl-20200107",
most_recent=True)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// by name
_, err := compute.LookupRegionInstanceTemplate(ctx, &compute.LookupRegionInstanceTemplateArgs{
Name: pulumi.StringRef("generic-tpl-20200107"),
}, nil)
if err != nil {
return err
}
// using a filter
_, err = compute.LookupRegionInstanceTemplate(ctx, &compute.LookupRegionInstanceTemplateArgs{
Filter: pulumi.StringRef("name != generic-tpl-20200107"),
MostRecent: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
// by name
var generic = Gcp.Compute.GetRegionInstanceTemplate.Invoke(new()
{
Name = "generic-tpl-20200107",
});
// using a filter
var generic_regex = Gcp.Compute.GetRegionInstanceTemplate.Invoke(new()
{
Filter = "name != generic-tpl-20200107",
MostRecent = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetRegionInstanceTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// by name
final var generic = ComputeFunctions.getRegionInstanceTemplate(GetRegionInstanceTemplateArgs.builder()
.name("generic-tpl-20200107")
.build());
// using a filter
final var generic-regex = ComputeFunctions.getRegionInstanceTemplate(GetRegionInstanceTemplateArgs.builder()
.filter("name != generic-tpl-20200107")
.mostRecent(true)
.build());
}
}
variables:
# by name
generic:
fn::invoke:
Function: gcp:compute:getRegionInstanceTemplate
Arguments:
name: generic-tpl-20200107
# using a filter
generic-regex:
fn::invoke:
Function: gcp:compute:getRegionInstanceTemplate
Arguments:
filter: name != generic-tpl-20200107
mostRecent: true
Using getRegionInstanceTemplate
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRegionInstanceTemplate(args: GetRegionInstanceTemplateArgs, opts?: InvokeOptions): Promise<GetRegionInstanceTemplateResult>
function getRegionInstanceTemplateOutput(args: GetRegionInstanceTemplateOutputArgs, opts?: InvokeOptions): Output<GetRegionInstanceTemplateResult>
def get_region_instance_template(filter: Optional[str] = None,
most_recent: Optional[bool] = None,
name: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegionInstanceTemplateResult
def get_region_instance_template_output(filter: Optional[pulumi.Input[str]] = None,
most_recent: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegionInstanceTemplateResult]
func LookupRegionInstanceTemplate(ctx *Context, args *LookupRegionInstanceTemplateArgs, opts ...InvokeOption) (*LookupRegionInstanceTemplateResult, error)
func LookupRegionInstanceTemplateOutput(ctx *Context, args *LookupRegionInstanceTemplateOutputArgs, opts ...InvokeOption) LookupRegionInstanceTemplateResultOutput
> Note: This function is named LookupRegionInstanceTemplate
in the Go SDK.
public static class GetRegionInstanceTemplate
{
public static Task<GetRegionInstanceTemplateResult> InvokeAsync(GetRegionInstanceTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetRegionInstanceTemplateResult> Invoke(GetRegionInstanceTemplateInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegionInstanceTemplateResult> getRegionInstanceTemplate(GetRegionInstanceTemplateArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate
arguments:
# arguments dictionary
The following arguments are supported:
- Filter string
- A filter to retrieve the instance templates.
See API filter parameter documentation for reference.
If multiple instance templates match, either adjust the filter or specify
most_recent
. One ofname
orfilter
must be provided. - Most
Recent bool - If
filter
is provided, ensures the most recent template is returned when multiple instance templates match. One ofname
orfilter
must be provided. - Name string
- The name of the instance template. One of
name
orfilter
must be provided. - Project string
- The ID of the project in which the resource belongs.
If
project
is not provided, the provider project is used. - Region string
- The Region in which the resource belongs.
If
region
is not provided, the provider region is used.
- Filter string
- A filter to retrieve the instance templates.
See API filter parameter documentation for reference.
If multiple instance templates match, either adjust the filter or specify
most_recent
. One ofname
orfilter
must be provided. - Most
Recent bool - If
filter
is provided, ensures the most recent template is returned when multiple instance templates match. One ofname
orfilter
must be provided. - Name string
- The name of the instance template. One of
name
orfilter
must be provided. - Project string
- The ID of the project in which the resource belongs.
If
project
is not provided, the provider project is used. - Region string
- The Region in which the resource belongs.
If
region
is not provided, the provider region is used.
- filter String
- A filter to retrieve the instance templates.
See API filter parameter documentation for reference.
If multiple instance templates match, either adjust the filter or specify
most_recent
. One ofname
orfilter
must be provided. - most
Recent Boolean - If
filter
is provided, ensures the most recent template is returned when multiple instance templates match. One ofname
orfilter
must be provided. - name String
- The name of the instance template. One of
name
orfilter
must be provided. - project String
- The ID of the project in which the resource belongs.
If
project
is not provided, the provider project is used. - region String
- The Region in which the resource belongs.
If
region
is not provided, the provider region is used.
- filter string
- A filter to retrieve the instance templates.
See API filter parameter documentation for reference.
If multiple instance templates match, either adjust the filter or specify
most_recent
. One ofname
orfilter
must be provided. - most
Recent boolean - If
filter
is provided, ensures the most recent template is returned when multiple instance templates match. One ofname
orfilter
must be provided. - name string
- The name of the instance template. One of
name
orfilter
must be provided. - project string
- The ID of the project in which the resource belongs.
If
project
is not provided, the provider project is used. - region string
- The Region in which the resource belongs.
If
region
is not provided, the provider region is used.
- filter str
- A filter to retrieve the instance templates.
See API filter parameter documentation for reference.
If multiple instance templates match, either adjust the filter or specify
most_recent
. One ofname
orfilter
must be provided. - most_
recent bool - If
filter
is provided, ensures the most recent template is returned when multiple instance templates match. One ofname
orfilter
must be provided. - name str
- The name of the instance template. One of
name
orfilter
must be provided. - project str
- The ID of the project in which the resource belongs.
If
project
is not provided, the provider project is used. - region str
- The Region in which the resource belongs.
If
region
is not provided, the provider region is used.
- filter String
- A filter to retrieve the instance templates.
See API filter parameter documentation for reference.
If multiple instance templates match, either adjust the filter or specify
most_recent
. One ofname
orfilter
must be provided. - most
Recent Boolean - If
filter
is provided, ensures the most recent template is returned when multiple instance templates match. One ofname
orfilter
must be provided. - name String
- The name of the instance template. One of
name
orfilter
must be provided. - project String
- The ID of the project in which the resource belongs.
If
project
is not provided, the provider project is used. - region String
- The Region in which the resource belongs.
If
region
is not provided, the provider region is used.
getRegionInstanceTemplate Result
The following output properties are available:
- Advanced
Machine List<GetFeatures Region Instance Template Advanced Machine Feature> - Can
Ip boolForward - Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- Confidential
Instance List<GetConfigs Region Instance Template Confidential Instance Config> - Enable Confidential Mode on this VM. Structure is documented below
- Description string
- A brief description of this resource.
- Disks
List<Get
Region Instance Template Disk> - Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
- Effective
Labels Dictionary<string, string> - 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 List<GetRegion Instance Template Guest Accelerator> - 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.
- Instance
Description 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
- Machine
Type string - The machine type to create.
- Metadata Dictionary<string, string>
- Metadata key/value pairs to make available from within instances created from this template.
- Metadata
Fingerprint string - The unique fingerprint of the metadata.
- Metadata
Startup stringScript - 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 stringPlatform - Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as
Intel Haswell
orIntel Skylake
. See the complete list here. - Name
Prefix string - Creates a unique name beginning with the specified
prefix. Conflicts with
name
. - Network
Interfaces List<GetRegion Instance Template Network Interface> - Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
- Network
Performance List<GetConfigs Region Instance Template Network Performance Config> - The network performance configuration setting for the instance, if set. Structure is documented below.
- Partner
Metadata Dictionary<string, string> - Pulumi
Labels Dictionary<string, string> - Reservation
Affinities List<GetRegion Instance Template Reservation Affinity> - Dictionary<string, string>
- Resource
Policies 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<Get
Region Instance Template Scheduling> - The scheduling strategy to use. More details about this configuration option are detailed below.
- Self
Link string - The URI of the created resource.
- Service
Accounts List<GetRegion Instance Template Service Account> - Service account to attach to the instance. Structure is documented below.
- Shielded
Instance List<GetConfigs Region Instance Template Shielded Instance Config> - 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. - List<string>
- Tags to attach to the instance.
- string
- The unique fingerprint of the tags.
- Filter string
- Most
Recent bool - Name string
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
- Advanced
Machine []GetFeatures Region Instance Template Advanced Machine Feature - Can
Ip boolForward - Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- Confidential
Instance []GetConfigs Region Instance Template Confidential Instance Config - Enable Confidential Mode on this VM. Structure is documented below
- Description string
- A brief description of this resource.
- Disks
[]Get
Region Instance Template Disk - Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
- Effective
Labels map[string]string - 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 []GetRegion Instance Template Guest Accelerator - 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.
- Instance
Description 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
- Machine
Type string - The machine type to create.
- Metadata map[string]string
- Metadata key/value pairs to make available from within instances created from this template.
- Metadata
Fingerprint string - The unique fingerprint of the metadata.
- Metadata
Startup stringScript - 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 stringPlatform - Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as
Intel Haswell
orIntel Skylake
. See the complete list here. - Name
Prefix string - Creates a unique name beginning with the specified
prefix. Conflicts with
name
. - Network
Interfaces []GetRegion Instance Template Network Interface - Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
- Network
Performance []GetConfigs Region Instance Template Network Performance Config - The network performance configuration setting for the instance, if set. Structure is documented below.
- Partner
Metadata map[string]string - Pulumi
Labels map[string]string - Reservation
Affinities []GetRegion Instance Template Reservation Affinity - map[string]string
- Resource
Policies []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
[]Get
Region Instance Template Scheduling - The scheduling strategy to use. More details about this configuration option are detailed below.
- Self
Link string - The URI of the created resource.
- Service
Accounts []GetRegion Instance Template Service Account - Service account to attach to the instance. Structure is documented below.
- Shielded
Instance []GetConfigs Region Instance Template Shielded Instance Config - 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. - []string
- Tags to attach to the instance.
- string
- The unique fingerprint of the tags.
- Filter string
- Most
Recent bool - Name string
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
- advanced
Machine List<GetFeatures Region Instance Template Advanced Machine Feature> - can
Ip BooleanForward - Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- confidential
Instance List<GetConfigs Region Instance Template Confidential Instance Config> - Enable Confidential Mode on this VM. Structure is documented below
- description String
- A brief description of this resource.
- disks
List<Get
Region Instance Template Disk> - Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
- effective
Labels Map<String,String> - enable
Display Boolean - Enable Virtual Displays on this instance.
Note:
allow_stopping_for_update
must be set to true in order to update this field. - guest
Accelerators List<GetRegion Instance Template Guest Accelerator> - 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.
- instance
Description 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
- machine
Type String - The machine type to create.
- metadata Map<String,String>
- Metadata key/value pairs to make available from within instances created from this template.
- metadata
Fingerprint String - The unique fingerprint of the metadata.
- metadata
Startup StringScript - 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 StringPlatform - Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as
Intel Haswell
orIntel Skylake
. See the complete list here. - name
Prefix String - Creates a unique name beginning with the specified
prefix. Conflicts with
name
. - network
Interfaces List<GetRegion Instance Template Network Interface> - Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
- network
Performance List<GetConfigs Region Instance Template Network Performance Config> - The network performance configuration setting for the instance, if set. Structure is documented below.
- partner
Metadata Map<String,String> - pulumi
Labels Map<String,String> - reservation
Affinities List<GetRegion Instance Template Reservation Affinity> - Map<String,String>
- resource
Policies 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<Get
Region Instance Template Scheduling> - The scheduling strategy to use. More details about this configuration option are detailed below.
- self
Link String - The URI of the created resource.
- service
Accounts List<GetRegion Instance Template Service Account> - Service account to attach to the instance. Structure is documented below.
- shielded
Instance List<GetConfigs Region Instance Template Shielded Instance Config> - 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. - List<String>
- Tags to attach to the instance.
- String
- The unique fingerprint of the tags.
- filter String
- most
Recent Boolean - name String
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region String
- advanced
Machine GetFeatures Region Instance Template Advanced Machine Feature[] - can
Ip booleanForward - Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- confidential
Instance GetConfigs Region Instance Template Confidential Instance Config[] - Enable Confidential Mode on this VM. Structure is documented below
- description string
- A brief description of this resource.
- disks
Get
Region Instance Template Disk[] - Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
- effective
Labels {[key: string]: string} - enable
Display boolean - Enable Virtual Displays on this instance.
Note:
allow_stopping_for_update
must be set to true in order to update this field. - guest
Accelerators GetRegion Instance Template Guest Accelerator[] - 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.
- instance
Description 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
- machine
Type string - The machine type to create.
- metadata {[key: string]: string}
- Metadata key/value pairs to make available from within instances created from this template.
- metadata
Fingerprint string - The unique fingerprint of the metadata.
- metadata
Startup stringScript - 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 stringPlatform - Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as
Intel Haswell
orIntel Skylake
. See the complete list here. - name
Prefix string - Creates a unique name beginning with the specified
prefix. Conflicts with
name
. - network
Interfaces GetRegion Instance Template Network Interface[] - Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
- network
Performance GetConfigs Region Instance Template Network Performance Config[] - The network performance configuration setting for the instance, if set. Structure is documented below.
- partner
Metadata {[key: string]: string} - pulumi
Labels {[key: string]: string} - reservation
Affinities GetRegion Instance Template Reservation Affinity[] - {[key: string]: string}
- resource
Policies 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
Get
Region Instance Template Scheduling[] - The scheduling strategy to use. More details about this configuration option are detailed below.
- self
Link string - The URI of the created resource.
- service
Accounts GetRegion Instance Template Service Account[] - Service account to attach to the instance. Structure is documented below.
- shielded
Instance GetConfigs Region Instance Template Shielded Instance Config[] - 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. - string[]
- Tags to attach to the instance.
- string
- The unique fingerprint of the tags.
- filter string
- most
Recent boolean - name string
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
- advanced_
machine_ Sequence[Getfeatures Region Instance Template Advanced Machine Feature] - can_
ip_ boolforward - Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- confidential_
instance_ Sequence[Getconfigs Region Instance Template Confidential Instance Config] - Enable Confidential Mode on this VM. Structure is documented below
- description str
- A brief description of this resource.
- disks
Sequence[Get
Region Instance Template Disk] - 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[GetRegion Instance Template Guest Accelerator] - 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, str]
- Metadata key/value pairs to make available from within instances created from this template.
- metadata_
fingerprint str - The unique fingerprint of the metadata.
- metadata_
startup_ strscript - 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_ strplatform - Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as
Intel Haswell
orIntel Skylake
. See the complete list here. - name_
prefix str - Creates a unique name beginning with the specified
prefix. Conflicts with
name
. - network_
interfaces Sequence[GetRegion Instance Template Network Interface] - Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
- network_
performance_ Sequence[Getconfigs Region Instance Template Network Performance Config] - The network performance configuration setting for the instance, if set. Structure is documented below.
- partner_
metadata Mapping[str, str] - pulumi_
labels Mapping[str, str] - reservation_
affinities Sequence[GetRegion Instance Template Reservation Affinity] - Mapping[str, str]
- resource_
policies Sequence[str] - (Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
- schedulings
Sequence[Get
Region Instance Template Scheduling] - 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[GetRegion Instance Template Service Account] - Service account to attach to the instance. Structure is documented below.
- shielded_
instance_ Sequence[Getconfigs Region Instance Template Shielded Instance Config] - 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. - Sequence[str]
- Tags to attach to the instance.
- str
- The unique fingerprint of the tags.
- filter str
- most_
recent bool - name str
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
- advanced
Machine List<Property Map>Features - can
Ip BooleanForward - Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- confidential
Instance List<Property Map>Configs - 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.
- effective
Labels Map<String> - enable
Display Boolean - Enable Virtual Displays on this instance.
Note:
allow_stopping_for_update
must be set to true in order to update this field. - guest
Accelerators 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.
- instance
Description 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
- machine
Type String - The machine type to create.
- metadata Map<String>
- Metadata key/value pairs to make available from within instances created from this template.
- metadata
Fingerprint String - The unique fingerprint of the metadata.
- metadata
Startup StringScript - 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 StringPlatform - Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as
Intel Haswell
orIntel Skylake
. See the complete list here. - name
Prefix String - Creates a unique name beginning with the specified
prefix. Conflicts with
name
. - network
Interfaces List<Property Map> - Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
- network
Performance List<Property Map>Configs - The network performance configuration setting for the instance, if set. Structure is documented below.
- partner
Metadata Map<String> - pulumi
Labels Map<String> - reservation
Affinities List<Property Map> - Map<String>
- resource
Policies 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.
- self
Link String - The URI of the created resource.
- service
Accounts List<Property Map> - Service account to attach to the instance. Structure is documented below.
- shielded
Instance List<Property Map>Configs - 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. - List<String>
- Tags to attach to the instance.
- String
- The unique fingerprint of the tags.
- filter String
- most
Recent Boolean - name String
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region String
Supporting Types
GetRegionInstanceTemplateAdvancedMachineFeature
- Enable
Nested boolVirtualization - Whether to enable nested virtualization or not.
- Threads
Per intCore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- Visible
Core intCount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
- Enable
Nested boolVirtualization - Whether to enable nested virtualization or not.
- Threads
Per intCore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- Visible
Core intCount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
- enable
Nested BooleanVirtualization - Whether to enable nested virtualization or not.
- threads
Per IntegerCore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- visible
Core IntegerCount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
- enable
Nested booleanVirtualization - Whether to enable nested virtualization or not.
- threads
Per numberCore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- visible
Core numberCount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
- enable_
nested_ boolvirtualization - Whether to enable nested virtualization or not.
- threads_
per_ intcore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- visible_
core_ intcount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
- enable
Nested BooleanVirtualization - Whether to enable nested virtualization or not.
- threads
Per NumberCore - The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
- visible
Core NumberCount - The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
GetRegionInstanceTemplateConfidentialInstanceConfig
- Confidential
Instance stringType - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- Enable
Confidential boolCompute - Defines whether the instance should have confidential compute enabled.
on_host_maintenance
has to be set to TERMINATE or this will fail to create the VM.
- Confidential
Instance stringType - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- Enable
Confidential boolCompute - Defines whether the instance should have confidential compute enabled.
on_host_maintenance
has to be set to TERMINATE or this will fail to create the VM.
- confidential
Instance StringType - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- enable
Confidential BooleanCompute - Defines whether the instance should have confidential compute enabled.
on_host_maintenance
has to be set to TERMINATE or this will fail to create the VM.
- confidential
Instance stringType - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- enable
Confidential booleanCompute - Defines whether the instance should have confidential compute enabled.
on_host_maintenance
has to be set to TERMINATE or this will fail to create the VM.
- confidential_
instance_ strtype - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- enable_
confidential_ boolcompute - Defines whether the instance should have confidential compute enabled.
on_host_maintenance
has to be set to TERMINATE or this will fail to create the VM.
- confidential
Instance StringType - The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
- enable
Confidential BooleanCompute - Defines whether the instance should have confidential compute enabled.
on_host_maintenance
has to be set to TERMINATE or this will fail to create the VM.
GetRegionInstanceTemplateDisk
- 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 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.
- Disk
Encryption List<GetKeys Region Instance Template Disk Disk Encryption Key> - Encrypts or decrypts a disk using a customer-supplied encryption key.
- Disk
Name string - Name of the disk. When not provided, this defaults to the name of the instance.
- Disk
Size intGb - 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 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.
- 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.
- Dictionary<string, string>
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- Resource
Policies 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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- Source
Image 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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- Source
Image List<GetEncryption Keys Region Instance Template Disk Source Image Encryption Key> The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
- Source
Snapshot string - The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
- Source
Snapshot List<GetEncryption Keys Region Instance Template Disk Source Snapshot Encryption Key> - The customer-supplied encryption key of the source snapshot.
- 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 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.
- Disk
Encryption []GetKeys Region Instance Template Disk Disk Encryption Key - Encrypts or decrypts a disk using a customer-supplied encryption key.
- Disk
Name string - Name of the disk. When not provided, this defaults to the name of the instance.
- Disk
Size intGb - 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 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.
- 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.
- map[string]string
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- Resource
Policies []string - (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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- Source
Image 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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- Source
Image []GetEncryption Keys Region Instance Template Disk Source Image Encryption Key The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
- Source
Snapshot string - The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
- Source
Snapshot []GetEncryption Keys Region Instance Template Disk Source Snapshot Encryption Key - The customer-supplied encryption key of the source snapshot.
- Type string
- The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80
.
- auto
Delete Boolean - Whether or not the disk should be auto-deleted. This defaults to true.
- boot Boolean
- Indicates that this is a boot disk.
- device
Name 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.
- disk
Encryption List<GetKeys Region Instance Template Disk Disk Encryption Key> - Encrypts or decrypts a disk using a customer-supplied encryption key.
- disk
Name String - Name of the disk. When not provided, this defaults to the name of the instance.
- disk
Size IntegerGb - 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 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.
- provisioned
Iops Integer - Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
- Map<String,String>
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- resource
Policies 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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- source
Image 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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- source
Image List<GetEncryption Keys Region Instance Template Disk Source Image Encryption Key> The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
- source
Snapshot String - The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
- source
Snapshot List<GetEncryption Keys Region Instance Template Disk Source Snapshot Encryption Key> - The customer-supplied encryption key of the source snapshot.
- type String
- The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80
.
- auto
Delete boolean - Whether or not the disk should be auto-deleted. This defaults to true.
- boot boolean
- Indicates that this is a boot disk.
- device
Name 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.
- disk
Encryption GetKeys Region Instance Template Disk Disk Encryption Key[] - Encrypts or decrypts a disk using a customer-supplied encryption key.
- disk
Name string - Name of the disk. When not provided, this defaults to the name of the instance.
- disk
Size numberGb - 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 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.
- provisioned
Iops number - Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
- {[key: string]: string}
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- resource
Policies string[] - (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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- source
Image 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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- source
Image GetEncryption Keys Region Instance Template Disk Source Image Encryption Key[] The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
- source
Snapshot string - The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
- source
Snapshot GetEncryption Keys Region Instance Template Disk Source Snapshot Encryption Key[] - The customer-supplied encryption key of the source snapshot.
- 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_ Sequence[Getkeys Region Instance Template Disk Disk Encryption Key] - 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_ intgb - 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.
- Mapping[str, str]
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- resource_
policies 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
orsource_image
is required in a disk block unless the disk type islocal-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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- source_
image_ Sequence[Getencryption_ keys Region Instance Template Disk Source Image Encryption Key] The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
- source_
snapshot str - The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
- source_
snapshot_ Sequence[Getencryption_ keys Region Instance Template Disk Source Snapshot Encryption Key] - The customer-supplied encryption key of the source snapshot.
- type str
- The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80
.
- auto
Delete Boolean - Whether or not the disk should be auto-deleted. This defaults to true.
- boot Boolean
- Indicates that this is a boot disk.
- device
Name 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.
- disk
Encryption List<Property Map>Keys - Encrypts or decrypts a disk using a customer-supplied encryption key.
- disk
Name String - Name of the disk. When not provided, this defaults to the name of the instance.
- disk
Size NumberGb - 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 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.
- provisioned
Iops Number - Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
- Map<String>
- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
- resource
Policies 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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- source
Image 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
orsource_image
is required in a disk block unless the disk type islocal-ssd
. Check the API docs for details.- source
Image List<Property Map>Encryption Keys The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
- source
Snapshot String - The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.
- source
Snapshot List<Property Map>Encryption Keys - The customer-supplied encryption key of the source snapshot.
- type String
- The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80
.
GetRegionInstanceTemplateDiskDiskEncryptionKey
- Kms
Key stringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- Kms
Key stringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- kms
Key StringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- kms
Key stringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- kms_
key_ strself_ link - The self link of the encryption key that is stored in Google Cloud KMS
- kms
Key StringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
GetRegionInstanceTemplateDiskSourceImageEncryptionKey
- Kms
Key stringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- Kms
Key stringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
- Kms
Key stringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- Kms
Key stringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
- kms
Key StringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- kms
Key StringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
- kms
Key stringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- kms
Key stringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
- kms_
key_ strself_ link - The self link of the encryption key that is stored in Google Cloud KMS
- kms_
key_ strservice_ account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
- kms
Key StringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- kms
Key StringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
GetRegionInstanceTemplateDiskSourceSnapshotEncryptionKey
- Kms
Key stringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- Kms
Key stringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
- Kms
Key stringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- Kms
Key stringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
- kms
Key StringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- kms
Key StringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
- kms
Key stringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- kms
Key stringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
- kms_
key_ strself_ link - The self link of the encryption key that is stored in Google Cloud KMS
- kms_
key_ strservice_ account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
- kms
Key StringSelf Link - The self link of the encryption key that is stored in Google Cloud KMS
- kms
Key StringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
GetRegionInstanceTemplateGuestAccelerator
GetRegionInstanceTemplateNetworkInterface
- Access
Configs List<GetRegion Instance Template Network Interface Access Config> - Alias
Ip List<GetRanges Region Instance Template Network Interface Alias Ip Range> - 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
Ipv6Prefix intLength - The prefix length of the primary internal IPv6 range.
- Ipv6Access
Configs List<GetRegion Instance Template Network Interface Ipv6Access Config> - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- Ipv6Access
Type string - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- Ipv6Address string
- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- Name string
- The name of the instance template. One of
name
orfilter
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 andsubnetwork
for custom subnetted networks. - Network
Ip string - The private IP address to assign to the instance. If empty, the address will be automatically assigned.
- Nic
Type string - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- Queue
Count int - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- Stack
Type string - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- Subnetwork string
- the name of the subnetwork to attach this interface
to. The subnetwork must exist in the same
region
this instance will be created in. Eithernetwork
orsubnetwork
must be provided. - Subnetwork
Project string - The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
- Access
Configs []GetRegion Instance Template Network Interface Access Config - Alias
Ip []GetRanges Region Instance Template Network Interface Alias Ip Range - 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
Ipv6Prefix intLength - The prefix length of the primary internal IPv6 range.
- Ipv6Access
Configs []GetRegion Instance Template Network Interface Ipv6Access Config - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- Ipv6Access
Type string - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- Ipv6Address string
- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- Name string
- The name of the instance template. One of
name
orfilter
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 andsubnetwork
for custom subnetted networks. - Network
Ip string - The private IP address to assign to the instance. If empty, the address will be automatically assigned.
- Nic
Type string - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- Queue
Count int - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- Stack
Type string - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- Subnetwork string
- the name of the subnetwork to attach this interface
to. The subnetwork must exist in the same
region
this instance will be created in. Eithernetwork
orsubnetwork
must be provided. - Subnetwork
Project string - The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
- access
Configs List<GetRegion Instance Template Network Interface Access Config> - alias
Ip List<GetRanges Region Instance Template Network Interface Alias Ip Range> - 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
Ipv6Prefix IntegerLength - The prefix length of the primary internal IPv6 range.
- ipv6Access
Configs List<GetRegion Instance Template Network Interface Ipv6Access Config> - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- ipv6Access
Type String - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- ipv6Address String
- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- name String
- The name of the instance template. One of
name
orfilter
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 andsubnetwork
for custom subnetted networks. - network
Ip String - The private IP address to assign to the instance. If empty, the address will be automatically assigned.
- nic
Type String - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- queue
Count Integer - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- stack
Type String - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- subnetwork String
- the name of the subnetwork to attach this interface
to. The subnetwork must exist in the same
region
this instance will be created in. Eithernetwork
orsubnetwork
must be provided. - subnetwork
Project String - The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
- access
Configs GetRegion Instance Template Network Interface Access Config[] - alias
Ip GetRanges Region Instance Template Network Interface Alias Ip Range[] - 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
Ipv6Prefix numberLength - The prefix length of the primary internal IPv6 range.
- ipv6Access
Configs GetRegion Instance Template Network Interface Ipv6Access Config[] - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- ipv6Access
Type string - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- ipv6Address string
- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- name string
- The name of the instance template. One of
name
orfilter
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 andsubnetwork
for custom subnetted networks. - network
Ip string - The private IP address to assign to the instance. If empty, the address will be automatically assigned.
- nic
Type string - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- queue
Count number - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- stack
Type string - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- subnetwork string
- the name of the subnetwork to attach this interface
to. The subnetwork must exist in the same
region
this instance will be created in. Eithernetwork
orsubnetwork
must be provided. - subnetwork
Project string - The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
- access_
configs Sequence[GetRegion Instance Template Network Interface Access Config] - alias_
ip_ Sequence[Getranges Region Instance Template Network Interface Alias Ip Range] - 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_ intprefix_ length - The prefix length of the primary internal IPv6 range.
- ipv6_
access_ Sequence[Getconfigs Region Instance Template Network Interface Ipv6Access Config] - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- ipv6_
access_ strtype - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- ipv6_
address str - An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- name str
- The name of the instance template. One of
name
orfilter
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 andsubnetwork
for custom subnetted networks. - network_
ip str - The private IP address to assign to the instance. If empty, the address will be automatically assigned.
- nic_
type str - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- queue_
count int - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- stack_
type str - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- subnetwork str
- the name of the subnetwork to attach this interface
to. The subnetwork must exist in the same
region
this instance will be created in. Eithernetwork
orsubnetwork
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.
- access
Configs List<Property Map> - alias
Ip List<Property Map>Ranges - 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
Ipv6Prefix NumberLength - The prefix length of the primary internal IPv6 range.
- ipv6Access
Configs List<Property Map> - An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
- ipv6Access
Type String - One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
- ipv6Address String
- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
- name String
- The name of the instance template. One of
name
orfilter
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 andsubnetwork
for custom subnetted networks. - network
Ip String - The private IP address to assign to the instance. If empty, the address will be automatically assigned.
- nic
Type String - The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
- queue
Count Number - The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
- stack
Type String - The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
- subnetwork String
- the name of the subnetwork to attach this interface
to. The subnetwork must exist in the same
region
this instance will be created in. Eithernetwork
orsubnetwork
must be provided. - subnetwork
Project String - The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
GetRegionInstanceTemplateNetworkInterfaceAccessConfig
- Nat
Ip string - The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
- Network
Tier 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.
- Public
Ptr stringDomain Name - The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
- Nat
Ip string - The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
- Network
Tier 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.
- Public
Ptr stringDomain Name - The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
- nat
Ip String - The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
- network
Tier 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.
- public
Ptr StringDomain Name - The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
- nat
Ip string - The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
- network
Tier 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.
- public
Ptr stringDomain Name - The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
- 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_ strdomain_ name - The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
- nat
Ip String - The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
- network
Tier 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.
- public
Ptr StringDomain Name - The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
GetRegionInstanceTemplateNetworkInterfaceAliasIpRange
- Ip
Cidr stringRange - 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 stringName - 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 stringRange - 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 stringName - 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 StringRange - 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 StringName - 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 stringRange - 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 stringName - 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_ strrange - 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_ strname - 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 StringRange - 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 StringName - The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
GetRegionInstanceTemplateNetworkInterfaceIpv6AccessConfig
- External
Ipv6 string - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
- External
Ipv6Prefix stringLength - The prefix length of the external IPv6 range.
- Name string
- The name of the instance template. One of
name
orfilter
must be provided. - Network
Tier 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.
- Public
Ptr stringDomain Name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- External
Ipv6 string - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
- External
Ipv6Prefix stringLength - The prefix length of the external IPv6 range.
- Name string
- The name of the instance template. One of
name
orfilter
must be provided. - Network
Tier 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.
- Public
Ptr stringDomain Name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- external
Ipv6 String - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
- external
Ipv6Prefix StringLength - The prefix length of the external IPv6 range.
- name String
- The name of the instance template. One of
name
orfilter
must be provided. - network
Tier 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.
- public
Ptr StringDomain Name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- external
Ipv6 string - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
- external
Ipv6Prefix stringLength - The prefix length of the external IPv6 range.
- name string
- The name of the instance template. One of
name
orfilter
must be provided. - network
Tier 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.
- public
Ptr stringDomain Name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- external_
ipv6 str - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
- external_
ipv6_ strprefix_ length - The prefix length of the external IPv6 range.
- name str
- The name of the instance template. One of
name
orfilter
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_ strdomain_ name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
- external
Ipv6 String - The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
- external
Ipv6Prefix StringLength - The prefix length of the external IPv6 range.
- name String
- The name of the instance template. One of
name
orfilter
must be provided. - network
Tier 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.
- public
Ptr StringDomain Name - The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
GetRegionInstanceTemplateNetworkPerformanceConfig
- Total
Egress stringBandwidth Tier - The egress bandwidth tier for the instance.
- Total
Egress stringBandwidth Tier - The egress bandwidth tier for the instance.
- total
Egress StringBandwidth Tier - The egress bandwidth tier for the instance.
- total
Egress stringBandwidth Tier - The egress bandwidth tier for the instance.
- total_
egress_ strbandwidth_ tier - The egress bandwidth tier for the instance.
- total
Egress StringBandwidth Tier - The egress bandwidth tier for the instance.
GetRegionInstanceTemplateReservationAffinity
- Specific
Reservations List<GetRegion Instance Template Reservation Affinity Specific Reservation> - Specifies the label selector for the reservation to use.
- Type string
- The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80
.
- Specific
Reservations []GetRegion Instance Template Reservation Affinity Specific Reservation - Specifies the label selector for the reservation to use.
- Type string
- The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80
.
- specific
Reservations List<GetRegion Instance Template Reservation Affinity Specific Reservation> - Specifies the label selector for the reservation to use.
- type String
- The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80
.
- specific
Reservations GetRegion Instance Template Reservation Affinity Specific Reservation[] - Specifies the label selector for the reservation to use.
- type string
- The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80
.
- specific_
reservations Sequence[GetRegion Instance Template Reservation Affinity Specific Reservation] - Specifies the label selector for the reservation to use.
- type str
- The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80
.
- specific
Reservations List<Property Map> - Specifies the label selector for the reservation to use.
- type String
- The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80
.
GetRegionInstanceTemplateReservationAffinitySpecificReservation
GetRegionInstanceTemplateScheduling
- 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 stringAction - Describe the type of termination action for
SPOT
VM. Can beSTOP
orDELETE
. Read more on here - Local
Ssd List<GetRecovery Timeouts Region Instance Template Scheduling Local Ssd Recovery Timeout> - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- Maintenance
Interval string - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- Max
Run List<GetDurations Region Instance Template Scheduling Max Run Duration> - The timeout for new network connections to hosts.
- Min
Node intCpus - Minimum number of cpus for the instance.
- Node
Affinities List<GetRegion Instance Template Scheduling Node Affinity> - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
- On
Host stringMaintenance - Defines the maintenance behavior for this instance.
- On
Instance List<GetStop Actions Region Instance Template Scheduling On Instance Stop Action> - Defines the behaviour for instances with the instance_termination_action.
- Preemptible bool
- Allows instance to be preempted. This defaults to false. Read more on this here.
- Provisioning
Model 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 stringAction - Describe the type of termination action for
SPOT
VM. Can beSTOP
orDELETE
. Read more on here - Local
Ssd []GetRecovery Timeouts Region Instance Template Scheduling Local Ssd Recovery Timeout - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- Maintenance
Interval string - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- Max
Run []GetDurations Region Instance Template Scheduling Max Run Duration - The timeout for new network connections to hosts.
- Min
Node intCpus - Minimum number of cpus for the instance.
- Node
Affinities []GetRegion Instance Template Scheduling Node Affinity - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
- On
Host stringMaintenance - Defines the maintenance behavior for this instance.
- On
Instance []GetStop Actions Region Instance Template Scheduling On Instance Stop Action - Defines the behaviour for instances with the instance_termination_action.
- Preemptible bool
- Allows instance to be preempted. This defaults to false. Read more on this here.
- Provisioning
Model string - Describe the type of preemptible VM.
- automatic
Restart 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.
- instance
Termination StringAction - Describe the type of termination action for
SPOT
VM. Can beSTOP
orDELETE
. Read more on here - local
Ssd List<GetRecovery Timeouts Region Instance Template Scheduling Local Ssd Recovery Timeout> - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- maintenance
Interval String - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- max
Run List<GetDurations Region Instance Template Scheduling Max Run Duration> - The timeout for new network connections to hosts.
- min
Node IntegerCpus - Minimum number of cpus for the instance.
- node
Affinities List<GetRegion Instance Template Scheduling Node Affinity> - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
- on
Host StringMaintenance - Defines the maintenance behavior for this instance.
- on
Instance List<GetStop Actions Region Instance Template Scheduling On Instance Stop Action> - Defines the behaviour for instances with the instance_termination_action.
- preemptible Boolean
- Allows instance to be preempted. This defaults to false. Read more on this here.
- provisioning
Model String - Describe the type of preemptible VM.
- automatic
Restart 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.
- instance
Termination stringAction - Describe the type of termination action for
SPOT
VM. Can beSTOP
orDELETE
. Read more on here - local
Ssd GetRecovery Timeouts Region Instance Template Scheduling Local Ssd Recovery Timeout[] - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- maintenance
Interval string - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- max
Run GetDurations Region Instance Template Scheduling Max Run Duration[] - The timeout for new network connections to hosts.
- min
Node numberCpus - Minimum number of cpus for the instance.
- node
Affinities GetRegion Instance Template Scheduling Node Affinity[] - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
- on
Host stringMaintenance - Defines the maintenance behavior for this instance.
- on
Instance GetStop Actions Region Instance Template Scheduling On Instance Stop Action[] - Defines the behaviour for instances with the instance_termination_action.
- preemptible boolean
- Allows instance to be preempted. This defaults to false. Read more on this here.
- provisioning
Model 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_ straction - Describe the type of termination action for
SPOT
VM. Can beSTOP
orDELETE
. Read more on here - local_
ssd_ Sequence[Getrecovery_ timeouts Region Instance Template Scheduling Local Ssd Recovery Timeout] - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- maintenance_
interval str - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- max_
run_ Sequence[Getdurations Region Instance Template Scheduling Max Run Duration] - The timeout for new network connections to hosts.
- min_
node_ intcpus - Minimum number of cpus for the instance.
- node_
affinities Sequence[GetRegion Instance Template Scheduling Node Affinity] - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
- on_
host_ strmaintenance - Defines the maintenance behavior for this instance.
- on_
instance_ Sequence[Getstop_ actions Region Instance Template Scheduling On Instance Stop Action] - Defines the behaviour for instances with the instance_termination_action.
- 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.
- automatic
Restart 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.
- instance
Termination StringAction - Describe the type of termination action for
SPOT
VM. Can beSTOP
orDELETE
. Read more on here - local
Ssd List<Property Map>Recovery Timeouts - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
- maintenance
Interval String - Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
- max
Run List<Property Map>Durations - The timeout for new network connections to hosts.
- min
Node NumberCpus - Minimum number of cpus for the instance.
- node
Affinities List<Property Map> - Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
- on
Host StringMaintenance - Defines the maintenance behavior for this instance.
- on
Instance List<Property Map>Stop Actions - Defines the behaviour for instances with the instance_termination_action.
- preemptible Boolean
- Allows instance to be preempted. This defaults to false. Read more on this here.
- provisioning
Model String - Describe the type of preemptible VM.
GetRegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout
- Nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- Nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos Integer
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds Integer
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos number
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds number
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos Number
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds Number
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
GetRegionInstanceTemplateSchedulingMaxRunDuration
- Nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- Nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos Integer
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds Integer
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos number
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds number
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos int
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds int
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
- nanos Number
- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds Number
- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
GetRegionInstanceTemplateSchedulingNodeAffinity
GetRegionInstanceTemplateSchedulingOnInstanceStopAction
- Discard
Local boolSsd - If true, the contents of any attached Local SSD disks will be discarded.
- Discard
Local boolSsd - If true, the contents of any attached Local SSD disks will be discarded.
- discard
Local BooleanSsd - If true, the contents of any attached Local SSD disks will be discarded.
- discard
Local booleanSsd - If true, the contents of any attached Local SSD disks will be discarded.
- discard_
local_ boolssd - If true, the contents of any attached Local SSD disks will be discarded.
- discard
Local BooleanSsd - If true, the contents of any attached Local SSD disks will be discarded.
GetRegionInstanceTemplateServiceAccount
- 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.
GetRegionInstanceTemplateShieldedInstanceConfig
- Enable
Integrity boolMonitoring - 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 boolBoot - 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.
- Enable
Integrity boolMonitoring - 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 boolBoot - 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.
- enable
Integrity BooleanMonitoring - 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 BooleanBoot - Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
- enable
Vtpm 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 booleanMonitoring - 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 booleanBoot - Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
- enable
Vtpm 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_ boolmonitoring - 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_ boolboot - 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.
- enable
Integrity BooleanMonitoring - 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 BooleanBoot - Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
- enable
Vtpm 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.