Skip to main content

Get the SnapMirror relationships

Contributors netapp-ranuk

You can retrieve all the SnapMirror relationship pairs.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

GET

/occm/api/replication/all-relationships

Curl example
curl --request GET
--location "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"
            }
        }
    ]
}