---
title: CKFetchSubscriptionsOperation
framework: cloudkit
role: symbol
role_heading: Class
path: cloudkit/ckfetchsubscriptionsoperation
---

# CKFetchSubscriptionsOperation

An operation for fetching subscriptions.

## Declaration

```swift
class CKFetchSubscriptionsOperation
```

## Overview

Overview A fetch subscriptions operation retrieves subscriptions (with IDs you already know) from iCloud and can fetch all subscriptions for the current user. You might fetch subscriptions so you can examine or modify their parameters — for example, to adjust the delivery options for push notifications that the subscription generates. If you assign a handler to the completionBlock property, the operation calls it after it executes and passes it the results. Use the handler to perform any housekeeping tasks for the operation. The handler you specify should manage any failures, whether due to an error or an explicit cancellation.

## Topics

### Creating a Fetch Subscriptions Operation

- [init(subscriptionIDs:)](cloudkit/ckfetchsubscriptionsoperation/init(subscriptionids:).md)
- [init()](cloudkit/ckfetchsubscriptionsoperation/init().md)

### Getting All Subscriptions

- [fetchAllSubscriptionsOperation()](cloudkit/ckfetchsubscriptionsoperation/fetchallsubscriptionsoperation().md)

### Configuring the Fetch Subscriptions Operation

- [subscriptionIDs](cloudkit/ckfetchsubscriptionsoperation/subscriptionids-17f4q.md)

### Processing the Fetch Subscription Results

- [fetchSubscriptionCompletionBlock](cloudkit/ckfetchsubscriptionsoperation/fetchsubscriptioncompletionblock-6hhpi.md)

### Instance Properties

- [fetchSubscriptionsResultBlock](cloudkit/ckfetchsubscriptionsoperation/fetchsubscriptionsresultblock.md)
- [perSubscriptionResultBlock](cloudkit/ckfetchsubscriptionsoperation/persubscriptionresultblock.md)

## Relationships

### Inherits From

- [CKDatabaseOperation](cloudkit/ckdatabaseoperation.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Subscription Management

- [CKModifySubscriptionsOperation](cloudkit/ckmodifysubscriptionsoperation.md)
