Show / Hide Table of Contents

Class ShareDirectory

Manages a Directory within an Azure Storage File Share.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
    {
        Location = "West Europe",
    });
    var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });
    var exampleShare = new Azure.Storage.Share("exampleShare", new Azure.Storage.ShareArgs
    {
        StorageAccountName = exampleAccount.Name,
        Quota = 50,
    });
    var exampleShareDirectory = new Azure.Storage.ShareDirectory("exampleShareDirectory", new Azure.Storage.ShareDirectoryArgs
    {
        ShareName = exampleShare.Name,
        StorageAccountName = exampleAccount.Name,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ShareDirectory
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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 class ShareDirectory : CustomResource

Constructors

View Source

ShareDirectory(String, ShareDirectoryArgs, CustomResourceOptions)

Create a ShareDirectory resource with the given unique name, arguments, and options.

Declaration
public ShareDirectory(string name, ShareDirectoryArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ShareDirectoryArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Metadata

A mapping of metadata to assign to this Directory.

Declaration
public Output<ImmutableDictionary<string, string>> Metadata { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

Name

The name (or path) of the Directory that should be created within this File Share. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

ShareName

The name of the File Share where this Directory should be created. Changing this forces a new resource to be created.

Declaration
public Output<string> ShareName { get; }
Property Value
Type Description
Output<System.String>
View Source

StorageAccountName

The name of the Storage Account within which the File Share is located. Changing this forces a new resource to be created.

Declaration
public Output<string> StorageAccountName { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, ShareDirectoryState, CustomResourceOptions)

Get an existing ShareDirectory resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ShareDirectory Get(string name, Input<string> id, ShareDirectoryState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ShareDirectoryState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ShareDirectory
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.