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

getClusterDriver

Use this data source to retrieve information about a Rancher v2 Cluster Driver resource.

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Rancher2.GetClusterDriver.InvokeAsync(new Rancher2.GetClusterDriverArgs
        {
            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.LookupClusterDriver(ctx, &rancher2.LookupClusterDriverArgs{
            Name: "foo",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_rancher2 as rancher2

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

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

Using getClusterDriver

function getClusterDriver(args: GetClusterDriverArgs, opts?: InvokeOptions): Promise<GetClusterDriverResult>
def get_cluster_driver(name: Optional[str] = None, url: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetClusterDriverResult
func LookupClusterDriver(ctx *Context, args *LookupClusterDriverArgs, opts ...InvokeOption) (*LookupClusterDriverResult, error)

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

public static class GetClusterDriver {
    public static Task<GetClusterDriverResult> InvokeAsync(GetClusterDriverArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

Name of the cluster driver (string)

Url string

The URL to download the machine driver binary for 64-bit Linux (string)

Name string

Name of the cluster driver (string)

Url string

The URL to download the machine driver binary for 64-bit Linux (string)

name string

Name of the cluster driver (string)

url string

The URL to download the machine driver binary for 64-bit Linux (string)

name str

Name of the cluster driver (string)

url str

The URL to download the machine driver binary for 64-bit Linux (string)

getClusterDriver Result

The following output properties are available:

Active bool

(Computed) Specify if the cluster driver state (bool)

ActualUrl string

(Computed) Actual url of the cluster driver (string)

Annotations Dictionary<string, object>

(Computed) Annotations of the resource (map)

Builtin bool

(Computed) Specify whether the cluster driver is an internal cluster driver or not (bool)

Checksum string

(Computed) Verify that the downloaded driver matches the expected checksum (string)

Id string

The provider-assigned unique ID for this managed resource.

Labels Dictionary<string, object>

(Computed) Labels of the resource (map)

Name string
UiUrl string

(Computed) The URL to load for customized Add Clusters screen for this driver (string)

Url string
WhitelistDomains List<string>

(Computed) Domains to whitelist for the ui (list)

Active bool

(Computed) Specify if the cluster driver state (bool)

ActualUrl string

(Computed) Actual url of the cluster driver (string)

Annotations map[string]interface{}

(Computed) Annotations of the resource (map)

Builtin bool

(Computed) Specify whether the cluster driver is an internal cluster driver or not (bool)

Checksum string

(Computed) Verify that the downloaded driver matches the expected checksum (string)

Id string

The provider-assigned unique ID for this managed resource.

Labels map[string]interface{}

(Computed) Labels of the resource (map)

Name string
UiUrl string

(Computed) The URL to load for customized Add Clusters screen for this driver (string)

Url string
WhitelistDomains []string

(Computed) Domains to whitelist for the ui (list)

active boolean

(Computed) Specify if the cluster driver state (bool)

actualUrl string

(Computed) Actual url of the cluster driver (string)

annotations {[key: string]: any}

(Computed) Annotations of the resource (map)

builtin boolean

(Computed) Specify whether the cluster driver is an internal cluster driver or not (bool)

checksum string

(Computed) Verify that the downloaded driver matches the expected checksum (string)

id string

The provider-assigned unique ID for this managed resource.

labels {[key: string]: any}

(Computed) Labels of the resource (map)

name string
uiUrl string

(Computed) The URL to load for customized Add Clusters screen for this driver (string)

url string
whitelistDomains string[]

(Computed) Domains to whitelist for the ui (list)

active bool

(Computed) Specify if the cluster driver state (bool)

actual_url str

(Computed) Actual url of the cluster driver (string)

annotations Mapping[str, Any]

(Computed) Annotations of the resource (map)

builtin bool

(Computed) Specify whether the cluster driver is an internal cluster driver or not (bool)

checksum str

(Computed) Verify that the downloaded driver matches the expected checksum (string)

id str

The provider-assigned unique ID for this managed resource.

labels Mapping[str, Any]

(Computed) Labels of the resource (map)

name str
ui_url str

(Computed) The URL to load for customized Add Clusters screen for this driver (string)

url str
whitelist_domains Sequence[str]

(Computed) Domains to whitelist for the ui (list)

Package Details

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