get Dataset Kusto Database
suspend fun getDatasetKustoDatabase(argument: GetDatasetKustoDatabasePlainArgs): GetDatasetKustoDatabaseResult
Use this data source to access information about an existing Data Share Kusto Database Dataset.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.datashare.getDatasetKustoDatabase({
name: "example-dskdds",
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_database(name="example-dskdds",
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.GetDatasetKustoDatabase.Invoke(new()
{
Name = "example-dskdds",
ShareId = "example-share-id",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getDatasetKustoDatabaseResult => getDatasetKustoDatabaseResult.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.LookupDatasetKustoDatabase(ctx, &datashare.LookupDatasetKustoDatabaseArgs{
Name: "example-dskdds",
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.GetDatasetKustoDatabaseArgs;
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.getDatasetKustoDatabase(GetDatasetKustoDatabaseArgs.builder()
.name("example-dskdds")
.shareId("example-share-id")
.build());
ctx.export("id", example.id());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:datashare:getDatasetKustoDatabase
arguments:
name: example-dskdds
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 getDatasetKustoDatabase.
Parameters
argument
A collection of arguments for invoking getDatasetKustoDatabase.
Return
A collection of values returned by getDatasetKustoDatabase.
Parameters
name
The name of this Data Share Kusto Database Dataset.
share Id
The resource ID of the Data Share where this Data Share Kusto Database Dataset should be created.
See also
suspend fun getDatasetKustoDatabase(argument: suspend GetDatasetKustoDatabasePlainArgsBuilder.() -> Unit): GetDatasetKustoDatabaseResult
Return
A collection of values returned by getDatasetKustoDatabase.
Parameters
argument
Builder for com.pulumi.azure.datashare.kotlin.inputs.GetDatasetKustoDatabasePlainArgs.