GetSetting

Use this data source to retrieve information about a Rancher v2 setting.

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
    public MyStack()
    {
        var server_image = Output.Create(Rancher2.GetSetting.InvokeAsync(new Rancher2.GetSettingArgs
        {
            Name = "server-image",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_rancher2 as rancher2

server_image = rancher2.get_setting(name="server-image")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";

const server_image = pulumi.output(rancher2.getSetting({
    name: "server-image",
}, { async: true }));

Using GetSetting

function getSetting(args: GetSettingArgs, opts?: InvokeOptions): Promise<GetSettingResult>
function  get_setting(name=None, opts=None)
func LookupSetting(ctx *Context, args *LookupSettingArgs, opts ...InvokeOption) (*LookupSettingResult, error)

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

public static class GetSetting {
    public static Task<GetSettingResult> InvokeAsync(GetSettingArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The setting name.

Name string

The setting name.

name string

The setting name.

name str

The setting name.

GetSetting Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string
Value string

the settting’s value.

Id string

The provider-assigned unique ID for this managed resource.

Name string
Value string

the settting’s value.

id string

The provider-assigned unique ID for this managed resource.

name string
value string

the settting’s value.

id str

The provider-assigned unique ID for this managed resource.

name str
value str

the settting’s value.

Package Details

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