get Dataset Kusto Cluster
suspend fun getDatasetKustoCluster(argument: GetDatasetKustoClusterPlainArgs): GetDatasetKustoClusterResult
Use this data source to access information about an existing Data Share Kusto Cluster Dataset.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.datashare.getDatasetKustoCluster({
name: "example-dskc",
shareId: "example-share-id",
});
export const id = example.then(example => example.id);
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.datashare.get_dataset_kusto_cluster(name="example-dskc",
share_id="example-share-id")
pulumi.export("id", example.id)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.DataShare.GetDatasetKustoCluster.Invoke(new()
{
Name = "example-dskc",
ShareId = "example-share-id",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getDatasetKustoClusterResult => getDatasetKustoClusterResult.Id),
};
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datashare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := datashare.LookupDatasetKustoCluster(ctx, &datashare.LookupDatasetKustoClusterArgs{
Name: "example-dskc",
ShareId: "example-share-id",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.datashare.DatashareFunctions;
import com.pulumi.azure.datashare.inputs.GetDatasetKustoClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = DatashareFunctions.getDatasetKustoCluster(GetDatasetKustoClusterArgs.builder()
.name("example-dskc")
.shareId("example-share-id")
.build());
ctx.export("id", example.id());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:datashare:getDatasetKustoCluster
arguments:
name: example-dskc
shareId: example-share-id
outputs:
id: ${example.id}
Content copied to clipboard
API Providers
This data source uses the following Azure API Providers:
Microsoft.DataShare
: 2019-11-01
Return
A collection of values returned by getDatasetKustoCluster.
Parameters
argument
A collection of arguments for invoking getDatasetKustoCluster.
Return
A collection of values returned by getDatasetKustoCluster.
Parameters
name
The name of this Data Share Kusto Cluster Dataset.
share Id
The resource ID of the Data Share where this Data Share Kusto Cluster Dataset should be created.
See also
suspend fun getDatasetKustoCluster(argument: suspend GetDatasetKustoClusterPlainArgsBuilder.() -> Unit): GetDatasetKustoClusterResult
Return
A collection of values returned by getDatasetKustoCluster.
Parameters
argument
Builder for com.pulumi.azure.datashare.kotlin.inputs.GetDatasetKustoClusterPlainArgs.