Rancher 2 v6.1.1 published on Friday, May 10, 2024 by Pulumi
rancher2.getNodeTemplate
Explore with Pulumi AI
Use this data source to retrieve information about a Rancher v2 Node Template resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = rancher2.getNodeTemplate({
    name: "foo",
});
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_node_template(name="foo")
package main
import (
	"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rancher2.LookupNodeTemplate(ctx, &rancher2.LookupNodeTemplateArgs{
			Name: "foo",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
return await Deployment.RunAsync(() => 
{
    var foo = Rancher2.GetNodeTemplate.Invoke(new()
    {
        Name = "foo",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rancher2.Rancher2Functions;
import com.pulumi.rancher2.inputs.GetNodeTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var foo = Rancher2Functions.getNodeTemplate(GetNodeTemplateArgs.builder()
            .name("foo")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      Function: rancher2:getNodeTemplate
      Arguments:
        name: foo
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(name: Optional[str] = None,
                      use_internal_ip_address: Optional[bool] = None,
                      opts: Optional[InvokeOptions] = None) -> GetNodeTemplateResult
def get_node_template_output(name: Optional[pulumi.Input[str]] = None,
                      use_internal_ip_address: Optional[pulumi.Input[bool]] = 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: rancher2:index/getNodeTemplate:getNodeTemplate
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
 - The name of the Node Template (string)
 - Use
Internal boolIp Address  - (Computed) Engine storage driver for the node template (bool)
 
- Name string
 - The name of the Node Template (string)
 - Use
Internal boolIp Address  - (Computed) Engine storage driver for the node template (bool)
 
- name String
 - The name of the Node Template (string)
 - use
Internal BooleanIp Address  - (Computed) Engine storage driver for the node template (bool)
 
- name string
 - The name of the Node Template (string)
 - use
Internal booleanIp Address  - (Computed) Engine storage driver for the node template (bool)
 
- name str
 - The name of the Node Template (string)
 - use_
internal_ boolip_ address  - (Computed) Engine storage driver for the node template (bool)
 
- name String
 - The name of the Node Template (string)
 - use
Internal BooleanIp Address  - (Computed) Engine storage driver for the node template (bool)
 
getNodeTemplate Result
The following output properties are available:
- Annotations Dictionary<string, object>
 - (Computed) Annotations for Node Template object (map)
 - Cloud
Credential stringId  - (Computed) Cloud credential ID for the Node Template. Required from Rancher v2.2.x (string)
 - Description string
 - (Computed) Description for the Node Template (string)
 - Driver string
 - (Computed) The driver of the node template (string)
 - Engine
Env Dictionary<string, object> - (Computed) Engine environment for the node template (string)
 - Engine
Insecure List<string>Registries  - (Computed) Insecure registry for the node template (list)
 - Engine
Install stringUrl  - (Computed) Docker engine install URL for the node template (string)
 - Engine
Label Dictionary<string, object> - (Computed) Engine label for the node template (string)
 - Engine
Opt Dictionary<string, object> - (Computed) Engine options for the node template (map)
 - Engine
Registry List<string>Mirrors  - (Computed) Engine registry mirror for the node template (list)
 - Engine
Storage stringDriver  - (Computed) Engine storage driver for the node template (string)
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Labels Dictionary<string, object>
 - (Computed) Labels for Node Template object (map)
 - Name string
 - Node
Taints List<GetNode Template Node Taint>  - (Computed) Node taints (List)
 - Use
Internal boolIp Address  - (Computed) Engine storage driver for the node template (bool)
 
- Annotations map[string]interface{}
 - (Computed) Annotations for Node Template object (map)
 - Cloud
Credential stringId  - (Computed) Cloud credential ID for the Node Template. Required from Rancher v2.2.x (string)
 - Description string
 - (Computed) Description for the Node Template (string)
 - Driver string
 - (Computed) The driver of the node template (string)
 - Engine
Env map[string]interface{} - (Computed) Engine environment for the node template (string)
 - Engine
Insecure []stringRegistries  - (Computed) Insecure registry for the node template (list)
 - Engine
Install stringUrl  - (Computed) Docker engine install URL for the node template (string)
 - Engine
Label map[string]interface{} - (Computed) Engine label for the node template (string)
 - Engine
Opt map[string]interface{} - (Computed) Engine options for the node template (map)
 - Engine
Registry []stringMirrors  - (Computed) Engine registry mirror for the node template (list)
 - Engine
Storage stringDriver  - (Computed) Engine storage driver for the node template (string)
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Labels map[string]interface{}
 - (Computed) Labels for Node Template object (map)
 - Name string
 - Node
Taints []GetNode Template Node Taint  - (Computed) Node taints (List)
 - Use
Internal boolIp Address  - (Computed) Engine storage driver for the node template (bool)
 
- annotations Map<String,Object>
 - (Computed) Annotations for Node Template object (map)
 - cloud
Credential StringId  - (Computed) Cloud credential ID for the Node Template. Required from Rancher v2.2.x (string)
 - description String
 - (Computed) Description for the Node Template (string)
 - driver String
 - (Computed) The driver of the node template (string)
 - engine
Env Map<String,Object> - (Computed) Engine environment for the node template (string)
 - engine
Insecure List<String>Registries  - (Computed) Insecure registry for the node template (list)
 - engine
Install StringUrl  - (Computed) Docker engine install URL for the node template (string)
 - engine
Label Map<String,Object> - (Computed) Engine label for the node template (string)
 - engine
Opt Map<String,Object> - (Computed) Engine options for the node template (map)
 - engine
Registry List<String>Mirrors  - (Computed) Engine registry mirror for the node template (list)
 - engine
Storage StringDriver  - (Computed) Engine storage driver for the node template (string)
 - id String
 - The provider-assigned unique ID for this managed resource.
 - labels Map<String,Object>
 - (Computed) Labels for Node Template object (map)
 - name String
 - node
Taints List<GetNode Template Node Taint>  - (Computed) Node taints (List)
 - use
Internal BooleanIp Address  - (Computed) Engine storage driver for the node template (bool)
 
- annotations {[key: string]: any}
 - (Computed) Annotations for Node Template object (map)
 - cloud
Credential stringId  - (Computed) Cloud credential ID for the Node Template. Required from Rancher v2.2.x (string)
 - description string
 - (Computed) Description for the Node Template (string)
 - driver string
 - (Computed) The driver of the node template (string)
 - engine
Env {[key: string]: any} - (Computed) Engine environment for the node template (string)
 - engine
Insecure string[]Registries  - (Computed) Insecure registry for the node template (list)
 - engine
Install stringUrl  - (Computed) Docker engine install URL for the node template (string)
 - engine
Label {[key: string]: any} - (Computed) Engine label for the node template (string)
 - engine
Opt {[key: string]: any} - (Computed) Engine options for the node template (map)
 - engine
Registry string[]Mirrors  - (Computed) Engine registry mirror for the node template (list)
 - engine
Storage stringDriver  - (Computed) Engine storage driver for the node template (string)
 - id string
 - The provider-assigned unique ID for this managed resource.
 - labels {[key: string]: any}
 - (Computed) Labels for Node Template object (map)
 - name string
 - node
Taints GetNode Template Node Taint[]  - (Computed) Node taints (List)
 - use
Internal booleanIp Address  - (Computed) Engine storage driver for the node template (bool)
 
- annotations Mapping[str, Any]
 - (Computed) Annotations for Node Template object (map)
 - cloud_
credential_ strid  - (Computed) Cloud credential ID for the Node Template. Required from Rancher v2.2.x (string)
 - description str
 - (Computed) Description for the Node Template (string)
 - driver str
 - (Computed) The driver of the node template (string)
 - engine_
env Mapping[str, Any] - (Computed) Engine environment for the node template (string)
 - engine_
insecure_ Sequence[str]registries  - (Computed) Insecure registry for the node template (list)
 - engine_
install_ strurl  - (Computed) Docker engine install URL for the node template (string)
 - engine_
label Mapping[str, Any] - (Computed) Engine label for the node template (string)
 - engine_
opt Mapping[str, Any] - (Computed) Engine options for the node template (map)
 - engine_
registry_ Sequence[str]mirrors  - (Computed) Engine registry mirror for the node template (list)
 - engine_
storage_ strdriver  - (Computed) Engine storage driver for the node template (string)
 - id str
 - The provider-assigned unique ID for this managed resource.
 - labels Mapping[str, Any]
 - (Computed) Labels for Node Template object (map)
 - name str
 - node_
taints Sequence[GetNode Template Node Taint]  - (Computed) Node taints (List)
 - use_
internal_ boolip_ address  - (Computed) Engine storage driver for the node template (bool)
 
- annotations Map<Any>
 - (Computed) Annotations for Node Template object (map)
 - cloud
Credential StringId  - (Computed) Cloud credential ID for the Node Template. Required from Rancher v2.2.x (string)
 - description String
 - (Computed) Description for the Node Template (string)
 - driver String
 - (Computed) The driver of the node template (string)
 - engine
Env Map<Any> - (Computed) Engine environment for the node template (string)
 - engine
Insecure List<String>Registries  - (Computed) Insecure registry for the node template (list)
 - engine
Install StringUrl  - (Computed) Docker engine install URL for the node template (string)
 - engine
Label Map<Any> - (Computed) Engine label for the node template (string)
 - engine
Opt Map<Any> - (Computed) Engine options for the node template (map)
 - engine
Registry List<String>Mirrors  - (Computed) Engine registry mirror for the node template (list)
 - engine
Storage StringDriver  - (Computed) Engine storage driver for the node template (string)
 - id String
 - The provider-assigned unique ID for this managed resource.
 - labels Map<Any>
 - (Computed) Labels for Node Template object (map)
 - name String
 - node
Taints List<Property Map> - (Computed) Node taints (List)
 - use
Internal BooleanIp Address  - (Computed) Engine storage driver for the node template (bool)
 
Supporting Types
GetNodeTemplateNodeTaint    
- key str
 - time_
added str - value str
 - effect str
 
Package Details
- Repository
 - Rancher2 pulumi/pulumi-rancher2
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
rancher2Terraform Provider.