Show / Hide Table of Contents

Class GetPolicy

Inheritance
System.Object
GetPolicy
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.Storage
Assembly: Pulumi.Azure.dll
Syntax
public static class GetPolicy

Methods

View Source

InvokeAsync(GetPolicyArgs, InvokeOptions)

Use this data source to access information about an existing Storage Management Policy.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var exampleAccount = Output.Create(Azure.Storage.GetAccount.InvokeAsync(new Azure.Storage.GetAccountArgs
    {
        Name = "storageaccountname",
        ResourceGroupName = "resourcegroupname",
    }));
    var examplePolicy = Output.Create(Azure.Storage.GetPolicy.InvokeAsync(new Azure.Storage.GetPolicyArgs
    {
        StorageAccountId = azurerm_storage_account.Example.Id,
    }));
}

}

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

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