{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-storage-accounts/json-schema/azure-storage-accounts-object-replication-policies-schema.json",
  "title": "ObjectReplicationPolicies",
  "description": "List storage account object replication policies.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-storage-accounts-objectreplicationpolicyoperationgroup-api-openapi.yml#/components/schemas/ObjectReplicationPolicies",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The replication policy between two storage accounts.",
      "items": {
        "$ref": "#/$defs/ObjectReplicationPolicy"
      }
    },
    "nextLink": {
      "type": "string"
    }
  },
  "$defs": {
    "ObjectReplicationPolicy": {
      "type": "object",
      "description": "The replication policy between two storage accounts. Multiple rules can be defined in one policy.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ObjectReplicationPolicyProperties",
          "description": "Returns the Storage Account Object Replication Policy.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "ObjectReplicationPolicyFilter": {
      "type": "object",
      "description": "Filters limit replication to a subset of blobs within the storage account. A logical OR is performed on values in the filter. If multiple filters are defined, a logical AND is performed on all filters.",
      "properties": {
        "prefixMatch": {
          "type": "array",
          "description": "Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.",
          "items": {
            "type": "string"
          }
        },
        "minCreationTime": {
          "type": "string",
          "description": "Blobs created after the time will be replicated to the destination. It must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: 2020-02-19T16:05:00Z"
        }
      }
    },
    "ObjectReplicationPolicyProperties": {
      "type": "object",
      "description": "The Storage Account ObjectReplicationPolicy properties.",
      "properties": {
        "policyId": {
          "type": "string",
          "description": "A unique id for object replication policy.",
          "readOnly": true
        },
        "enabledTime": {
          "type": "string",
          "format": "date-time",
          "description": "Indicates when the policy is enabled on the source account.",
          "readOnly": true
        },
        "sourceAccount": {
          "type": "string",
          "description": "Required. Source account name. It should be full resource id if allowCrossTenantReplication set to false."
        },
        "destinationAccount": {
          "type": "string",
          "description": "Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false."
        },
        "rules": {
          "type": "array",
          "description": "The storage account object replication rules.",
          "items": {
            "$ref": "#/$defs/ObjectReplicationPolicyRule"
          },
          "x-ms-identifiers": []
        },
        "metrics": {
          "$ref": "#/$defs/ObjectReplicationPolicyPropertiesMetrics",
          "description": "Optional. The object replication policy metrics feature options."
        },
        "priorityReplication": {
          "$ref": "#/$defs/ObjectReplicationPolicyPropertiesPriorityReplication",
          "description": "Optional. The object replication policy priority replication feature options."
        },
        "tagsReplication": {
          "$ref": "#/$defs/ObjectReplicationPolicyPropertiesTagsReplication",
          "description": "Optional. The object replication policy tags replication feature options."
        }
      },
      "required": [
        "sourceAccount",
        "destinationAccount"
      ]
    },
    "ObjectReplicationPolicyPropertiesMetrics": {
      "type": "object",
      "description": "Optional. The object replication policy metrics feature options.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether object replication metrics feature is enabled for the policy."
        }
      }
    },
    "ObjectReplicationPolicyPropertiesPriorityReplication": {
      "type": "object",
      "description": "Optional. The object replication policy priority replication feature options.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether object replication priority replication feature is enabled for the policy."
        }
      }
    },
    "ObjectReplicationPolicyPropertiesTagsReplication": {
      "type": "object",
      "description": "Optional. The object replication policy tags replication feature options.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether object replication tags replication feature is enabled for the policy."
        }
      }
    },
    "ObjectReplicationPolicyRule": {
      "type": "object",
      "description": "The replication policy rule between two containers.",
      "properties": {
        "ruleId": {
          "type": "string",
          "description": "Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account."
        },
        "sourceContainer": {
          "type": "string",
          "description": "Required. Source container name."
        },
        "destinationContainer": {
          "type": "string",
          "description": "Required. Destination container name."
        },
        "filters": {
          "$ref": "#/$defs/ObjectReplicationPolicyFilter",
          "description": "Optional. An object that defines the filter set."
        }
      },
      "required": [
        "sourceContainer",
        "destinationContainer"
      ]
    },
    "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": "#/$defs/Resource"
        }
      ]
    },
    "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": "#/$defs/systemData",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    }
  }
}