Manage SnapMirror policies
Manage SnapMirror policies to control and configure the behavior of SnapMirror relationships within your ONTAP environment. Utilize these endpoints to specify attributes for asynchronous and synchronous policy types, adjusting how data replication operates across volumes and consistency groups.
Managing SnapMirror policies
This API is used to manage SnapMirror policies of type "async" and "sync". When applied to a SnapMirror relationship, the SnapMirror policy controls the behavior of the relationship and specifies the configuration attributes for that relationship. The policy type "async" can be associated with a SnapMirror relationship that has either the FlexVol volume or FlexGroup volume or SVM as the endpoint. The policy type "sync" can be associated with a SnapMirror relationship that has FlexVol volume or a Consistency Group as the endpoint. The policy type "sync" can have a "sync_type" of either "sync", "strict_sync" or "automated_failover". If the "sync_type" is "sync" then a write success is returned to the client after writing the data to the primary endpoint and before writing the data to the secondary endpoint. If the "sync_type" is "strict_sync" then a write success is returned to the client after writing the data to the both primary and secondary endpoints. The "sync_type" of "automated_failover" can be associated with a SnapMirror relationship that has Consistency Group as the endpoint.
Mapping of SnapMirror policies from CLI to REST
| CLI | REST |
|---|---|
mirror-vault |
async |
async-mirror w/ |
async w/ |
all_source_snapshots |
copy_all_source_snapshots |
| CLI | REST | sync_type |
|---|---|---|
sync-mirror |
sync |
sync |
strict-sync-mirror |
sync |
strict_sync |
automated-failover |
sync |
automated_failover |