GetStorageContainer

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

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.Storage.GetStorageContainer.InvokeAsync(new Azure.Storage.GetStorageContainerArgs
        {
            Name = "example-container-name",
            StorageAccountName = "example-storage-account-name",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/storage"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := storage.GetStorageContainer(ctx, &storage.GetStorageContainerArgs{
            Name:               "example-container-name",
            StorageAccountName: "example-storage-account-name",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.storage.get_storage_container(name="example-container-name",
    storage_account_name="example-storage-account-name")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = pulumi.output(azure.storage.getStorageContainer({
    name: "example-container-name",
    storageAccountName: "example-storage-account-name",
}, { async: true }));

Using GetStorageContainer

function getStorageContainer(args: GetStorageContainerArgs, opts?: InvokeOptions): Promise<GetStorageContainerResult>
function  get_storage_container(metadata=None, name=None, storage_account_name=None, opts=None)
func GetStorageContainer(ctx *Context, args *GetStorageContainerArgs, opts ...InvokeOption) (*GetStorageContainerResult, error)
public static class GetStorageContainer {
    public static Task<GetStorageContainerResult> InvokeAsync(GetStorageContainerArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the Container.

StorageAccountName string

The name of the Storage Account where the Container exists.

Metadata Dictionary<string, string>

A mapping of MetaData for this Container.

Name string

The name of the Container.

StorageAccountName string

The name of the Storage Account where the Container exists.

Metadata map[string]string

A mapping of MetaData for this Container.

name string

The name of the Container.

storageAccountName string

The name of the Storage Account where the Container exists.

metadata {[key: string]: string}

A mapping of MetaData for this Container.

name str

The name of the Container.

storage_account_name str

The name of the Storage Account where the Container exists.

metadata Dict[str, str]

A mapping of MetaData for this Container.

GetStorageContainer Result

The following output properties are available:

ContainerAccessType string

The Access Level configured for this Container.

HasImmutabilityPolicy bool

Is there an Immutability Policy configured on this Storage Container?

HasLegalHold bool

Is there a Legal Hold configured on this Storage Container?

Id string

The provider-assigned unique ID for this managed resource.

Metadata Dictionary<string, string>

A mapping of MetaData for this Container.

Name string
ResourceManagerId string

The Resource Manager ID of this Storage Container.

StorageAccountName string
ContainerAccessType string

The Access Level configured for this Container.

HasImmutabilityPolicy bool

Is there an Immutability Policy configured on this Storage Container?

HasLegalHold bool

Is there a Legal Hold configured on this Storage Container?

Id string

The provider-assigned unique ID for this managed resource.

Metadata map[string]string

A mapping of MetaData for this Container.

Name string
ResourceManagerId string

The Resource Manager ID of this Storage Container.

StorageAccountName string
containerAccessType string

The Access Level configured for this Container.

hasImmutabilityPolicy boolean

Is there an Immutability Policy configured on this Storage Container?

hasLegalHold boolean

Is there a Legal Hold configured on this Storage Container?

id string

The provider-assigned unique ID for this managed resource.

metadata {[key: string]: string}

A mapping of MetaData for this Container.

name string
resourceManagerId string

The Resource Manager ID of this Storage Container.

storageAccountName string
container_access_type str

The Access Level configured for this Container.

has_immutability_policy bool

Is there an Immutability Policy configured on this Storage Container?

has_legal_hold bool

Is there a Legal Hold configured on this Storage Container?

id str

The provider-assigned unique ID for this managed resource.

metadata Dict[str, str]

A mapping of MetaData for this Container.

name str
resource_manager_id str

The Resource Manager ID of this Storage Container.

storage_account_name str

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.