1. Packages
  2. Yandex
  3. API Docs
  4. getClientConfig
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.getClientConfig

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    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
    	})
    }
    

    Coming soon!

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

    Coming soon!

    Using getClientConfig

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

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

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

    public static class GetClientConfig 
    {
        public static Task<GetClientConfigResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetClientConfigResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClientConfigResult> getClientConfig(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: yandex:index/getClientConfig:getClientConfig
      arguments:
        # arguments dictionary

    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.
    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.
    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.

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi