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:
getClusterDriver Result
The following output properties are available:
- Active bool
(Computed) Specify if the cluster driver state (bool)
- Actual
Url 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
- Ui
Url string (Computed) The URL to load for customized Add Clusters screen for this driver (string)
- Url string
- Whitelist
Domains List<string> (Computed) Domains to whitelist for the ui (list)
- Active bool
(Computed) Specify if the cluster driver state (bool)
- Actual
Url 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
- Ui
Url string (Computed) The URL to load for customized Add Clusters screen for this driver (string)
- Url string
- Whitelist
Domains []string (Computed) Domains to whitelist for the ui (list)
- active boolean
(Computed) Specify if the cluster driver state (bool)
- actual
Url 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
- ui
Url string (Computed) The URL to load for customized Add Clusters screen for this driver (string)
- url string
- whitelist
Domains 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.