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/v3/go/azure/kusto"
"github.com/pulumi/pulumi/sdk/v2/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
})
}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",
}, { async: true }));Using GetCluster
function getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>function get_cluster(name=None, resource_group_name=None, opts=None)func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)Note: This function is named
LookupClusterin the Go SDK.
public static class GetCluster {
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the Kusto Cluster.
- Resource
Group stringName The name of the Resource Group where the Kusto Cluster exists.
- Name string
Specifies the name of the Kusto Cluster.
- Resource
Group stringName The name of the Resource Group where the Kusto Cluster exists.
- name string
Specifies the name of the Kusto Cluster.
- resource
Group stringName The name of the Resource Group where the Kusto Cluster exists.
- name str
Specifies the name of the Kusto Cluster.
- resource_
group_ strname The name of the Resource Group where the Kusto Cluster exists.
GetCluster Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.