azure-native.storage.ManagementPolicy
Explore with Pulumi AI
The Get Storage Account ManagementPolicies operation response. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2021-02-01.
Other available API versions: 2018-03-01-preview, 2023-01-01, 2023-04-01, 2023-05-01.
Example Usage
StorageAccountSetManagementPolicies
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
{
AccountName = "sto9699",
ManagementPolicyName = "default",
Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
{
Rules = new[]
{
new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 1000,
},
TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 90,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 30,
},
},
Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
},
},
Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
{
BlobTypes = new[]
{
"blockBlob",
},
PrefixMatch = new[]
{
"olcmtestcontainer1",
},
},
},
Enabled = true,
Name = "olcmtest1",
Type = AzureNative.Storage.RuleType.Lifecycle,
},
new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 1000,
},
TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 90,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 30,
},
},
},
Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
{
BlobIndexMatch = new[]
{
new AzureNative.Storage.Inputs.TagFilterArgs
{
Name = "tag1",
Op = "==",
Value = "val1",
},
new AzureNative.Storage.Inputs.TagFilterArgs
{
Name = "tag2",
Op = "==",
Value = "val2",
},
},
BlobTypes = new[]
{
"blockBlob",
},
PrefixMatch = new[]
{
"olcmtestcontainer2",
},
},
},
Enabled = true,
Name = "olcmtest2",
Type = AzureNative.Storage.RuleType.Lifecycle,
},
},
},
ResourceGroupName = "res7687",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/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(storage.RuleTypeLifecycle),
},
&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(storage.RuleTypeLifecycle),
},
},
},
ResourceGroupName: pulumi.String("res7687"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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) {
var managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
.accountName("sto9699")
.managementPolicyName("default")
.policy(ManagementPolicySchemaArgs.builder()
.rules(
ManagementPolicyRuleArgs.builder()
.definition(ManagementPolicyDefinitionArgs.builder()
.actions(ManagementPolicyActionArgs.builder()
.baseBlob(ManagementPolicyBaseBlobArgs.builder()
.delete(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(1000)
.build())
.tierToArchive(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(90)
.build())
.tierToCool(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(30)
.build())
.build())
.snapshot(ManagementPolicySnapShotArgs.builder()
.delete(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.build())
.build())
.filters(ManagementPolicyFilterArgs.builder()
.blobTypes("blockBlob")
.prefixMatch("olcmtestcontainer1")
.build())
.build())
.enabled(true)
.name("olcmtest1")
.type("Lifecycle")
.build(),
ManagementPolicyRuleArgs.builder()
.definition(ManagementPolicyDefinitionArgs.builder()
.actions(ManagementPolicyActionArgs.builder()
.baseBlob(ManagementPolicyBaseBlobArgs.builder()
.delete(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(1000)
.build())
.tierToArchive(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(90)
.build())
.tierToCool(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(30)
.build())
.build())
.build())
.filters(ManagementPolicyFilterArgs.builder()
.blobIndexMatch(
TagFilterArgs.builder()
.name("tag1")
.op("==")
.value("val1")
.build(),
TagFilterArgs.builder()
.name("tag2")
.op("==")
.value("val2")
.build())
.blobTypes("blockBlob")
.prefixMatch("olcmtestcontainer2")
.build())
.build())
.enabled(true)
.name("olcmtest2")
.type("Lifecycle")
.build())
.build())
.resourceGroupName("res7687")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
account_name="sto9699",
management_policy_name="default",
policy=azure_native.storage.ManagementPolicySchemaArgs(
rules=[
azure_native.storage.ManagementPolicyRuleArgs(
definition=azure_native.storage.ManagementPolicyDefinitionArgs(
actions=azure_native.storage.ManagementPolicyActionArgs(
base_blob=azure_native.storage.ManagementPolicyBaseBlobArgs(
delete=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=1000,
),
tier_to_archive=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=90,
),
tier_to_cool=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=30,
),
),
snapshot=azure_native.storage.ManagementPolicySnapShotArgs(
delete=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
),
),
filters=azure_native.storage.ManagementPolicyFilterArgs(
blob_types=["blockBlob"],
prefix_match=["olcmtestcontainer1"],
),
),
enabled=True,
name="olcmtest1",
type=azure_native.storage.RuleType.LIFECYCLE,
),
azure_native.storage.ManagementPolicyRuleArgs(
definition=azure_native.storage.ManagementPolicyDefinitionArgs(
actions=azure_native.storage.ManagementPolicyActionArgs(
base_blob=azure_native.storage.ManagementPolicyBaseBlobArgs(
delete=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=1000,
),
tier_to_archive=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=90,
),
tier_to_cool=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=30,
),
),
),
filters=azure_native.storage.ManagementPolicyFilterArgs(
blob_index_match=[
azure_native.storage.TagFilterArgs(
name="tag1",
op="==",
value="val1",
),
azure_native.storage.TagFilterArgs(
name="tag2",
op="==",
value="val2",
),
],
blob_types=["blockBlob"],
prefix_match=["olcmtestcontainer2"],
),
),
enabled=True,
name="olcmtest2",
type=azure_native.storage.RuleType.LIFECYCLE,
),
],
),
resource_group_name="res7687")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.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: azure_native.storage.RuleType.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: azure_native.storage.RuleType.Lifecycle,
},
],
},
resourceGroupName: "res7687",
});
resources:
managementPolicy:
type: azure-native:storage:ManagementPolicy
properties:
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
StorageAccountSetManagementPolicyColdTierActions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
{
AccountName = "sto9699",
ManagementPolicyName = "default",
Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
{
Rules = new[]
{
new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 1000,
},
TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 90,
},
TierToCold = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 30,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 30,
},
},
Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
TierToCold = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
},
Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
TierToCold = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
},
},
Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
{
BlobTypes = new[]
{
"blockBlob",
},
PrefixMatch = new[]
{
"olcmtestcontainer1",
},
},
},
Enabled = true,
Name = "olcmtest1",
Type = AzureNative.Storage.RuleType.Lifecycle,
},
},
},
ResourceGroupName = "res7687",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/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),
},
TierToCold: &storage.DateAfterModificationArgs{
DaysAfterModificationGreaterThan: pulumi.Float64(30),
},
TierToCool: &storage.DateAfterModificationArgs{
DaysAfterModificationGreaterThan: pulumi.Float64(30),
},
},
Snapshot: &storage.ManagementPolicySnapShotArgs{
Delete: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(30),
},
TierToCold: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(30),
},
},
Version: &storage.ManagementPolicyVersionArgs{
Delete: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(30),
},
TierToCold: &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(storage.RuleTypeLifecycle),
},
},
},
ResourceGroupName: pulumi.String("res7687"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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) {
var managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
.accountName("sto9699")
.managementPolicyName("default")
.policy(ManagementPolicySchemaArgs.builder()
.rules(ManagementPolicyRuleArgs.builder()
.definition(ManagementPolicyDefinitionArgs.builder()
.actions(ManagementPolicyActionArgs.builder()
.baseBlob(ManagementPolicyBaseBlobArgs.builder()
.delete(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(1000)
.build())
.tierToArchive(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(90)
.build())
.tierToCold(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(30)
.build())
.tierToCool(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(30)
.build())
.build())
.snapshot(ManagementPolicySnapShotArgs.builder()
.delete(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.tierToCold(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.build())
.version(ManagementPolicyVersionArgs.builder()
.delete(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.tierToCold(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.build())
.build())
.filters(ManagementPolicyFilterArgs.builder()
.blobTypes("blockBlob")
.prefixMatch("olcmtestcontainer1")
.build())
.build())
.enabled(true)
.name("olcmtest1")
.type("Lifecycle")
.build())
.build())
.resourceGroupName("res7687")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
account_name="sto9699",
management_policy_name="default",
policy=azure_native.storage.ManagementPolicySchemaArgs(
rules=[azure_native.storage.ManagementPolicyRuleArgs(
definition=azure_native.storage.ManagementPolicyDefinitionArgs(
actions=azure_native.storage.ManagementPolicyActionArgs(
base_blob=azure_native.storage.ManagementPolicyBaseBlobArgs(
delete=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=1000,
),
tier_to_archive=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=90,
),
tier_to_cold=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=30,
),
tier_to_cool=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=30,
),
),
snapshot=azure_native.storage.ManagementPolicySnapShotArgs(
delete=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
tier_to_cold=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
),
version=azure_native.storage.ManagementPolicyVersionArgs(
delete=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
tier_to_cold=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
),
),
filters=azure_native.storage.ManagementPolicyFilterArgs(
blob_types=["blockBlob"],
prefix_match=["olcmtestcontainer1"],
),
),
enabled=True,
name="olcmtest1",
type=azure_native.storage.RuleType.LIFECYCLE,
)],
),
resource_group_name="res7687")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
accountName: "sto9699",
managementPolicyName: "default",
policy: {
rules: [{
definition: {
actions: {
baseBlob: {
"delete": {
daysAfterModificationGreaterThan: 1000,
},
tierToArchive: {
daysAfterModificationGreaterThan: 90,
},
tierToCold: {
daysAfterModificationGreaterThan: 30,
},
tierToCool: {
daysAfterModificationGreaterThan: 30,
},
},
snapshot: {
"delete": {
daysAfterCreationGreaterThan: 30,
},
tierToCold: {
daysAfterCreationGreaterThan: 30,
},
},
version: {
"delete": {
daysAfterCreationGreaterThan: 30,
},
tierToCold: {
daysAfterCreationGreaterThan: 30,
},
},
},
filters: {
blobTypes: ["blockBlob"],
prefixMatch: ["olcmtestcontainer1"],
},
},
enabled: true,
name: "olcmtest1",
type: azure_native.storage.RuleType.Lifecycle,
}],
},
resourceGroupName: "res7687",
});
resources:
managementPolicy:
type: azure-native:storage:ManagementPolicy
properties:
accountName: sto9699
managementPolicyName: default
policy:
rules:
- definition:
actions:
baseBlob:
delete:
daysAfterModificationGreaterThan: 1000
tierToArchive:
daysAfterModificationGreaterThan: 90
tierToCold:
daysAfterModificationGreaterThan: 30
tierToCool:
daysAfterModificationGreaterThan: 30
snapshot:
delete:
daysAfterCreationGreaterThan: 30
tierToCold:
daysAfterCreationGreaterThan: 30
version:
delete:
daysAfterCreationGreaterThan: 30
tierToCold:
daysAfterCreationGreaterThan: 30
filters:
blobTypes:
- blockBlob
prefixMatch:
- olcmtestcontainer1
enabled: true
name: olcmtest1
type: Lifecycle
resourceGroupName: res7687
StorageAccountSetManagementPolicyForBlockAndAppendBlobs
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
{
AccountName = "sto9699",
ManagementPolicyName = "default",
Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
{
Rules = new[]
{
new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 90,
},
},
Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 90,
},
},
Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 90,
},
},
},
Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
{
BlobTypes = new[]
{
"blockBlob",
"appendBlob",
},
PrefixMatch = new[]
{
"olcmtestcontainer1",
},
},
},
Enabled = true,
Name = "olcmtest1",
Type = AzureNative.Storage.RuleType.Lifecycle,
},
},
},
ResourceGroupName = "res7687",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/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(90),
},
},
Snapshot: &storage.ManagementPolicySnapShotArgs{
Delete: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(90),
},
},
Version: &storage.ManagementPolicyVersionArgs{
Delete: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(90),
},
},
},
Filters: &storage.ManagementPolicyFilterArgs{
BlobTypes: pulumi.StringArray{
pulumi.String("blockBlob"),
pulumi.String("appendBlob"),
},
PrefixMatch: pulumi.StringArray{
pulumi.String("olcmtestcontainer1"),
},
},
},
Enabled: pulumi.Bool(true),
Name: pulumi.String("olcmtest1"),
Type: pulumi.String(storage.RuleTypeLifecycle),
},
},
},
ResourceGroupName: pulumi.String("res7687"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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) {
var managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
.accountName("sto9699")
.managementPolicyName("default")
.policy(ManagementPolicySchemaArgs.builder()
.rules(ManagementPolicyRuleArgs.builder()
.definition(ManagementPolicyDefinitionArgs.builder()
.actions(ManagementPolicyActionArgs.builder()
.baseBlob(ManagementPolicyBaseBlobArgs.builder()
.delete(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(90)
.build())
.build())
.snapshot(ManagementPolicySnapShotArgs.builder()
.delete(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(90)
.build())
.build())
.version(ManagementPolicyVersionArgs.builder()
.delete(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(90)
.build())
.build())
.build())
.filters(ManagementPolicyFilterArgs.builder()
.blobTypes(
"blockBlob",
"appendBlob")
.prefixMatch("olcmtestcontainer1")
.build())
.build())
.enabled(true)
.name("olcmtest1")
.type("Lifecycle")
.build())
.build())
.resourceGroupName("res7687")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
account_name="sto9699",
management_policy_name="default",
policy=azure_native.storage.ManagementPolicySchemaArgs(
rules=[azure_native.storage.ManagementPolicyRuleArgs(
definition=azure_native.storage.ManagementPolicyDefinitionArgs(
actions=azure_native.storage.ManagementPolicyActionArgs(
base_blob=azure_native.storage.ManagementPolicyBaseBlobArgs(
delete=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=90,
),
),
snapshot=azure_native.storage.ManagementPolicySnapShotArgs(
delete=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=90,
),
),
version=azure_native.storage.ManagementPolicyVersionArgs(
delete=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=90,
),
),
),
filters=azure_native.storage.ManagementPolicyFilterArgs(
blob_types=[
"blockBlob",
"appendBlob",
],
prefix_match=["olcmtestcontainer1"],
),
),
enabled=True,
name="olcmtest1",
type=azure_native.storage.RuleType.LIFECYCLE,
)],
),
resource_group_name="res7687")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
accountName: "sto9699",
managementPolicyName: "default",
policy: {
rules: [{
definition: {
actions: {
baseBlob: {
"delete": {
daysAfterModificationGreaterThan: 90,
},
},
snapshot: {
"delete": {
daysAfterCreationGreaterThan: 90,
},
},
version: {
"delete": {
daysAfterCreationGreaterThan: 90,
},
},
},
filters: {
blobTypes: [
"blockBlob",
"appendBlob",
],
prefixMatch: ["olcmtestcontainer1"],
},
},
enabled: true,
name: "olcmtest1",
type: azure_native.storage.RuleType.Lifecycle,
}],
},
resourceGroupName: "res7687",
});
resources:
managementPolicy:
type: azure-native:storage:ManagementPolicy
properties:
accountName: sto9699
managementPolicyName: default
policy:
rules:
- definition:
actions:
baseBlob:
delete:
daysAfterModificationGreaterThan: 90
snapshot:
delete:
daysAfterCreationGreaterThan: 90
version:
delete:
daysAfterCreationGreaterThan: 90
filters:
blobTypes:
- blockBlob
- appendBlob
prefixMatch:
- olcmtestcontainer1
enabled: true
name: olcmtest1
type: Lifecycle
resourceGroupName: res7687
StorageAccountSetManagementPolicyHotTierActions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
{
AccountName = "sto9699",
ManagementPolicyName = "default",
Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
{
Rules = new[]
{
new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
{
TierToHot = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 30,
},
},
Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
{
TierToHot = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
},
Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
{
TierToHot = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
},
},
Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
{
BlobTypes = new[]
{
"blockBlob",
},
PrefixMatch = new[]
{
"olcmtestcontainer1",
},
},
},
Enabled = true,
Name = "olcmtest1",
Type = AzureNative.Storage.RuleType.Lifecycle,
},
},
},
ResourceGroupName = "res7687",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/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{
TierToHot: &storage.DateAfterModificationArgs{
DaysAfterModificationGreaterThan: pulumi.Float64(30),
},
},
Snapshot: &storage.ManagementPolicySnapShotArgs{
TierToHot: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(30),
},
},
Version: &storage.ManagementPolicyVersionArgs{
TierToHot: &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(storage.RuleTypeLifecycle),
},
},
},
ResourceGroupName: pulumi.String("res7687"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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) {
var managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
.accountName("sto9699")
.managementPolicyName("default")
.policy(ManagementPolicySchemaArgs.builder()
.rules(ManagementPolicyRuleArgs.builder()
.definition(ManagementPolicyDefinitionArgs.builder()
.actions(ManagementPolicyActionArgs.builder()
.baseBlob(ManagementPolicyBaseBlobArgs.builder()
.tierToHot(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(30)
.build())
.build())
.snapshot(ManagementPolicySnapShotArgs.builder()
.tierToHot(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.build())
.version(ManagementPolicyVersionArgs.builder()
.tierToHot(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.build())
.build())
.filters(ManagementPolicyFilterArgs.builder()
.blobTypes("blockBlob")
.prefixMatch("olcmtestcontainer1")
.build())
.build())
.enabled(true)
.name("olcmtest1")
.type("Lifecycle")
.build())
.build())
.resourceGroupName("res7687")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
account_name="sto9699",
management_policy_name="default",
policy=azure_native.storage.ManagementPolicySchemaArgs(
rules=[azure_native.storage.ManagementPolicyRuleArgs(
definition=azure_native.storage.ManagementPolicyDefinitionArgs(
actions=azure_native.storage.ManagementPolicyActionArgs(
base_blob=azure_native.storage.ManagementPolicyBaseBlobArgs(
tier_to_hot=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=30,
),
),
snapshot=azure_native.storage.ManagementPolicySnapShotArgs(
tier_to_hot=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
),
version=azure_native.storage.ManagementPolicyVersionArgs(
tier_to_hot=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
),
),
filters=azure_native.storage.ManagementPolicyFilterArgs(
blob_types=["blockBlob"],
prefix_match=["olcmtestcontainer1"],
),
),
enabled=True,
name="olcmtest1",
type=azure_native.storage.RuleType.LIFECYCLE,
)],
),
resource_group_name="res7687")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
accountName: "sto9699",
managementPolicyName: "default",
policy: {
rules: [{
definition: {
actions: {
baseBlob: {
tierToHot: {
daysAfterModificationGreaterThan: 30,
},
},
snapshot: {
tierToHot: {
daysAfterCreationGreaterThan: 30,
},
},
version: {
tierToHot: {
daysAfterCreationGreaterThan: 30,
},
},
},
filters: {
blobTypes: ["blockBlob"],
prefixMatch: ["olcmtestcontainer1"],
},
},
enabled: true,
name: "olcmtest1",
type: azure_native.storage.RuleType.Lifecycle,
}],
},
resourceGroupName: "res7687",
});
resources:
managementPolicy:
type: azure-native:storage:ManagementPolicy
properties:
accountName: sto9699
managementPolicyName: default
policy:
rules:
- definition:
actions:
baseBlob:
tierToHot:
daysAfterModificationGreaterThan: 30
snapshot:
tierToHot:
daysAfterCreationGreaterThan: 30
version:
tierToHot:
daysAfterCreationGreaterThan: 30
filters:
blobTypes:
- blockBlob
prefixMatch:
- olcmtestcontainer1
enabled: true
name: olcmtest1
type: Lifecycle
resourceGroupName: res7687
StorageAccountSetManagementPolicyWithSnapshotAndVersion
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
{
AccountName = "sto9699",
ManagementPolicyName = "default",
Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
{
Rules = new[]
{
new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 1000,
},
TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 90,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 30,
},
},
Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 1000,
},
TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 90,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
},
Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 1000,
},
TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 90,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
},
},
Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
{
BlobTypes = new[]
{
"blockBlob",
},
PrefixMatch = new[]
{
"olcmtestcontainer1",
},
},
},
Enabled = true,
Name = "olcmtest1",
Type = AzureNative.Storage.RuleType.Lifecycle,
},
},
},
ResourceGroupName = "res7687",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/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(1000),
},
TierToArchive: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(90),
},
TierToCool: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(30),
},
},
Version: &storage.ManagementPolicyVersionArgs{
Delete: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(1000),
},
TierToArchive: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(90),
},
TierToCool: &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(storage.RuleTypeLifecycle),
},
},
},
ResourceGroupName: pulumi.String("res7687"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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) {
var managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
.accountName("sto9699")
.managementPolicyName("default")
.policy(ManagementPolicySchemaArgs.builder()
.rules(ManagementPolicyRuleArgs.builder()
.definition(ManagementPolicyDefinitionArgs.builder()
.actions(ManagementPolicyActionArgs.builder()
.baseBlob(ManagementPolicyBaseBlobArgs.builder()
.delete(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(1000)
.build())
.tierToArchive(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(90)
.build())
.tierToCool(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(30)
.build())
.build())
.snapshot(ManagementPolicySnapShotArgs.builder()
.delete(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(1000)
.build())
.tierToArchive(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(90)
.build())
.tierToCool(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.build())
.version(ManagementPolicyVersionArgs.builder()
.delete(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(1000)
.build())
.tierToArchive(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(90)
.build())
.tierToCool(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.build())
.build())
.filters(ManagementPolicyFilterArgs.builder()
.blobTypes("blockBlob")
.prefixMatch("olcmtestcontainer1")
.build())
.build())
.enabled(true)
.name("olcmtest1")
.type("Lifecycle")
.build())
.build())
.resourceGroupName("res7687")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
account_name="sto9699",
management_policy_name="default",
policy=azure_native.storage.ManagementPolicySchemaArgs(
rules=[azure_native.storage.ManagementPolicyRuleArgs(
definition=azure_native.storage.ManagementPolicyDefinitionArgs(
actions=azure_native.storage.ManagementPolicyActionArgs(
base_blob=azure_native.storage.ManagementPolicyBaseBlobArgs(
delete=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=1000,
),
tier_to_archive=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=90,
),
tier_to_cool=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=30,
),
),
snapshot=azure_native.storage.ManagementPolicySnapShotArgs(
delete=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=1000,
),
tier_to_archive=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=90,
),
tier_to_cool=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
),
version=azure_native.storage.ManagementPolicyVersionArgs(
delete=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=1000,
),
tier_to_archive=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=90,
),
tier_to_cool=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
),
),
filters=azure_native.storage.ManagementPolicyFilterArgs(
blob_types=["blockBlob"],
prefix_match=["olcmtestcontainer1"],
),
),
enabled=True,
name="olcmtest1",
type=azure_native.storage.RuleType.LIFECYCLE,
)],
),
resource_group_name="res7687")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
accountName: "sto9699",
managementPolicyName: "default",
policy: {
rules: [{
definition: {
actions: {
baseBlob: {
"delete": {
daysAfterModificationGreaterThan: 1000,
},
tierToArchive: {
daysAfterModificationGreaterThan: 90,
},
tierToCool: {
daysAfterModificationGreaterThan: 30,
},
},
snapshot: {
"delete": {
daysAfterCreationGreaterThan: 1000,
},
tierToArchive: {
daysAfterCreationGreaterThan: 90,
},
tierToCool: {
daysAfterCreationGreaterThan: 30,
},
},
version: {
"delete": {
daysAfterCreationGreaterThan: 1000,
},
tierToArchive: {
daysAfterCreationGreaterThan: 90,
},
tierToCool: {
daysAfterCreationGreaterThan: 30,
},
},
},
filters: {
blobTypes: ["blockBlob"],
prefixMatch: ["olcmtestcontainer1"],
},
},
enabled: true,
name: "olcmtest1",
type: azure_native.storage.RuleType.Lifecycle,
}],
},
resourceGroupName: "res7687",
});
resources:
managementPolicy:
type: azure-native:storage:ManagementPolicy
properties:
accountName: sto9699
managementPolicyName: default
policy:
rules:
- definition:
actions:
baseBlob:
delete:
daysAfterModificationGreaterThan: 1000
tierToArchive:
daysAfterModificationGreaterThan: 90
tierToCool:
daysAfterModificationGreaterThan: 30
snapshot:
delete:
daysAfterCreationGreaterThan: 1000
tierToArchive:
daysAfterCreationGreaterThan: 90
tierToCool:
daysAfterCreationGreaterThan: 30
version:
delete:
daysAfterCreationGreaterThan: 1000
tierToArchive:
daysAfterCreationGreaterThan: 90
tierToCool:
daysAfterCreationGreaterThan: 30
filters:
blobTypes:
- blockBlob
prefixMatch:
- olcmtestcontainer1
enabled: true
name: olcmtest1
type: Lifecycle
resourceGroupName: res7687
StorageAccountSetManagementPolicy_BaseBlobDaysAfterCreationActions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
{
AccountName = "sto9699",
ManagementPolicyName = "default",
Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
{
Rules = new[]
{
new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterCreationGreaterThan = 1000,
},
TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterCreationGreaterThan = 90,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterCreationGreaterThan = 30,
},
},
},
Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
{
BlobTypes = new[]
{
"blockBlob",
},
PrefixMatch = new[]
{
"olcmtestcontainer1",
},
},
},
Enabled = true,
Name = "olcmtest1",
Type = AzureNative.Storage.RuleType.Lifecycle,
},
},
},
ResourceGroupName = "res7687",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/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{
DaysAfterCreationGreaterThan: pulumi.Float64(1000),
},
TierToArchive: &storage.DateAfterModificationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(90),
},
TierToCool: &storage.DateAfterModificationArgs{
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(storage.RuleTypeLifecycle),
},
},
},
ResourceGroupName: pulumi.String("res7687"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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) {
var managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
.accountName("sto9699")
.managementPolicyName("default")
.policy(ManagementPolicySchemaArgs.builder()
.rules(ManagementPolicyRuleArgs.builder()
.definition(ManagementPolicyDefinitionArgs.builder()
.actions(ManagementPolicyActionArgs.builder()
.baseBlob(ManagementPolicyBaseBlobArgs.builder()
.delete(DateAfterModificationArgs.builder()
.daysAfterCreationGreaterThan(1000)
.build())
.tierToArchive(DateAfterModificationArgs.builder()
.daysAfterCreationGreaterThan(90)
.build())
.tierToCool(DateAfterModificationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.build())
.build())
.filters(ManagementPolicyFilterArgs.builder()
.blobTypes("blockBlob")
.prefixMatch("olcmtestcontainer1")
.build())
.build())
.enabled(true)
.name("olcmtest1")
.type("Lifecycle")
.build())
.build())
.resourceGroupName("res7687")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
account_name="sto9699",
management_policy_name="default",
policy=azure_native.storage.ManagementPolicySchemaArgs(
rules=[azure_native.storage.ManagementPolicyRuleArgs(
definition=azure_native.storage.ManagementPolicyDefinitionArgs(
actions=azure_native.storage.ManagementPolicyActionArgs(
base_blob=azure_native.storage.ManagementPolicyBaseBlobArgs(
delete=azure_native.storage.DateAfterModificationArgs(
days_after_creation_greater_than=1000,
),
tier_to_archive=azure_native.storage.DateAfterModificationArgs(
days_after_creation_greater_than=90,
),
tier_to_cool=azure_native.storage.DateAfterModificationArgs(
days_after_creation_greater_than=30,
),
),
),
filters=azure_native.storage.ManagementPolicyFilterArgs(
blob_types=["blockBlob"],
prefix_match=["olcmtestcontainer1"],
),
),
enabled=True,
name="olcmtest1",
type=azure_native.storage.RuleType.LIFECYCLE,
)],
),
resource_group_name="res7687")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
accountName: "sto9699",
managementPolicyName: "default",
policy: {
rules: [{
definition: {
actions: {
baseBlob: {
"delete": {
daysAfterCreationGreaterThan: 1000,
},
tierToArchive: {
daysAfterCreationGreaterThan: 90,
},
tierToCool: {
daysAfterCreationGreaterThan: 30,
},
},
},
filters: {
blobTypes: ["blockBlob"],
prefixMatch: ["olcmtestcontainer1"],
},
},
enabled: true,
name: "olcmtest1",
type: azure_native.storage.RuleType.Lifecycle,
}],
},
resourceGroupName: "res7687",
});
resources:
managementPolicy:
type: azure-native:storage:ManagementPolicy
properties:
accountName: sto9699
managementPolicyName: default
policy:
rules:
- definition:
actions:
baseBlob:
delete:
daysAfterCreationGreaterThan: 1000
tierToArchive:
daysAfterCreationGreaterThan: 90
tierToCool:
daysAfterCreationGreaterThan: 30
filters:
blobTypes:
- blockBlob
prefixMatch:
- olcmtestcontainer1
enabled: true
name: olcmtest1
type: Lifecycle
resourceGroupName: res7687
StorageAccountSetManagementPolicy_LastAccessTimeBasedBlobActions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
{
AccountName = "sto9699",
ManagementPolicyName = "default",
Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
{
Rules = new[]
{
new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterLastAccessTimeGreaterThan = 1000,
},
EnableAutoTierToHotFromCool = true,
TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterLastAccessTimeGreaterThan = 90,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterLastAccessTimeGreaterThan = 30,
},
},
Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
},
},
Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
{
BlobTypes = new[]
{
"blockBlob",
},
PrefixMatch = new[]
{
"olcmtestcontainer",
},
},
},
Enabled = true,
Name = "olcmtest",
Type = AzureNative.Storage.RuleType.Lifecycle,
},
},
},
ResourceGroupName = "res7687",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/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{
DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(1000),
},
EnableAutoTierToHotFromCool: pulumi.Bool(true),
TierToArchive: &storage.DateAfterModificationArgs{
DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(90),
},
TierToCool: &storage.DateAfterModificationArgs{
DaysAfterLastAccessTimeGreaterThan: 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("olcmtestcontainer"),
},
},
},
Enabled: pulumi.Bool(true),
Name: pulumi.String("olcmtest"),
Type: pulumi.String(storage.RuleTypeLifecycle),
},
},
},
ResourceGroupName: pulumi.String("res7687"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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) {
var managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
.accountName("sto9699")
.managementPolicyName("default")
.policy(ManagementPolicySchemaArgs.builder()
.rules(ManagementPolicyRuleArgs.builder()
.definition(ManagementPolicyDefinitionArgs.builder()
.actions(ManagementPolicyActionArgs.builder()
.baseBlob(ManagementPolicyBaseBlobArgs.builder()
.delete(DateAfterModificationArgs.builder()
.daysAfterLastAccessTimeGreaterThan(1000)
.build())
.enableAutoTierToHotFromCool(true)
.tierToArchive(DateAfterModificationArgs.builder()
.daysAfterLastAccessTimeGreaterThan(90)
.build())
.tierToCool(DateAfterModificationArgs.builder()
.daysAfterLastAccessTimeGreaterThan(30)
.build())
.build())
.snapshot(ManagementPolicySnapShotArgs.builder()
.delete(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.build())
.build())
.build())
.filters(ManagementPolicyFilterArgs.builder()
.blobTypes("blockBlob")
.prefixMatch("olcmtestcontainer")
.build())
.build())
.enabled(true)
.name("olcmtest")
.type("Lifecycle")
.build())
.build())
.resourceGroupName("res7687")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
account_name="sto9699",
management_policy_name="default",
policy=azure_native.storage.ManagementPolicySchemaArgs(
rules=[azure_native.storage.ManagementPolicyRuleArgs(
definition=azure_native.storage.ManagementPolicyDefinitionArgs(
actions=azure_native.storage.ManagementPolicyActionArgs(
base_blob=azure_native.storage.ManagementPolicyBaseBlobArgs(
delete=azure_native.storage.DateAfterModificationArgs(
days_after_last_access_time_greater_than=1000,
),
enable_auto_tier_to_hot_from_cool=True,
tier_to_archive=azure_native.storage.DateAfterModificationArgs(
days_after_last_access_time_greater_than=90,
),
tier_to_cool=azure_native.storage.DateAfterModificationArgs(
days_after_last_access_time_greater_than=30,
),
),
snapshot=azure_native.storage.ManagementPolicySnapShotArgs(
delete=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
),
),
filters=azure_native.storage.ManagementPolicyFilterArgs(
blob_types=["blockBlob"],
prefix_match=["olcmtestcontainer"],
),
),
enabled=True,
name="olcmtest",
type=azure_native.storage.RuleType.LIFECYCLE,
)],
),
resource_group_name="res7687")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
accountName: "sto9699",
managementPolicyName: "default",
policy: {
rules: [{
definition: {
actions: {
baseBlob: {
"delete": {
daysAfterLastAccessTimeGreaterThan: 1000,
},
enableAutoTierToHotFromCool: true,
tierToArchive: {
daysAfterLastAccessTimeGreaterThan: 90,
},
tierToCool: {
daysAfterLastAccessTimeGreaterThan: 30,
},
},
snapshot: {
"delete": {
daysAfterCreationGreaterThan: 30,
},
},
},
filters: {
blobTypes: ["blockBlob"],
prefixMatch: ["olcmtestcontainer"],
},
},
enabled: true,
name: "olcmtest",
type: azure_native.storage.RuleType.Lifecycle,
}],
},
resourceGroupName: "res7687",
});
resources:
managementPolicy:
type: azure-native:storage:ManagementPolicy
properties:
accountName: sto9699
managementPolicyName: default
policy:
rules:
- definition:
actions:
baseBlob:
delete:
daysAfterLastAccessTimeGreaterThan: 1000
enableAutoTierToHotFromCool: true
tierToArchive:
daysAfterLastAccessTimeGreaterThan: 90
tierToCool:
daysAfterLastAccessTimeGreaterThan: 30
snapshot:
delete:
daysAfterCreationGreaterThan: 30
filters:
blobTypes:
- blockBlob
prefixMatch:
- olcmtestcontainer
enabled: true
name: olcmtest
type: Lifecycle
resourceGroupName: res7687
StorageAccountSetManagementPolicy_LastTierChangeTimeActions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
{
AccountName = "sto9699",
ManagementPolicyName = "default",
Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
{
Rules = new[]
{
new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 1000,
},
TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterLastTierChangeGreaterThan = 120,
DaysAfterModificationGreaterThan = 90,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 30,
},
},
Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
{
TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
DaysAfterLastTierChangeGreaterThan = 90,
},
},
Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
{
TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
DaysAfterLastTierChangeGreaterThan = 90,
},
},
},
Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
{
BlobTypes = new[]
{
"blockBlob",
},
PrefixMatch = new[]
{
"olcmtestcontainer",
},
},
},
Enabled = true,
Name = "olcmtest",
Type = AzureNative.Storage.RuleType.Lifecycle,
},
},
},
ResourceGroupName = "res7687",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/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{
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(120),
DaysAfterModificationGreaterThan: pulumi.Float64(90),
},
TierToCool: &storage.DateAfterModificationArgs{
DaysAfterModificationGreaterThan: pulumi.Float64(30),
},
},
Snapshot: &storage.ManagementPolicySnapShotArgs{
TierToArchive: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(30),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(90),
},
},
Version: &storage.ManagementPolicyVersionArgs{
TierToArchive: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(30),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(90),
},
},
},
Filters: &storage.ManagementPolicyFilterArgs{
BlobTypes: pulumi.StringArray{
pulumi.String("blockBlob"),
},
PrefixMatch: pulumi.StringArray{
pulumi.String("olcmtestcontainer"),
},
},
},
Enabled: pulumi.Bool(true),
Name: pulumi.String("olcmtest"),
Type: pulumi.String(storage.RuleTypeLifecycle),
},
},
},
ResourceGroupName: pulumi.String("res7687"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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) {
var managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
.accountName("sto9699")
.managementPolicyName("default")
.policy(ManagementPolicySchemaArgs.builder()
.rules(ManagementPolicyRuleArgs.builder()
.definition(ManagementPolicyDefinitionArgs.builder()
.actions(ManagementPolicyActionArgs.builder()
.baseBlob(ManagementPolicyBaseBlobArgs.builder()
.delete(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(1000)
.build())
.tierToArchive(DateAfterModificationArgs.builder()
.daysAfterLastTierChangeGreaterThan(120)
.daysAfterModificationGreaterThan(90)
.build())
.tierToCool(DateAfterModificationArgs.builder()
.daysAfterModificationGreaterThan(30)
.build())
.build())
.snapshot(ManagementPolicySnapShotArgs.builder()
.tierToArchive(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.daysAfterLastTierChangeGreaterThan(90)
.build())
.build())
.version(ManagementPolicyVersionArgs.builder()
.tierToArchive(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(30)
.daysAfterLastTierChangeGreaterThan(90)
.build())
.build())
.build())
.filters(ManagementPolicyFilterArgs.builder()
.blobTypes("blockBlob")
.prefixMatch("olcmtestcontainer")
.build())
.build())
.enabled(true)
.name("olcmtest")
.type("Lifecycle")
.build())
.build())
.resourceGroupName("res7687")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
account_name="sto9699",
management_policy_name="default",
policy=azure_native.storage.ManagementPolicySchemaArgs(
rules=[azure_native.storage.ManagementPolicyRuleArgs(
definition=azure_native.storage.ManagementPolicyDefinitionArgs(
actions=azure_native.storage.ManagementPolicyActionArgs(
base_blob=azure_native.storage.ManagementPolicyBaseBlobArgs(
delete=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=1000,
),
tier_to_archive=azure_native.storage.DateAfterModificationArgs(
days_after_last_tier_change_greater_than=120,
days_after_modification_greater_than=90,
),
tier_to_cool=azure_native.storage.DateAfterModificationArgs(
days_after_modification_greater_than=30,
),
),
snapshot=azure_native.storage.ManagementPolicySnapShotArgs(
tier_to_archive=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
days_after_last_tier_change_greater_than=90,
),
),
version=azure_native.storage.ManagementPolicyVersionArgs(
tier_to_archive=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=30,
days_after_last_tier_change_greater_than=90,
),
),
),
filters=azure_native.storage.ManagementPolicyFilterArgs(
blob_types=["blockBlob"],
prefix_match=["olcmtestcontainer"],
),
),
enabled=True,
name="olcmtest",
type=azure_native.storage.RuleType.LIFECYCLE,
)],
),
resource_group_name="res7687")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
accountName: "sto9699",
managementPolicyName: "default",
policy: {
rules: [{
definition: {
actions: {
baseBlob: {
"delete": {
daysAfterModificationGreaterThan: 1000,
},
tierToArchive: {
daysAfterLastTierChangeGreaterThan: 120,
daysAfterModificationGreaterThan: 90,
},
tierToCool: {
daysAfterModificationGreaterThan: 30,
},
},
snapshot: {
tierToArchive: {
daysAfterCreationGreaterThan: 30,
daysAfterLastTierChangeGreaterThan: 90,
},
},
version: {
tierToArchive: {
daysAfterCreationGreaterThan: 30,
daysAfterLastTierChangeGreaterThan: 90,
},
},
},
filters: {
blobTypes: ["blockBlob"],
prefixMatch: ["olcmtestcontainer"],
},
},
enabled: true,
name: "olcmtest",
type: azure_native.storage.RuleType.Lifecycle,
}],
},
resourceGroupName: "res7687",
});
resources:
managementPolicy:
type: azure-native:storage:ManagementPolicy
properties:
accountName: sto9699
managementPolicyName: default
policy:
rules:
- definition:
actions:
baseBlob:
delete:
daysAfterModificationGreaterThan: 1000
tierToArchive:
daysAfterLastTierChangeGreaterThan: 120
daysAfterModificationGreaterThan: 90
tierToCool:
daysAfterModificationGreaterThan: 30
snapshot:
tierToArchive:
daysAfterCreationGreaterThan: 30
daysAfterLastTierChangeGreaterThan: 90
version:
tierToArchive:
daysAfterCreationGreaterThan: 30
daysAfterLastTierChangeGreaterThan: 90
filters:
blobTypes:
- blockBlob
prefixMatch:
- olcmtestcontainer
enabled: true
name: olcmtest
type: Lifecycle
resourceGroupName: res7687
Create ManagementPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementPolicy(name: string, args: ManagementPolicyArgs, opts?: CustomResourceOptions);
@overload
def ManagementPolicy(resource_name: str,
args: ManagementPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
policy: Optional[ManagementPolicySchemaArgs] = None,
resource_group_name: Optional[str] = None,
management_policy_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)
public ManagementPolicy(String name, ManagementPolicyArgs args)
public ManagementPolicy(String name, ManagementPolicyArgs args, CustomResourceOptions options)
type: azure-native:storage:ManagementPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args ManagementPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args ManagementPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var managementPolicyResource = new AzureNative.Storage.ManagementPolicy("managementPolicyResource", new()
{
AccountName = "string",
Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
{
Rules = new[]
{
new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastAccessTimeGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
DaysAfterModificationGreaterThan = 0,
},
EnableAutoTierToHotFromCool = false,
TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastAccessTimeGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
DaysAfterModificationGreaterThan = 0,
},
TierToCold = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastAccessTimeGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
DaysAfterModificationGreaterThan = 0,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastAccessTimeGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
DaysAfterModificationGreaterThan = 0,
},
TierToHot = new AzureNative.Storage.Inputs.DateAfterModificationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastAccessTimeGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
DaysAfterModificationGreaterThan = 0,
},
},
Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
},
TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
},
TierToCold = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
},
TierToHot = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
},
},
Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
{
Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
},
TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
},
TierToCold = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
},
TierToCool = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
},
TierToHot = new AzureNative.Storage.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 0,
DaysAfterLastTierChangeGreaterThan = 0,
},
},
},
Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
{
BlobTypes = new[]
{
"string",
},
BlobIndexMatch = new[]
{
new AzureNative.Storage.Inputs.TagFilterArgs
{
Name = "string",
Op = "string",
Value = "string",
},
},
PrefixMatch = new[]
{
"string",
},
},
},
Name = "string",
Type = "string",
Enabled = false,
},
},
},
ResourceGroupName = "string",
ManagementPolicyName = "string",
});
example, err := storage.NewManagementPolicy(ctx, "managementPolicyResource", &storage.ManagementPolicyArgs{
AccountName: pulumi.String("string"),
Policy: &storage.ManagementPolicySchemaArgs{
Rules: storage.ManagementPolicyRuleArray{
&storage.ManagementPolicyRuleArgs{
Definition: &storage.ManagementPolicyDefinitionArgs{
Actions: &storage.ManagementPolicyActionArgs{
BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
Delete: &storage.DateAfterModificationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
DaysAfterModificationGreaterThan: pulumi.Float64(0),
},
EnableAutoTierToHotFromCool: pulumi.Bool(false),
TierToArchive: &storage.DateAfterModificationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
DaysAfterModificationGreaterThan: pulumi.Float64(0),
},
TierToCold: &storage.DateAfterModificationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
DaysAfterModificationGreaterThan: pulumi.Float64(0),
},
TierToCool: &storage.DateAfterModificationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
DaysAfterModificationGreaterThan: pulumi.Float64(0),
},
TierToHot: &storage.DateAfterModificationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
DaysAfterModificationGreaterThan: pulumi.Float64(0),
},
},
Snapshot: &storage.ManagementPolicySnapShotArgs{
Delete: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
},
TierToArchive: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
},
TierToCold: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
},
TierToCool: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
},
TierToHot: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
},
},
Version: &storage.ManagementPolicyVersionArgs{
Delete: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
},
TierToArchive: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
},
TierToCold: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
},
TierToCool: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
},
TierToHot: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(0),
DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
},
},
},
Filters: &storage.ManagementPolicyFilterArgs{
BlobTypes: pulumi.StringArray{
pulumi.String("string"),
},
BlobIndexMatch: storage.TagFilterArray{
&storage.TagFilterArgs{
Name: pulumi.String("string"),
Op: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
PrefixMatch: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
},
},
ResourceGroupName: pulumi.String("string"),
ManagementPolicyName: pulumi.String("string"),
})
var managementPolicyResource = new ManagementPolicy("managementPolicyResource", ManagementPolicyArgs.builder()
.accountName("string")
.policy(ManagementPolicySchemaArgs.builder()
.rules(ManagementPolicyRuleArgs.builder()
.definition(ManagementPolicyDefinitionArgs.builder()
.actions(ManagementPolicyActionArgs.builder()
.baseBlob(ManagementPolicyBaseBlobArgs.builder()
.delete(DateAfterModificationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastAccessTimeGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.daysAfterModificationGreaterThan(0)
.build())
.enableAutoTierToHotFromCool(false)
.tierToArchive(DateAfterModificationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastAccessTimeGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.daysAfterModificationGreaterThan(0)
.build())
.tierToCold(DateAfterModificationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastAccessTimeGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.daysAfterModificationGreaterThan(0)
.build())
.tierToCool(DateAfterModificationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastAccessTimeGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.daysAfterModificationGreaterThan(0)
.build())
.tierToHot(DateAfterModificationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastAccessTimeGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.daysAfterModificationGreaterThan(0)
.build())
.build())
.snapshot(ManagementPolicySnapShotArgs.builder()
.delete(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.build())
.tierToArchive(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.build())
.tierToCold(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.build())
.tierToCool(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.build())
.tierToHot(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.build())
.build())
.version(ManagementPolicyVersionArgs.builder()
.delete(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.build())
.tierToArchive(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.build())
.tierToCold(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.build())
.tierToCool(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.build())
.tierToHot(DateAfterCreationArgs.builder()
.daysAfterCreationGreaterThan(0)
.daysAfterLastTierChangeGreaterThan(0)
.build())
.build())
.build())
.filters(ManagementPolicyFilterArgs.builder()
.blobTypes("string")
.blobIndexMatch(TagFilterArgs.builder()
.name("string")
.op("string")
.value("string")
.build())
.prefixMatch("string")
.build())
.build())
.name("string")
.type("string")
.enabled(false)
.build())
.build())
.resourceGroupName("string")
.managementPolicyName("string")
.build());
management_policy_resource = azure_native.storage.ManagementPolicy("managementPolicyResource",
account_name="string",
policy=azure_native.storage.ManagementPolicySchemaArgs(
rules=[azure_native.storage.ManagementPolicyRuleArgs(
definition=azure_native.storage.ManagementPolicyDefinitionArgs(
actions=azure_native.storage.ManagementPolicyActionArgs(
base_blob=azure_native.storage.ManagementPolicyBaseBlobArgs(
delete=azure_native.storage.DateAfterModificationArgs(
days_after_creation_greater_than=0,
days_after_last_access_time_greater_than=0,
days_after_last_tier_change_greater_than=0,
days_after_modification_greater_than=0,
),
enable_auto_tier_to_hot_from_cool=False,
tier_to_archive=azure_native.storage.DateAfterModificationArgs(
days_after_creation_greater_than=0,
days_after_last_access_time_greater_than=0,
days_after_last_tier_change_greater_than=0,
days_after_modification_greater_than=0,
),
tier_to_cold=azure_native.storage.DateAfterModificationArgs(
days_after_creation_greater_than=0,
days_after_last_access_time_greater_than=0,
days_after_last_tier_change_greater_than=0,
days_after_modification_greater_than=0,
),
tier_to_cool=azure_native.storage.DateAfterModificationArgs(
days_after_creation_greater_than=0,
days_after_last_access_time_greater_than=0,
days_after_last_tier_change_greater_than=0,
days_after_modification_greater_than=0,
),
tier_to_hot=azure_native.storage.DateAfterModificationArgs(
days_after_creation_greater_than=0,
days_after_last_access_time_greater_than=0,
days_after_last_tier_change_greater_than=0,
days_after_modification_greater_than=0,
),
),
snapshot=azure_native.storage.ManagementPolicySnapShotArgs(
delete=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=0,
days_after_last_tier_change_greater_than=0,
),
tier_to_archive=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=0,
days_after_last_tier_change_greater_than=0,
),
tier_to_cold=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=0,
days_after_last_tier_change_greater_than=0,
),
tier_to_cool=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=0,
days_after_last_tier_change_greater_than=0,
),
tier_to_hot=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=0,
days_after_last_tier_change_greater_than=0,
),
),
version=azure_native.storage.ManagementPolicyVersionArgs(
delete=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=0,
days_after_last_tier_change_greater_than=0,
),
tier_to_archive=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=0,
days_after_last_tier_change_greater_than=0,
),
tier_to_cold=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=0,
days_after_last_tier_change_greater_than=0,
),
tier_to_cool=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=0,
days_after_last_tier_change_greater_than=0,
),
tier_to_hot=azure_native.storage.DateAfterCreationArgs(
days_after_creation_greater_than=0,
days_after_last_tier_change_greater_than=0,
),
),
),
filters=azure_native.storage.ManagementPolicyFilterArgs(
blob_types=["string"],
blob_index_match=[azure_native.storage.TagFilterArgs(
name="string",
op="string",
value="string",
)],
prefix_match=["string"],
),
),
name="string",
type="string",
enabled=False,
)],
),
resource_group_name="string",
management_policy_name="string")
const managementPolicyResource = new azure_native.storage.ManagementPolicy("managementPolicyResource", {
accountName: "string",
policy: {
rules: [{
definition: {
actions: {
baseBlob: {
"delete": {
daysAfterCreationGreaterThan: 0,
daysAfterLastAccessTimeGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
daysAfterModificationGreaterThan: 0,
},
enableAutoTierToHotFromCool: false,
tierToArchive: {
daysAfterCreationGreaterThan: 0,
daysAfterLastAccessTimeGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
daysAfterModificationGreaterThan: 0,
},
tierToCold: {
daysAfterCreationGreaterThan: 0,
daysAfterLastAccessTimeGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
daysAfterModificationGreaterThan: 0,
},
tierToCool: {
daysAfterCreationGreaterThan: 0,
daysAfterLastAccessTimeGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
daysAfterModificationGreaterThan: 0,
},
tierToHot: {
daysAfterCreationGreaterThan: 0,
daysAfterLastAccessTimeGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
daysAfterModificationGreaterThan: 0,
},
},
snapshot: {
"delete": {
daysAfterCreationGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
},
tierToArchive: {
daysAfterCreationGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
},
tierToCold: {
daysAfterCreationGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
},
tierToCool: {
daysAfterCreationGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
},
tierToHot: {
daysAfterCreationGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
},
},
version: {
"delete": {
daysAfterCreationGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
},
tierToArchive: {
daysAfterCreationGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
},
tierToCold: {
daysAfterCreationGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
},
tierToCool: {
daysAfterCreationGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
},
tierToHot: {
daysAfterCreationGreaterThan: 0,
daysAfterLastTierChangeGreaterThan: 0,
},
},
},
filters: {
blobTypes: ["string"],
blobIndexMatch: [{
name: "string",
op: "string",
value: "string",
}],
prefixMatch: ["string"],
},
},
name: "string",
type: "string",
enabled: false,
}],
},
resourceGroupName: "string",
managementPolicyName: "string",
});
type: azure-native:storage:ManagementPolicy
properties:
accountName: string
managementPolicyName: string
policy:
rules:
- definition:
actions:
baseBlob:
delete:
daysAfterCreationGreaterThan: 0
daysAfterLastAccessTimeGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
daysAfterModificationGreaterThan: 0
enableAutoTierToHotFromCool: false
tierToArchive:
daysAfterCreationGreaterThan: 0
daysAfterLastAccessTimeGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
daysAfterModificationGreaterThan: 0
tierToCold:
daysAfterCreationGreaterThan: 0
daysAfterLastAccessTimeGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
daysAfterModificationGreaterThan: 0
tierToCool:
daysAfterCreationGreaterThan: 0
daysAfterLastAccessTimeGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
daysAfterModificationGreaterThan: 0
tierToHot:
daysAfterCreationGreaterThan: 0
daysAfterLastAccessTimeGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
daysAfterModificationGreaterThan: 0
snapshot:
delete:
daysAfterCreationGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
tierToArchive:
daysAfterCreationGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
tierToCold:
daysAfterCreationGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
tierToCool:
daysAfterCreationGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
tierToHot:
daysAfterCreationGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
version:
delete:
daysAfterCreationGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
tierToArchive:
daysAfterCreationGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
tierToCold:
daysAfterCreationGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
tierToCool:
daysAfterCreationGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
tierToHot:
daysAfterCreationGreaterThan: 0
daysAfterLastTierChangeGreaterThan: 0
filters:
blobIndexMatch:
- name: string
op: string
value: string
blobTypes:
- string
prefixMatch:
- string
enabled: false
name: string
type: string
resourceGroupName: string
ManagementPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ManagementPolicy resource accepts the following input properties:
- Account
Name 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.
- Policy
Pulumi.
Azure Native. Storage. Inputs. Management Policy Schema - 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 stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Management
Policy stringName - The name of the Storage Account Management Policy. It should always be 'default'
- Account
Name 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.
- Policy
Management
Policy Schema Args - 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 stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Management
Policy stringName - The name of the Storage Account Management Policy. It should always be 'default'
- account
Name 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.
- policy
Management
Policy Schema - 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 StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- management
Policy StringName - The name of the Storage Account Management Policy. It should always be 'default'
- account
Name 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.
- policy
Management
Policy Schema - 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 stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- management
Policy stringName - The name of the Storage Account Management Policy. It should always be 'default'
- 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.
- policy
Management
Policy Schema Args - 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_ strname - The name of the resource group within the user's subscription. The name is case insensitive.
- management_
policy_ strname - The name of the Storage Account Management Policy. It should always be 'default'
- account
Name 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.
- policy Property Map
- 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 StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- management
Policy StringName - The name of the Storage Account Management Policy. It should always be 'default'
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.
- Last
Modified stringTime - 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.
- Last
Modified stringTime - 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.
- last
Modified StringTime - 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.
- last
Modified stringTime - 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_ strtime - 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"
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - 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"
Supporting Types
DateAfterCreation, DateAfterCreationArgs
- Days
After doubleCreation Greater Than - Value indicating the age in days after creation
- Days
After doubleLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- Days
After float64Creation Greater Than - Value indicating the age in days after creation
- Days
After float64Last Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- days
After DoubleCreation Greater Than - Value indicating the age in days after creation
- days
After DoubleLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- days
After numberCreation Greater Than - Value indicating the age in days after creation
- days
After numberLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- days_
after_ floatcreation_ greater_ than - Value indicating the age in days after creation
- days_
after_ floatlast_ tier_ change_ greater_ than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- days
After NumberCreation Greater Than - Value indicating the age in days after creation
- days
After NumberLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
DateAfterCreationResponse, DateAfterCreationResponseArgs
- Days
After doubleCreation Greater Than - Value indicating the age in days after creation
- Days
After doubleLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- Days
After float64Creation Greater Than - Value indicating the age in days after creation
- Days
After float64Last Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- days
After DoubleCreation Greater Than - Value indicating the age in days after creation
- days
After DoubleLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- days
After numberCreation Greater Than - Value indicating the age in days after creation
- days
After numberLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- days_
after_ floatcreation_ greater_ than - Value indicating the age in days after creation
- days_
after_ floatlast_ tier_ change_ greater_ than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- days
After NumberCreation Greater Than - Value indicating the age in days after creation
- days
After NumberLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
DateAfterModification, DateAfterModificationArgs
- Days
After doubleCreation Greater Than - Value indicating the age in days after blob creation.
- Days
After doubleLast Access Time Greater Than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- Days
After doubleLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- Days
After doubleModification Greater Than - Value indicating the age in days after last modification
- Days
After float64Creation Greater Than - Value indicating the age in days after blob creation.
- Days
After float64Last Access Time Greater Than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- Days
After float64Last Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- Days
After float64Modification Greater Than - Value indicating the age in days after last modification
- days
After DoubleCreation Greater Than - Value indicating the age in days after blob creation.
- days
After DoubleLast Access Time Greater Than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- days
After DoubleLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- days
After DoubleModification Greater Than - Value indicating the age in days after last modification
- days
After numberCreation Greater Than - Value indicating the age in days after blob creation.
- days
After numberLast Access Time Greater Than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- days
After numberLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- days
After numberModification Greater Than - Value indicating the age in days after last modification
- days_
after_ floatcreation_ greater_ than - Value indicating the age in days after blob creation.
- days_
after_ floatlast_ access_ time_ greater_ than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- days_
after_ floatlast_ tier_ change_ greater_ than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- days_
after_ floatmodification_ greater_ than - Value indicating the age in days after last modification
- days
After NumberCreation Greater Than - Value indicating the age in days after blob creation.
- days
After NumberLast Access Time Greater Than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- days
After NumberLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- days
After NumberModification Greater Than - Value indicating the age in days after last modification
DateAfterModificationResponse, DateAfterModificationResponseArgs
- Days
After doubleCreation Greater Than - Value indicating the age in days after blob creation.
- Days
After doubleLast Access Time Greater Than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- Days
After doubleLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- Days
After doubleModification Greater Than - Value indicating the age in days after last modification
- Days
After float64Creation Greater Than - Value indicating the age in days after blob creation.
- Days
After float64Last Access Time Greater Than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- Days
After float64Last Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- Days
After float64Modification Greater Than - Value indicating the age in days after last modification
- days
After DoubleCreation Greater Than - Value indicating the age in days after blob creation.
- days
After DoubleLast Access Time Greater Than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- days
After DoubleLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- days
After DoubleModification Greater Than - Value indicating the age in days after last modification
- days
After numberCreation Greater Than - Value indicating the age in days after blob creation.
- days
After numberLast Access Time Greater Than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- days
After numberLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- days
After numberModification Greater Than - Value indicating the age in days after last modification
- days_
after_ floatcreation_ greater_ than - Value indicating the age in days after blob creation.
- days_
after_ floatlast_ access_ time_ greater_ than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- days_
after_ floatlast_ tier_ change_ greater_ than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- days_
after_ floatmodification_ greater_ than - Value indicating the age in days after last modification
- days
After NumberCreation Greater Than - Value indicating the age in days after blob creation.
- days
After NumberLast Access Time Greater Than - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- days
After NumberLast Tier Change Greater Than - Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- days
After NumberModification Greater Than - Value indicating the age in days after last modification
ManagementPolicyAction, ManagementPolicyActionArgs
- Base
Blob Pulumi.Azure Native. Storage. Inputs. Management Policy Base Blob - The management policy action for base blob
- Snapshot
Pulumi.
Azure Native. Storage. Inputs. Management Policy Snap Shot - The management policy action for snapshot
- Version
Pulumi.
Azure Native. Storage. Inputs. Management Policy Version - The management policy action for version
- Base
Blob ManagementPolicy Base Blob - The management policy action for base blob
- Snapshot
Management
Policy Snap Shot - The management policy action for snapshot
- Version
Management
Policy Version - The management policy action for version
- base
Blob ManagementPolicy Base Blob - The management policy action for base blob
- snapshot
Management
Policy Snap Shot - The management policy action for snapshot
- version
Management
Policy Version - The management policy action for version
- base
Blob ManagementPolicy Base Blob - The management policy action for base blob
- snapshot
Management
Policy Snap Shot - The management policy action for snapshot
- version
Management
Policy Version - The management policy action for version
- base_
blob ManagementPolicy Base Blob - The management policy action for base blob
- snapshot
Management
Policy Snap Shot - The management policy action for snapshot
- version
Management
Policy Version - The management policy action for version
- base
Blob Property Map - The management policy action for base blob
- snapshot Property Map
- The management policy action for snapshot
- version Property Map
- The management policy action for version
ManagementPolicyActionResponse, ManagementPolicyActionResponseArgs
- Base
Blob Pulumi.Azure Native. Storage. Inputs. Management Policy Base Blob Response - The management policy action for base blob
- Snapshot
Pulumi.
Azure Native. Storage. Inputs. Management Policy Snap Shot Response - The management policy action for snapshot
- Version
Pulumi.
Azure Native. Storage. Inputs. Management Policy Version Response - The management policy action for version
- Base
Blob ManagementPolicy Base Blob Response - The management policy action for base blob
- Snapshot
Management
Policy Snap Shot Response - The management policy action for snapshot
- Version
Management
Policy Version Response - The management policy action for version
- base
Blob ManagementPolicy Base Blob Response - The management policy action for base blob
- snapshot
Management
Policy Snap Shot Response - The management policy action for snapshot
- version
Management
Policy Version Response - The management policy action for version
- base
Blob ManagementPolicy Base Blob Response - The management policy action for base blob
- snapshot
Management
Policy Snap Shot Response - The management policy action for snapshot
- version
Management
Policy Version Response - The management policy action for version
- base_
blob ManagementPolicy Base Blob Response - The management policy action for base blob
- snapshot
Management
Policy Snap Shot Response - The management policy action for snapshot
- version
Management
Policy Version Response - The management policy action for version
- base
Blob Property Map - The management policy action for base blob
- snapshot Property Map
- The management policy action for snapshot
- version Property Map
- The management policy action for version
ManagementPolicyBaseBlob, ManagementPolicyBaseBlobArgs
- Delete
Pulumi.
Azure Native. Storage. Inputs. Date After Modification - The function to delete the blob
- Enable
Auto boolTier To Hot From Cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- Tier
To Pulumi.Archive Azure Native. Storage. Inputs. Date After Modification - The function to tier blobs to archive storage.
- Tier
To Pulumi.Cold Azure Native. Storage. Inputs. Date After Modification - The function to tier blobs to cold storage.
- Tier
To Pulumi.Cool Azure Native. Storage. Inputs. Date After Modification - The function to tier blobs to cool storage.
- Tier
To Pulumi.Hot Azure Native. Storage. Inputs. Date After Modification - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
Date
After Modification - The function to delete the blob
- Enable
Auto boolTier To Hot From Cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- Tier
To DateArchive After Modification - The function to tier blobs to archive storage.
- Tier
To DateCold After Modification - The function to tier blobs to cold storage.
- Tier
To DateCool After Modification - The function to tier blobs to cool storage.
- Tier
To DateHot After Modification - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Modification - The function to delete the blob
- enable
Auto BooleanTier To Hot From Cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tier
To DateArchive After Modification - The function to tier blobs to archive storage.
- tier
To DateCold After Modification - The function to tier blobs to cold storage.
- tier
To DateCool After Modification - The function to tier blobs to cool storage.
- tier
To DateHot After Modification - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Modification - The function to delete the blob
- enable
Auto booleanTier To Hot From Cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tier
To DateArchive After Modification - The function to tier blobs to archive storage.
- tier
To DateCold After Modification - The function to tier blobs to cold storage.
- tier
To DateCool After Modification - The function to tier blobs to cool storage.
- tier
To DateHot After Modification - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Modification - The function to delete the blob
- enable_
auto_ booltier_ to_ hot_ from_ cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tier_
to_ Datearchive After Modification - The function to tier blobs to archive storage.
- tier_
to_ Datecold After Modification - The function to tier blobs to cold storage.
- tier_
to_ Datecool After Modification - The function to tier blobs to cool storage.
- tier_
to_ Datehot After Modification - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob
- enable
Auto BooleanTier To Hot From Cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tier
To Property MapArchive - The function to tier blobs to archive storage.
- tier
To Property MapCold - The function to tier blobs to cold storage.
- tier
To Property MapCool - The function to tier blobs to cool storage.
- tier
To Property MapHot - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
ManagementPolicyBaseBlobResponse, ManagementPolicyBaseBlobResponseArgs
- Delete
Pulumi.
Azure Native. Storage. Inputs. Date After Modification Response - The function to delete the blob
- Enable
Auto boolTier To Hot From Cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- Tier
To Pulumi.Archive Azure Native. Storage. Inputs. Date After Modification Response - The function to tier blobs to archive storage.
- Tier
To Pulumi.Cold Azure Native. Storage. Inputs. Date After Modification Response - The function to tier blobs to cold storage.
- Tier
To Pulumi.Cool Azure Native. Storage. Inputs. Date After Modification Response - The function to tier blobs to cool storage.
- Tier
To Pulumi.Hot Azure Native. Storage. Inputs. Date After Modification Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
Date
After Modification Response - The function to delete the blob
- Enable
Auto boolTier To Hot From Cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- Tier
To DateArchive After Modification Response - The function to tier blobs to archive storage.
- Tier
To DateCold After Modification Response - The function to tier blobs to cold storage.
- Tier
To DateCool After Modification Response - The function to tier blobs to cool storage.
- Tier
To DateHot After Modification Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Modification Response - The function to delete the blob
- enable
Auto BooleanTier To Hot From Cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tier
To DateArchive After Modification Response - The function to tier blobs to archive storage.
- tier
To DateCold After Modification Response - The function to tier blobs to cold storage.
- tier
To DateCool After Modification Response - The function to tier blobs to cool storage.
- tier
To DateHot After Modification Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Modification Response - The function to delete the blob
- enable
Auto booleanTier To Hot From Cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tier
To DateArchive After Modification Response - The function to tier blobs to archive storage.
- tier
To DateCold After Modification Response - The function to tier blobs to cold storage.
- tier
To DateCool After Modification Response - The function to tier blobs to cool storage.
- tier
To DateHot After Modification Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Modification Response - The function to delete the blob
- enable_
auto_ booltier_ to_ hot_ from_ cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tier_
to_ Datearchive After Modification Response - The function to tier blobs to archive storage.
- tier_
to_ Datecold After Modification Response - The function to tier blobs to cold storage.
- tier_
to_ Datecool After Modification Response - The function to tier blobs to cool storage.
- tier_
to_ Datehot After Modification Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob
- enable
Auto BooleanTier To Hot From Cool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tier
To Property MapArchive - The function to tier blobs to archive storage.
- tier
To Property MapCold - The function to tier blobs to cold storage.
- tier
To Property MapCool - The function to tier blobs to cool storage.
- tier
To Property MapHot - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
ManagementPolicyDefinition, ManagementPolicyDefinitionArgs
- Actions
Pulumi.
Azure Native. Storage. Inputs. Management Policy Action - An object that defines the action set.
- Filters
Pulumi.
Azure Native. Storage. Inputs. Management Policy Filter - An object that defines the filter set.
- Actions
Management
Policy Action - An object that defines the action set.
- Filters
Management
Policy Filter - An object that defines the filter set.
- actions
Management
Policy Action - An object that defines the action set.
- filters
Management
Policy Filter - An object that defines the filter set.
- actions
Management
Policy Action - An object that defines the action set.
- filters
Management
Policy Filter - An object that defines the filter set.
- actions
Management
Policy Action - An object that defines the action set.
- filters
Management
Policy Filter - An object that defines the filter set.
- actions Property Map
- An object that defines the action set.
- filters Property Map
- An object that defines the filter set.
ManagementPolicyDefinitionResponse, ManagementPolicyDefinitionResponseArgs
- Actions
Pulumi.
Azure Native. Storage. Inputs. Management Policy Action Response - An object that defines the action set.
- Filters
Pulumi.
Azure Native. Storage. Inputs. Management Policy Filter Response - An object that defines the filter set.
- Actions
Management
Policy Action Response - An object that defines the action set.
- Filters
Management
Policy Filter Response - An object that defines the filter set.
- actions
Management
Policy Action Response - An object that defines the action set.
- filters
Management
Policy Filter Response - An object that defines the filter set.
- actions
Management
Policy Action Response - An object that defines the action set.
- filters
Management
Policy Filter Response - An object that defines the filter set.
- actions
Management
Policy Action Response - An object that defines the action set.
- filters
Management
Policy Filter Response - An object that defines the filter set.
- actions Property Map
- An object that defines the action set.
- filters Property Map
- An object that defines the filter set.
ManagementPolicyFilter, ManagementPolicyFilterArgs
- Blob
Types List<string> - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- Blob
Index List<Pulumi.Match Azure Native. Storage. Inputs. Tag Filter> - An array of blob index tag based filters, there can be at most 10 tag filters
- Prefix
Match List<string> - An array of strings for prefixes to be match.
- Blob
Types []string - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- Blob
Index []TagMatch Filter - An array of blob index tag based filters, there can be at most 10 tag filters
- Prefix
Match []string - An array of strings for prefixes to be match.
- blob
Types List<String> - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blob
Index List<TagMatch Filter> - An array of blob index tag based filters, there can be at most 10 tag filters
- prefix
Match List<String> - An array of strings for prefixes to be match.
- blob
Types string[] - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blob
Index TagMatch Filter[] - An array of blob index tag based filters, there can be at most 10 tag filters
- prefix
Match string[] - An array of strings for prefixes to be match.
- blob_
types Sequence[str] - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blob_
index_ Sequence[Tagmatch Filter] - 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.
- blob
Types List<String> - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blob
Index List<Property Map>Match - An array of blob index tag based filters, there can be at most 10 tag filters
- prefix
Match List<String> - An array of strings for prefixes to be match.
ManagementPolicyFilterResponse, ManagementPolicyFilterResponseArgs
- Blob
Types List<string> - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- Blob
Index List<Pulumi.Match Azure Native. Storage. Inputs. Tag Filter Response> - An array of blob index tag based filters, there can be at most 10 tag filters
- Prefix
Match List<string> - An array of strings for prefixes to be match.
- Blob
Types []string - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- Blob
Index []TagMatch Filter Response - An array of blob index tag based filters, there can be at most 10 tag filters
- Prefix
Match []string - An array of strings for prefixes to be match.
- blob
Types List<String> - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blob
Index List<TagMatch Filter Response> - An array of blob index tag based filters, there can be at most 10 tag filters
- prefix
Match List<String> - An array of strings for prefixes to be match.
- blob
Types string[] - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blob
Index TagMatch Filter Response[] - An array of blob index tag based filters, there can be at most 10 tag filters
- prefix
Match string[] - An array of strings for prefixes to be match.
- blob_
types Sequence[str] - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blob_
index_ Sequence[Tagmatch Filter Response] - 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.
- blob
Types List<String> - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blob
Index List<Property Map>Match - An array of blob index tag based filters, there can be at most 10 tag filters
- prefix
Match List<String> - An array of strings for prefixes to be match.
ManagementPolicyRule, ManagementPolicyRuleArgs
- Definition
Pulumi.
Azure Native. Storage. Inputs. Management Policy Definition - 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.
Azure Native. Storage. Rule Type - The valid value is Lifecycle
- Enabled bool
- Rule is enabled if set to true.
- Definition
Management
Policy Definition - 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 | Rule
Type - The valid value is Lifecycle
- Enabled bool
- Rule is enabled if set to true.
- definition
Management
Policy Definition - 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 | Rule
Type - The valid value is Lifecycle
- enabled Boolean
- Rule is enabled if set to true.
- definition
Management
Policy Definition - 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 | Rule
Type - The valid value is Lifecycle
- enabled boolean
- Rule is enabled if set to true.
- definition
Management
Policy Definition - 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 | Rule
Type - The valid value is Lifecycle
- enabled bool
- Rule is enabled if set to true.
- definition Property Map
- 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 | "Lifecycle"
- The valid value is Lifecycle
- enabled Boolean
- Rule is enabled if set to true.
ManagementPolicyRuleResponse, ManagementPolicyRuleResponseArgs
- Definition
Pulumi.
Azure Native. Storage. Inputs. Management Policy Definition Response - 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
Management
Policy Definition Response - 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
Management
Policy Definition Response - 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
Management
Policy Definition Response - 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
Management
Policy Definition Response - 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.
- definition Property Map
- 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.
ManagementPolicySchema, ManagementPolicySchemaArgs
- Rules
List<Pulumi.
Azure Native. Storage. Inputs. Management Policy Rule> - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- Rules
[]Management
Policy Rule - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
List<Management
Policy Rule> - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
Management
Policy Rule[] - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
Sequence[Management
Policy Rule] - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules List<Property Map>
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
ManagementPolicySchemaResponse, ManagementPolicySchemaResponseArgs
- Rules
List<Pulumi.
Azure Native. Storage. Inputs. Management Policy Rule Response> - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- Rules
[]Management
Policy Rule Response - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
List<Management
Policy Rule Response> - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
Management
Policy Rule Response[] - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
Sequence[Management
Policy Rule Response] - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules List<Property Map>
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
ManagementPolicySnapShot, ManagementPolicySnapShotArgs
- Delete
Pulumi.
Azure Native. Storage. Inputs. Date After Creation - The function to delete the blob snapshot
- Tier
To Pulumi.Archive Azure Native. Storage. Inputs. Date After Creation - The function to tier blob snapshot to archive storage.
- Tier
To Pulumi.Cold Azure Native. Storage. Inputs. Date After Creation - The function to tier blobs to cold storage.
- Tier
To Pulumi.Cool Azure Native. Storage. Inputs. Date After Creation - The function to tier blob snapshot to cool storage.
- Tier
To Pulumi.Hot Azure Native. Storage. Inputs. Date After Creation - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
Date
After Creation - The function to delete the blob snapshot
- Tier
To DateArchive After Creation - The function to tier blob snapshot to archive storage.
- Tier
To DateCold After Creation - The function to tier blobs to cold storage.
- Tier
To DateCool After Creation - The function to tier blob snapshot to cool storage.
- Tier
To DateHot After Creation - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation - The function to delete the blob snapshot
- tier
To DateArchive After Creation - The function to tier blob snapshot to archive storage.
- tier
To DateCold After Creation - The function to tier blobs to cold storage.
- tier
To DateCool After Creation - The function to tier blob snapshot to cool storage.
- tier
To DateHot After Creation - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation - The function to delete the blob snapshot
- tier
To DateArchive After Creation - The function to tier blob snapshot to archive storage.
- tier
To DateCold After Creation - The function to tier blobs to cold storage.
- tier
To DateCool After Creation - The function to tier blob snapshot to cool storage.
- tier
To DateHot After Creation - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation - The function to delete the blob snapshot
- tier_
to_ Datearchive After Creation - The function to tier blob snapshot to archive storage.
- tier_
to_ Datecold After Creation - The function to tier blobs to cold storage.
- tier_
to_ Datecool After Creation - The function to tier blob snapshot to cool storage.
- tier_
to_ Datehot After Creation - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob snapshot
- tier
To Property MapArchive - The function to tier blob snapshot to archive storage.
- tier
To Property MapCold - The function to tier blobs to cold storage.
- tier
To Property MapCool - The function to tier blob snapshot to cool storage.
- tier
To Property MapHot - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
ManagementPolicySnapShotResponse, ManagementPolicySnapShotResponseArgs
- Delete
Pulumi.
Azure Native. Storage. Inputs. Date After Creation Response - The function to delete the blob snapshot
- Tier
To Pulumi.Archive Azure Native. Storage. Inputs. Date After Creation Response - The function to tier blob snapshot to archive storage.
- Tier
To Pulumi.Cold Azure Native. Storage. Inputs. Date After Creation Response - The function to tier blobs to cold storage.
- Tier
To Pulumi.Cool Azure Native. Storage. Inputs. Date After Creation Response - The function to tier blob snapshot to cool storage.
- Tier
To Pulumi.Hot Azure Native. Storage. Inputs. Date After Creation Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
Date
After Creation Response - The function to delete the blob snapshot
- Tier
To DateArchive After Creation Response - The function to tier blob snapshot to archive storage.
- Tier
To DateCold After Creation Response - The function to tier blobs to cold storage.
- Tier
To DateCool After Creation Response - The function to tier blob snapshot to cool storage.
- Tier
To DateHot After Creation Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation Response - The function to delete the blob snapshot
- tier
To DateArchive After Creation Response - The function to tier blob snapshot to archive storage.
- tier
To DateCold After Creation Response - The function to tier blobs to cold storage.
- tier
To DateCool After Creation Response - The function to tier blob snapshot to cool storage.
- tier
To DateHot After Creation Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation Response - The function to delete the blob snapshot
- tier
To DateArchive After Creation Response - The function to tier blob snapshot to archive storage.
- tier
To DateCold After Creation Response - The function to tier blobs to cold storage.
- tier
To DateCool After Creation Response - The function to tier blob snapshot to cool storage.
- tier
To DateHot After Creation Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation Response - The function to delete the blob snapshot
- tier_
to_ Datearchive After Creation Response - The function to tier blob snapshot to archive storage.
- tier_
to_ Datecold After Creation Response - The function to tier blobs to cold storage.
- tier_
to_ Datecool After Creation Response - The function to tier blob snapshot to cool storage.
- tier_
to_ Datehot After Creation Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob snapshot
- tier
To Property MapArchive - The function to tier blob snapshot to archive storage.
- tier
To Property MapCold - The function to tier blobs to cold storage.
- tier
To Property MapCool - The function to tier blob snapshot to cool storage.
- tier
To Property MapHot - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
ManagementPolicyVersion, ManagementPolicyVersionArgs
- Delete
Pulumi.
Azure Native. Storage. Inputs. Date After Creation - The function to delete the blob version
- Tier
To Pulumi.Archive Azure Native. Storage. Inputs. Date After Creation - The function to tier blob version to archive storage.
- Tier
To Pulumi.Cold Azure Native. Storage. Inputs. Date After Creation - The function to tier blobs to cold storage.
- Tier
To Pulumi.Cool Azure Native. Storage. Inputs. Date After Creation - The function to tier blob version to cool storage.
- Tier
To Pulumi.Hot Azure Native. Storage. Inputs. Date After Creation - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
Date
After Creation - The function to delete the blob version
- Tier
To DateArchive After Creation - The function to tier blob version to archive storage.
- Tier
To DateCold After Creation - The function to tier blobs to cold storage.
- Tier
To DateCool After Creation - The function to tier blob version to cool storage.
- Tier
To DateHot After Creation - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation - The function to delete the blob version
- tier
To DateArchive After Creation - The function to tier blob version to archive storage.
- tier
To DateCold After Creation - The function to tier blobs to cold storage.
- tier
To DateCool After Creation - The function to tier blob version to cool storage.
- tier
To DateHot After Creation - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation - The function to delete the blob version
- tier
To DateArchive After Creation - The function to tier blob version to archive storage.
- tier
To DateCold After Creation - The function to tier blobs to cold storage.
- tier
To DateCool After Creation - The function to tier blob version to cool storage.
- tier
To DateHot After Creation - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation - The function to delete the blob version
- tier_
to_ Datearchive After Creation - The function to tier blob version to archive storage.
- tier_
to_ Datecold After Creation - The function to tier blobs to cold storage.
- tier_
to_ Datecool After Creation - The function to tier blob version to cool storage.
- tier_
to_ Datehot After Creation - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob version
- tier
To Property MapArchive - The function to tier blob version to archive storage.
- tier
To Property MapCold - The function to tier blobs to cold storage.
- tier
To Property MapCool - The function to tier blob version to cool storage.
- tier
To Property MapHot - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
ManagementPolicyVersionResponse, ManagementPolicyVersionResponseArgs
- Delete
Pulumi.
Azure Native. Storage. Inputs. Date After Creation Response - The function to delete the blob version
- Tier
To Pulumi.Archive Azure Native. Storage. Inputs. Date After Creation Response - The function to tier blob version to archive storage.
- Tier
To Pulumi.Cold Azure Native. Storage. Inputs. Date After Creation Response - The function to tier blobs to cold storage.
- Tier
To Pulumi.Cool Azure Native. Storage. Inputs. Date After Creation Response - The function to tier blob version to cool storage.
- Tier
To Pulumi.Hot Azure Native. Storage. Inputs. Date After Creation Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
Date
After Creation Response - The function to delete the blob version
- Tier
To DateArchive After Creation Response - The function to tier blob version to archive storage.
- Tier
To DateCold After Creation Response - The function to tier blobs to cold storage.
- Tier
To DateCool After Creation Response - The function to tier blob version to cool storage.
- Tier
To DateHot After Creation Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation Response - The function to delete the blob version
- tier
To DateArchive After Creation Response - The function to tier blob version to archive storage.
- tier
To DateCold After Creation Response - The function to tier blobs to cold storage.
- tier
To DateCool After Creation Response - The function to tier blob version to cool storage.
- tier
To DateHot After Creation Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation Response - The function to delete the blob version
- tier
To DateArchive After Creation Response - The function to tier blob version to archive storage.
- tier
To DateCold After Creation Response - The function to tier blobs to cold storage.
- tier
To DateCool After Creation Response - The function to tier blob version to cool storage.
- tier
To DateHot After Creation Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
Date
After Creation Response - The function to delete the blob version
- tier_
to_ Datearchive After Creation Response - The function to tier blob version to archive storage.
- tier_
to_ Datecold After Creation Response - The function to tier blobs to cold storage.
- tier_
to_ Datecool After Creation Response - The function to tier blob version to cool storage.
- tier_
to_ Datehot After Creation Response - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob version
- tier
To Property MapArchive - The function to tier blob version to archive storage.
- tier
To Property MapCold - The function to tier blobs to cold storage.
- tier
To Property MapCool - The function to tier blob version to cool storage.
- tier
To Property MapHot - The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
RuleType, RuleTypeArgs
- Lifecycle
- Lifecycle
- Rule
Type Lifecycle - Lifecycle
- Lifecycle
- Lifecycle
- Lifecycle
- Lifecycle
- LIFECYCLE
- Lifecycle
- "Lifecycle"
- Lifecycle
TagFilter, TagFilterArgs
- 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 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
- 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
TagFilterResponse, TagFilterResponseArgs
- 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 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
- 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
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storage:ManagementPolicy DefaultManagementPolicy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0