Obtaining the Copy Session Information for a Volume
GET /volume/{volume_id}/copysession
Introduction
Obtains Copy Session information for the specified Volume.
The presence of the following Copy Sessions is ignored in creating the response information. For example, is_copy_destination_volume is false for Copy destination Volumes in Storage Cluster.
Monitor
ODX
XCOPY
VVOL Copy Session
Storage Cluster
Copy Range is Extent
Copy Session Status is Reserved
Request Examples
This is an example of retrieving Copy Session information that resides on the Volume ID 100001.
$ curl -i -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X GET "https://192.168.1.1:5665/api/v1/volume/100001/copysession"
Response Examples
{
"volume_id": 100001,
"volume_number": 1,
"volume_href": "/api/v1/volume/100001",
"volume_name": "vol#01",
"is_copy_source_volume": true,
"is_copy_destination_volume": true,
"backup_type": "Clone",
"source_volume_number": 2,
"source_volume_href": "/api/v1/volume/200001",
"source_volume_name": "datastore#2",
"source_boxid": "00ETERNUSDXHS3ET00000A####EI000002######",
"copysession_href": "/api/v1/copysession/1",
"remote_copysession_id": 2,
"backup_time": "2020-12-01T12:30:00Z",
"error_ocurrence_time": "2020-12-01T12:30:00Z",
"status": "Active",
"phase": "Equivalent",
"is_manual_snapshot": false,
"is_data_tracking_disabled": false,
"backup_volume_list": [
{
"volume_number": 3,
"volume_href": "/api/v1/volume/300001",
"volume_name": "vol#03",
"backup_type": "Remote_Mirror",
"destination_boxid": "00ETERNUSDXHS3ET00000A####EI000001######",
"copysession_href": "/api/v1/copysession/3",
"remote_copysession_id": 2,
"backup_time": "2020-12-01T12:30:00Z",
"error_ocurrence_time": "2020-12-01T12:30:00Z",
"status": "Active",
"phase": "Equivalent",
"is_manual_snapshot": false,
"is_data_tracking_disabled": false
}
]
}
Parameters
PATH PARAMETERS
| volume_id
(required) |
integer Volume ID. |
QUERY PARAMETERS
| fields | Array of strings Parameter to display. Only the information of the specified Parameter name (Response Body Parameter) is extracted and obtained. For details about the specification methods, see Property Filter. |
||||||||||||
| backup_type | Array of strings Backup Type. Specify the Backup Volume Backup Type for which you want information.
Input criteria:
|
||||||||||||
| is_manual_snapshot | boolean Whether the Snapshot is managed by generation. If specified as true, only copy session information for non-generation-managed snapshots (equivalent to SnapOPC Volumes) will be returned. |
||||||||||||
| is_data_tracking_disabled | boolean Whether the Clone's physical data can be resynchronized. If specified as true, only the Copy Session information for Clones (equivalent to OPC Volumes) whose their physical data cannot be resynchronized will be responded to. |
Responses
If successful, the HTTP status code is 200 (OK) and the response body is returned.
RESPONSE BODY
| volume_id | integer Volume ID. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| volume_number | integer Volume Number. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| volume_href | string Link to Volume Resource. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| volume_name | string A Volume Friendly Name. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_copy_source_volume | boolean Whether the Volume is the source Volume. If true, Volume is the source Volume. If false, the Volume is not the source Volume. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_copy_destination_volume | boolean Whether the Volume is the destination Volume. If true, Volume is the destination Volume. If false, the Volume is not the destination Volume. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| backup_type | string Backup Type. Respond only if Volume is the destination.
The Volume Backup Type during a restore responds as follows.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| source_volume_number | integer Number of the source Volume. Respond only if Volume is the destination. If the Backup Type is Restored, the Number of the Volume from which to restore is responded with. For tenant users, a response is returned even if the copy source volume does not belong to the tenant of the current user. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| source_volume_href | string Link to copy source Volume Resource. Respond only if Volume is the destination. It will not respond if the Backup Type is Remote_Mirror. If the Backup Type is Restored, a Link to the Resource in the source Volume is responded with. For tenant users, a response is returned even if the copy source volume does not belong to the tenant of the current user. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| source_volume_name | string Friendly Name of the source Volume. Respond only if Volume is the destination. It will not respond if the Backup Type is Remote_Mirror. If the Backup Type is Restored, the Friendly Name of the Volume from which to restore is responded with. For tenant users, no response is returned if the copy source volume does not belong to the tenant of the current user. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| source_boxid | string The Box ID of the copy source device. Respond only if Volume is the destination. This item is returned only if Backup Type is Remote_Mirror. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| copysession_href | string Resource link of the Copy Session. Respond only if Volume is the destination. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| remote_copysession_id | integer The Copy Session ID of the destination device. Respond only if Volume is the destination. This item is returned only if Backup Type is Remote_Mirror. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| backup_time | string The backup start time for the Copy Session. Respond only if Volume is the destination. It does not respond if the Copy Session Status is Error or Halt. If the Backup Type is Restored, the start time of the data copy from the restore source Volume in the background is responded to. Format is as follows: The time zone is UTC. YYYY-MM-DDThh:mm:ssZ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| error_ocurrence_time | string Time the Copy Session failed. Respond only if Volume is the destination. It responds only if the Copy Session Status is Error or Halt. Format is as follows: The time zone is UTC. YYYY-MM-DDThh:mm:ssZ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status | string Copy Session status. Respond only if Volume is the destination.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| phase | string Phase of the Copy Session. Respond only if Volume is the destination. If Backup Type is Clone, the phases that can be responded are Copying, Tracking, Tracking_and_Copying, and Reading. If Backup Type is Snapshot or Restored, the phases that can be responded are Copying and Reading. If Backup Type is Local_Mirror or Remote_Mirror, the phases that can be responded are Copying and Equivalent.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_manual_snapshot | boolean Whether the Snapshot is managed by generation. Respond only if Volume is the destination. If true, the Snapshot is not managed by generation (equivalent to SnapOPC Sessions). If false, the Snapshot is managed by generation (equivalent to SnapOPC+ Sessions). It is also false for Volumes other than Snapshot. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_data_tracking_disabled | boolean Whether the Clone's physical data can be resynchronized. Respond only if Volume is the destination. This property is returned only if backup_type is Clone. If true, the Clone's physical data cannot be resynchronized (equivalent to OPC Session). If false, the Clone's physical data can be resynchronized (equivalent to QuickOPC Session). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| backup_volume_list | Array of objects List of destination Volumes. The Volumes are sorted by copysession_href in ascending order.
|

