Get the SnapMirror SVM policies
You can use this workflow to retrieve the SnapMirror policies (owned by cluster admin SVM) based on the source and destination Cloud Volume ONTAP instances.
Step 1. Select the system
Perform the workflow Get systems and choose the publicId values of the required source and destination path parameters. Choose the svmName of the destination system for the destinationSvmName path parameter.
Step 2. Get the SnapMirror policies
| HTTP method | Path |
|---|---|
GET |
/occm/api/replication/metadata/snapmirror-svm-policies/{workingEnvironmentId}/{destinationSvmName}/{destinationworkingEnvironmentId} |
curl --request GET \
--location "https://api.bluexp.netapp.com/occm/api/replication/metadata/snapmirror-svm-policies/<WORKING_ENV_ID>/<DEST_SVM_NAME>/<DEST_WORKING_ENV_ID>" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--header "Content-Type: application/json"
The JSON input example includes the minimum list of parameters.
| Parameter | Type | Required | Description |
|---|---|---|---|
<DEST_SVM_NAME> |
Path |
Yes |
Identifies the destination SVM name |
|
Path |
Yes |
Identifies the system ID |
<DEST_WORKING_ENV_ID> |
Path |
Yes |
Identifies the destination system |
The JSON output example includes the list of SnapMirror policies.
[
{
"name": "MirrorAnd7YearsBackup",
"comment": "A unified Asynchronous SnapMirror and SnapVault policy for mirroring the latest active file system and daily and weekly and monthly Snapshot copies.",
"policyType": "mirror_vault",
"rules": [
{
"snapMirrorLabel": "sm_created",
"retention": 1
},
{
"snapMirrorLabel": "daily",
"retention": 7
},
{
"snapMirrorLabel": "weekly",
"retention": 5
},
{
"snapMirrorLabel": "monthly",
"retention": 84
}
],
"isDefault": false,
"isSupported": true,
"reason": null
},
{
"name": "MirrorAndMonthlyBackup",
"comment": "A unified Asynchronous SnapMirror and SnapVault policy for mirroring the latest active file system and daily and weekly Snapshot copies.",
"policyType": "mirror_vault",
"rules": [
{
"snapMirrorLabel": "sm_created",
"retention": 1
},
{
"snapMirrorLabel": "daily",
"retention": 7
},
{
"snapMirrorLabel": "weekly",
"retention": 5
}
],
"isDefault": true,
"isSupported": true,
"reason": null
},
{
"name": "MirrorAndYearlyBackup",
"comment": "A unified Asynchronous SnapMirror and SnapVault policy for mirroring the latest active file system and daily and weekly and monthly Snapshot copies.",
"policyType": "mirror_vault",
"rules": [
{
"snapMirrorLabel": "sm_created",
"retention": 1
},
{
"snapMirrorLabel": "daily",
"retention": 7
},
{
"snapMirrorLabel": "weekly",
"retention": 5
},
{
"snapMirrorLabel": "monthly",
"retention": 12
}
],
"isDefault": false,
"isSupported": true,
"reason": null
}
]