1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/alpha
  6. getNodeTemplate

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

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

google-native.compute/alpha.getNodeTemplate

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

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

    Returns the specified node template.

    Using getNodeTemplate

    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 getNodeTemplate(args: GetNodeTemplateArgs, opts?: InvokeOptions): Promise<GetNodeTemplateResult>
    function getNodeTemplateOutput(args: GetNodeTemplateOutputArgs, opts?: InvokeOptions): Output<GetNodeTemplateResult>
    def get_node_template(node_template: Optional[str] = None,
                          project: Optional[str] = None,
                          region: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetNodeTemplateResult
    def get_node_template_output(node_template: Optional[pulumi.Input[str]] = None,
                          project: Optional[pulumi.Input[str]] = None,
                          region: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetNodeTemplateResult]
    func LookupNodeTemplate(ctx *Context, args *LookupNodeTemplateArgs, opts ...InvokeOption) (*LookupNodeTemplateResult, error)
    func LookupNodeTemplateOutput(ctx *Context, args *LookupNodeTemplateOutputArgs, opts ...InvokeOption) LookupNodeTemplateResultOutput

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

    public static class GetNodeTemplate 
    {
        public static Task<GetNodeTemplateResult> InvokeAsync(GetNodeTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetNodeTemplateResult> Invoke(GetNodeTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNodeTemplateResult> getNodeTemplate(GetNodeTemplateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:compute/alpha:getNodeTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NodeTemplate string
    Region string
    Project string
    NodeTemplate string
    Region string
    Project string
    nodeTemplate String
    region String
    project String
    nodeTemplate string
    region string
    project string
    nodeTemplate String
    region String
    project String

    getNodeTemplate Result

    The following output properties are available:

    Accelerators List<Pulumi.GoogleNative.Compute.Alpha.Outputs.AcceleratorConfigResponse>
    CpuOvercommitType string
    CPU overcommit.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    Disks List<Pulumi.GoogleNative.Compute.Alpha.Outputs.LocalDiskResponse>
    Kind string
    The type of the resource. Always compute#nodeTemplate for node templates.
    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.Alpha.Outputs.NodeTemplateNodeTypeFlexibilityResponse
    Do not use. Instead, use the node_type property.
    Region string
    The name of the region where the node template resides, such as us-central1.
    SelfLink string
    Server-defined URL for the resource.
    SelfLinkWithId string
    Server-defined URL for this resource with the resource id.
    ServerBinding Pulumi.GoogleNative.Compute.Alpha.Outputs.ServerBindingResponse
    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.
    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.
    Accelerators []AcceleratorConfigResponse
    CpuOvercommitType string
    CPU overcommit.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    Disks []LocalDiskResponse
    Kind string
    The type of the resource. Always compute#nodeTemplate for node templates.
    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 NodeTemplateNodeTypeFlexibilityResponse
    Do not use. Instead, use the node_type property.
    Region string
    The name of the region where the node template resides, such as us-central1.
    SelfLink string
    Server-defined URL for the resource.
    SelfLinkWithId string
    Server-defined URL for this resource with the resource id.
    ServerBinding ServerBindingResponse
    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.
    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.
    accelerators List<AcceleratorConfigResponse>
    cpuOvercommitType String
    CPU overcommit.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    description String
    An optional description of this resource. Provide this property when you create the resource.
    disks List<LocalDiskResponse>
    kind String
    The type of the resource. Always compute#nodeTemplate for node templates.
    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 NodeTemplateNodeTypeFlexibilityResponse
    Do not use. Instead, use the node_type property.
    region String
    The name of the region where the node template resides, such as us-central1.
    selfLink String
    Server-defined URL for the resource.
    selfLinkWithId String
    Server-defined URL for this resource with the resource id.
    serverBinding ServerBindingResponse
    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.
    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.
    accelerators AcceleratorConfigResponse[]
    cpuOvercommitType string
    CPU overcommit.
    creationTimestamp string
    Creation timestamp in RFC3339 text format.
    description string
    An optional description of this resource. Provide this property when you create the resource.
    disks LocalDiskResponse[]
    kind string
    The type of the resource. Always compute#nodeTemplate for node templates.
    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 NodeTemplateNodeTypeFlexibilityResponse
    Do not use. Instead, use the node_type property.
    region string
    The name of the region where the node template resides, such as us-central1.
    selfLink string
    Server-defined URL for the resource.
    selfLinkWithId string
    Server-defined URL for this resource with the resource id.
    serverBinding ServerBindingResponse
    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.
    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.
    accelerators Sequence[AcceleratorConfigResponse]
    cpu_overcommit_type str
    CPU overcommit.
    creation_timestamp str
    Creation timestamp in RFC3339 text format.
    description str
    An optional description of this resource. Provide this property when you create the resource.
    disks Sequence[LocalDiskResponse]
    kind str
    The type of the resource. Always compute#nodeTemplate for node templates.
    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 NodeTemplateNodeTypeFlexibilityResponse
    Do not use. Instead, use the node_type property.
    region str
    The name of the region where the node template resides, such as us-central1.
    self_link str
    Server-defined URL for the resource.
    self_link_with_id str
    Server-defined URL for this resource with the resource id.
    server_binding ServerBindingResponse
    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.
    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.
    accelerators List<Property Map>
    cpuOvercommitType String
    CPU overcommit.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    description String
    An optional description of this resource. Provide this property when you create the resource.
    disks List<Property Map>
    kind String
    The type of the resource. Always compute#nodeTemplate for node templates.
    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.
    region String
    The name of the region where the node template resides, such as us-central1.
    selfLink String
    Server-defined URL for the resource.
    selfLinkWithId String
    Server-defined URL for this resource with the resource id.
    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.
    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.

    Supporting Types

    AcceleratorConfigResponse

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

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

    NodeTemplateNodeTypeFlexibilityResponse

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

    ServerBindingResponse

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

    Package Details

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

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

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