Show / Hide Table of Contents

Class GetShare

Inheritance
System.Object
GetShare
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.DataShare
Assembly: Pulumi.Azure.dll
Syntax
public static class GetShare

Methods

View Source

InvokeAsync(GetShareArgs, InvokeOptions)

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

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var exampleAccount = Output.Create(Azure.DataShare.GetAccount.InvokeAsync(new Azure.DataShare.GetAccountArgs
    {
        Name = "example-account",
        ResourceGroupName = "example-resource-group",
    }));
    var exampleShare = Output.Create(Azure.DataShare.GetShare.InvokeAsync(new Azure.DataShare.GetShareArgs
    {
        Name = "existing",
        AccountId = data.Azurerm_data_share_account.Exmaple.Id,
    }));
    this.Id = exampleShare.Apply(exampleShare => exampleShare.Id);
}

[Output("id")]
public Output<string> Id { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetShareResult> InvokeAsync(GetShareArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetShareArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetShareResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.