Show / Hide Table of Contents

Class Container

Manages a Container within an Azure Storage Account.

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",
        Tags = 
        {
            { "environment", "staging" },
        },
    });
    var exampleContainer = new Azure.Storage.Container("exampleContainer", new Azure.Storage.ContainerArgs
    {
        StorageAccountName = exampleAccount.Name,
        ContainerAccessType = "private",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Container
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 Container : CustomResource

Constructors

View Source

Container(String, ContainerArgs, CustomResourceOptions)

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

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

The unique name of the resource

ContainerArgs 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

ContainerAccessType

The Access Level configured for this Container. Possible values are blob, container or private. Defaults to private.

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

HasImmutabilityPolicy

Is there an Immutability Policy configured on this Storage Container?

Declaration
public Output<bool> HasImmutabilityPolicy { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

HasLegalHold

Is there a Legal Hold configured on this Storage Container?

Declaration
public Output<bool> HasLegalHold { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

Metadata

A mapping of MetaData for this Container.

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 of the Container which should be created within the Storage Account.

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

ResourceManagerId

The Resource Manager ID of this Storage Container.

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

StorageAccountName

The name of the Storage Account where the Container should be created.

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

Methods

View Source

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

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

Declaration
public static Container Get(string name, Input<string> id, ContainerState 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.

ContainerState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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