Get the SnapMirror relationships
You can retrieve all the SnapMirror relationship pairs.
1. Retrieve the relationships
HTTP method | Path |
---|---|
GET |
/occm/api/replication/all-relationships |
- curl example
curl --location --request GET 'https://cloudmanager.cloud.netapp.com/occm/api/replication/all-relationships' --header 'Content-Type: application/json' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>'
- Input parameters
-
None
- Output
-
An array of relationship pairs is returned as shown in the JSON output example.
- JSON output example
{
"relationships": [
{
"source": {
"id": "vsaworkingenvironment-sfrf3wvj"
},
"target": {
"id": "vsaworkingenvironment-2qkd75xv"
}
}
]
}