Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

GetManagementPolicy

Using GetManagementPolicy

function getManagementPolicy(args: GetManagementPolicyArgs, opts?: InvokeOptions): Promise<GetManagementPolicyResult>
def get_management_policy(account_name: Optional[str] = None, management_policy_name: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetManagementPolicyResult
func LookupManagementPolicy(ctx *Context, args *LookupManagementPolicyArgs, opts ...InvokeOption) (*LookupManagementPolicyResult, error)

Note: This function is named LookupManagementPolicy in the Go SDK.

public static class GetManagementPolicy {
    public static Task<GetManagementPolicyResult> InvokeAsync(GetManagementPolicyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

AccountName string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
ManagementPolicyName string
The name of the Storage Account Management Policy. It should always be ‘default’
ResourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
AccountName string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
ManagementPolicyName string
The name of the Storage Account Management Policy. It should always be ‘default’
ResourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
accountName string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
managementPolicyName string
The name of the Storage Account Management Policy. It should always be ‘default’
resourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
account_name str
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
management_policy_name str
The name of the Storage Account Management Policy. It should always be ‘default’
resource_group_name str
The name of the resource group within the user’s subscription. The name is case insensitive.

GetManagementPolicy Result

The following output properties are available:

Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
LastModifiedTime string
Returns the date and time the ManagementPolicies was last modified.
Name string
The name of the resource
Policy Pulumi.AzureNextGen.Storage.Outputs.ManagementPolicySchemaResponse
The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
LastModifiedTime string
Returns the date and time the ManagementPolicies was last modified.
Name string
The name of the resource
Policy ManagementPolicySchemaResponse
The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
lastModifiedTime string
Returns the date and time the ManagementPolicies was last modified.
name string
The name of the resource
policy ManagementPolicySchemaResponse
The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
id str
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
last_modified_time str
Returns the date and time the ManagementPolicies was last modified.
name str
The name of the resource
policy ManagementPolicySchemaResponse
The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
type str
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”

Supporting Types

DateAfterCreationResponse

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

DateAfterModificationResponse

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

ManagementPolicyActionResponse

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

ManagementPolicyBaseBlobResponse

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

ManagementPolicyDefinitionResponse

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

ManagementPolicyFilterResponse

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

ManagementPolicyRuleResponse

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

ManagementPolicySchemaResponse

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

ManagementPolicySnapShotResponse

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

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

Package Details

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