1. Packages
  2. Azure Classic
  3. API Docs
  4. datashare
  5. getDatasetKustoDatabase

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.datashare.getDatasetKustoDatabase

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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.
    ShareId 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.
    ShareId 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.
    shareId 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.
    shareId 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.
    share_id 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.
    shareId 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:

    DisplayName string
    The name of the Data Share Dataset.
    Id string
    The provider-assigned unique ID for this managed resource.
    KustoClusterLocation string
    The location of the Kusto Cluster.
    KustoDatabaseId string
    The resource ID of the Kusto Cluster Database to be shared with the receiver.
    Name string
    ShareId string
    DisplayName string
    The name of the Data Share Dataset.
    Id string
    The provider-assigned unique ID for this managed resource.
    KustoClusterLocation string
    The location of the Kusto Cluster.
    KustoDatabaseId string
    The resource ID of the Kusto Cluster Database to be shared with the receiver.
    Name string
    ShareId string
    displayName String
    The name of the Data Share Dataset.
    id String
    The provider-assigned unique ID for this managed resource.
    kustoClusterLocation String
    The location of the Kusto Cluster.
    kustoDatabaseId String
    The resource ID of the Kusto Cluster Database to be shared with the receiver.
    name String
    shareId String
    displayName string
    The name of the Data Share Dataset.
    id string
    The provider-assigned unique ID for this managed resource.
    kustoClusterLocation string
    The location of the Kusto Cluster.
    kustoDatabaseId string
    The resource ID of the Kusto Cluster Database to be shared with the receiver.
    name string
    shareId string
    display_name str
    The name of the Data Share Dataset.
    id str
    The provider-assigned unique ID for this managed resource.
    kusto_cluster_location str
    The location of the Kusto Cluster.
    kusto_database_id str
    The resource ID of the Kusto Cluster Database to be shared with the receiver.
    name str
    share_id str
    displayName String
    The name of the Data Share Dataset.
    id String
    The provider-assigned unique ID for this managed resource.
    kustoClusterLocation String
    The location of the Kusto Cluster.
    kustoDatabaseId String
    The resource ID of the Kusto Cluster Database to be shared with the receiver.
    name String
    shareId String

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi