<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKFetchRecordZonesOperation/fetchAllRecordZonesOperation()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKFetchRecordZonesOperation(cm)fetchAllRecordZonesOperation"
  },
  "title" : "fetchAllRecordZonesOperation()"
}
-->

# fetchAllRecordZonesOperation()

Returns an operation for fetching all record zones in the current database.

```
class func fetchAllRecordZonesOperation() -> Self
```

## Discussion

Assign a value to the [`fetchRecordZonesCompletionBlock`](/documentation/CloudKit/CKFetchRecordZonesOperation/fetchRecordZonesCompletionBlock) property of the operation that this method returns so that you can process the results.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)