Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.6.0 published on Friday, May 20, 2022 by Pulumi

getCluster

Use this data source to access information about an existing Kusto (also known as Azure Data Explorer) Cluster

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.Kusto.GetCluster.InvokeAsync(new Azure.Kusto.GetClusterArgs
        {
            Name = "kustocluster",
            ResourceGroupName = "test_resource_group",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/kusto"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kusto.LookupCluster(ctx, &kusto.LookupClusterArgs{
			Name:              "kustocluster",
			ResourceGroupName: "test_resource_group",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(KustoFunctions.getCluster(GetClusterArgs.builder()
            .name("kustocluster")
            .resourceGroupName("test_resource_group")
            .build()));

        }
}
import pulumi
import pulumi_azure as azure

example = azure.kusto.get_cluster(name="kustocluster",
    resource_group_name="test_resource_group")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = pulumi.output(azure.kusto.getCluster({
    name: "kustocluster",
    resourceGroupName: "test_resource_group",
}));
variables:
  example:
    Fn::Invoke:
      Function: azure:kusto:getCluster
      Arguments:
        name: kustocluster
        resourceGroupName: test_resource_group

Using getCluster

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 getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function getClusterOutput(args: GetClusterOutputArgs, opts?: InvokeOptions): Output<GetClusterResult>
def get_cluster(name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetClusterResult
def get_cluster_output(name: Optional[pulumi.Input[str]] = None,
                resource_group_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetClusterResult]
func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)
func LookupClusterOutput(ctx *Context, args *LookupClusterOutputArgs, opts ...InvokeOption) LookupClusterResultOutput

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

public static class GetCluster 
{
    public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
    public static Output<GetClusterResult> Invoke(GetClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: azure:kusto/getCluster:getCluster
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

Specifies the name of the Kusto Cluster.

ResourceGroupName string

The name of the Resource Group where the Kusto Cluster exists.

Name string

Specifies the name of the Kusto Cluster.

ResourceGroupName string

The name of the Resource Group where the Kusto Cluster exists.

name String

Specifies the name of the Kusto Cluster.

resourceGroupName String

The name of the Resource Group where the Kusto Cluster exists.

name string

Specifies the name of the Kusto Cluster.

resourceGroupName string

The name of the Resource Group where the Kusto Cluster exists.

name str

Specifies the name of the Kusto Cluster.

resource_group_name str

The name of the Resource Group where the Kusto Cluster exists.

name String

Specifies the name of the Kusto Cluster.

resourceGroupName String

The name of the Resource Group where the Kusto Cluster exists.

getCluster Result

The following output properties are available:

DataIngestionUri string

The Kusto Cluster URI to be used for data ingestion.

Id string

The provider-assigned unique ID for this managed resource.

Location string
Name string
ResourceGroupName string
Tags Dictionary<string, string>
Uri string

The FQDN of the Azure Kusto Cluster.

DataIngestionUri string

The Kusto Cluster URI to be used for data ingestion.

Id string

The provider-assigned unique ID for this managed resource.

Location string
Name string
ResourceGroupName string
Tags map[string]string
Uri string

The FQDN of the Azure Kusto Cluster.

dataIngestionUri String

The Kusto Cluster URI to be used for data ingestion.

id String

The provider-assigned unique ID for this managed resource.

location String
name String
resourceGroupName String
tags Map
uri String

The FQDN of the Azure Kusto Cluster.

dataIngestionUri string

The Kusto Cluster URI to be used for data ingestion.

id string

The provider-assigned unique ID for this managed resource.

location string
name string
resourceGroupName string
tags {[key: string]: string}
uri string

The FQDN of the Azure Kusto Cluster.

data_ingestion_uri str

The Kusto Cluster URI to be used for data ingestion.

id str

The provider-assigned unique ID for this managed resource.

location str
name str
resource_group_name str
tags Mapping[str, str]
uri str

The FQDN of the Azure Kusto Cluster.

dataIngestionUri String

The Kusto Cluster URI to be used for data ingestion.

id String

The provider-assigned unique ID for this managed resource.

location String
name String
resourceGroupName String
tags Map
uri String

The FQDN of the Azure Kusto Cluster.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.