Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 1.16 KB

wf_common_ontap_repl_get_sm_rels.adoc

File metadata and controls

61 lines (49 loc) · 1.16 KB
sidebar permalink keywords summary
sidebar
cm/wf_common_ontap_repl_get_sm_rels.html
bluexp, rest, api
You can retrieve all the SnapMirror relationship pairs.

Get the SnapMirror relationships

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"
            }
        }
    ]
}