get Database
Use this data source to access information about an existing Kusto Database
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.kusto.getDatabase({
name: "my-kusto-database",
resourceGroupName: "test_resource_group",
clusterName: "test_cluster",
});
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.kusto.get_database(name="my-kusto-database",
resource_group_name="test_resource_group",
cluster_name="test_cluster")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Kusto.GetDatabase.Invoke(new()
{
Name = "my-kusto-database",
ResourceGroupName = "test_resource_group",
ClusterName = "test_cluster",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/kusto"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.LookupDatabase(ctx, &kusto.LookupDatabaseArgs{
Name: "my-kusto-database",
ResourceGroupName: "test_resource_group",
ClusterName: "test_cluster",
}, nil)
if err != nil {
return err
}
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.kusto.KustoFunctions;
import com.pulumi.azure.kusto.inputs.GetDatabaseArgs;
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 = KustoFunctions.getDatabase(GetDatabaseArgs.builder()
.name("my-kusto-database")
.resourceGroupName("test_resource_group")
.clusterName("test_cluster")
.build());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:kusto:getDatabase
arguments:
name: my-kusto-database
resourceGroupName: test_resource_group
clusterName: test_cluster
Content copied to clipboard
API Providers
This data source uses the following Azure API Providers:
Microsoft.Kusto
: 2024-04-13
Return
A collection of values returned by getDatabase.
Parameters
argument
A collection of arguments for invoking getDatabase.
suspend fun getDatabase(clusterName: String, name: String, resourceGroupName: String): GetDatabaseResult
Return
A collection of values returned by getDatabase.
Parameters
cluster Name
The name of the Kusto Cluster this database is added to.
name
The name of the Kusto Database.
resource Group Name
The Resource Group where the Kusto Database exists.
See also
suspend fun getDatabase(argument: suspend GetDatabasePlainArgsBuilder.() -> Unit): GetDatabaseResult
Return
A collection of values returned by getDatabase.
Parameters
argument
Builder for com.pulumi.azure.kusto.kotlin.inputs.GetDatabasePlainArgs.