Azure Storage Accounts ManagementPolicies API
The ManagementPolicies API from Azure Storage Accounts — 1 operation(s) for managementpolicies.
The ManagementPolicies API from Azure Storage Accounts — 1 operation(s) for managementpolicies.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/azure-storage-accounts:azure-storage-accounts-managementpolicies-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: StorageManagementClient Management Policies API
version: '2026-09-01'
description: The Azure Storage Management API.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: ManagementPolicies
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}
: get:
operationId: ManagementPolicies_Get
tags:
- ManagementPolicies
description: Gets the managementpolicy associated with the specified storage account.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: accountName
in: path
description: 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.
required: true
schema:
type: string
maxLength: 24
minLength: 3
pattern: ^[a-z0-9]+$
- name: managementPolicyName
in: path
description: The name of the Storage Account Management Policy. It should always be 'default'
required: true
x-ms-enum:
name: ManagementPolicyName
modelAsString: true
values:
- name: default
value: default
schema:
type: string
enum:
- default
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/ManagementPolicy'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Management policies get
x-summary-source: derived
put:
operationId: ManagementPolicies_CreateOrUpdate
tags:
- ManagementPolicies
description: Sets the managementpolicy to the specified storage account.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: accountName
in: path
description: 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.
required: true
schema:
type: string
maxLength: 24
minLength: 3
pattern: ^[a-z0-9]+$
- name: managementPolicyName
in: path
description: The name of the Storage Account Management Policy. It should always be 'default'
required: true
x-ms-enum:
name: ManagementPolicyName
modelAsString: true
values:
- name: default
value: default
schema:
type: string
enum:
- default
responses:
'200':
description: Resource 'ManagementPolicy' update operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/ManagementPolicy'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ManagementPolicy'
description: The ManagementPolicy set to a storage account.
required: true
summary: Management policies create or update
x-summary-source: derived
delete:
operationId: ManagementPolicies_Delete
tags:
- ManagementPolicies
description: Deletes the managementpolicy associated with the specified storage account.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: accountName
in: path
description: 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.
required: true
schema:
type: string
maxLength: 24
minLength: 3
pattern: ^[a-z0-9]+$
- name: managementPolicyName
in: path
description: The name of the Storage Account Management Policy. It should always be 'default'
required: true
x-ms-enum:
name: ManagementPolicyName
modelAsString: true
values:
- name: default
value: default
schema:
type: string
enum:
- default
responses:
'200':
description: Resource deleted successfully.
'204':
description: Resource does not exist.
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Management policies delete
x-summary-source: derived
components:
schemas:
ManagementPolicyProperties:
type: object
description: The Storage Account ManagementPolicy properties.
properties:
lastModifiedTime:
type: string
format: date-time
description: Returns the date and time the ManagementPolicies was last modified.
readOnly: true
policy:
$ref: '#/components/schemas/ManagementPolicySchema'
description: 'The Storage Account ManagementPolicy, in JSON format. See more details in: https://learn.microsoft.com/azure/storage/blobs/lifecycle-management-overview.'
required:
- policy
ManagementPolicyAction:
type: object
description: Actions are applied to the filtered blobs when the execution condition is met.
properties:
baseBlob:
$ref: '#/components/schemas/ManagementPolicyBaseBlob'
description: The management policy action for base blob
snapshot:
$ref: '#/components/schemas/ManagementPolicySnapShot'
description: The management policy action for snapshot
version:
$ref: '#/components/schemas/ManagementPolicyVersion'
description: The management policy action for version
ManagementPolicyVersion:
type: object
description: Management policy action for blob version.
properties:
tierToCool:
$ref: '#/components/schemas/DateAfterCreation'
description: The function to tier blob version to cool storage.
tierToArchive:
$ref: '#/components/schemas/DateAfterCreation'
description: The function to tier blob version to archive storage.
tierToCold:
$ref: '#/components/schemas/DateAfterCreation'
description: The function to tier blobs to cold storage.
tierToHot:
$ref: '#/components/schemas/DateAfterCreation'
description: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
delete:
$ref: '#/components/schemas/DateAfterCreation'
description: The function to delete the blob version
ErrorResponseBody:
type: object
description: Error response body contract.
properties:
code:
type: string
description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
message:
type: string
description: A message describing the error, intended to be suitable for display in a user interface.
ManagementPolicySnapShot:
type: object
description: Management policy action for snapshot.
properties:
tierToCool:
$ref: '#/components/schemas/DateAfterCreation'
description: The function to tier blob snapshot to cool storage.
tierToArchive:
$ref: '#/components/schemas/DateAfterCreation'
description: The function to tier blob snapshot to archive storage.
tierToCold:
$ref: '#/components/schemas/DateAfterCreation'
description: The function to tier blobs to cold storage.
tierToHot:
$ref: '#/components/schemas/DateAfterCreation'
description: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
delete:
$ref: '#/components/schemas/DateAfterCreation'
description: The function to delete the blob snapshot
ManagementPolicyFilter:
type: object
description: Filters limit rule actions to a subset of blobs within the storage account. If multiple filters are defined, a logical AND is performed on all filters.
properties:
prefixMatch:
type: array
description: An array of strings for prefixes to be match.
items:
type: string
blobTypes:
type: array
description: An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
items:
type: string
blobIndexMatch:
type: array
description: An array of blob index tag based filters, there can be at most 10 tag filters
items:
$ref: '#/components/schemas/TagFilter'
required:
- blobTypes
ManagementPolicyBaseBlob:
type: object
description: Management policy action for base blob.
properties:
tierToCool:
$ref: '#/components/schemas/DateAfterModification'
description: The function to tier blobs to cool storage.
tierToArchive:
$ref: '#/components/schemas/DateAfterModification'
description: The function to tier blobs to archive storage.
tierToCold:
$ref: '#/components/schemas/DateAfterModification'
description: The function to tier blobs to cold storage.
tierToHot:
$ref: '#/components/schemas/DateAfterModification'
description: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
delete:
$ref: '#/components/schemas/DateAfterModification'
description: The function to delete the blob
enableAutoTierToHotFromCool:
type: boolean
description: This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
TagFilter:
type: object
description: Blob index tag based filtering for blob objects
properties:
name:
type: string
description: This is the filter tag name, it can have 1 - 128 characters
minLength: 1
maxLength: 128
op:
type: string
description: This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
value:
type: string
description: This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
minLength: 0
maxLength: 256
required:
- name
- op
- value
ErrorResponse:
type: object
description: An error response from the storage resource provider.
properties:
error:
$ref: '#/components/schemas/ErrorResponseBody'
description: Azure Storage Resource Provider error response body.
ManagementPolicySchema:
type: object
description: 'The Storage Account ManagementPolicies Rules. See more details in: https://learn.microsoft.com/azure/storage/blobs/lifecycle-management-overview.'
properties:
rules:
type: array
description: 'The Storage Account ManagementPolicies Rules. See more details in: https://learn.microsoft.com/azure/storage/blobs/lifecycle-management-overview.'
items:
$ref: '#/components/schemas/ManagementPolicyRule'
required:
- rules
Resource:
type: object
title: Resource
description: Common fields that are returned in the response for all Azure Resource Manager resources
properties:
id:
type: string
format: arm-id
description: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
readOnly: true
name:
type: string
description: The name of the resource
readOnly: true
type:
type: string
description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
readOnly: true
systemData:
$ref: '#/components/schemas/systemData'
description: Azure Resource Manager metadata containing createdBy and modifiedBy information.
readOnly: true
x-ms-azure-resource: true
ManagementPolicyRule:
type: object
description: An object that wraps the Lifecycle rule. Each rule is uniquely defined by name.
properties:
enabled:
type: boolean
description: Rule is enabled if set to true.
name:
type: string
description: A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
type:
$ref: '#/components/schemas/RuleType'
description: The valid value is Lifecycle
definition:
$ref: '#/components/schemas/ManagementPolicyDefinition'
description: An object that defines the Lifecycle rule.
required:
- name
- type
- definition
ManagementPolicy:
type: object
description: The Get Storage Account ManagementPolicies operation response.
properties:
properties:
$ref: '#/components/schemas/ManagementPolicyProperties'
description: Returns the Storage Account Data Policies Rules.
x-ms-client-flatten: true
allOf:
- $ref: '#/components/schemas/ProxyResource'
ProxyResource:
type: object
title: Proxy Resource
description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
allOf:
- $ref: '#/components/schemas/Resource'
RuleType:
type: string
description: The valid value is Lifecycle
enum:
- Lifecycle
x-ms-enum:
name: RuleType
modelAsString: true
values:
- name: Lifecycle
value: Lifecycle
DateAfterCreation:
type: object
description: Object to define snapshot and version action conditions.
properties:
daysAfterCreationGreaterThan:
type: number
format: float
description: Value indicating the age in days after creation
minimum: 0
daysAfterLastTierChangeGreaterThan:
type: number
format: float
description: 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.
minimum: 0
required:
- daysAfterCreationGreaterThan
DateAfterModification:
type: object
description: Object to define the base blob action conditions. Properties daysAfterModificationGreaterThan, daysAfterLastAccessTimeGreaterThan and daysAfterCreationGreaterThan are mutually exclusive. The daysAfterLastTierChangeGreaterThan property is only applicable for tierToArchive actions which requires daysAfterModificationGreaterThan to be set, also it cannot be used in conjunction with daysAfterLastAccessTimeGreaterThan or daysAfterCreationGreaterThan.
properties:
daysAfterModificationGreaterThan:
type: number
format: float
description: Value indicating the age in days after last modification
minimum: 0
daysAfterLastAccessTimeGreaterThan:
type: number
format: float
description: Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
minimum: 0
daysAfterLastTierChangeGreaterThan:
type: number
format: float
description: 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.
minimum: 0
daysAfterCreationGreaterThan:
type: number
format: float
description: Value indicating the age in days after blob creation.
minimum: 0
ManagementPolicyDefinition:
type: object
description: An object that defines the Lifecycle rule. Each definition is made up with a filters set and an actions set.
properties:
actions:
$ref: '#/components/schemas/ManagementPolicyAction'
description: An object that defines the action set.
filters:
$ref: '#/components/schemas/ManagementPolicyFilter'
description: An object that defines the filter set.
required:
- actions
parameters:
ResourceGroupNameParameter:
name: resourceGroupName
in: path
description: The name of the resource group. The name is case insensitive.
required: true
x-ms-parameter-location: method
schema:
type: string
maxLength: 90
minLength: 1
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription. The value must be an UUID.
required: true
schema:
type: string
format: uuid
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow.