-
Notifications
You must be signed in to change notification settings - Fork 51
/
getCluster.go
64 lines (59 loc) · 1.99 KB
/
getCluster.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package kusto
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Use this data source to access information about an existing Kusto (also known as Azure Data Explorer) Cluster
//
// ## Example Usage
//
// ```go
// 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
// })
// }
// ```
func LookupCluster(ctx *pulumi.Context, args *LookupClusterArgs, opts ...pulumi.InvokeOption) (*LookupClusterResult, error) {
var rv LookupClusterResult
err := ctx.Invoke("azure:kusto/getCluster:getCluster", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getCluster.
type LookupClusterArgs struct {
// Specifies the name of the Kusto Cluster.
Name string `pulumi:"name"`
// The name of the Resource Group where the Kusto Cluster exists.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// A collection of values returned by getCluster.
type LookupClusterResult struct {
// The Kusto Cluster URI to be used for data ingestion.
DataIngestionUri string `pulumi:"dataIngestionUri"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Location string `pulumi:"location"`
Name string `pulumi:"name"`
ResourceGroupName string `pulumi:"resourceGroupName"`
Tags map[string]string `pulumi:"tags"`
// The FQDN of the Azure Kusto Cluster.
Uri string `pulumi:"uri"`
}