Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Setting type: async in snapmirror/policies POST, configures mirror_vault in ONTAP.
2022-11-17
06:04 PM
1,359 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
verb - POST
api - snapmirror/policies
body - {'name': 'ansible_policy', 'svm': {'name': 'ansible_snap'}, 'type': 'async'}
my assumption was async is async-mirror, but it's configured in ONTAP as mirror-vault.
ontap97::> snapmirror policy show -vserver ansible_snap
Vserver Policy Policy Number Transfer
Name Name Type Of Rules Tries Priority Comment
------- ------------------ ------ -------- ----- -------- ----------
ansible_snap
ansible_policy mirror-vault 1 8 normal -
SnapMirror Label: sm_created Keep: 1
Total Keep: 1
is async in REST is mirror-vault?
Thanks,
Mohan
Solved! See The Solution
1 ACCEPTED SOLUTION
MOHANRAJB has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ONTAP REST API docs have this table mapping the policy types from CLI to REST:
Mapping of SnapMirror policies from CLI to REST
CLI | REST | |
mirror-vault | async | |
async-mirror w/ all_source_snapshots | async w/ copy_all_source_snapshots | |
async-mirror w/o all_source_snapshots | async w/ copy_latest_source_snapshot | |
vault | async w/ create_snapshot_on_source | |
---------------------- | ------------------------------ | |
sync_type | ||
---------------------- | ||
sync-mirror | sync | sync |
strict-sync-mirror | sync | strict_sync |
automated-failover | sync | automated_failover |
So to get your desired result, you'll want to either pass {copy_all_source_snapshots: true} or (newly added in 9.12) {copy_latest_source_snapshot: true} and it should then report async-mirror on the CLI.
1 REPLY 1
MOHANRAJB has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ONTAP REST API docs have this table mapping the policy types from CLI to REST:
Mapping of SnapMirror policies from CLI to REST
CLI | REST | |
mirror-vault | async | |
async-mirror w/ all_source_snapshots | async w/ copy_all_source_snapshots | |
async-mirror w/o all_source_snapshots | async w/ copy_latest_source_snapshot | |
vault | async w/ create_snapshot_on_source | |
---------------------- | ------------------------------ | |
sync_type | ||
---------------------- | ||
sync-mirror | sync | sync |
strict-sync-mirror | sync | strict_sync |
automated-failover | sync | automated_failover |
So to get your desired result, you'll want to either pass {copy_all_source_snapshots: true} or (newly added in 9.12) {copy_latest_source_snapshot: true} and it should then report async-mirror on the CLI.
