Retrieve information for SnapMirror relationships
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.
Related ONTAP commands
-
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.
-
Retrieving the list of SnapMirror relationships. This API must be run on the cluster containing the destination endpoint.
GET "/api/snapmirror/relationships/"
-
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"
-
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"
-
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"
-
Retrieving the destination UUID information for object store SnapMirror relationships.
GET "/api/snapmirror/relationships/?fields=destination.uuid"
-
Retrieving the list of constituent volumes for SVM DR Snapmirror relationships.
GET "/api/snapmirror/relationships/?fields=svmdr_volumes.name"
</private>
Learn more
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
|
transfer.uuid |
string |
query |
False |
Filter by transfer.uuid |
transfer.last_updated_time |
string |
query |
False |
Filter by transfer.last_updated_time
|
transfer.type |
string |
query |
False |
Filter by transfer.type
|
transfer.total_duration |
string |
query |
False |
Filter by transfer.total_duration
|
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
|
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
|
uuid |
string |
query |
False |
Filter by uuid |
source.consistency_group_volumes.name |
string |
query |
False |
Filter by source.consistency_group_volumes.name
|
source.cluster.name |
string |
query |
False |
Filter by source.cluster.name
|
source.cluster.uuid |
string |
query |
False |
Filter by source.cluster.uuid
|
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
|
destination.cluster.name |
string |
query |
False |
Filter by destination.cluster.name
|
destination.cluster.uuid |
string |
query |
False |
Filter by destination.cluster.uuid
|
group_type |
string |
query |
False |
Filter by group_type
|
preferred_site |
string |
query |
False |
Filter by preferred_site
|
consistency_group_failover.state |
string |
query |
False |
Filter by consistency_group_failover.state
|
consistency_group_failover.type |
string |
query |
False |
Filter by consistency_group_failover.type
|
consistency_group_failover.error.code |
string |
query |
False |
Filter by consistency_group_failover.error.code
|
consistency_group_failover.error.message |
string |
query |
False |
Filter by consistency_group_failover.error.message
|
consistency_group_failover.error.arguments.message |
string |
query |
False |
Filter by consistency_group_failover.error.arguments.message
|
consistency_group_failover.error.arguments.code |
string |
query |
False |
Filter by consistency_group_failover.error.arguments.code
|
consistency_group_failover.status.message |
string |
query |
False |
Filter by consistency_group_failover.status.message
|
consistency_group_failover.status.code |
string |
query |
False |
Filter by consistency_group_failover.status.code
|
total_transfer_bytes |
integer |
query |
False |
Filter by total_transfer_bytes
|
transfer_schedule.uuid |
string |
query |
False |
Filter by transfer_schedule.uuid
|
transfer_schedule.name |
string |
query |
False |
Filter by transfer_schedule.name
|
io_serving_copy |
string |
query |
False |
Filter by io_serving_copy
|
last_transfer_type |
string |
query |
False |
Filter by last_transfer_type
|
backoff_level |
string |
query |
False |
Filter by backoff_level
|
total_transfer_duration |
string |
query |
False |
Filter by total_transfer_duration
|
throttle |
integer |
query |
False |
Filter by throttle
|
svmdr_volumes.name |
string |
query |
False |
Filter by svmdr_volumes.name
|
unhealthy_reason.message |
string |
query |
False |
Filter by unhealthy_reason.message |
unhealthy_reason.arguments |
string |
query |
False |
Filter by unhealthy_reason.arguments
|
unhealthy_reason.code |
string |
query |
False |
Filter by unhealthy_reason.code |
master_bias_activated_site |
string |
query |
False |
Filter by master_bias_activated_site
|
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.
|
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.
|
order_by |
array[string] |
query |
False |
Order results by specified fields and optional [asc |
Response
Status: 200, Ok
Name | Type | Description |
---|---|---|
_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