Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getNodeTemplate

Use this data source to retrieve information about a Rancher v2 Node Template resource.

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Rancher2.GetNodeTemplate.InvokeAsync(new Rancher2.GetNodeTemplateArgs
        {
            Name = "foo",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-rancher2/sdk/v2/go/rancher2"
    "github.com/pulumi/pulumi/sdk/v2/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
    })
}
import pulumi
import pulumi_rancher2 as rancher2

foo = rancher2.get_node_template(name="foo")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";

const foo = pulumi.output(rancher2.getNodeTemplate({
    name: "foo",
}, { async: true }));

Using getNodeTemplate

function getNodeTemplate(args: GetNodeTemplateArgs, opts?: InvokeOptions): Promise<GetNodeTemplateResult>
def get_node_template(name: Optional[str] = None, use_internal_ip_address: Optional[bool] = None, opts: Optional[InvokeOptions] = None) -> GetNodeTemplateResult
func LookupNodeTemplate(ctx *Context, args *LookupNodeTemplateArgs, opts ...InvokeOption) (*LookupNodeTemplateResult, error)

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

public static class GetNodeTemplate {
    public static Task<GetNodeTemplateResult> InvokeAsync(GetNodeTemplateArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the Node Template (string)

UseInternalIpAddress bool

(Computed) Engine storage driver for the node template (bool)

Name string

The name of the Node Template (string)

UseInternalIpAddress bool

(Computed) Engine storage driver for the node template (bool)

name string

The name of the Node Template (string)

useInternalIpAddress boolean

(Computed) Engine storage driver for the node template (bool)

name str

The name of the Node Template (string)

use_internal_ip_address bool

(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)

CloudCredentialId string

(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)

EngineEnv Dictionary<string, object>

(Computed) Engine environment for the node template (string)

EngineInsecureRegistries List<string>

(Computed) Insecure registry for the node template (list)

EngineInstallUrl string

(Computed) Docker engine install URL for the node template (string)

EngineLabel Dictionary<string, object>

(Computed) Engine label for the node template (string)

EngineOpt Dictionary<string, object>

(Computed) Engine options for the node template (map)

EngineRegistryMirrors List<string>

(Computed) Engine registry mirror for the node template (list)

EngineStorageDriver string

(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
UseInternalIpAddress bool

(Computed) Engine storage driver for the node template (bool)

Annotations map[string]interface{}

(Computed) Annotations for Node Template object (map)

CloudCredentialId string

(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)

EngineEnv map[string]interface{}

(Computed) Engine environment for the node template (string)

EngineInsecureRegistries []string

(Computed) Insecure registry for the node template (list)

EngineInstallUrl string

(Computed) Docker engine install URL for the node template (string)

EngineLabel map[string]interface{}

(Computed) Engine label for the node template (string)

EngineOpt map[string]interface{}

(Computed) Engine options for the node template (map)

EngineRegistryMirrors []string

(Computed) Engine registry mirror for the node template (list)

EngineStorageDriver string

(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
UseInternalIpAddress bool

(Computed) Engine storage driver for the node template (bool)

annotations {[key: string]: any}

(Computed) Annotations for Node Template object (map)

cloudCredentialId string

(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)

engineEnv {[key: string]: any}

(Computed) Engine environment for the node template (string)

engineInsecureRegistries string[]

(Computed) Insecure registry for the node template (list)

engineInstallUrl string

(Computed) Docker engine install URL for the node template (string)

engineLabel {[key: string]: any}

(Computed) Engine label for the node template (string)

engineOpt {[key: string]: any}

(Computed) Engine options for the node template (map)

engineRegistryMirrors string[]

(Computed) Engine registry mirror for the node template (list)

engineStorageDriver string

(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
useInternalIpAddress boolean

(Computed) Engine storage driver for the node template (bool)

annotations Mapping[str, Any]

(Computed) Annotations for Node Template object (map)

cloud_credential_id str

(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_registries Sequence[str]

(Computed) Insecure registry for the node template (list)

engine_install_url str

(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_mirrors Sequence[str]

(Computed) Engine registry mirror for the node template (list)

engine_storage_driver str

(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
use_internal_ip_address bool

(Computed) Engine storage driver for the node template (bool)

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.