We recommend using Azure Native.
Azure v6.12.0 published on Monday, Dec 2, 2024 by Pulumi
azure.datashare.getDatasetKustoDatabase
Explore with Pulumi AI
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);
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)
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
})
}
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),
};
});
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.applyValue(getDatasetKustoDatabaseResult -> getDatasetKustoDatabaseResult.id()));
}
}
variables:
example:
fn::invoke:
Function: azure:datashare:getDatasetKustoDatabase
Arguments:
name: example-dskdds
shareId: example-share-id
outputs:
id: ${example.id}
Using getDatasetKustoDatabase
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDatasetKustoDatabase(args: GetDatasetKustoDatabaseArgs, opts?: InvokeOptions): Promise<GetDatasetKustoDatabaseResult>
function getDatasetKustoDatabaseOutput(args: GetDatasetKustoDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDatasetKustoDatabaseResult>
def get_dataset_kusto_database(name: Optional[str] = None,
share_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatasetKustoDatabaseResult
def get_dataset_kusto_database_output(name: Optional[pulumi.Input[str]] = None,
share_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatasetKustoDatabaseResult]
func LookupDatasetKustoDatabase(ctx *Context, args *LookupDatasetKustoDatabaseArgs, opts ...InvokeOption) (*LookupDatasetKustoDatabaseResult, error)
func LookupDatasetKustoDatabaseOutput(ctx *Context, args *LookupDatasetKustoDatabaseOutputArgs, opts ...InvokeOption) LookupDatasetKustoDatabaseResultOutput
> Note: This function is named LookupDatasetKustoDatabase
in the Go SDK.
public static class GetDatasetKustoDatabase
{
public static Task<GetDatasetKustoDatabaseResult> InvokeAsync(GetDatasetKustoDatabaseArgs args, InvokeOptions? opts = null)
public static Output<GetDatasetKustoDatabaseResult> Invoke(GetDatasetKustoDatabaseInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatasetKustoDatabaseResult> getDatasetKustoDatabase(GetDatasetKustoDatabaseArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:datashare/getDatasetKustoDatabase:getDatasetKustoDatabase
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of this Data Share Kusto Database Dataset.
- string
- The resource ID of the Data Share where this Data Share Kusto Database Dataset should be created.
- Name string
- The name of this Data Share Kusto Database Dataset.
- string
- The resource ID of the Data Share where this Data Share Kusto Database Dataset should be created.
- name String
- The name of this Data Share Kusto Database Dataset.
- String
- The resource ID of the Data Share where this Data Share Kusto Database Dataset should be created.
- name string
- The name of this Data Share Kusto Database Dataset.
- string
- The resource ID of the Data Share where this Data Share Kusto Database Dataset should be created.
- name str
- The name of this Data Share Kusto Database Dataset.
- str
- The resource ID of the Data Share where this Data Share Kusto Database Dataset should be created.
- name String
- The name of this Data Share Kusto Database Dataset.
- String
- The resource ID of the Data Share where this Data Share Kusto Database Dataset should be created.
getDatasetKustoDatabase Result
The following output properties are available:
- Display
Name string - The name of the Data Share Dataset.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kusto
Cluster stringLocation - The location of the Kusto Cluster.
- Kusto
Database stringId - The resource ID of the Kusto Cluster Database to be shared with the receiver.
- Name string
- string
- Display
Name string - The name of the Data Share Dataset.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kusto
Cluster stringLocation - The location of the Kusto Cluster.
- Kusto
Database stringId - The resource ID of the Kusto Cluster Database to be shared with the receiver.
- Name string
- string
- display
Name String - The name of the Data Share Dataset.
- id String
- The provider-assigned unique ID for this managed resource.
- kusto
Cluster StringLocation - The location of the Kusto Cluster.
- kusto
Database StringId - The resource ID of the Kusto Cluster Database to be shared with the receiver.
- name String
- String
- display
Name string - The name of the Data Share Dataset.
- id string
- The provider-assigned unique ID for this managed resource.
- kusto
Cluster stringLocation - The location of the Kusto Cluster.
- kusto
Database stringId - The resource ID of the Kusto Cluster Database to be shared with the receiver.
- name string
- string
- display_
name str - The name of the Data Share Dataset.
- id str
- The provider-assigned unique ID for this managed resource.
- kusto_
cluster_ strlocation - The location of the Kusto Cluster.
- kusto_
database_ strid - The resource ID of the Kusto Cluster Database to be shared with the receiver.
- name str
- str
- display
Name String - The name of the Data Share Dataset.
- id String
- The provider-assigned unique ID for this managed resource.
- kusto
Cluster StringLocation - The location of the Kusto Cluster.
- kusto
Database StringId - The resource ID of the Kusto Cluster Database to be shared with the receiver.
- name String
- String
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.