1. Registry
  2. Packages
  3. Google Cloud Native
  4. API Docs
  5. compute
  6. compute/beta
  7. NodeTemplate

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi
google-native logo Google Cloud Native

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a NodeTemplate resource in the specified project using the data included in the request.

    Create NodeTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NodeTemplate(name: string, args: NodeTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def NodeTemplate(resource_name: str,
                     args: NodeTemplateArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def NodeTemplate(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     region: Optional[str] = None,
                     accelerators: Optional[Sequence[AcceleratorConfigArgs]] = None,
                     cpu_overcommit_type: Optional[NodeTemplateCpuOvercommitType] = None,
                     description: Optional[str] = None,
                     disks: Optional[Sequence[LocalDiskArgs]] = None,
                     name: Optional[str] = None,
                     node_affinity_labels: Optional[Mapping[str, str]] = None,
                     node_type: Optional[str] = None,
                     node_type_flexibility: Optional[NodeTemplateNodeTypeFlexibilityArgs] = None,
                     project: Optional[str] = None,
                     request_id: Optional[str] = None,
                     server_binding: Optional[ServerBindingArgs] = None)
    func NewNodeTemplate(ctx *Context, name string, args NodeTemplateArgs, opts ...ResourceOption) (*NodeTemplate, error)
    public NodeTemplate(string name, NodeTemplateArgs args, CustomResourceOptions? opts = null)
    public NodeTemplate(String name, NodeTemplateArgs args)
    public NodeTemplate(String name, NodeTemplateArgs args, CustomResourceOptions options)
    
    type: google-native:compute/beta:NodeTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "google-native_compute_beta_node_template" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args NodeTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NodeTemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NodeTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NodeTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NodeTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var google_nativeNodeTemplateResource = new GoogleNative.Compute.Beta.NodeTemplate("google-nativeNodeTemplateResource", new()
    {
        Region = "string",
        Accelerators = new[]
        {
            new GoogleNative.Compute.Beta.Inputs.AcceleratorConfigArgs
            {
                AcceleratorCount = 0,
                AcceleratorType = "string",
            },
        },
        CpuOvercommitType = GoogleNative.Compute.Beta.NodeTemplateCpuOvercommitType.CpuOvercommitTypeUnspecified,
        Description = "string",
        Disks = new[]
        {
            new GoogleNative.Compute.Beta.Inputs.LocalDiskArgs
            {
                DiskCount = 0,
                DiskSizeGb = 0,
                DiskType = "string",
            },
        },
        Name = "string",
        NodeAffinityLabels = 
        {
            { "string", "string" },
        },
        NodeType = "string",
        NodeTypeFlexibility = new GoogleNative.Compute.Beta.Inputs.NodeTemplateNodeTypeFlexibilityArgs
        {
            Cpus = "string",
            LocalSsd = "string",
            Memory = "string",
        },
        Project = "string",
        RequestId = "string",
        ServerBinding = new GoogleNative.Compute.Beta.Inputs.ServerBindingArgs
        {
            Type = GoogleNative.Compute.Beta.ServerBindingType.RestartNodeOnAnyServer,
        },
    });
    
    example, err := computebeta.NewNodeTemplate(ctx, "google-nativeNodeTemplateResource", &computebeta.NodeTemplateArgs{
    	Region: pulumi.String("string"),
    	Accelerators: compute.AcceleratorConfigArray{
    		&compute.AcceleratorConfigArgs{
    			AcceleratorCount: pulumi.Int(0),
    			AcceleratorType:  pulumi.String("string"),
    		},
    	},
    	CpuOvercommitType: computebeta.NodeTemplateCpuOvercommitTypeCpuOvercommitTypeUnspecified,
    	Description:       pulumi.String("string"),
    	Disks: compute.LocalDiskArray{
    		&compute.LocalDiskArgs{
    			DiskCount:  pulumi.Int(0),
    			DiskSizeGb: pulumi.Int(0),
    			DiskType:   pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	NodeAffinityLabels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	NodeType: pulumi.String("string"),
    	NodeTypeFlexibility: &compute.NodeTemplateNodeTypeFlexibilityArgs{
    		Cpus:     pulumi.String("string"),
    		LocalSsd: pulumi.String("string"),
    		Memory:   pulumi.String("string"),
    	},
    	Project:   pulumi.String("string"),
    	RequestId: pulumi.String("string"),
    	ServerBinding: &compute.ServerBindingArgs{
    		Type: computebeta.ServerBindingTypeRestartNodeOnAnyServer,
    	},
    })
    
    resource "google-native_compute_beta_node_template" "google-nativeNodeTemplateResource" {
      lifecycle {
        create_before_destroy = true
      }
      region = "string"
      accelerators {
        accelerator_count = 0
        accelerator_type  = "string"
      }
      cpu_overcommit_type = "CPU_OVERCOMMIT_TYPE_UNSPECIFIED"
      description         = "string"
      disks {
        disk_count   = 0
        disk_size_gb = 0
        disk_type    = "string"
      }
      name = "string"
      node_affinity_labels = {
        "string" = "string"
      }
      node_type = "string"
      node_type_flexibility = {
        cpus      = "string"
        local_ssd = "string"
        memory    = "string"
      }
      project    = "string"
      request_id = "string"
      server_binding = {
        type = "RESTART_NODE_ON_ANY_SERVER"
      }
    }
    
    var google_nativeNodeTemplateResource = new com.pulumi.googlenative.compute.NodeTemplate("google-nativeNodeTemplateResource", com.pulumi.googlenative.compute.NodeTemplateArgs.builder()
        .region("string")
        .accelerators(com.pulumi.googlenative.compute.inputs.AcceleratorConfigArgs.builder()
            .acceleratorCount(0)
            .acceleratorType("string")
            .build())
        .cpuOvercommitType(com.pulumi.googlenative.compute_beta.enums.NodeTemplateCpuOvercommitType.CpuOvercommitTypeUnspecified)
        .description("string")
        .disks(com.pulumi.googlenative.compute.inputs.LocalDiskArgs.builder()
            .diskCount(0)
            .diskSizeGb(0)
            .diskType("string")
            .build())
        .name("string")
        .nodeAffinityLabels(Map.of("string", "string"))
        .nodeType("string")
        .nodeTypeFlexibility(com.pulumi.googlenative.compute.inputs.NodeTemplateNodeTypeFlexibilityArgs.builder()
            .cpus("string")
            .localSsd("string")
            .memory("string")
            .build())
        .project("string")
        .requestId("string")
        .serverBinding(com.pulumi.googlenative.compute.inputs.ServerBindingArgs.builder()
            .type(com.pulumi.googlenative.compute_beta.enums.ServerBindingType.RestartNodeOnAnyServer)
            .build())
        .build());
    
    google_native_node_template_resource = google_native.compute.beta.NodeTemplate("google-nativeNodeTemplateResource",
        region="string",
        accelerators=[{
            "accelerator_count": 0,
            "accelerator_type": "string",
        }],
        cpu_overcommit_type=google_native.compute.beta.NodeTemplateCpuOvercommitType.CPU_OVERCOMMIT_TYPE_UNSPECIFIED,
        description="string",
        disks=[{
            "disk_count": 0,
            "disk_size_gb": 0,
            "disk_type": "string",
        }],
        name="string",
        node_affinity_labels={
            "string": "string",
        },
        node_type="string",
        node_type_flexibility={
            "cpus": "string",
            "local_ssd": "string",
            "memory": "string",
        },
        project="string",
        request_id="string",
        server_binding={
            "type": google_native.compute.beta.ServerBindingType.RESTART_NODE_ON_ANY_SERVER,
        })
    
    const google_nativeNodeTemplateResource = new google_native.compute.beta.NodeTemplate("google-nativeNodeTemplateResource", {
        region: "string",
        accelerators: [{
            acceleratorCount: 0,
            acceleratorType: "string",
        }],
        cpuOvercommitType: google_native.compute.beta.NodeTemplateCpuOvercommitType.CpuOvercommitTypeUnspecified,
        description: "string",
        disks: [{
            diskCount: 0,
            diskSizeGb: 0,
            diskType: "string",
        }],
        name: "string",
        nodeAffinityLabels: {
            string: "string",
        },
        nodeType: "string",
        nodeTypeFlexibility: {
            cpus: "string",
            localSsd: "string",
            memory: "string",
        },
        project: "string",
        requestId: "string",
        serverBinding: {
            type: google_native.compute.beta.ServerBindingType.RestartNodeOnAnyServer,
        },
    });
    
    type: google-native:compute/beta:NodeTemplate
    properties:
        accelerators:
            - acceleratorCount: 0
              acceleratorType: string
        cpuOvercommitType: CPU_OVERCOMMIT_TYPE_UNSPECIFIED
        description: string
        disks:
            - diskCount: 0
              diskSizeGb: 0
              diskType: string
        name: string
        nodeAffinityLabels:
            string: string
        nodeType: string
        nodeTypeFlexibility:
            cpus: string
            localSsd: string
            memory: string
        project: string
        region: string
        requestId: string
        serverBinding:
            type: RESTART_NODE_ON_ANY_SERVER
    

    NodeTemplate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NodeTemplate resource accepts the following input properties:

    Region string
    Accelerators List<Pulumi.GoogleNative.Compute.Beta.Inputs.AcceleratorConfig>
    CpuOvercommitType Pulumi.GoogleNative.Compute.Beta.NodeTemplateCpuOvercommitType
    CPU overcommit.
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    Disks List<Pulumi.GoogleNative.Compute.Beta.Inputs.LocalDisk>
    Name string
    The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    NodeAffinityLabels Dictionary<string, string>
    Labels to use for node affinity, which will be used in instance scheduling.
    NodeType string
    The node type to use for nodes group that are created from this template.
    NodeTypeFlexibility Pulumi.GoogleNative.Compute.Beta.Inputs.NodeTemplateNodeTypeFlexibility
    Do not use. Instead, use the node_type property.
    Project string
    RequestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    ServerBinding Pulumi.GoogleNative.Compute.Beta.Inputs.ServerBinding
    Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
    Region string
    Accelerators []AcceleratorConfigArgs
    CpuOvercommitType NodeTemplateCpuOvercommitType
    CPU overcommit.
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    Disks []LocalDiskArgs
    Name string
    The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    NodeAffinityLabels map[string]string
    Labels to use for node affinity, which will be used in instance scheduling.
    NodeType string
    The node type to use for nodes group that are created from this template.
    NodeTypeFlexibility NodeTemplateNodeTypeFlexibilityArgs
    Do not use. Instead, use the node_type property.
    Project string
    RequestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    ServerBinding ServerBindingArgs
    Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
    region string
    accelerators list(object)
    cpu_overcommit_type "CPU_OVERCOMMIT_TYPE_UNSPECIFIED" | "ENABLED" | "NONE"
    CPU overcommit.
    description string
    An optional description of this resource. Provide this property when you create the resource.
    disks list(object)
    name string
    The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    node_affinity_labels map(string)
    Labels to use for node affinity, which will be used in instance scheduling.
    node_type string
    The node type to use for nodes group that are created from this template.
    node_type_flexibility object
    Do not use. Instead, use the node_type property.
    project string
    request_id string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    server_binding object
    Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
    region String
    accelerators List<AcceleratorConfig>
    cpuOvercommitType NodeTemplateCpuOvercommitType
    CPU overcommit.
    description String
    An optional description of this resource. Provide this property when you create the resource.
    disks List<LocalDisk>
    name String
    The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    nodeAffinityLabels Map<String,String>
    Labels to use for node affinity, which will be used in instance scheduling.
    nodeType String
    The node type to use for nodes group that are created from this template.
    nodeTypeFlexibility NodeTemplateNodeTypeFlexibility
    Do not use. Instead, use the node_type property.
    project String
    requestId String
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    serverBinding ServerBinding
    Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
    region string
    accelerators AcceleratorConfig[]
    cpuOvercommitType NodeTemplateCpuOvercommitType
    CPU overcommit.
    description string
    An optional description of this resource. Provide this property when you create the resource.
    disks LocalDisk[]
    name string
    The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    nodeAffinityLabels {[key: string]: string}
    Labels to use for node affinity, which will be used in instance scheduling.
    nodeType string
    The node type to use for nodes group that are created from this template.
    nodeTypeFlexibility NodeTemplateNodeTypeFlexibility
    Do not use. Instead, use the node_type property.
    project string
    requestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    serverBinding ServerBinding
    Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
    region str
    accelerators Sequence[AcceleratorConfigArgs]
    cpu_overcommit_type NodeTemplateCpuOvercommitType
    CPU overcommit.
    description str
    An optional description of this resource. Provide this property when you create the resource.
    disks Sequence[LocalDiskArgs]
    name str
    The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    node_affinity_labels Mapping[str, str]
    Labels to use for node affinity, which will be used in instance scheduling.
    node_type str
    The node type to use for nodes group that are created from this template.
    node_type_flexibility NodeTemplateNodeTypeFlexibilityArgs
    Do not use. Instead, use the node_type property.
    project str
    request_id str
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    server_binding ServerBindingArgs
    Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
    region String
    accelerators List<Property Map>
    cpuOvercommitType "CPU_OVERCOMMIT_TYPE_UNSPECIFIED" | "ENABLED" | "NONE"
    CPU overcommit.
    description String
    An optional description of this resource. Provide this property when you create the resource.
    disks List<Property Map>
    name String
    The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    nodeAffinityLabels Map<String>
    Labels to use for node affinity, which will be used in instance scheduling.
    nodeType String
    The node type to use for nodes group that are created from this template.
    nodeTypeFlexibility Property Map
    Do not use. Instead, use the node_type property.
    project String
    requestId String
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    serverBinding Property Map
    Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NodeTemplate resource produces the following output properties:

    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    The type of the resource. Always compute#nodeTemplate for node templates.
    SelfLink string
    Server-defined URL for the resource.
    Status string
    The status of the node template. One of the following values: CREATING, READY, and DELETING.
    StatusMessage string
    An optional, human-readable explanation of the status.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    The type of the resource. Always compute#nodeTemplate for node templates.
    SelfLink string
    Server-defined URL for the resource.
    Status string
    The status of the node template. One of the following values: CREATING, READY, and DELETING.
    StatusMessage string
    An optional, human-readable explanation of the status.
    creation_timestamp string
    Creation timestamp in RFC3339 text format.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    The type of the resource. Always compute#nodeTemplate for node templates.
    self_link string
    Server-defined URL for the resource.
    status string
    The status of the node template. One of the following values: CREATING, READY, and DELETING.
    status_message string
    An optional, human-readable explanation of the status.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    The type of the resource. Always compute#nodeTemplate for node templates.
    selfLink String
    Server-defined URL for the resource.
    status String
    The status of the node template. One of the following values: CREATING, READY, and DELETING.
    statusMessage String
    An optional, human-readable explanation of the status.
    creationTimestamp string
    Creation timestamp in RFC3339 text format.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    The type of the resource. Always compute#nodeTemplate for node templates.
    selfLink string
    Server-defined URL for the resource.
    status string
    The status of the node template. One of the following values: CREATING, READY, and DELETING.
    statusMessage string
    An optional, human-readable explanation of the status.
    creation_timestamp str
    Creation timestamp in RFC3339 text format.
    id str
    The provider-assigned unique ID for this managed resource.
    kind str
    The type of the resource. Always compute#nodeTemplate for node templates.
    self_link str
    Server-defined URL for the resource.
    status str
    The status of the node template. One of the following values: CREATING, READY, and DELETING.
    status_message str
    An optional, human-readable explanation of the status.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    The type of the resource. Always compute#nodeTemplate for node templates.
    selfLink String
    Server-defined URL for the resource.
    status String
    The status of the node template. One of the following values: CREATING, READY, and DELETING.
    statusMessage String
    An optional, human-readable explanation of the status.

    Look up Existing NodeTemplate Resource

    Get an existing NodeTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): NodeTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> NodeTemplate
    func GetNodeTemplate(ctx *Context, name string, id IDInput, state *NodeTemplateState, opts ...ResourceOption) (*NodeTemplate, error)
    public static NodeTemplate Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static NodeTemplate get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingNodeTemplate:    type: google-native:compute/beta:NodeTemplate    get:      id: ${id}
    import {
      to = google-native_compute_beta_node_template.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state NodeTemplateState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    AcceleratorConfig, AcceleratorConfigArgs

    A specification of the type and number of accelerator cards attached to the instance.

    AcceleratorCount int
    The number of the guest accelerator cards exposed to this instance.
    AcceleratorType string
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    AcceleratorCount int
    The number of the guest accelerator cards exposed to this instance.
    AcceleratorType string
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    accelerator_count number
    The number of the guest accelerator cards exposed to this instance.
    accelerator_type string
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    acceleratorCount Integer
    The number of the guest accelerator cards exposed to this instance.
    acceleratorType String
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    acceleratorCount number
    The number of the guest accelerator cards exposed to this instance.
    acceleratorType string
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    accelerator_count int
    The number of the guest accelerator cards exposed to this instance.
    accelerator_type str
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    acceleratorCount Number
    The number of the guest accelerator cards exposed to this instance.
    acceleratorType String
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.

    AcceleratorConfigResponse

    A specification of the type and number of accelerator cards attached to the instance.

    AcceleratorCount int
    The number of the guest accelerator cards exposed to this instance.
    AcceleratorType string
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    AcceleratorCount int
    The number of the guest accelerator cards exposed to this instance.
    AcceleratorType string
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    accelerator_count number
    The number of the guest accelerator cards exposed to this instance.
    accelerator_type string
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    acceleratorCount Integer
    The number of the guest accelerator cards exposed to this instance.
    acceleratorType String
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    acceleratorCount number
    The number of the guest accelerator cards exposed to this instance.
    acceleratorType string
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    accelerator_count int
    The number of the guest accelerator cards exposed to this instance.
    accelerator_type str
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    acceleratorCount Number
    The number of the guest accelerator cards exposed to this instance.
    acceleratorType String
    Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.

    LocalDisk, LocalDiskArgs

    DiskCount int
    Specifies the number of such disks.
    DiskSizeGb int
    Specifies the size of the disk in base-2 GB.
    DiskType string
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    DiskCount int
    Specifies the number of such disks.
    DiskSizeGb int
    Specifies the size of the disk in base-2 GB.
    DiskType string
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    disk_count number
    Specifies the number of such disks.
    disk_size_gb number
    Specifies the size of the disk in base-2 GB.
    disk_type string
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    diskCount Integer
    Specifies the number of such disks.
    diskSizeGb Integer
    Specifies the size of the disk in base-2 GB.
    diskType String
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    diskCount number
    Specifies the number of such disks.
    diskSizeGb number
    Specifies the size of the disk in base-2 GB.
    diskType string
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    disk_count int
    Specifies the number of such disks.
    disk_size_gb int
    Specifies the size of the disk in base-2 GB.
    disk_type str
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    diskCount Number
    Specifies the number of such disks.
    diskSizeGb Number
    Specifies the size of the disk in base-2 GB.
    diskType String
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.

    LocalDiskResponse

    DiskCount int
    Specifies the number of such disks.
    DiskSizeGb int
    Specifies the size of the disk in base-2 GB.
    DiskType string
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    DiskCount int
    Specifies the number of such disks.
    DiskSizeGb int
    Specifies the size of the disk in base-2 GB.
    DiskType string
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    disk_count number
    Specifies the number of such disks.
    disk_size_gb number
    Specifies the size of the disk in base-2 GB.
    disk_type string
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    diskCount Integer
    Specifies the number of such disks.
    diskSizeGb Integer
    Specifies the size of the disk in base-2 GB.
    diskType String
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    diskCount number
    Specifies the number of such disks.
    diskSizeGb number
    Specifies the size of the disk in base-2 GB.
    diskType string
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    disk_count int
    Specifies the number of such disks.
    disk_size_gb int
    Specifies the size of the disk in base-2 GB.
    disk_type str
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    diskCount Number
    Specifies the number of such disks.
    diskSizeGb Number
    Specifies the size of the disk in base-2 GB.
    diskType String
    Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.

    NodeTemplateCpuOvercommitType

    CPU overcommit.

    NameValue
    CpuOvercommitTypeUnspecifiedCPU_OVERCOMMIT_TYPE_UNSPECIFIED
    EnabledENABLED
    NoneNONE
    NameValue
    NodeTemplateCpuOvercommitTypeCpuOvercommitTypeUnspecifiedCPU_OVERCOMMIT_TYPE_UNSPECIFIED
    NodeTemplateCpuOvercommitTypeEnabledENABLED
    NodeTemplateCpuOvercommitTypeNoneNONE
    Value
    CPU_OVERCOMMIT_TYPE_UNSPECIFIED
    ENABLED
    NONE
    NameValue
    CpuOvercommitTypeUnspecifiedCPU_OVERCOMMIT_TYPE_UNSPECIFIED
    EnabledENABLED
    NoneNONE
    NameValue
    CpuOvercommitTypeUnspecifiedCPU_OVERCOMMIT_TYPE_UNSPECIFIED
    EnabledENABLED
    NoneNONE
    NameValue
    CPU_OVERCOMMIT_TYPE_UNSPECIFIEDCPU_OVERCOMMIT_TYPE_UNSPECIFIED
    ENABLEDENABLED
    NONENONE
    Value
    CPU_OVERCOMMIT_TYPE_UNSPECIFIED
    ENABLED
    NONE

    NodeTemplateNodeTypeFlexibility, NodeTemplateNodeTypeFlexibilityArgs

    Cpus string
    LocalSsd string
    Memory string
    Cpus string
    LocalSsd string
    Memory string
    cpus string
    local_ssd string
    memory string
    cpus String
    localSsd String
    memory String
    cpus string
    localSsd string
    memory string
    cpus String
    localSsd String
    memory String

    NodeTemplateNodeTypeFlexibilityResponse

    Cpus string
    LocalSsd string
    Memory string
    Cpus string
    LocalSsd string
    Memory string
    cpus string
    local_ssd string
    memory string
    cpus String
    localSsd String
    memory String
    cpus string
    localSsd string
    memory string
    cpus String
    localSsd String
    memory String

    ServerBinding, ServerBindingArgs

    ServerBindingResponse

    Type string
    Type string
    type string
    type String
    type string
    type str
    type String

    ServerBindingType

    NameValueDescription
    RestartNodeOnAnyServerRESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
    RestartNodeOnMinimalServersRESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
    ServerBindingTypeUnspecifiedSERVER_BINDING_TYPE_UNSPECIFIED
    NameValueDescription
    ServerBindingTypeRestartNodeOnAnyServerRESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
    ServerBindingTypeRestartNodeOnMinimalServersRESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
    ServerBindingTypeServerBindingTypeUnspecifiedSERVER_BINDING_TYPE_UNSPECIFIED
    ValueDescription
    RESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
    RESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
    SERVER_BINDING_TYPE_UNSPECIFIED
    NameValueDescription
    RestartNodeOnAnyServerRESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
    RestartNodeOnMinimalServersRESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
    ServerBindingTypeUnspecifiedSERVER_BINDING_TYPE_UNSPECIFIED
    NameValueDescription
    RestartNodeOnAnyServerRESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
    RestartNodeOnMinimalServersRESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
    ServerBindingTypeUnspecifiedSERVER_BINDING_TYPE_UNSPECIFIED
    NameValueDescription
    RESTART_NODE_ON_ANY_SERVERRESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
    RESTART_NODE_ON_MINIMAL_SERVERSRESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
    SERVER_BINDING_TYPE_UNSPECIFIEDSERVER_BINDING_TYPE_UNSPECIFIED
    ValueDescription
    RESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
    RESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
    SERVER_BINDING_TYPE_UNSPECIFIED

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo Google Cloud Native

    This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

    Viewing docs for Google Cloud Native v0.32.0
    published on Wednesday, Nov 29, 2023 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial