ManagementPolicyRule

An object that wraps the Lifecycle rule. Each rule is uniquely defined by name.

AzureBlob StorageCloud StorageFile StorageMicrosoftStorage

Properties

Name Type Description
definition object An object that defines the Lifecycle rule.
enabled boolean Rule is enabled if set to true.
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
View JSON Schema on GitHub

JSON Schema

azure-storage-account-management-policy-rule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/azure-storage-account/refs/heads/main/json-schema/azure-storage-account-management-policy-rule-schema.json",
  "title": "ManagementPolicyRule",
  "description": "An object that wraps the Lifecycle rule. Each rule is uniquely defined by name.",
  "properties": {
    "definition": {
      "$ref": "#/definitions/ManagementPolicyDefinition",
      "description": "An object that defines the Lifecycle rule."
    },
    "enabled": {
      "description": "Rule is enabled if set to true.",
      "type": "boolean"
    },
    "name": {
      "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": "string"
    },
    "type": {
      "description": "The valid value is Lifecycle",
      "enum": [
        "Lifecycle"
      ],
      "type": "string",
      "x-ms-enum": {
        "modelAsString": true,
        "name": "type"
      }
    }
  },
  "type": "object",
  "required": [
    "name",
    "type",
    "definition"
  ]
}