Retrieve ongoing SnapMirror transfers for a relationship
GET /snapmirror/relationships/{relationship.uuid}/transfers
Introduced In: 9.6
Retrieves the list of ongoing SnapMirror transfers for the specified relationship.
Related ONTAP commands
-
snapmirror show
Example
GET "/api/snapmirror/relationships/293baa53-e63d-11e8-bff1-005056a793dd/transfers"
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
relationship.uuid |
string |
path |
True |
Relationship UUID |
snapshot |
string |
query |
False |
Filter by snapshot |
network_compression_ratio |
string |
query |
False |
Filter by network_compression_ratio
|
end_time |
string |
query |
False |
Filter by end_time
|
checkpoint_size |
integer |
query |
False |
Filter by checkpoint_size |
bytes_transferred |
integer |
query |
False |
Filter by bytes_transferred |
uuid |
string |
query |
False |
Filter by uuid |
throttle |
integer |
query |
False |
Filter by throttle
|
state |
string |
query |
False |
Filter by state |
relationship.destination.path |
string |
query |
False |
Filter by relationship.destination.path |
relationship.destination.consistency_group_volumes.name |
string |
query |
False |
Filter by relationship.destination.consistency_group_volumes.name
|
relationship.destination.cluster.name |
string |
query |
False |
Filter by relationship.destination.cluster.name
|
relationship.destination.cluster.uuid |
string |
query |
False |
Filter by relationship.destination.cluster.uuid
|
relationship.destination.svm.uuid |
string |
query |
False |
Filter by relationship.destination.svm.uuid |
relationship.destination.svm.name |
string |
query |
False |
Filter by relationship.destination.svm.name |
relationship.destination.uuid |
string |
query |
False |
Filter by relationship.destination.uuid
|
relationship.restore |
boolean |
query |
False |
Filter by relationship.restore |
on_demand_attrs |
string |
query |
False |
Filter by on_demand_attrs
|
error_info.message |
string |
query |
False |
Filter by error_info.message
|
error_info.code |
integer |
query |
False |
Filter by error_info.code
|
total_duration |
string |
query |
False |
Filter by total_duration
|
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_transfer] |
Example response
{
"_links": {
"next": {
"href": "/api/resourcelink"
},
"self": {
"href": "/api/resourcelink"
}
},
"num_records": 1,
"records": [
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"bytes_transferred": 0,
"checkpoint_size": 0,
"end_time": "2020-12-02 21:36:19 -0500",
"error_info": {
"code": 6620046,
"message": "Transfer aborted"
},
"files": [
{
"destination_path": "/dirb/file2",
"source_path": "/dira/file1"
}
],
"network_compression_ratio": 61,
"on_demand_attrs": "read_write_with_user_data_pull",
"relationship": {
"destination": {
"cluster": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "cluster1",
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
},
"consistency_group_volumes": [
{
"name": "volume1",
"uuid": "028baa66-41bd-11e9-81d5-00a0986138f7"
}
],
"ipspace": "Default",
"path": "svm1:volume1",
"svm": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
}
},
"uuid": "d2d7ceea-ab52-11e8-855e-00505682a4c7"
},
"snapshot": "string",
"source_snapshot": "string",
"state": "string",
"throttle": 0,
"total_duration": "PT28M41S",
"uuid": "4ea7a442-86d1-11e0-ae1c-123478563412"
}
]
}
Error
Status: Default, Error
Name | Type | Description |
---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
href
Name | Type | Description |
---|---|---|
href |
string |
_links
Name | Type | Description |
---|---|---|
next |
||
self |
_links
Name | Type | Description |
---|---|---|
self |
error_info
Error information for the transfer.
Name | Type | Description |
---|---|---|
code |
integer |
Error code |
message |
string |
Error message |
files
Specifies a file or LUN consisting of a source_path and an optional destination_path. If not specified, the destination_path is the same as the source_path. File restore is not supported if the source_path or destination_path contains commas in its directory or file name.
Name | Type | Description |
---|---|---|
destination_path |
string |
|
source_path |
string |
cluster
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
|
uuid |
string |
consistency_group_volumes
Name | Type | Description |
---|---|---|
name |
string |
The name of the volume. |
uuid |
string |
Unique identifier for the volume. This corresponds to the instance-uuid that is exposed in the CLI and ONTAPI. It does not change due to a volume move.
|
svm
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
The name of the SVM. |
uuid |
string |
The unique identifier of the SVM. |
snapmirror_endpoint
Endpoint of a SnapMirror relationship. For a GET request, the property "cluster" is populated when the endpoint is on a remote cluster. A POST request to create the destination SVM endpoint or to establish an SVM DR relationship must have the property "cluster" populated with the remote cluster details. A POST request to create the destination FlexVol volume, FlexGroup volume, Consistency Group, ONTAP S3 bucket and NON-ONTAP object-store endpoints can optionally specify the "cluster" property when the source SVM and the destination SVM are peered. A POST request to establish a SnapMirror relationship between the source endpoint and destination endpoint and when the source SVM and the destination SVM are not peered, must specify the "cluster" property for the remote endpoint.
Name | Type | Description |
---|---|---|
cluster |
||
consistency_group_volumes |
array[consistency_group_volumes] |
Mandatory property for a Consistency Group endpoint. Specifies the list of FlexVol volumes for a Consistency Group. |
ipspace |
string |
Optional property to specify the IPSpace of the SVM. |
path |
string |
ONTAP FlexVol/FlexGroup - svm1:volume1 ONTAP SVM - svm1: ONTAP Consistency Group - svm1:/cg/cg_name ONTAP S3 - svm1:/bucket/bucket1 NON-ONTAP - objstore1:/objstore
|
svm |
relationship
Name | Type | Description |
---|---|---|
destination |
Endpoint of a SnapMirror relationship. For a GET request, the property "cluster" is populated when the endpoint is on a remote cluster. A POST request to create the destination SVM endpoint or to establish an SVM DR relationship must have the property "cluster" populated with the remote cluster details. A POST request to create the destination FlexVol volume, FlexGroup volume, Consistency Group, ONTAP S3 bucket and NON-ONTAP object-store endpoints can optionally specify the "cluster" property when the source SVM and the destination SVM are peered. A POST request to establish a SnapMirror relationship between the source endpoint and destination endpoint and when the source SVM and the destination SVM are not peered, must specify the "cluster" property for the remote endpoint.
|
|
restore |
boolean |
Is the relationship for restore? |
uuid |
string |
snapmirror_transfer
SnapMirror transfer information
Name | Type | Description |
---|---|---|
_links |
||
bytes_transferred |
integer |
Bytes transferred |
checkpoint_size |
integer |
Amount of data transferred in bytes as recorded in the restart checkpoint. |
end_time |
string |
End time of the transfer. |
error_info |
Error information for the transfer. |
|
files |
array[files] |
This is supported for transfer of restore relationship only. This specifies the list of files or LUNs to be restored. Can contain up to eight files or LUNs. |
network_compression_ratio |
string |
Specifies the compression ratio achieved for the data sent over the wire with network compression enabled. This property is only valid for active transfers. |
on_demand_attrs |
string |
Specifies whether or not an on-demand restore is being carried out. This is only supported for the transfer of restore relationships for entire volumes from the object store. A value for read_write_with_user_data_pull should be provided to start an on-demand restore. A file restore from the object store does not support this option. |
relationship |
||
snapshot |
string |
Name of Snapshot copy being transferred. |
source_snapshot |
string |
Specifies the Snapshot copy on the source to be transferred to the destination. |
state |
string |
Status of the transfer. Set PATCH state to "aborted" to abort the transfer. Set PATCH state to "hard_aborted" to abort the transfer and discard the restart checkpoint. To find "queued" transfers refer to relationships GET API. |
storage_efficiency_enabled |
boolean |
This is supported for transfer of restore relationship only. Set this property to "false" to turn off storage efficiency for data transferred over the wire and written to the destination. |
throttle |
integer |
Throttle, in KBs per second. This "throttle" overrides the "throttle" set on the SnapMirror relationship or SnapMirror relationship's policy. If neither of these are set, defaults to 0, which is interpreted as unlimited. |
total_duration |
string |
Elapsed transfer time. |
uuid |
string |
error_arguments
Name | Type | Description |
---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
error
Name | Type | Description |
---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |