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

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.datashare.getDatasetDataLakeGen2

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Use this data source to access information about an existing Data Share Data Lake Gen2 Dataset.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.datashare.getDatasetDataLakeGen2({
        name: "example-dsdlg2ds",
        shareId: "example-share-id",
    });
    export const id = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.datashare.get_dataset_data_lake_gen2(name="example-dsdlg2ds",
        share_id="example-share-id")
    pulumi.export("id", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/datashare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := datashare.LookupDatasetDataLakeGen2(ctx, &datashare.LookupDatasetDataLakeGen2Args{
    			Name:    "example-dsdlg2ds",
    			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.GetDatasetDataLakeGen2.Invoke(new()
        {
            Name = "example-dsdlg2ds",
            ShareId = "example-share-id",
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = example.Apply(getDatasetDataLakeGen2Result => getDatasetDataLakeGen2Result.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.GetDatasetDataLakeGen2Args;
    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.getDatasetDataLakeGen2(GetDatasetDataLakeGen2Args.builder()
                .name("example-dsdlg2ds")
                .shareId("example-share-id")
                .build());
    
            ctx.export("id", example.applyValue(getDatasetDataLakeGen2Result -> getDatasetDataLakeGen2Result.id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:datashare:getDatasetDataLakeGen2
          Arguments:
            name: example-dsdlg2ds
            shareId: example-share-id
    outputs:
      id: ${example.id}
    

    Using getDatasetDataLakeGen2

    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 getDatasetDataLakeGen2(args: GetDatasetDataLakeGen2Args, opts?: InvokeOptions): Promise<GetDatasetDataLakeGen2Result>
    function getDatasetDataLakeGen2Output(args: GetDatasetDataLakeGen2OutputArgs, opts?: InvokeOptions): Output<GetDatasetDataLakeGen2Result>
    def get_dataset_data_lake_gen2(name: Optional[str] = None,
                                   share_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetDatasetDataLakeGen2Result
    def get_dataset_data_lake_gen2_output(name: Optional[pulumi.Input[str]] = None,
                                   share_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetDatasetDataLakeGen2Result]
    func LookupDatasetDataLakeGen2(ctx *Context, args *LookupDatasetDataLakeGen2Args, opts ...InvokeOption) (*LookupDatasetDataLakeGen2Result, error)
    func LookupDatasetDataLakeGen2Output(ctx *Context, args *LookupDatasetDataLakeGen2OutputArgs, opts ...InvokeOption) LookupDatasetDataLakeGen2ResultOutput

    > Note: This function is named LookupDatasetDataLakeGen2 in the Go SDK.

    public static class GetDatasetDataLakeGen2 
    {
        public static Task<GetDatasetDataLakeGen2Result> InvokeAsync(GetDatasetDataLakeGen2Args args, InvokeOptions? opts = null)
        public static Output<GetDatasetDataLakeGen2Result> Invoke(GetDatasetDataLakeGen2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatasetDataLakeGen2Result> getDatasetDataLakeGen2(GetDatasetDataLakeGen2Args args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:datashare/getDatasetDataLakeGen2:getDatasetDataLakeGen2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of this Data Share Data Lake Gen2 Dataset.
    ShareId string
    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created.
    Name string
    The name of this Data Share Data Lake Gen2 Dataset.
    ShareId string
    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created.
    name String
    The name of this Data Share Data Lake Gen2 Dataset.
    shareId String
    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created.
    name string
    The name of this Data Share Data Lake Gen2 Dataset.
    shareId string
    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created.
    name str
    The name of this Data Share Data Lake Gen2 Dataset.
    share_id str
    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created.
    name String
    The name of this Data Share Data Lake Gen2 Dataset.
    shareId String
    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created.

    getDatasetDataLakeGen2 Result

    The following output properties are available:

    DisplayName string
    The name of the Data Share Dataset.
    FilePath string
    The path of the file in the data lake file system to be shared with the receiver.
    FileSystemName string
    The name of the data lake file system to be shared with the receiver.
    FolderPath string
    The folder path in the data lake file system to be shared with the receiver.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ShareId string
    StorageAccountId string
    The resource ID of the storage account of the data lake file system to be shared with the receiver.
    DisplayName string
    The name of the Data Share Dataset.
    FilePath string
    The path of the file in the data lake file system to be shared with the receiver.
    FileSystemName string
    The name of the data lake file system to be shared with the receiver.
    FolderPath string
    The folder path in the data lake file system to be shared with the receiver.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ShareId string
    StorageAccountId string
    The resource ID of the storage account of the data lake file system to be shared with the receiver.
    displayName String
    The name of the Data Share Dataset.
    filePath String
    The path of the file in the data lake file system to be shared with the receiver.
    fileSystemName String
    The name of the data lake file system to be shared with the receiver.
    folderPath String
    The folder path in the data lake file system to be shared with the receiver.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    shareId String
    storageAccountId String
    The resource ID of the storage account of the data lake file system to be shared with the receiver.
    displayName string
    The name of the Data Share Dataset.
    filePath string
    The path of the file in the data lake file system to be shared with the receiver.
    fileSystemName string
    The name of the data lake file system to be shared with the receiver.
    folderPath string
    The folder path in the data lake file system to be shared with the receiver.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    shareId string
    storageAccountId string
    The resource ID of the storage account of the data lake file system to be shared with the receiver.
    display_name str
    The name of the Data Share Dataset.
    file_path str
    The path of the file in the data lake file system to be shared with the receiver.
    file_system_name str
    The name of the data lake file system to be shared with the receiver.
    folder_path str
    The folder path in the data lake file system to be shared with the receiver.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    share_id str
    storage_account_id str
    The resource ID of the storage account of the data lake file system to be shared with the receiver.
    displayName String
    The name of the Data Share Dataset.
    filePath String
    The path of the file in the data lake file system to be shared with the receiver.
    fileSystemName String
    The name of the data lake file system to be shared with the receiver.
    folderPath String
    The folder path in the data lake file system to be shared with the receiver.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    shareId String
    storageAccountId String
    The resource ID of the storage account of the data lake file system to be shared with the receiver.

    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 Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi