Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

getClientConfig

Get attributes used by provider to configure client connection.

Example Usage

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var client = Output.Create(Yandex.GetClientConfig.InvokeAsync());
        var kubernetes = Output.Create(Yandex.GetKubernetesCluster.InvokeAsync(new Yandex.GetKubernetesClusterArgs
        {
            Name = "kubernetes",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := yandex.GetClientConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		opt0 := "kubernetes"
		_, err = yandex.LookupKubernetesCluster(ctx, &GetKubernetesClusterArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_yandex as yandex

client = yandex.get_client_config()
kubernetes = yandex.get_kubernetes_cluster(name="kubernetes")
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const client = yandex.getClientConfig({});
const kubernetes = yandex.getKubernetesCluster({
    name: "kubernetes",
});

Using getClientConfig

function getClientConfig(opts?: InvokeOptions): Promise<GetClientConfigResult>
def get_client_config(opts: Optional[InvokeOptions] = None) -> GetClientConfigResult
func GetClientConfig(ctx *Context, opts ...InvokeOption) (*GetClientConfigResult, error)

> Note: This function is named GetClientConfig in the Go SDK.

public static class GetClientConfig 
{
    public static Task<GetClientConfigResult> InvokeAsync(InvokeOptions? opts = null)
}

getClientConfig Result

The following output properties are available:

CloudId string
The ID of the cloud that the provider is connecting to.
FolderId string
The ID of the folder in which we operate.
IamToken string
A short-lived token that can be used for authentication in a Kubernetes cluster.
Id string
The provider-assigned unique ID for this managed resource.
Zone string
The default availability zone.
CloudId string
The ID of the cloud that the provider is connecting to.
FolderId string
The ID of the folder in which we operate.
IamToken string
A short-lived token that can be used for authentication in a Kubernetes cluster.
Id string
The provider-assigned unique ID for this managed resource.
Zone string
The default availability zone.
cloudId string
The ID of the cloud that the provider is connecting to.
folderId string
The ID of the folder in which we operate.
iamToken string
A short-lived token that can be used for authentication in a Kubernetes cluster.
id string
The provider-assigned unique ID for this managed resource.
zone string
The default availability zone.
cloud_id str
The ID of the cloud that the provider is connecting to.
folder_id str
The ID of the folder in which we operate.
iam_token str
A short-lived token that can be used for authentication in a Kubernetes cluster.
id str
The provider-assigned unique ID for this managed resource.
zone str
The default availability zone.

Package Details

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