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

getCloudCredential

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

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Rancher2.GetCloudCredential.InvokeAsync(new Rancher2.GetCloudCredentialArgs
        {
            Name = "test",
        }));
    }

}
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.LookupCloudCredential(ctx, &rancher2.LookupCloudCredentialArgs{
            Name: "test",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_rancher2 as rancher2

test = rancher2.get_cloud_credential(name="test")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";

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

Using getCloudCredential

function getCloudCredential(args: GetCloudCredentialArgs, opts?: InvokeOptions): Promise<GetCloudCredentialResult>
def get_cloud_credential(name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetCloudCredentialResult
func LookupCloudCredential(ctx *Context, args *LookupCloudCredentialArgs, opts ...InvokeOption) (*LookupCloudCredentialResult, error)

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

public static class GetCloudCredential {
    public static Task<GetCloudCredentialResult> InvokeAsync(GetCloudCredentialArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The Cloud Credential name.

Name string

The Cloud Credential name.

name string

The Cloud Credential name.

name str

The Cloud Credential name.

getCloudCredential Result

The following output properties are available:

Annotations Dictionary<string, object>

(Computed) Annotations for the Cloud Credential (map)

Id string

The provider-assigned unique ID for this managed resource.

Labels Dictionary<string, object>

(Computed) Labels for the Cloud Credential (map)

Name string
Annotations map[string]interface{}

(Computed) Annotations for the Cloud Credential (map)

Id string

The provider-assigned unique ID for this managed resource.

Labels map[string]interface{}

(Computed) Labels for the Cloud Credential (map)

Name string
annotations {[key: string]: any}

(Computed) Annotations for the Cloud Credential (map)

id string

The provider-assigned unique ID for this managed resource.

labels {[key: string]: any}

(Computed) Labels for the Cloud Credential (map)

name string
annotations Mapping[str, Any]

(Computed) Annotations for the Cloud Credential (map)

id str

The provider-assigned unique ID for this managed resource.

labels Mapping[str, Any]

(Computed) Labels for the Cloud Credential (map)

name str

Package Details

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