ManagementPolicy
The Get Storage Account ManagementPolicies operation response. Latest API Version: 2019-06-01.
Example Usage
StorageAccountSetManagementPolicies
using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;
class MyStack : Stack
{
public MyStack()
{
var managementPolicy = new AzureNextGen.Storage.Latest.ManagementPolicy("managementPolicy", new AzureNextGen.Storage.Latest.ManagementPolicyArgs
{
AccountName = "sto9699",
ManagementPolicyName = "default",
Policy = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicySchemaArgs
{
Rules =
{
new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 1000,
},
TierToArchive = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 90,
},
TierToCool = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 30,
},
},
Snapshot = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicySnapShotArgs
{
Delete = new AzureNextGen.Storage.Latest.Inputs.DateAfterCreationArgs
{
DaysAfterCreationGreaterThan = 30,
},
},
},
Filters = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyFilterArgs
{
BlobTypes =
{
"blockBlob",
},
PrefixMatch =
{
"olcmtestcontainer1",
},
},
},
Enabled = true,
Name = "olcmtest1",
Type = "Lifecycle",
},
new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyRuleArgs
{
Definition = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyDefinitionArgs
{
Actions = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyActionArgs
{
BaseBlob = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyBaseBlobArgs
{
Delete = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 1000,
},
TierToArchive = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 90,
},
TierToCool = new AzureNextGen.Storage.Latest.Inputs.DateAfterModificationArgs
{
DaysAfterModificationGreaterThan = 30,
},
},
},
Filters = new AzureNextGen.Storage.Latest.Inputs.ManagementPolicyFilterArgs
{
BlobIndexMatch =
{
new AzureNextGen.Storage.Latest.Inputs.TagFilterArgs
{
Name = "tag1",
Op = "==",
Value = "val1",
},
new AzureNextGen.Storage.Latest.Inputs.TagFilterArgs
{
Name = "tag2",
Op = "==",
Value = "val2",
},
},
BlobTypes =
{
"blockBlob",
},
PrefixMatch =
{
"olcmtestcontainer2",
},
},
},
Enabled = true,
Name = "olcmtest2",
Type = "Lifecycle",
},
},
},
ResourceGroupName = "res7687",
});
}
}
package main
import (
storage "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/storage/latest"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewManagementPolicy(ctx, "managementPolicy", &storage.ManagementPolicyArgs{
AccountName: pulumi.String("sto9699"),
ManagementPolicyName: pulumi.String("default"),
Policy: &storage.ManagementPolicySchemaArgs{
Rules: storage.ManagementPolicyRuleArray{
&storage.ManagementPolicyRuleArgs{
Definition: &storage.ManagementPolicyDefinitionArgs{
Actions: &storage.ManagementPolicyActionArgs{
BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
Delete: &storage.DateAfterModificationArgs{
DaysAfterModificationGreaterThan: pulumi.Float64(1000),
},
TierToArchive: &storage.DateAfterModificationArgs{
DaysAfterModificationGreaterThan: pulumi.Float64(90),
},
TierToCool: &storage.DateAfterModificationArgs{
DaysAfterModificationGreaterThan: pulumi.Float64(30),
},
},
Snapshot: &storage.ManagementPolicySnapShotArgs{
Delete: &storage.DateAfterCreationArgs{
DaysAfterCreationGreaterThan: pulumi.Float64(30),
},
},
},
Filters: &storage.ManagementPolicyFilterArgs{
BlobTypes: pulumi.StringArray{
pulumi.String("blockBlob"),
},
PrefixMatch: pulumi.StringArray{
pulumi.String("olcmtestcontainer1"),
},
},
},
Enabled: pulumi.Bool(true),
Name: pulumi.String("olcmtest1"),
Type: pulumi.String("Lifecycle"),
},
&storage.ManagementPolicyRuleArgs{
Definition: &storage.ManagementPolicyDefinitionArgs{
Actions: &storage.ManagementPolicyActionArgs{
BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
Delete: &storage.DateAfterModificationArgs{
DaysAfterModificationGreaterThan: pulumi.Float64(1000),
},
TierToArchive: &storage.DateAfterModificationArgs{
DaysAfterModificationGreaterThan: pulumi.Float64(90),
},
TierToCool: &storage.DateAfterModificationArgs{
DaysAfterModificationGreaterThan: pulumi.Float64(30),
},
},
},
Filters: &storage.ManagementPolicyFilterArgs{
BlobIndexMatch: storage.TagFilterArray{
&storage.TagFilterArgs{
Name: pulumi.String("tag1"),
Op: pulumi.String("=="),
Value: pulumi.String("val1"),
},
&storage.TagFilterArgs{
Name: pulumi.String("tag2"),
Op: pulumi.String("=="),
Value: pulumi.String("val2"),
},
},
BlobTypes: pulumi.StringArray{
pulumi.String("blockBlob"),
},
PrefixMatch: pulumi.StringArray{
pulumi.String("olcmtestcontainer2"),
},
},
},
Enabled: pulumi.Bool(true),
Name: pulumi.String("olcmtest2"),
Type: pulumi.String("Lifecycle"),
},
},
},
ResourceGroupName: pulumi.String("res7687"),
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen
management_policy = azure_nextgen.storage.latest.ManagementPolicy("managementPolicy",
account_name="sto9699",
management_policy_name="default",
policy=azure_nextgen.storage.latest.ManagementPolicySchemaArgs(
rules=[
azure_nextgen.storage.latest.ManagementPolicyRuleArgs(
definition=azure_nextgen.storage.latest.ManagementPolicyDefinitionArgs(
actions=azure_nextgen.storage.latest.ManagementPolicyActionArgs(
base_blob=azure_nextgen.storage.latest.ManagementPolicyBaseBlobArgs(
delete=azure_nextgen.storage.latest.DateAfterModificationArgs(
days_after_modification_greater_than=1000,
),
tier_to_archive=azure_nextgen.storage.latest.DateAfterModificationArgs(
days_after_modification_greater_than=90,
),
tier_to_cool=azure_nextgen.storage.latest.DateAfterModificationArgs(
days_after_modification_greater_than=30,
),
),
snapshot=azure_nextgen.storage.latest.ManagementPolicySnapShotArgs(
delete=azure_nextgen.storage.latest.DateAfterCreationArgs(
days_after_creation_greater_than=30,
),
),
),
filters=azure_nextgen.storage.latest.ManagementPolicyFilterArgs(
blob_types=["blockBlob"],
prefix_match=["olcmtestcontainer1"],
),
),
enabled=True,
name="olcmtest1",
type="Lifecycle",
),
azure_nextgen.storage.latest.ManagementPolicyRuleArgs(
definition=azure_nextgen.storage.latest.ManagementPolicyDefinitionArgs(
actions=azure_nextgen.storage.latest.ManagementPolicyActionArgs(
base_blob=azure_nextgen.storage.latest.ManagementPolicyBaseBlobArgs(
delete=azure_nextgen.storage.latest.DateAfterModificationArgs(
days_after_modification_greater_than=1000,
),
tier_to_archive=azure_nextgen.storage.latest.DateAfterModificationArgs(
days_after_modification_greater_than=90,
),
tier_to_cool=azure_nextgen.storage.latest.DateAfterModificationArgs(
days_after_modification_greater_than=30,
),
),
),
filters=azure_nextgen.storage.latest.ManagementPolicyFilterArgs(
blob_index_match=[
azure_nextgen.storage.latest.TagFilterArgs(
name="tag1",
op="==",
value="val1",
),
azure_nextgen.storage.latest.TagFilterArgs(
name="tag2",
op="==",
value="val2",
),
],
blob_types=["blockBlob"],
prefix_match=["olcmtestcontainer2"],
),
),
enabled=True,
name="olcmtest2",
type="Lifecycle",
),
],
),
resource_group_name="res7687")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";
const managementPolicy = new azure_nextgen.storage.latest.ManagementPolicy("managementPolicy", {
accountName: "sto9699",
managementPolicyName: "default",
policy: {
rules: [
{
definition: {
actions: {
baseBlob: {
"delete": {
daysAfterModificationGreaterThan: 1000,
},
tierToArchive: {
daysAfterModificationGreaterThan: 90,
},
tierToCool: {
daysAfterModificationGreaterThan: 30,
},
},
snapshot: {
"delete": {
daysAfterCreationGreaterThan: 30,
},
},
},
filters: {
blobTypes: ["blockBlob"],
prefixMatch: ["olcmtestcontainer1"],
},
},
enabled: true,
name: "olcmtest1",
type: "Lifecycle",
},
{
definition: {
actions: {
baseBlob: {
"delete": {
daysAfterModificationGreaterThan: 1000,
},
tierToArchive: {
daysAfterModificationGreaterThan: 90,
},
tierToCool: {
daysAfterModificationGreaterThan: 30,
},
},
},
filters: {
blobIndexMatch: [
{
name: "tag1",
op: "==",
value: "val1",
},
{
name: "tag2",
op: "==",
value: "val2",
},
],
blobTypes: ["blockBlob"],
prefixMatch: ["olcmtestcontainer2"],
},
},
enabled: true,
name: "olcmtest2",
type: "Lifecycle",
},
],
},
resourceGroupName: "res7687",
});
Create a ManagementPolicy Resource
new ManagementPolicy(name: string, args: ManagementPolicyArgs, opts?: CustomResourceOptions);
def ManagementPolicy(resource_name: str, opts: Optional[ResourceOptions] = None, account_name: Optional[str] = None, management_policy_name: Optional[str] = None, policy: Optional[ManagementPolicySchemaArgs] = None, resource_group_name: Optional[str] = None)
func NewManagementPolicy(ctx *Context, name string, args ManagementPolicyArgs, opts ...ResourceOption) (*ManagementPolicy, error)
public ManagementPolicy(string name, ManagementPolicyArgs args, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args ManagementPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ManagementPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ManagementPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ManagementPolicy resource accepts the following input properties:
- 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.
- Management
Policy stringName - The name of the Storage Account Management Policy. It should always be ‘default’
- Policy
Pulumi.
Azure Next Gen. Storage. Inputs. 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.
- 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.
- Management
Policy stringName - The name of the Storage Account Management Policy. It should always be ‘default’
- 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.
- 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.
- management
Policy stringName - The name of the Storage Account Management Policy. It should always be ‘default’
- 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.
- account_
name str - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- management_
policy_ strname - The name of the Storage Account Management Policy. It should always be ‘default’
- 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.
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 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”
Supporting Types
DateAfterCreation
- Days
After doubleCreation Greater Than - Value indicating the age in days after creation
- Days
After float64Creation Greater Than - Value indicating the age in days after creation
- days
After numberCreation Greater Than - Value indicating the age in days after creation
- days_
after_ floatcreation_ greater_ than - Value indicating the age in days after creation
DateAfterCreationResponse
- Days
After doubleCreation Greater Than - Value indicating the age in days after creation
- Days
After float64Creation Greater Than - Value indicating the age in days after creation
- days
After numberCreation Greater Than - Value indicating the age in days after creation
- days_
after_ floatcreation_ greater_ than - Value indicating the age in days after creation
DateAfterModification
- Days
After doubleModification Greater Than - Value indicating the age in days after last modification
- Days
After float64Modification Greater Than - Value indicating the age in days after last modification
- days
After numberModification Greater Than - Value indicating the age in days after last modification
- days_
after_ floatmodification_ greater_ than - Value indicating the age in days after last modification
DateAfterModificationResponse
- Days
After doubleModification Greater Than - Value indicating the age in days after last modification
- Days
After float64Modification Greater Than - Value indicating the age in days after last modification
- days
After numberModification Greater Than - Value indicating the age in days after last modification
- days_
after_ floatmodification_ greater_ than - Value indicating the age in days after last modification
ManagementPolicyAction
- Base
Blob Pulumi.Azure Next Gen. Storage. Inputs. Management Policy Base Blob Args - The management policy action for base blob
- Snapshot
Pulumi.
Azure Next Gen. Storage. Inputs. Management Policy Snap Shot Args - The management policy action for snapshot
- Base
Blob ManagementPolicy Base Blob - The management policy action for base blob
- Snapshot
Management
Policy Snap Shot - The management policy action for snapshot
- base
Blob ManagementPolicy Base Blob - The management policy action for base blob
- snapshot
Management
Policy Snap Shot - The management policy action for snapshot
- base_
blob ManagementPolicy Base Blob Args - The management policy action for base blob
- snapshot
Management
Policy Snap Shot Args - The management policy action for snapshot
ManagementPolicyActionResponse
- Base
Blob Pulumi.Azure Next Gen. Storage. Inputs. Management Policy Base Blob Response Args - The management policy action for base blob
- Snapshot
Pulumi.
Azure Next Gen. Storage. Inputs. Management Policy Snap Shot Response Args - The management policy action for snapshot
- 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
- 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
- base_
blob ManagementPolicy Base Blob Response Args - The management policy action for base blob
- snapshot
Management
Policy Snap Shot Response Args - The management policy action for snapshot
ManagementPolicyBaseBlob
- Delete
Pulumi.
Azure Next Gen. Storage. Inputs. Date After Modification Args - The function to delete the blob
- Tier
To Pulumi.Archive Azure Next Gen. Storage. Inputs. Date After Modification Args - The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
- Tier
To Pulumi.Cool Azure Next Gen. Storage. Inputs. Date After Modification Args - The function to tier blobs to cool storage. Support blobs currently at Hot tier
- Delete
Date
After Modification - The function to delete the blob
- Tier
To DateArchive After Modification - The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
- Tier
To DateCool After Modification - The function to tier blobs to cool storage. Support blobs currently at Hot tier
- delete
Date
After Modification - The function to delete the blob
- tier
To DateArchive After Modification - The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
- tier
To DateCool After Modification - The function to tier blobs to cool storage. Support blobs currently at Hot tier
- delete
Date
After Modification Args - The function to delete the blob
- tier_
to_ Datearchive After Modification Args - The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
- tier_
to_ Datecool After Modification Args - The function to tier blobs to cool storage. Support blobs currently at Hot tier
ManagementPolicyBaseBlobResponse
- Delete
Pulumi.
Azure Next Gen. Storage. Inputs. Date After Modification Response Args - The function to delete the blob
- Tier
To Pulumi.Archive Azure Next Gen. Storage. Inputs. Date After Modification Response Args - The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
- Tier
To Pulumi.Cool Azure Next Gen. Storage. Inputs. Date After Modification Response Args - The function to tier blobs to cool storage. Support blobs currently at Hot tier
- Delete
Date
After Modification Response - The function to delete the blob
- Tier
To DateArchive After Modification Response - The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
- Tier
To DateCool After Modification Response - The function to tier blobs to cool storage. Support blobs currently at Hot tier
- delete
Date
After Modification Response - The function to delete the blob
- tier
To DateArchive After Modification Response - The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
- tier
To DateCool After Modification Response - The function to tier blobs to cool storage. Support blobs currently at Hot tier
- delete
Date
After Modification Response Args - The function to delete the blob
- tier_
to_ Datearchive After Modification Response Args - The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
- tier_
to_ Datecool After Modification Response Args - The function to tier blobs to cool storage. Support blobs currently at Hot tier
ManagementPolicyDefinition
- Actions
Pulumi.
Azure Next Gen. Storage. Inputs. Management Policy Action Args - An object that defines the action set.
- Filters
Pulumi.
Azure Next Gen. Storage. Inputs. Management Policy Filter Args - 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 Args - An object that defines the action set.
- filters
Management
Policy Filter Args - An object that defines the filter set.
ManagementPolicyDefinitionResponse
- Actions
Pulumi.
Azure Next Gen. Storage. Inputs. Management Policy Action Response Args - An object that defines the action set.
- Filters
Pulumi.
Azure Next Gen. Storage. Inputs. Management Policy Filter Response Args - 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 Args - An object that defines the action set.
- filters
Management
Policy Filter Response Args - An object that defines the filter set.
ManagementPolicyFilter
- Blob
Types List<string> - An array of predefined enum values. Only blockBlob is supported.
- Blob
Index List<Pulumi.Match Azure Next Gen. Storage. Inputs. Tag Filter Args> - 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. Only blockBlob is supported.
- 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 string[] - An array of predefined enum values. Only blockBlob is supported.
- 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. Only blockBlob is supported.
- blob_
index_ Sequence[Tagmatch Filter Args] - An array of blob index tag based filters, there can be at most 10 tag filters
- prefix_
match Sequence[str] - An array of strings for prefixes to be match.
ManagementPolicyFilterResponse
- Blob
Types List<string> - An array of predefined enum values. Only blockBlob is supported.
- Blob
Index List<Pulumi.Match Azure Next Gen. Storage. Inputs. Tag Filter Response Args> - 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. Only blockBlob is supported.
- 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 string[] - An array of predefined enum values. Only blockBlob is supported.
- 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. Only blockBlob is supported.
- blob_
index_ Sequence[Tagmatch Filter Response Args] - An array of blob index tag based filters, there can be at most 10 tag filters
- prefix_
match Sequence[str] - An array of strings for prefixes to be match.
ManagementPolicyRule
- Definition
Pulumi.
Azure Next Gen. Storage. Inputs. Management Policy Definition Args - 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 Next Gen. 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 Args - 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.
ManagementPolicyRuleResponse
- Definition
Pulumi.
Azure Next Gen. Storage. Inputs. Management Policy Definition Response Args - 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 Args - An object that defines the Lifecycle rule.
- name str
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- type str
- The valid value is Lifecycle
- enabled bool
- Rule is enabled if set to true.
ManagementPolicySchema
- Rules
List<Pulumi.
Azure Next Gen. Storage. Inputs. Management Policy Rule Args> - 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
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 Args] - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
ManagementPolicySchemaResponse
- Rules
List<Pulumi.
Azure Next Gen. Storage. Inputs. Management Policy Rule Response Args> - 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
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 Args] - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
ManagementPolicySnapShot
- Delete
Pulumi.
Azure Next Gen. Storage. Inputs. Date After Creation Args - The function to delete the blob snapshot
- Delete
Date
After Creation - The function to delete the blob snapshot
- delete
Date
After Creation - The function to delete the blob snapshot
- delete
Date
After Creation Args - The function to delete the blob snapshot
ManagementPolicySnapShotResponse
- Delete
Pulumi.
Azure Next Gen. Storage. Inputs. Date After Creation Response Args - The function to delete the blob snapshot
- Delete
Date
After Creation Response - The function to delete the blob snapshot
- delete
Date
After Creation Response - The function to delete the blob snapshot
- delete
Date
After Creation Response Args - The function to delete the blob snapshot
RuleType
- Lifecycle
- Lifecycle
- Rule
Type Lifecycle - Lifecycle
- Lifecycle
- Lifecycle
- LIFECYCLE
- Lifecycle
TagFilter
- Name string
- This is the filter tag name, it can have 1 - 128 characters
- Op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- Value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- Name string
- This is the filter tag name, it can have 1 - 128 characters
- Op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- Value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name string
- This is the filter tag name, it can have 1 - 128 characters
- op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name str
- This is the filter tag name, it can have 1 - 128 characters
- op str
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value str
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
TagFilterResponse
- Name string
- This is the filter tag name, it can have 1 - 128 characters
- Op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- Value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- Name string
- This is the filter tag name, it can have 1 - 128 characters
- Op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- Value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name string
- This is the filter tag name, it can have 1 - 128 characters
- op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name str
- This is the filter tag name, it can have 1 - 128 characters
- op str
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value str
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-nextgen:storage/latest:ManagementPolicy DefaultManagementPolicy /subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Storage/storageAccounts/sto288/managementPolicies/default
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure-nextgen
- License
- Apache-2.0