1. Packages
  2. Azure Classic
  3. API Docs
  4. storage
  5. getPolicy

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.storage.getPolicy

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.storage.getAccount({
    name: "storageaccountname",
    resourceGroupName: "resourcegroupname",
});
const exampleGetPolicy = example.then(example => azure.storage.getPolicy({
    storageAccountId: example.id,
}));
Copy
import pulumi
import pulumi_azure as azure

example = azure.storage.get_account(name="storageaccountname",
    resource_group_name="resourcegroupname")
example_get_policy = azure.storage.get_policy(storage_account_id=example.id)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := storage.LookupAccount(ctx, &storage.LookupAccountArgs{
			Name:              "storageaccountname",
			ResourceGroupName: pulumi.StringRef("resourcegroupname"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = storage.GetPolicy(ctx, &storage.GetPolicyArgs{
			StorageAccountId: example.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.Storage.GetAccount.Invoke(new()
    {
        Name = "storageaccountname",
        ResourceGroupName = "resourcegroupname",
    });

    var exampleGetPolicy = Azure.Storage.GetPolicy.Invoke(new()
    {
        StorageAccountId = example.Apply(getAccountResult => getAccountResult.Id),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.storage.StorageFunctions;
import com.pulumi.azure.storage.inputs.GetAccountArgs;
import com.pulumi.azure.storage.inputs.GetPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = StorageFunctions.getAccount(GetAccountArgs.builder()
            .name("storageaccountname")
            .resourceGroupName("resourcegroupname")
            .build());

        final var exampleGetPolicy = StorageFunctions.getPolicy(GetPolicyArgs.builder()
            .storageAccountId(example.applyValue(getAccountResult -> getAccountResult.id()))
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:storage:getAccount
      arguments:
        name: storageaccountname
        resourceGroupName: resourcegroupname
  exampleGetPolicy:
    fn::invoke:
      function: azure:storage:getPolicy
      arguments:
        storageAccountId: ${example.id}
Copy

Using getPolicy

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>
Copy
def get_policy(storage_account_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetPolicyResult
def get_policy_output(storage_account_id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]
Copy
func GetPolicy(ctx *Context, args *GetPolicyArgs, opts ...InvokeOption) (*GetPolicyResult, error)
func GetPolicyOutput(ctx *Context, args *GetPolicyOutputArgs, opts ...InvokeOption) GetPolicyResultOutput
Copy

> Note: This function is named GetPolicy in the Go SDK.

public static class GetPolicy 
{
    public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:storage/getPolicy:getPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

StorageAccountId This property is required. string
Specifies the id of the storage account to retrieve the management policy for.
StorageAccountId This property is required. string
Specifies the id of the storage account to retrieve the management policy for.
storageAccountId This property is required. String
Specifies the id of the storage account to retrieve the management policy for.
storageAccountId This property is required. string
Specifies the id of the storage account to retrieve the management policy for.
storage_account_id This property is required. str
Specifies the id of the storage account to retrieve the management policy for.
storageAccountId This property is required. String
Specifies the id of the storage account to retrieve the management policy for.

getPolicy Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Rules List<GetPolicyRule>
supports the following:
StorageAccountId string
Id string
The provider-assigned unique ID for this managed resource.
Rules []GetPolicyRule
supports the following:
StorageAccountId string
id String
The provider-assigned unique ID for this managed resource.
rules List<GetPolicyRule>
supports the following:
storageAccountId String
id string
The provider-assigned unique ID for this managed resource.
rules GetPolicyRule[]
supports the following:
storageAccountId string
id str
The provider-assigned unique ID for this managed resource.
rules Sequence[GetPolicyRule]
supports the following:
storage_account_id str
id String
The provider-assigned unique ID for this managed resource.
rules List<Property Map>
supports the following:
storageAccountId String

Supporting Types

GetPolicyRule

Actions This property is required. List<GetPolicyRuleAction>
An actions block as documented below.
Enabled This property is required. bool
Boolean to specify whether the rule is enabled.
Filters This property is required. List<GetPolicyRuleFilter>
A filter block as documented below.
Name This property is required. string
The filter tag name used for tag based filtering for blob objects.
Actions This property is required. []GetPolicyRuleAction
An actions block as documented below.
Enabled This property is required. bool
Boolean to specify whether the rule is enabled.
Filters This property is required. []GetPolicyRuleFilter
A filter block as documented below.
Name This property is required. string
The filter tag name used for tag based filtering for blob objects.
actions This property is required. List<GetPolicyRuleAction>
An actions block as documented below.
enabled This property is required. Boolean
Boolean to specify whether the rule is enabled.
filters This property is required. List<GetPolicyRuleFilter>
A filter block as documented below.
name This property is required. String
The filter tag name used for tag based filtering for blob objects.
actions This property is required. GetPolicyRuleAction[]
An actions block as documented below.
enabled This property is required. boolean
Boolean to specify whether the rule is enabled.
filters This property is required. GetPolicyRuleFilter[]
A filter block as documented below.
name This property is required. string
The filter tag name used for tag based filtering for blob objects.
actions This property is required. Sequence[GetPolicyRuleAction]
An actions block as documented below.
enabled This property is required. bool
Boolean to specify whether the rule is enabled.
filters This property is required. Sequence[GetPolicyRuleFilter]
A filter block as documented below.
name This property is required. str
The filter tag name used for tag based filtering for blob objects.
actions This property is required. List<Property Map>
An actions block as documented below.
enabled This property is required. Boolean
Boolean to specify whether the rule is enabled.
filters This property is required. List<Property Map>
A filter block as documented below.
name This property is required. String
The filter tag name used for tag based filtering for blob objects.

GetPolicyRuleAction

BaseBlobs This property is required. List<GetPolicyRuleActionBaseBlob>
A base_blob block as documented below.
Snapshots This property is required. List<GetPolicyRuleActionSnapshot>
A snapshot block as documented below.
Versions This property is required. List<GetPolicyRuleActionVersion>
A version block as documented below.
BaseBlobs This property is required. []GetPolicyRuleActionBaseBlob
A base_blob block as documented below.
Snapshots This property is required. []GetPolicyRuleActionSnapshot
A snapshot block as documented below.
Versions This property is required. []GetPolicyRuleActionVersion
A version block as documented below.
baseBlobs This property is required. List<GetPolicyRuleActionBaseBlob>
A base_blob block as documented below.
snapshots This property is required. List<GetPolicyRuleActionSnapshot>
A snapshot block as documented below.
versions This property is required. List<GetPolicyRuleActionVersion>
A version block as documented below.
baseBlobs This property is required. GetPolicyRuleActionBaseBlob[]
A base_blob block as documented below.
snapshots This property is required. GetPolicyRuleActionSnapshot[]
A snapshot block as documented below.
versions This property is required. GetPolicyRuleActionVersion[]
A version block as documented below.
base_blobs This property is required. Sequence[GetPolicyRuleActionBaseBlob]
A base_blob block as documented below.
snapshots This property is required. Sequence[GetPolicyRuleActionSnapshot]
A snapshot block as documented below.
versions This property is required. Sequence[GetPolicyRuleActionVersion]
A version block as documented below.
baseBlobs This property is required. List<Property Map>
A base_blob block as documented below.
snapshots This property is required. List<Property Map>
A snapshot block as documented below.
versions This property is required. List<Property Map>
A version block as documented below.

GetPolicyRuleActionBaseBlob

AutoTierToHotFromCoolEnabled This property is required. bool
Whether a blob should automatically be tiered from cool back to hot if it's accessed again after being tiered to cool.
DeleteAfterDaysSinceCreationGreaterThan This property is required. int
The age in days after creation to delete the blob snapshot.
DeleteAfterDaysSinceLastAccessTimeGreaterThan This property is required. int
The age in days after last access time to delete the blob.
DeleteAfterDaysSinceModificationGreaterThan This property is required. int
The age in days after last modification to delete the blob.
TierToArchiveAfterDaysSinceCreationGreaterThan This property is required. int
The age in days after creation to archive storage.
TierToArchiveAfterDaysSinceLastAccessTimeGreaterThan This property is required. int
The age in days after last access time to tier blobs to archive storage.
TierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. int
The age in days after last tier change to the blobs to skip to be archived.
TierToArchiveAfterDaysSinceModificationGreaterThan This property is required. int
The age in days after last modification to tier blobs to archive storage.
TierToColdAfterDaysSinceCreationGreaterThan This property is required. int
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
TierToColdAfterDaysSinceLastAccessTimeGreaterThan This property is required. int
The age in days after last access time to tier blobs to cold storage. Supports blob currently at Hot tier.
TierToColdAfterDaysSinceModificationGreaterThan This property is required. int
The age in days after last modification to tier blobs to cold storage. Supports blob currently at Hot tier.
TierToCoolAfterDaysSinceCreationGreaterThan This property is required. int
Optional The age in days after creation to cool storage. Supports blob currently at Hot tier.
TierToCoolAfterDaysSinceLastAccessTimeGreaterThan This property is required. int
The age in days after last access time to tier blobs to cool storage. Supports blob currently at Hot tier.
TierToCoolAfterDaysSinceModificationGreaterThan This property is required. int
The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier.
AutoTierToHotFromCoolEnabled This property is required. bool
Whether a blob should automatically be tiered from cool back to hot if it's accessed again after being tiered to cool.
DeleteAfterDaysSinceCreationGreaterThan This property is required. int
The age in days after creation to delete the blob snapshot.
DeleteAfterDaysSinceLastAccessTimeGreaterThan This property is required. int
The age in days after last access time to delete the blob.
DeleteAfterDaysSinceModificationGreaterThan This property is required. int
The age in days after last modification to delete the blob.
TierToArchiveAfterDaysSinceCreationGreaterThan This property is required. int
The age in days after creation to archive storage.
TierToArchiveAfterDaysSinceLastAccessTimeGreaterThan This property is required. int
The age in days after last access time to tier blobs to archive storage.
TierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. int
The age in days after last tier change to the blobs to skip to be archived.
TierToArchiveAfterDaysSinceModificationGreaterThan This property is required. int
The age in days after last modification to tier blobs to archive storage.
TierToColdAfterDaysSinceCreationGreaterThan This property is required. int
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
TierToColdAfterDaysSinceLastAccessTimeGreaterThan This property is required. int
The age in days after last access time to tier blobs to cold storage. Supports blob currently at Hot tier.
TierToColdAfterDaysSinceModificationGreaterThan This property is required. int
The age in days after last modification to tier blobs to cold storage. Supports blob currently at Hot tier.
TierToCoolAfterDaysSinceCreationGreaterThan This property is required. int
Optional The age in days after creation to cool storage. Supports blob currently at Hot tier.
TierToCoolAfterDaysSinceLastAccessTimeGreaterThan This property is required. int
The age in days after last access time to tier blobs to cool storage. Supports blob currently at Hot tier.
TierToCoolAfterDaysSinceModificationGreaterThan This property is required. int
The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier.
autoTierToHotFromCoolEnabled This property is required. Boolean
Whether a blob should automatically be tiered from cool back to hot if it's accessed again after being tiered to cool.
deleteAfterDaysSinceCreationGreaterThan This property is required. Integer
The age in days after creation to delete the blob snapshot.
deleteAfterDaysSinceLastAccessTimeGreaterThan This property is required. Integer
The age in days after last access time to delete the blob.
deleteAfterDaysSinceModificationGreaterThan This property is required. Integer
The age in days after last modification to delete the blob.
tierToArchiveAfterDaysSinceCreationGreaterThan This property is required. Integer
The age in days after creation to archive storage.
tierToArchiveAfterDaysSinceLastAccessTimeGreaterThan This property is required. Integer
The age in days after last access time to tier blobs to archive storage.
tierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. Integer
The age in days after last tier change to the blobs to skip to be archived.
tierToArchiveAfterDaysSinceModificationGreaterThan This property is required. Integer
The age in days after last modification to tier blobs to archive storage.
tierToColdAfterDaysSinceCreationGreaterThan This property is required. Integer
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
tierToColdAfterDaysSinceLastAccessTimeGreaterThan This property is required. Integer
The age in days after last access time to tier blobs to cold storage. Supports blob currently at Hot tier.
tierToColdAfterDaysSinceModificationGreaterThan This property is required. Integer
The age in days after last modification to tier blobs to cold storage. Supports blob currently at Hot tier.
tierToCoolAfterDaysSinceCreationGreaterThan This property is required. Integer
Optional The age in days after creation to cool storage. Supports blob currently at Hot tier.
tierToCoolAfterDaysSinceLastAccessTimeGreaterThan This property is required. Integer
The age in days after last access time to tier blobs to cool storage. Supports blob currently at Hot tier.
tierToCoolAfterDaysSinceModificationGreaterThan This property is required. Integer
The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier.
autoTierToHotFromCoolEnabled This property is required. boolean
Whether a blob should automatically be tiered from cool back to hot if it's accessed again after being tiered to cool.
deleteAfterDaysSinceCreationGreaterThan This property is required. number
The age in days after creation to delete the blob snapshot.
deleteAfterDaysSinceLastAccessTimeGreaterThan This property is required. number
The age in days after last access time to delete the blob.
deleteAfterDaysSinceModificationGreaterThan This property is required. number
The age in days after last modification to delete the blob.
tierToArchiveAfterDaysSinceCreationGreaterThan This property is required. number
The age in days after creation to archive storage.
tierToArchiveAfterDaysSinceLastAccessTimeGreaterThan This property is required. number
The age in days after last access time to tier blobs to archive storage.
tierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. number
The age in days after last tier change to the blobs to skip to be archived.
tierToArchiveAfterDaysSinceModificationGreaterThan This property is required. number
The age in days after last modification to tier blobs to archive storage.
tierToColdAfterDaysSinceCreationGreaterThan This property is required. number
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
tierToColdAfterDaysSinceLastAccessTimeGreaterThan This property is required. number
The age in days after last access time to tier blobs to cold storage. Supports blob currently at Hot tier.
tierToColdAfterDaysSinceModificationGreaterThan This property is required. number
The age in days after last modification to tier blobs to cold storage. Supports blob currently at Hot tier.
tierToCoolAfterDaysSinceCreationGreaterThan This property is required. number
Optional The age in days after creation to cool storage. Supports blob currently at Hot tier.
tierToCoolAfterDaysSinceLastAccessTimeGreaterThan This property is required. number
The age in days after last access time to tier blobs to cool storage. Supports blob currently at Hot tier.
tierToCoolAfterDaysSinceModificationGreaterThan This property is required. number
The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier.
auto_tier_to_hot_from_cool_enabled This property is required. bool
Whether a blob should automatically be tiered from cool back to hot if it's accessed again after being tiered to cool.
delete_after_days_since_creation_greater_than This property is required. int
The age in days after creation to delete the blob snapshot.
delete_after_days_since_last_access_time_greater_than This property is required. int
The age in days after last access time to delete the blob.
delete_after_days_since_modification_greater_than This property is required. int
The age in days after last modification to delete the blob.
tier_to_archive_after_days_since_creation_greater_than This property is required. int
The age in days after creation to archive storage.
tier_to_archive_after_days_since_last_access_time_greater_than This property is required. int
The age in days after last access time to tier blobs to archive storage.
tier_to_archive_after_days_since_last_tier_change_greater_than This property is required. int
The age in days after last tier change to the blobs to skip to be archived.
tier_to_archive_after_days_since_modification_greater_than This property is required. int
The age in days after last modification to tier blobs to archive storage.
tier_to_cold_after_days_since_creation_greater_than This property is required. int
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
tier_to_cold_after_days_since_last_access_time_greater_than This property is required. int
The age in days after last access time to tier blobs to cold storage. Supports blob currently at Hot tier.
tier_to_cold_after_days_since_modification_greater_than This property is required. int
The age in days after last modification to tier blobs to cold storage. Supports blob currently at Hot tier.
tier_to_cool_after_days_since_creation_greater_than This property is required. int
Optional The age in days after creation to cool storage. Supports blob currently at Hot tier.
tier_to_cool_after_days_since_last_access_time_greater_than This property is required. int
The age in days after last access time to tier blobs to cool storage. Supports blob currently at Hot tier.
tier_to_cool_after_days_since_modification_greater_than This property is required. int
The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier.
autoTierToHotFromCoolEnabled This property is required. Boolean
Whether a blob should automatically be tiered from cool back to hot if it's accessed again after being tiered to cool.
deleteAfterDaysSinceCreationGreaterThan This property is required. Number
The age in days after creation to delete the blob snapshot.
deleteAfterDaysSinceLastAccessTimeGreaterThan This property is required. Number
The age in days after last access time to delete the blob.
deleteAfterDaysSinceModificationGreaterThan This property is required. Number
The age in days after last modification to delete the blob.
tierToArchiveAfterDaysSinceCreationGreaterThan This property is required. Number
The age in days after creation to archive storage.
tierToArchiveAfterDaysSinceLastAccessTimeGreaterThan This property is required. Number
The age in days after last access time to tier blobs to archive storage.
tierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. Number
The age in days after last tier change to the blobs to skip to be archived.
tierToArchiveAfterDaysSinceModificationGreaterThan This property is required. Number
The age in days after last modification to tier blobs to archive storage.
tierToColdAfterDaysSinceCreationGreaterThan This property is required. Number
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
tierToColdAfterDaysSinceLastAccessTimeGreaterThan This property is required. Number
The age in days after last access time to tier blobs to cold storage. Supports blob currently at Hot tier.
tierToColdAfterDaysSinceModificationGreaterThan This property is required. Number
The age in days after last modification to tier blobs to cold storage. Supports blob currently at Hot tier.
tierToCoolAfterDaysSinceCreationGreaterThan This property is required. Number
Optional The age in days after creation to cool storage. Supports blob currently at Hot tier.
tierToCoolAfterDaysSinceLastAccessTimeGreaterThan This property is required. Number
The age in days after last access time to tier blobs to cool storage. Supports blob currently at Hot tier.
tierToCoolAfterDaysSinceModificationGreaterThan This property is required. Number
The age in days after last modification to tier blobs to cool storage. Supports blob currently at Hot tier.

GetPolicyRuleActionSnapshot

ChangeTierToArchiveAfterDaysSinceCreation This property is required. int
The age in days after creation to tier blob version to archive storage.
ChangeTierToCoolAfterDaysSinceCreation This property is required. int
The age in days after creation to tier blob version to cool storage.
DeleteAfterDaysSinceCreationGreaterThan This property is required. int
The age in days after creation to delete the blob snapshot.
TierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. int
The age in days after last tier change to the blobs to skip to be archived.
TierToColdAfterDaysSinceCreationGreaterThan This property is required. int
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
ChangeTierToArchiveAfterDaysSinceCreation This property is required. int
The age in days after creation to tier blob version to archive storage.
ChangeTierToCoolAfterDaysSinceCreation This property is required. int
The age in days after creation to tier blob version to cool storage.
DeleteAfterDaysSinceCreationGreaterThan This property is required. int
The age in days after creation to delete the blob snapshot.
TierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. int
The age in days after last tier change to the blobs to skip to be archived.
TierToColdAfterDaysSinceCreationGreaterThan This property is required. int
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
changeTierToArchiveAfterDaysSinceCreation This property is required. Integer
The age in days after creation to tier blob version to archive storage.
changeTierToCoolAfterDaysSinceCreation This property is required. Integer
The age in days after creation to tier blob version to cool storage.
deleteAfterDaysSinceCreationGreaterThan This property is required. Integer
The age in days after creation to delete the blob snapshot.
tierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. Integer
The age in days after last tier change to the blobs to skip to be archived.
tierToColdAfterDaysSinceCreationGreaterThan This property is required. Integer
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
changeTierToArchiveAfterDaysSinceCreation This property is required. number
The age in days after creation to tier blob version to archive storage.
changeTierToCoolAfterDaysSinceCreation This property is required. number
The age in days after creation to tier blob version to cool storage.
deleteAfterDaysSinceCreationGreaterThan This property is required. number
The age in days after creation to delete the blob snapshot.
tierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. number
The age in days after last tier change to the blobs to skip to be archived.
tierToColdAfterDaysSinceCreationGreaterThan This property is required. number
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
change_tier_to_archive_after_days_since_creation This property is required. int
The age in days after creation to tier blob version to archive storage.
change_tier_to_cool_after_days_since_creation This property is required. int
The age in days after creation to tier blob version to cool storage.
delete_after_days_since_creation_greater_than This property is required. int
The age in days after creation to delete the blob snapshot.
tier_to_archive_after_days_since_last_tier_change_greater_than This property is required. int
The age in days after last tier change to the blobs to skip to be archived.
tier_to_cold_after_days_since_creation_greater_than This property is required. int
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
changeTierToArchiveAfterDaysSinceCreation This property is required. Number
The age in days after creation to tier blob version to archive storage.
changeTierToCoolAfterDaysSinceCreation This property is required. Number
The age in days after creation to tier blob version to cool storage.
deleteAfterDaysSinceCreationGreaterThan This property is required. Number
The age in days after creation to delete the blob snapshot.
tierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. Number
The age in days after last tier change to the blobs to skip to be archived.
tierToColdAfterDaysSinceCreationGreaterThan This property is required. Number
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.

GetPolicyRuleActionVersion

ChangeTierToArchiveAfterDaysSinceCreation This property is required. int
The age in days after creation to tier blob version to archive storage.
ChangeTierToCoolAfterDaysSinceCreation This property is required. int
The age in days after creation to tier blob version to cool storage.
DeleteAfterDaysSinceCreation This property is required. int
The age in days after creation to delete the blob version.
TierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. int
The age in days after last tier change to the blobs to skip to be archived.
TierToColdAfterDaysSinceCreationGreaterThan This property is required. int
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
ChangeTierToArchiveAfterDaysSinceCreation This property is required. int
The age in days after creation to tier blob version to archive storage.
ChangeTierToCoolAfterDaysSinceCreation This property is required. int
The age in days after creation to tier blob version to cool storage.
DeleteAfterDaysSinceCreation This property is required. int
The age in days after creation to delete the blob version.
TierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. int
The age in days after last tier change to the blobs to skip to be archived.
TierToColdAfterDaysSinceCreationGreaterThan This property is required. int
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
changeTierToArchiveAfterDaysSinceCreation This property is required. Integer
The age in days after creation to tier blob version to archive storage.
changeTierToCoolAfterDaysSinceCreation This property is required. Integer
The age in days after creation to tier blob version to cool storage.
deleteAfterDaysSinceCreation This property is required. Integer
The age in days after creation to delete the blob version.
tierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. Integer
The age in days after last tier change to the blobs to skip to be archived.
tierToColdAfterDaysSinceCreationGreaterThan This property is required. Integer
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
changeTierToArchiveAfterDaysSinceCreation This property is required. number
The age in days after creation to tier blob version to archive storage.
changeTierToCoolAfterDaysSinceCreation This property is required. number
The age in days after creation to tier blob version to cool storage.
deleteAfterDaysSinceCreation This property is required. number
The age in days after creation to delete the blob version.
tierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. number
The age in days after last tier change to the blobs to skip to be archived.
tierToColdAfterDaysSinceCreationGreaterThan This property is required. number
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
change_tier_to_archive_after_days_since_creation This property is required. int
The age in days after creation to tier blob version to archive storage.
change_tier_to_cool_after_days_since_creation This property is required. int
The age in days after creation to tier blob version to cool storage.
delete_after_days_since_creation This property is required. int
The age in days after creation to delete the blob version.
tier_to_archive_after_days_since_last_tier_change_greater_than This property is required. int
The age in days after last tier change to the blobs to skip to be archived.
tier_to_cold_after_days_since_creation_greater_than This property is required. int
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.
changeTierToArchiveAfterDaysSinceCreation This property is required. Number
The age in days after creation to tier blob version to archive storage.
changeTierToCoolAfterDaysSinceCreation This property is required. Number
The age in days after creation to tier blob version to cool storage.
deleteAfterDaysSinceCreation This property is required. Number
The age in days after creation to delete the blob version.
tierToArchiveAfterDaysSinceLastTierChangeGreaterThan This property is required. Number
The age in days after last tier change to the blobs to skip to be archived.
tierToColdAfterDaysSinceCreationGreaterThan This property is required. Number
Optional The age in days after creation to cold storage. Supports blob currently at Hot tier.

GetPolicyRuleFilter

BlobTypes This property is required. List<string>
An array of predefined values. Valid options are blockBlob and appendBlob.
MatchBlobIndexTags This property is required. List<GetPolicyRuleFilterMatchBlobIndexTag>
A match_blob_index_tag block as defined below. The block defines the blob index tag based filtering for blob objects.
PrefixMatches This property is required. List<string>
An array of strings for prefixes to be matched.
BlobTypes This property is required. []string
An array of predefined values. Valid options are blockBlob and appendBlob.
MatchBlobIndexTags This property is required. []GetPolicyRuleFilterMatchBlobIndexTag
A match_blob_index_tag block as defined below. The block defines the blob index tag based filtering for blob objects.
PrefixMatches This property is required. []string
An array of strings for prefixes to be matched.
blobTypes This property is required. List<String>
An array of predefined values. Valid options are blockBlob and appendBlob.
matchBlobIndexTags This property is required. List<GetPolicyRuleFilterMatchBlobIndexTag>
A match_blob_index_tag block as defined below. The block defines the blob index tag based filtering for blob objects.
prefixMatches This property is required. List<String>
An array of strings for prefixes to be matched.
blobTypes This property is required. string[]
An array of predefined values. Valid options are blockBlob and appendBlob.
matchBlobIndexTags This property is required. GetPolicyRuleFilterMatchBlobIndexTag[]
A match_blob_index_tag block as defined below. The block defines the blob index tag based filtering for blob objects.
prefixMatches This property is required. string[]
An array of strings for prefixes to be matched.
blob_types This property is required. Sequence[str]
An array of predefined values. Valid options are blockBlob and appendBlob.
match_blob_index_tags This property is required. Sequence[GetPolicyRuleFilterMatchBlobIndexTag]
A match_blob_index_tag block as defined below. The block defines the blob index tag based filtering for blob objects.
prefix_matches This property is required. Sequence[str]
An array of strings for prefixes to be matched.
blobTypes This property is required. List<String>
An array of predefined values. Valid options are blockBlob and appendBlob.
matchBlobIndexTags This property is required. List<Property Map>
A match_blob_index_tag block as defined below. The block defines the blob index tag based filtering for blob objects.
prefixMatches This property is required. List<String>
An array of strings for prefixes to be matched.

GetPolicyRuleFilterMatchBlobIndexTag

Name This property is required. string
The filter tag name used for tag based filtering for blob objects.
Operation This property is required. string
The comparison operator which is used for object comparison and filtering. Possible value is ==. Defaults to ==.
Value This property is required. string
The filter tag value used for tag based filtering for blob objects.
Name This property is required. string
The filter tag name used for tag based filtering for blob objects.
Operation This property is required. string
The comparison operator which is used for object comparison and filtering. Possible value is ==. Defaults to ==.
Value This property is required. string
The filter tag value used for tag based filtering for blob objects.
name This property is required. String
The filter tag name used for tag based filtering for blob objects.
operation This property is required. String
The comparison operator which is used for object comparison and filtering. Possible value is ==. Defaults to ==.
value This property is required. String
The filter tag value used for tag based filtering for blob objects.
name This property is required. string
The filter tag name used for tag based filtering for blob objects.
operation This property is required. string
The comparison operator which is used for object comparison and filtering. Possible value is ==. Defaults to ==.
value This property is required. string
The filter tag value used for tag based filtering for blob objects.
name This property is required. str
The filter tag name used for tag based filtering for blob objects.
operation This property is required. str
The comparison operator which is used for object comparison and filtering. Possible value is ==. Defaults to ==.
value This property is required. str
The filter tag value used for tag based filtering for blob objects.
name This property is required. String
The filter tag name used for tag based filtering for blob objects.
operation This property is required. String
The comparison operator which is used for object comparison and filtering. Possible value is ==. Defaults to ==.
value This property is required. String
The filter tag value used for tag based filtering for blob objects.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi