Skip to main content

Retrieve information for SnapMirror relationships

Contributors

GET /snapmirror/relationships

Introduced In: 9.6

Retrieves information for SnapMirror relationships whose destination endpoints are in the current SVM or the current cluster, depending on the cluster context.

  • snapmirror show

  • snapmirror list-destinations

Expensive properties

  • fabriclink.pull_byte_count

  • fabriclink.push_byte_count

  • fabriclink.pending_work_task_count

  • fabriclink.status

  • source.consistency_group_volumes.name

  • destination.consistency_group_volumes.name

  • svmdr_volumes.name

Examples

The following examples show how to retrieve the list of SnapMirror relationships and the list of SnapMirror destinations.

  1. Retrieving the list of SnapMirror relationships. This API must be run on the cluster containing the destination endpoint.

 GET "/api/snapmirror/relationships/"
  1. Retrieving the list of SnapMirror destinations on source. This must be run on the cluster containing the source endpoint.

 GET "/api/snapmirror/relationships/?list_destinations_only=true"
  1. Retrieving the relationship UUID of SnapMirror relationships with lag time greater than 2 days. This API must be run on the cluster containing the destination endpoint.

 GET "/api/snapmirror/relationships/?fields=uuid&lag_time=>P2DT"
  1. Retrieving the list of SnapMirror relationships with lag time less than 10 hours. This API must be run on the cluster containing the destination endpoint.

 GET "/api/snapmirror/relationships/?lag_time=<PT10H"
  1. Retrieving the destination UUID information for object store SnapMirror relationships.

 GET "/api/snapmirror/relationships/?fields=destination.uuid"
  1. Retrieving the list of constituent volumes for SVM DR Snapmirror relationships.

 GET "/api/snapmirror/relationships/?fields=svmdr_volumes.name"

</private>

Parameters

Name Type In Required Description

list_destinations_only

boolean

query

False

Set to true to show relationships from the source only.

healthy

boolean

query

False

Filter by healthy

transfer.end_time

string

query

False

Filter by transfer.end_time

  • Introduced in: 9.9

transfer.uuid

string

query

False

Filter by transfer.uuid

transfer.last_updated_time

string

query

False

Filter by transfer.last_updated_time

  • Introduced in: 9.15

transfer.type

string

query

False

Filter by transfer.type

  • Introduced in: 9.15

transfer.total_duration

string

query

False

Filter by transfer.total_duration

  • Introduced in: 9.9

transfer.state

string

query

False

Filter by transfer.state

transfer.bytes_transferred

integer

query

False

Filter by transfer.bytes_transferred

identity_preservation

string

query

False

Filter by identity_preservation

  • Introduced in: 9.11

restore

boolean

query

False

Filter by restore

policy.type

string

query

False

Filter by policy.type

policy.name

string

query

False

Filter by policy.name

policy.uuid

string

query

False

Filter by policy.uuid

last_transfer_network_compression_ratio

string

query

False

Filter by last_transfer_network_compression_ratio

  • Introduced in: 9.13

uuid

string

query

False

Filter by uuid

source.consistency_group_volumes.name

string

query

False

Filter by source.consistency_group_volumes.name

  • Introduced in: 9.8

source.cluster.name

string

query

False

Filter by source.cluster.name

  • Introduced in: 9.7

source.cluster.uuid

string

query

False

Filter by source.cluster.uuid

  • Introduced in: 9.7

source.svm.uuid

string

query

False

Filter by source.svm.uuid

source.svm.name

string

query

False

Filter by source.svm.name

source.path

string

query

False

Filter by source.path

destination.svm.uuid

string

query

False

Filter by destination.svm.uuid

destination.svm.name

string

query

False

Filter by destination.svm.name

destination.path

string

query

False

Filter by destination.path

destination.consistency_group_volumes.name

string

query

False

Filter by destination.consistency_group_volumes.name

  • Introduced in: 9.8

destination.cluster.name

string

query

False

Filter by destination.cluster.name

  • Introduced in: 9.7

destination.cluster.uuid

string

query

False

Filter by destination.cluster.uuid

  • Introduced in: 9.7

group_type

string

query

False

Filter by group_type

  • Introduced in: 9.11

preferred_site

string

query

False

Filter by preferred_site

  • Introduced in: 9.14

consistency_group_failover.state

string

query

False

Filter by consistency_group_failover.state

  • Introduced in: 9.14

consistency_group_failover.type

string

query

False

Filter by consistency_group_failover.type

  • Introduced in: 9.14

consistency_group_failover.error.code

string

query

False

Filter by consistency_group_failover.error.code

  • Introduced in: 9.8

consistency_group_failover.error.message

string

query

False

Filter by consistency_group_failover.error.message

  • Introduced in: 9.8

consistency_group_failover.error.arguments.message

string

query

False

Filter by consistency_group_failover.error.arguments.message

  • Introduced in: 9.8

consistency_group_failover.error.arguments.code

string

query

False

Filter by consistency_group_failover.error.arguments.code

  • Introduced in: 9.8

consistency_group_failover.status.message

string

query

False

Filter by consistency_group_failover.status.message

  • Introduced in: 9.8

consistency_group_failover.status.code

string

query

False

Filter by consistency_group_failover.status.code

  • Introduced in: 9.8

total_transfer_bytes

integer

query

False

Filter by total_transfer_bytes

  • Introduced in: 9.13

transfer_schedule.uuid

string

query

False

Filter by transfer_schedule.uuid

  • Introduced in: 9.11

transfer_schedule.name

string

query

False

Filter by transfer_schedule.name

  • Introduced in: 9.11

io_serving_copy

string

query

False

Filter by io_serving_copy

  • Introduced in: 9.14

last_transfer_type

string

query

False

Filter by last_transfer_type

  • Introduced in: 9.11

backoff_level

string

query

False

Filter by backoff_level

  • Introduced in: 9.15

total_transfer_duration

string

query

False

Filter by total_transfer_duration

  • Introduced in: 9.13

throttle

integer

query

False

Filter by throttle

  • Introduced in: 9.11

svmdr_volumes.name

string

query

False

Filter by svmdr_volumes.name

  • Introduced in: 9.13

unhealthy_reason.message

string

query

False

Filter by unhealthy_reason.message

unhealthy_reason.arguments

string

query

False

Filter by unhealthy_reason.arguments

  • Introduced in: 9.14

unhealthy_reason.code

string

query

False

Filter by unhealthy_reason.code

master_bias_activated_site

string

query

False

Filter by master_bias_activated_site

  • Introduced in: 9.15

state

string

query

False

Filter by state

exported_snapshot

string

query

False

Filter by exported_snapshot

lag_time

string

query

False

Filter by lag_time

fields

array[string]

query

False

Specify the fields to return.

max_records

integer

query

False

Limit the number of records returned.

return_records

boolean

query

False

The default is true for GET calls. When set to false, only the number of records is returned.

  • Default value: 1

return_timeout

integer

query

False

The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.

  • Default value: 1

  • Max value: 120

  • Min value: 0

order_by

array[string]

query

False

Order results by specified fields and optional [asc

Response

Status: 200, Ok
Name Type Description

_links

_links

num_records

integer

Number of records

records

array[snapmirror_relationship]

Example response
{
  "_links": {
    "next": {
      "href": "/api/resourcelink"
    },
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "num_records": 1,
  "records": [
    {
      "_links": {
        "self": {
          "href": "/api/resourcelink"
        }
      },
      "backoff_level": "medium",
      "consistency_group_failover": {
        "error": {
          "arguments": [
            {
              "code": "string",
              "message": "string"
            }
          ],
          "code": "4",
          "message": "entry doesn't exist"
        },
        "state": "string",
        "status": {
          "code": "string",
          "message": "string"
        },
        "type": "string"
      },
      "create_destination": {
        "bucket_retention": {
          "default_period": "P10Y",
          "mode": "governance"
        },
        "snaplock": {
          "retention": {
            "default": "P30Y",
            "maximum": "P30Y",
            "minimum": "P30Y"
          },
          "type": "enterprise"
        },
        "storage_service": {
          "name": "string"
        },
        "tiering": {
          "policy": "string"
        }
      },
      "destination": {
        "cluster": {
          "_links": {
            "self": {
              "href": "/api/resourcelink"
            }
          },
          "name": "cluster1",
          "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
        },
        "con