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

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",
        }));
    }

}
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.LookupSetting(ctx, &rancher2.LookupSettingArgs{
            Name: "server-image",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
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>
def get_setting(name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetSettingResult
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.