azure.datashare.getDatasetDataLakeGen2
Explore with Pulumi AI
Use this data source to access information about an existing Data Share Data Lake Gen2 Dataset.
Example Usage
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 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
})
}
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()));
}
}
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)
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);
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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:
- Display
Name string The name of the Data Share Dataset.
- File
Path string The path of the file in the data lake file system to be shared with the receiver.
- File
System stringName The name of the data lake file system to be shared with the receiver.
- Folder
Path 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
- string
- Storage
Account stringId The resource ID of the storage account of the data lake file system to be shared with the receiver.
- Display
Name string The name of the Data Share Dataset.
- File
Path string The path of the file in the data lake file system to be shared with the receiver.
- File
System stringName The name of the data lake file system to be shared with the receiver.
- Folder
Path 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
- string
- Storage
Account stringId The resource ID of the storage account of the data lake file system to be shared with the receiver.
- display
Name String The name of the Data Share Dataset.
- file
Path String The path of the file in the data lake file system to be shared with the receiver.
- file
System StringName The name of the data lake file system to be shared with the receiver.
- folder
Path 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
- String
- storage
Account StringId The resource ID of the storage account of the data lake file system to be shared with the receiver.
- display
Name string The name of the Data Share Dataset.
- file
Path string The path of the file in the data lake file system to be shared with the receiver.
- file
System stringName The name of the data lake file system to be shared with the receiver.
- folder
Path 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
- string
- storage
Account stringId 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_ strname 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
- str
- storage_
account_ strid The resource ID of the storage account of the data lake file system to be shared with the receiver.
- display
Name String The name of the Data Share Dataset.
- file
Path String The path of the file in the data lake file system to be shared with the receiver.
- file
System StringName The name of the data lake file system to be shared with the receiver.
- folder
Path 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
- String
- storage
Account StringId 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.