ManagementPolicy

Manages an Azure Storage Account Management Policy.

Create a ManagementPolicy Resource

def ManagementPolicy(resource_name, opts=None, rules=None, storage_account_id=None, __props__=None);
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:

StorageAccountId string

Specifies the id of the storage account to apply the management policy to.

Rules List<ManagementPolicyRuleArgs>

A rule block as documented below.

StorageAccountId string

Specifies the id of the storage account to apply the management policy to.

Rules []ManagementPolicyRule

A rule block as documented below.

storageAccountId string

Specifies the id of the storage account to apply the management policy to.

rules ManagementPolicyRule[]

A rule block as documented below.

storage_account_id str

Specifies the id of the storage account to apply the management policy to.

rules List[ManagementPolicyRule]

A rule block as documented below.

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.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ManagementPolicy Resource

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

public static get(name: string, id: Input<ID>, state?: ManagementPolicyState, opts?: CustomResourceOptions): ManagementPolicy
static get(resource_name, id, opts=None, rules=None, storage_account_id=None, __props__=None);
func GetManagementPolicy(ctx *Context, name string, id IDInput, state *ManagementPolicyState, opts ...ResourceOption) (*ManagementPolicy, error)
public static ManagementPolicy Get(string name, Input<string> id, ManagementPolicyState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Rules List<ManagementPolicyRuleArgs>

A rule block as documented below.

StorageAccountId string

Specifies the id of the storage account to apply the management policy to.

Rules []ManagementPolicyRule

A rule block as documented below.

StorageAccountId string

Specifies the id of the storage account to apply the management policy to.

rules ManagementPolicyRule[]

A rule block as documented below.

storageAccountId string

Specifies the id of the storage account to apply the management policy to.

rules List[ManagementPolicyRule]

A rule block as documented below.

storage_account_id str

Specifies the id of the storage account to apply the management policy to.

Supporting Types

ManagementPolicyRule

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Actions ManagementPolicyRuleActionsArgs

An actions block as documented below.

Enabled bool

Boolean to specify whether the rule is enabled.

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.

Filters ManagementPolicyRuleFiltersArgs

A filter block as documented below.

Actions ManagementPolicyRuleActions

An actions block as documented below.

Enabled bool

Boolean to specify whether the rule is enabled.

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.

Filters ManagementPolicyRuleFilters

A filter block as documented below.

actions ManagementPolicyRuleActions

An actions block as documented below.

enabled boolean

Boolean to specify whether the rule is enabled.

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.

filters ManagementPolicyRuleFilters

A filter block as documented below.

actions Dict[ManagementPolicyRuleActions]

An actions block as documented below.

enabled bool

Boolean to specify whether the rule is enabled.

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.

filters Dict[ManagementPolicyRuleFilters]

A filter block as documented below.

ManagementPolicyRuleActions

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

BaseBlob ManagementPolicyRuleActionsBaseBlobArgs

A base_blob block as documented below.

Snapshot ManagementPolicyRuleActionsSnapshotArgs

A snapshot block as documented below.

BaseBlob ManagementPolicyRuleActionsBaseBlob

A base_blob block as documented below.

Snapshot ManagementPolicyRuleActionsSnapshot

A snapshot block as documented below.

baseBlob ManagementPolicyRuleActionsBaseBlob

A base_blob block as documented below.

snapshot ManagementPolicyRuleActionsSnapshot

A snapshot block as documented below.

baseBlob Dict[ManagementPolicyRuleActionsBaseBlob]

A base_blob block as documented below.

snapshot Dict[ManagementPolicyRuleActionsSnapshot]

A snapshot block as documented below.

ManagementPolicyRuleActionsBaseBlob

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DeleteAfterDaysSinceModificationGreaterThan int

The age in days after last modification to delete the blob. Must be at least 0.

TierToArchiveAfterDaysSinceModificationGreaterThan int

The age in days after last modification to tier blobs to archive storage. Supports blob currently at Hot or Cool tier. Must be at least 0.

TierToCoolAfterDaysSinceModificationGreaterThan int

The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier. Must be at least 0.

DeleteAfterDaysSinceModificationGreaterThan int

The age in days after last modification to delete the blob. Must be at least 0.

TierToArchiveAfterDaysSinceModificationGreaterThan int

The age in days after last modification to tier blobs to archive storage. Supports blob currently at Hot or Cool tier. Must be at least 0.

TierToCoolAfterDaysSinceModificationGreaterThan int

The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier. Must be at least 0.

deleteAfterDaysSinceModificationGreaterThan number

The age in days after last modification to delete the blob. Must be at least 0.

tierToArchiveAfterDaysSinceModificationGreaterThan number

The age in days after last modification to tier blobs to archive storage. Supports blob currently at Hot or Cool tier. Must be at least 0.

tierToCoolAfterDaysSinceModificationGreaterThan number

The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier. Must be at least 0.

deleteAfterDaysSinceModificationGreaterThan float

The age in days after last modification to delete the blob. Must be at least 0.

tierToArchiveAfterDaysSinceModificationGreaterThan float

The age in days after last modification to tier blobs to archive storage. Supports blob currently at Hot or Cool tier. Must be at least 0.

tierToCoolAfterDaysSinceModificationGreaterThan float

The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier. Must be at least 0.

ManagementPolicyRuleActionsSnapshot

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DeleteAfterDaysSinceCreationGreaterThan int

The age in days after create to delete the snaphot. Must be at least 0.

DeleteAfterDaysSinceCreationGreaterThan int

The age in days after create to delete the snaphot. Must be at least 0.

deleteAfterDaysSinceCreationGreaterThan number

The age in days after create to delete the snaphot. Must be at least 0.

deleteAfterDaysSinceCreationGreaterThan float

The age in days after create to delete the snaphot. Must be at least 0.

ManagementPolicyRuleFilters

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

BlobTypes List<string>

An array of predefined values. Only blockBlob is supported.

PrefixMatches List<string>

An array of strings for prefixes to be matched.

BlobTypes []string

An array of predefined values. Only blockBlob is supported.

PrefixMatches []string

An array of strings for prefixes to be matched.

blobTypes string[]

An array of predefined values. Only blockBlob is supported.

prefixMatches string[]

An array of strings for prefixes to be matched.

blobTypes List[str]

An array of predefined values. Only blockBlob is supported.

prefixMatches List[str]

An array of strings for prefixes to be matched.

Package Details

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