Use Pulumi's new import command to generate code from existing cloud resources. Learn More

ManagementPolicy

The Get Storage Account ManagementPolicies operation response. Latest API Version: 2019-06-01.

Example Usage

StorageAccountSetManagementPolicies

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var managementPolicy = new AzureNextGen.Storage.Latest.ManagementPolicy("managementPolicy", new AzureNextGen.Storage.Latest.ManagementPolicyArgs
        {
            AccountName = "sto9699",
            ManagementPolicyName = "default",
            Policy = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicySchemaArgs
            {
                Rules = 
                {
                    new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyRuleArgs
                    {
                        Definition = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyDefinitionArgs
                        {
                            Actions = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyActionArgs
                            {
                                BaseBlob = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyBaseBlobArgs
                                {
                                    Delete = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
                                    {
                                        DaysAfterModificationGreaterThan = 1000,
                                    },
                                    TierToArchive = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
                                    {
                                        DaysAfterModificationGreaterThan = 90,
                                    },
                                    TierToCool = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
                                    {
                                        DaysAfterModificationGreaterThan = 30,
                                    },
                                },
                                Snapshot = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicySnapShotArgs
                                {
                                    Delete = new AzureNextGen.Storage.Latest.Inputs.DateAfterCreationArgs
                                    {
                                        DaysAfterCreationGreaterThan = 30,
                                    },
                                },
                            },
                            Filters = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyFilterArgs
                            {
                                BlobTypes = 
                                {
                                    "blockBlob",
                                },
                                PrefixMatch = 
                                {
                                    "olcmtestcontainer1",
                                },
                            },
                        },
                        Enabled = true,
                        Name = "olcmtest1",
                        Type = "Lifecycle",
                    },
                    new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyRuleArgs
                    {
                        Definition = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyDefinitionArgs
                        {
                            Actions = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyActionArgs
                            {
                                BaseBlob = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyBaseBlobArgs
                                {
                                    Delete = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
                                    {
                                        DaysAfterModificationGreaterThan = 1000,
                                    },
                                    TierToArchive = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
                                    {
                                        DaysAfterModificationGreaterThan = 90,
                                    },
                                    TierToCool = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
                                    {
                                        DaysAfterModificationGreaterThan = 30,
                                    },
                                },
                            },
                            Filters = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyFilterArgs
                            {
                                BlobIndexMatch = 
                                {
                                    new AzureNextGen.Storage.Latest.Inputs.TagFilterArgs
                                    {
                                        Name = "tag1",
                                        Op = "==",
                                        Value = "val1",
                                    },
                                    new AzureNextGen.Storage.Latest.Inputs.TagFilterArgs
                                    {
                                        Name = "tag2",
                                        Op = "==",
                                        Value = "val2",
                                    },
                                },
                                BlobTypes = 
                                {
                                    "blockBlob",
                                },
                                PrefixMatch = 
                                {
                                    "olcmtestcontainer2",
                                },
                            },
                        },
                        Enabled = true,
                        Name = "olcmtest2",
                        Type = "Lifecycle",
                    },
                },
            },
            ResourceGroupName = "res7687",
        });
    }

}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := storage.NewManagementPolicy(ctx, "managementPolicy", &storage.ManagementPolicyArgs{
            AccountName:          pulumi.String("sto9699"),
            ManagementPolicyName: pulumi.String("default"),
            Policy: &storage.ManagementPolicySchemaArgs{
                Rules: storage.ManagementPolicyRuleArray{
                    &storage.ManagementPolicyRuleArgs{
                        Definition: &storage.ManagementPolicyDefinitionArgs{
                            Actions: &storage.ManagementPolicyActionArgs{
                                BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
                                    Delete: &storage.DateAfterModificationArgs{
                                        DaysAfterModificationGreaterThan: pulumi.Float64(1000),
                                    },
                                    TierToArchive: &storage.DateAfterModificationArgs{
                                        DaysAfterModificationGreaterThan: pulumi.Float64(90),
                                    },
                                    TierToCool: &storage.DateAfterModificationArgs{
                                        DaysAfterModificationGreaterThan: pulumi.Float64(30),
                                    },
                                },
                                Snapshot: &storage.ManagementPolicySnapShotArgs{
                                    Delete: &storage.DateAfterCreationArgs{
                                        DaysAfterCreationGreaterThan: pulumi.Float64(30),
                                    },
                                },
                            },
                            Filters: &storage.ManagementPolicyFilterArgs{
                                BlobTypes: pulumi.StringArray{
                                    pulumi.String("blockBlob"),
                                },
                                PrefixMatch: pulumi.StringArray{
                                    pulumi.String("olcmtestcontainer1"),
                                },
                            },
                        },
                        Enabled: pulumi.Bool(true),
                        Name:    pulumi.String("olcmtest1"),
                        Type:    pulumi.String("Lifecycle"),
                    },
                    &storage.ManagementPolicyRuleArgs{
                        Definition: &storage.ManagementPolicyDefinitionArgs{
                            Actions: &storage.ManagementPolicyActionArgs{
                                BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
                                    Delete: &storage.DateAfterModificationArgs{
                                        DaysAfterModificationGreaterThan: pulumi.Float64(1000),
                                    },
                                    TierToArchive: &storage.DateAfterModificationArgs{
                                        DaysAfterModificationGreaterThan: pulumi.Float64(90),
                                    },
                                    TierToCool: &storage.DateAfterModificationArgs{
                                        DaysAfterModificationGreaterThan: pulumi.Float64(30),
                                    },
                                },
                            },
                            Filters: &storage.ManagementPolicyFilterArgs{
                                BlobIndexMatch: storage.TagFilterArray{
                                    &storage.TagFilterArgs{
                                        Name:  pulumi.String("tag1"),
                                        Op:    pulumi.String("=="),
                                        Value: pulumi.String("val1"),
                                    },
                                    &storage.TagFilterArgs{
                                        Name:  pulumi.String("tag2"),
                                        Op:    pulumi.String("=="),
                                        Value: pulumi.String("val2"),
                                    },
                                },
                                BlobTypes: pulumi.StringArray{
                                    pulumi.String("blockBlob"),
                                },
                                PrefixMatch: pulumi.StringArray{
                                    pulumi.String("olcmtestcontainer2"),
                                },
                            },
                        },
                        Enabled: pulumi.Bool(true),
                        Name:    pulumi.String("olcmtest2"),
                        Type:    pulumi.String("Lifecycle"),
                    },
                },
            },
            ResourceGroupName: pulumi.String("res7687"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

management_policy = azure_nextgen.storage.latest.ManagementPolicy("managementPolicy",
    account_name="sto9699",
    management_policy_name="default",
    policy=azure_nextgen.storage.latest.ManagementPolicySchemaArgs(
        rules=[
            azure_nextgen.storage.latest.ManagementPolicyRuleArgs(
                definition=azure_nextgen.storage.latest.ManagementPolicyDefinitionArgs(
                    actions=azure_nextgen.storage.latest.ManagementPolicyActionArgs(
                        base_blob=azure_nextgen.storage.latest.ManagementPolicyBaseBlobArgs(
                            delete=azure_nextgen.storage.latest.DateAfterModificationArgs(
                                days_after_modification_greater_than=1000,
                            ),
                            tier_to_archive=azure_nextgen.storage.latest.DateAfterModificationArgs(
                                days_after_modification_greater_than=90,
                            ),
                            tier_to_cool=azure_nextgen.storage.latest.DateAfterModificationArgs(
                                days_after_modification_greater_than=30,
                            ),
                        ),
                        snapshot=azure_nextgen.storage.latest.ManagementPolicySnapShotArgs(
                            delete=azure_nextgen.storage.latest.DateAfterCreationArgs(
                                days_after_creation_greater_than=30,
                            ),
                        ),
                    ),
                    filters=azure_nextgen.storage.latest.ManagementPolicyFilterArgs(
                        blob_types=["blockBlob"],
                        prefix_match=["olcmtestcontainer1"],
                    ),
                ),
                enabled=True,
                name="olcmtest1",
                type="Lifecycle",
            ),
            azure_nextgen.storage.latest.ManagementPolicyRuleArgs(
                definition=azure_nextgen.storage.latest.ManagementPolicyDefinitionArgs(
                    actions=azure_nextgen.storage.latest.ManagementPolicyActionArgs(
                        base_blob=azure_nextgen.storage.latest.ManagementPolicyBaseBlobArgs(
                            delete=azure_nextgen.storage.latest.DateAfterModificationArgs(
                                days_after_modification_greater_than=1000,
                            ),
                            tier_to_archive=azure_nextgen.storage.latest.DateAfterModificationArgs(
                                days_after_modification_greater_than=90,
                            ),
                            tier_to_cool=azure_nextgen.storage.latest.DateAfterModificationArgs(
                                days_after_modification_greater_than=30,
                            ),
                        ),
                    ),
                    filters=azure_nextgen.storage.latest.ManagementPolicyFilterArgs(
                        blob_index_match=[
                            azure_nextgen.storage.latest.TagFilterArgs(
                                name="tag1",
                                op="==",
                                value="val1",
                            ),
                            azure_nextgen.storage.latest.TagFilterArgs(
                                name="tag2",
                                op="==",
                                value="val2",
                            ),
                        ],
                        blob_types=["blockBlob"],
                        prefix_match=["olcmtestcontainer2"],
                    ),
                ),
                enabled=True,
                name="olcmtest2",
                type="Lifecycle",
            ),
        ],
    ),
    resource_group_name="res7687")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";

const managementPolicy = new azure_nextgen.storage.latest.ManagementPolicy("managementPolicy", {
    accountName: "sto9699",
    managementPolicyName: "default",
    policy: {
        rules: [
            {
                definition: {
                    actions: {
                        baseBlob: {
                            "delete": {
                                daysAfterModificationGreaterThan: 1000,
                            },
                            tierToArchive: {
                                daysAfterModificationGreaterThan: 90,
                            },
                            tierToCool: {
                                daysAfterModificationGreaterThan: 30,
                            },
                        },
                        snapshot: {
                            "delete": {
                                daysAfterCreationGreaterThan: 30,
                            },
                        },
                    },
                    filters: {
                        blobTypes: ["blockBlob"],
                        prefixMatch: ["olcmtestcontainer1"],
                    },
                },
                enabled: true,
                name: "olcmtest1",
                type: "Lifecycle",
            },
            {
                definition: {
                    actions: {
                        baseBlob: {
                            "delete": {
                                daysAfterModificationGreaterThan: 1000,
                            },
                            tierToArchive: {
                                daysAfterModificationGreaterThan: 90,
                            },
                            tierToCool: {
                                daysAfterModificationGreaterThan: 30,
                            },
                        },
                    },
                    filters: {
                        blobIndexMatch: [
                            {
                                name: "tag1",
                                op: "==",
                                value: "val1",
                            },
                            {
                                name: "tag2",
                                op: "==",
                                value: "val2",
                            },
                        ],
                        blobTypes: ["blockBlob"],
                        prefixMatch: ["olcmtestcontainer2"],
                    },
                },
                enabled: true,
                name: "olcmtest2",
                type: "Lifecycle",
            },
        ],
    },
    resourceGroupName: "res7687",
});

Create a ManagementPolicy Resource

new ManagementPolicy(name: string, args: ManagementPolicyArgs, opts?: CustomResourceOptions);
def ManagementPolicy(resource_name: str, opts: Optional[ResourceOptions] = None, account_name: Optional[str] = None, management_policy_name: Optional[str] = None, policy: Optional[ManagementPolicySchemaArgs] = None, resource_group_name: Optional[str] = None)
func NewManagementPolicy(ctx *Context, name string, args ManagementPolicyArgs, opts ...ResourceOption) (*ManagementPolicy, error)
public ManagementPolicy(string name, ManagementPolicyArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ManagementPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ManagementPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ManagementPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ManagementPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ManagementPolicy resource accepts the following input properties:

AccountName string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
ManagementPolicyName string
The name of the Storage Account Management Policy. It should always be ‘default’
Policy Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicySchemaArgs
The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
ResourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
AccountName string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
ManagementPolicyName string
The name of the Storage Account Management Policy. It should always be ‘default’
Policy ManagementPolicySchema
The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
ResourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
accountName string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
managementPolicyName string
The name of the Storage Account Management Policy. It should always be ‘default’
policy ManagementPolicySchema
The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
resourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
account_name str
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
management_policy_name str
The name of the Storage Account Management Policy. It should always be ‘default’
policy ManagementPolicySchemaArgs
The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
resource_group_name str
The name of the resource group within the user’s subscription. The name is case insensitive.

Outputs

All input properties are implicitly available as output properties. Additionally, the ManagementPolicy resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
LastModifiedTime string
Returns the date and time the ManagementPolicies was last modified.
Name string
The name of the resource
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
Id string
The provider-assigned unique ID for this managed resource.
LastModifiedTime string
Returns the date and time the ManagementPolicies was last modified.
Name string
The name of the resource
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
id string
The provider-assigned unique ID for this managed resource.
lastModifiedTime string
Returns the date and time the ManagementPolicies was last modified.
name string
The name of the resource
type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
id str
The provider-assigned unique ID for this managed resource.
last_modified_time str
Returns the date and time the ManagementPolicies was last modified.
name str
The name of the resource
type str
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”

Supporting Types

DateAfterCreation

DaysAfterCreationGreaterThan double
Value indicating the age in days after creation
DaysAfterCreationGreaterThan float64
Value indicating the age in days after creation
daysAfterCreationGreaterThan number
Value indicating the age in days after creation
days_after_creation_greater_than float
Value indicating the age in days after creation

DateAfterCreationResponse

DaysAfterCreationGreaterThan double
Value indicating the age in days after creation
DaysAfterCreationGreaterThan float64
Value indicating the age in days after creation
daysAfterCreationGreaterThan number
Value indicating the age in days after creation
days_after_creation_greater_than float
Value indicating the age in days after creation

DateAfterModification

DaysAfterModificationGreaterThan double
Value indicating the age in days after last modification
DaysAfterModificationGreaterThan float64
Value indicating the age in days after last modification
daysAfterModificationGreaterThan number
Value indicating the age in days after last modification
days_after_modification_greater_than float
Value indicating the age in days after last modification

DateAfterModificationResponse

DaysAfterModificationGreaterThan double
Value indicating the age in days after last modification
DaysAfterModificationGreaterThan float64
Value indicating the age in days after last modification
daysAfterModificationGreaterThan number
Value indicating the age in days after last modification
days_after_modification_greater_than float
Value indicating the age in days after last modification

ManagementPolicyAction

BaseBlob Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicyBaseBlobArgs
The management policy action for base blob
Snapshot Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicySnapShotArgs
The management policy action for snapshot
BaseBlob ManagementPolicyBaseBlob
The management policy action for base blob
Snapshot ManagementPolicySnapShot
The management policy action for snapshot
baseBlob ManagementPolicyBaseBlob
The management policy action for base blob
snapshot ManagementPolicySnapShot
The management policy action for snapshot
base_blob ManagementPolicyBaseBlobArgs
The management policy action for base blob
snapshot ManagementPolicySnapShotArgs
The management policy action for snapshot

ManagementPolicyActionResponse

BaseBlob Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicyBaseBlobResponseArgs
The management policy action for base blob
Snapshot Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicySnapShotResponseArgs
The management policy action for snapshot
BaseBlob ManagementPolicyBaseBlobResponse
The management policy action for base blob
Snapshot ManagementPolicySnapShotResponse
The management policy action for snapshot
baseBlob ManagementPolicyBaseBlobResponse
The management policy action for base blob
snapshot ManagementPolicySnapShotResponse
The management policy action for snapshot
base_blob ManagementPolicyBaseBlobResponseArgs
The management policy action for base blob
snapshot ManagementPolicySnapShotResponseArgs
The management policy action for snapshot

ManagementPolicyBaseBlob

Delete Pulumi.AzureNextGen.Storage.Inputs.DateAfterModificationArgs
The function to delete the blob
TierToArchive Pulumi.AzureNextGen.Storage.Inputs.DateAfterModificationArgs
The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
TierToCool Pulumi.AzureNextGen.Storage.Inputs.DateAfterModificationArgs
The function to tier blobs to cool storage. Support blobs currently at Hot tier
Delete DateAfterModification
The function to delete the blob
TierToArchive DateAfterModification
The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
TierToCool DateAfterModification
The function to tier blobs to cool storage. Support blobs currently at Hot tier
delete DateAfterModification
The function to delete the blob
tierToArchive DateAfterModification
The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
tierToCool DateAfterModification
The function to tier blobs to cool storage. Support blobs currently at Hot tier
delete DateAfterModificationArgs
The function to delete the blob
tier_to_archive DateAfterModificationArgs
The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
tier_to_cool DateAfterModificationArgs
The function to tier blobs to cool storage. Support blobs currently at Hot tier

ManagementPolicyBaseBlobResponse

Delete Pulumi.AzureNextGen.Storage.Inputs.DateAfterModificationResponseArgs
The function to delete the blob
TierToArchive Pulumi.AzureNextGen.Storage.Inputs.DateAfterModificationResponseArgs
The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
TierToCool Pulumi.AzureNextGen.Storage.Inputs.DateAfterModificationResponseArgs
The function to tier blobs to cool storage. Support blobs currently at Hot tier
Delete DateAfterModificationResponse
The function to delete the blob
TierToArchive DateAfterModificationResponse
The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
TierToCool DateAfterModificationResponse
The function to tier blobs to cool storage. Support blobs currently at Hot tier
delete DateAfterModificationResponse
The function to delete the blob
tierToArchive DateAfterModificationResponse
The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
tierToCool DateAfterModificationResponse
The function to tier blobs to cool storage. Support blobs currently at Hot tier
delete DateAfterModificationResponseArgs
The function to delete the blob
tier_to_archive DateAfterModificationResponseArgs
The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
tier_to_cool DateAfterModificationResponseArgs
The function to tier blobs to cool storage. Support blobs currently at Hot tier

ManagementPolicyDefinition

Actions Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicyActionArgs
An object that defines the action set.
Filters Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicyFilterArgs
An object that defines the filter set.
Actions ManagementPolicyAction
An object that defines the action set.
Filters ManagementPolicyFilter
An object that defines the filter set.
actions ManagementPolicyAction
An object that defines the action set.
filters ManagementPolicyFilter
An object that defines the filter set.
actions ManagementPolicyActionArgs
An object that defines the action set.
filters ManagementPolicyFilterArgs
An object that defines the filter set.

ManagementPolicyDefinitionResponse

Actions Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicyActionResponseArgs
An object that defines the action set.
Filters Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicyFilterResponseArgs
An object that defines the filter set.
Actions ManagementPolicyActionResponse
An object that defines the action set.
Filters ManagementPolicyFilterResponse
An object that defines the filter set.
actions ManagementPolicyActionResponse
An object that defines the action set.
filters ManagementPolicyFilterResponse
An object that defines the filter set.
actions ManagementPolicyActionResponseArgs
An object that defines the action set.
filters ManagementPolicyFilterResponseArgs
An object that defines the filter set.

ManagementPolicyFilter

BlobTypes List<string>
An array of predefined enum values. Only blockBlob is supported.
BlobIndexMatch List<Pulumi.AzureNextGen.Storage.Inputs.TagFilterArgs>
An array of blob index tag based filters, there can be at most 10 tag filters
PrefixMatch List<string>
An array of strings for prefixes to be match.
BlobTypes []string
An array of predefined enum values. Only blockBlob is supported.
BlobIndexMatch []TagFilter
An array of blob index tag based filters, there can be at most 10 tag filters
PrefixMatch []string
An array of strings for prefixes to be match.
blobTypes string[]
An array of predefined enum values. Only blockBlob is supported.
blobIndexMatch TagFilter[]
An array of blob index tag based filters, there can be at most 10 tag filters
prefixMatch string[]
An array of strings for prefixes to be match.
blob_types Sequence[str]
An array of predefined enum values. Only blockBlob is supported.
blob_index_match Sequence[TagFilterArgs]
An array of blob index tag based filters, there can be at most 10 tag filters
prefix_match Sequence[str]
An array of strings for prefixes to be match.

ManagementPolicyFilterResponse

BlobTypes List<string>
An array of predefined enum values. Only blockBlob is supported.
BlobIndexMatch List<Pulumi.AzureNextGen.Storage.Inputs.TagFilterResponseArgs>
An array of blob index tag based filters, there can be at most 10 tag filters
PrefixMatch List<string>
An array of strings for prefixes to be match.
BlobTypes []string
An array of predefined enum values. Only blockBlob is supported.
BlobIndexMatch []TagFilterResponse
An array of blob index tag based filters, there can be at most 10 tag filters
PrefixMatch []string
An array of strings for prefixes to be match.
blobTypes string[]
An array of predefined enum values. Only blockBlob is supported.
blobIndexMatch TagFilterResponse[]
An array of blob index tag based filters, there can be at most 10 tag filters
prefixMatch string[]
An array of strings for prefixes to be match.
blob_types Sequence[str]
An array of predefined enum values. Only blockBlob is supported.
blob_index_match Sequence[TagFilterResponseArgs]
An array of blob index tag based filters, there can be at most 10 tag filters
prefix_match Sequence[str]
An array of strings for prefixes to be match.

ManagementPolicyRule

Definition Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicyDefinitionArgs
An object that defines the Lifecycle rule.
Name string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
Type string | Pulumi.AzureNextGen.Storage.RuleType
The valid value is Lifecycle
Enabled bool
Rule is enabled if set to true.
Definition ManagementPolicyDefinition
An object that defines the Lifecycle rule.
Name string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
Type string | RuleType
The valid value is Lifecycle
Enabled bool
Rule is enabled if set to true.
definition ManagementPolicyDefinition
An object that defines the Lifecycle rule.
name string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
type string | RuleType
The valid value is Lifecycle
enabled boolean
Rule is enabled if set to true.
definition ManagementPolicyDefinitionArgs
An object that defines the Lifecycle rule.
name str
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
type str | RuleType
The valid value is Lifecycle
enabled bool
Rule is enabled if set to true.

ManagementPolicyRuleResponse

Definition Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicyDefinitionResponseArgs
An object that defines the Lifecycle rule.
Name string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
Type string
The valid value is Lifecycle
Enabled bool
Rule is enabled if set to true.
Definition ManagementPolicyDefinitionResponse
An object that defines the Lifecycle rule.
Name string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
Type string
The valid value is Lifecycle
Enabled bool
Rule is enabled if set to true.
definition ManagementPolicyDefinitionResponse
An object that defines the Lifecycle rule.
name string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
type string
The valid value is Lifecycle
enabled boolean
Rule is enabled if set to true.
definition ManagementPolicyDefinitionResponseArgs
An object that defines the Lifecycle rule.
name str
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
type str
The valid value is Lifecycle
enabled bool
Rule is enabled if set to true.

ManagementPolicySchema

Rules List<Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicyRuleArgs>
The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
Rules []ManagementPolicyRule
The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
rules ManagementPolicyRule[]
The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
rules Sequence[ManagementPolicyRuleArgs]
The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

ManagementPolicySchemaResponse

Rules List<Pulumi.AzureNextGen.Storage.Inputs.ManagementPolicyRuleResponseArgs>
The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
Rules []ManagementPolicyRuleResponse
The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
rules ManagementPolicyRuleResponse[]
The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
rules Sequence[ManagementPolicyRuleResponseArgs]
The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

ManagementPolicySnapShot

Delete Pulumi.AzureNextGen.Storage.Inputs.DateAfterCreationArgs
The function to delete the blob snapshot
Delete DateAfterCreation
The function to delete the blob snapshot
delete DateAfterCreation
The function to delete the blob snapshot
delete DateAfterCreationArgs
The function to delete the blob snapshot

ManagementPolicySnapShotResponse

Delete Pulumi.AzureNextGen.Storage.Inputs.DateAfterCreationResponseArgs
The function to delete the blob snapshot
Delete DateAfterCreationResponse
The function to delete the blob snapshot
delete DateAfterCreationResponse
The function to delete the blob snapshot
delete DateAfterCreationResponseArgs
The function to delete the blob snapshot

RuleType

Lifecycle
Lifecycle
RuleTypeLifecycle
Lifecycle
Lifecycle
Lifecycle
LIFECYCLE
Lifecycle

TagFilter

Name string
This is the filter tag name, it can have 1 - 128 characters
Op string
This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
Value string
This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
Name string
This is the filter tag name, it can have 1 - 128 characters
Op string
This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
Value string
This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
name string
This is the filter tag name, it can have 1 - 128 characters
op string
This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
value string
This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
name str
This is the filter tag name, it can have 1 - 128 characters
op str
This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
value str
This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters

TagFilterResponse

Name string
This is the filter tag name, it can have 1 - 128 characters
Op string
This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
Value string
This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
Name string
This is the filter tag name, it can have 1 - 128 characters
Op string
This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
Value string
This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
name string
This is the filter tag name, it can have 1 - 128 characters
op string
This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
value string
This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
name str
This is the filter tag name, it can have 1 - 128 characters
op str
This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
value str
This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-nextgen:storage/latest:ManagementPolicy DefaultManagementPolicy /subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Storage/storageAccounts/sto288/managementPolicies/default 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-nextgen
License
Apache-2.0