Obtaining the Session Information
GET /copysession/{copysession_id}
Introduction
Obtains the specified Copy Session information.
The Storage Cluster and VVOL Copy Session information is not returned.
Request Examples
This is an example of obtaining only the ID, Type, and Status for a Copy Session with ID 2.
$ curl -i -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X GET "https://192.168.1.1:5665/api/v1/copysession/2?fields=type,status"
Response Examples
{
"copysession_id": 0,
"copysession_href": "/api/v1/copysession/0",
"type": "OPC",
"status": "Active",
"source_volume_number": 1,
"source_volume_href": "/api/v1/volume/100001",
"source_volume_name": "hoge#1",
"destination_volume_number": 2,
"destination_volume_href": "/api/v1/volume/200001",
"destination_volume_name": "hoge#2",
"phase": "Equivalent",
"error_code": "b1",
"copy_range": "Totally",
"concurrent_suspend_result": "Running",
"remain_time_to_finish_suspend": 33,
"elapsed_time": 83920,
"backup_time": "2020-12-01T12:30:00Z",
"error_ocurrence_time": "2020-12-01T12:30:00Z",
"total_data_size": 3812,
"uncopied_data_size": 3812,
"progress": 30,
"requestor": "REST",
"resolution": 16,
"generation": 1,
"generation_count": 3,
"tracking_data_size": 34,
"remote_copysession_id": 1,
"transfer_mode": "Consistency",
"split_mode": "Manual",
"recovery_mode": "Manual",
"remote_boxid": "00ETERNUSDXHS3ET00000A####EI000001######",
"is_local_source_volume": true
}
Parameters
PATH PARAMETERS
| copysession_id
(required) |
integer Copy Session 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. |
Responses
If successful, the HTTP status code is 200 (OK) and the response body is returned.
RESPONSE BODY
| copysession_id | integer Copy Session ID. |
||||||||||||||||||||
| copysession_href | string Resource link of the Copy Session. |
||||||||||||||||||||
| type | string Copy Session Type.
|
||||||||||||||||||||
| status | string Copy Session status.
|
||||||||||||||||||||
| source_volume_number | integer Number of the source Volume. It does not respond if the Copy Session Status is Reserved. 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. It does not respond if the Copy Session Status is Reserved. It will not respond if the Copy Session Type is REC and is_local_source_volume is false. 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. It does not respond if the Copy Session Status is Reserved. It will not respond if the Copy Session Type is REC and is_local_source_volume is false. For tenant users, no response is returned if the copy source volume does not belong to the tenant of the current user. |
||||||||||||||||||||
| destination_volume_number | integer Number of the source Volume. It does not respond if the Copy Session Type is Monitor. It does not respond if the Copy Session Status is Reserved. For tenant users, a response is returned even if the copy destination volume does not belong to the tenant of the current user. |
||||||||||||||||||||
| destination_volume_href | string Link to copy destination Volume Resource. It does not respond if the Copy Session Type is Monitor. It does not respond if the Copy Session Status is Reserved. It will not respond if the Copy Session Type is REC and is_local_source_volume is true. For tenant users, a response is returned even if the copy destination volume does not belong to the tenant of the current user. |
||||||||||||||||||||
| destination_volume_name | string Friendly Name of the destination Volume. It does not respond if the Copy Session Type is Monitor. It does not respond if the Copy Session Status is Reserved. It will not respond if the Copy Session Type is REC and is_local_source_volume is true. For tenant users, no response is returned if the copy destination volume does not belong to the tenant of the current user. |
||||||||||||||||||||
| phase | string Phase of the Copy Session. It does not respond if the Copy Session Type is XCOPY or ODX. It does not respond if the Copy Session Status is Reserved. If Copy Session Type is OPC, SnapOPC, or SnapOPC+, the phases that can be responded are Copying and Reading. If Copy Session Type is QuickOPC, the phases that can be responded are Copying, Tracking, and Tracking_and_Copying. If Copy Session Type is EC or REC, the phases that can be responded are Copying and Equivalent.
|
||||||||||||||||||||
| error_code | string The error code for the error. It does not respond if the Copy Session Status is Reserved.
|
||||||||||||||||||||
| copy_range | string Copy Session copy range. It does not respond if the Copy Session Status is Reserved.
|
||||||||||||||||||||
| concurrent_suspend_result | string Concurrent Suspend transition state for the Copy Session. If Concurrent Suspend is not started, Success is displayed. It responds only if the Copy Session Type is EC or REC. It does not respond if the Copy Session Status is Reserved.
|
||||||||||||||||||||
| remain_time_to_finish_suspend | integer Estimated time to complete Suspend migration. The unit is seconds. It responds only if the Copy Session Type is EC or REC. It does not respond if the Copy Session Status is Reserved. This item is returned only if the Concurrent Suspend transition state is Running. If there is an error in the REC route, the maximum value (4294967295) may be answered. |
||||||||||||||||||||
| elapsed_time | integer Elapsed time since the Copy Session was registered. The unit is seconds. It does not respond if the Copy Session Status is Reserved. |
||||||||||||||||||||
| backup_time | string The backup start time for the Copy Session. It does not respond if the Copy Session Status is Error, Reserved, or Halt. Format is as follows: The time zone is UTC. YYYY-MM-DDThh:mm:ssZ |
||||||||||||||||||||
| error_ocurrence_time | string Time the Copy Session failed. 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 |
||||||||||||||||||||
| total_data_size | integer The size of the data to be copied. It usually matches with the Capacity of the copy-source volume. The unit is MB. It does not respond if the Copy Session Status is Reserved. |
||||||||||||||||||||
| uncopied_data_size | integer Uncopied data size. The unit is MB.
It does not respond if the Copy Session Status is Reserved. If total_data_size is 0, no response is made. |
||||||||||||||||||||
| progress | integer Physical copy progress rate. The unit is %. It does not respond if the Copy Session Status is Reserved. If total_data_size is false, no response is made. |
||||||||||||||||||||
| requestor | string The client that started the Copy Session. It does not respond if the Copy Session Type is XCOPY or ODX. It does not respond if the Copy Session Status is Reserved.
|
||||||||||||||||||||
| resolution | integer Copy Session resolution. It does not respond if the Copy Session Type is XCOPY or ODX. It does not respond if the Copy Session Status is Reserved. |
||||||||||||||||||||
| generation | integer Copy Session generation. It responds only if the Copy Session Type is SnapOPC+. It does not respond if the Copy Session Status is Reserved. |
||||||||||||||||||||
| generation_count | integer Total number of copy session generations. It responds only if the Copy Session Type is SnapOPC+. It does not respond if the Copy Session Status is Reserved. |
||||||||||||||||||||
| tracking_data_size | integer The size of the data in tracking. The unit is MB. Responds the amount of difference since the start of resynchronization. It responds only if the Copy Session Type is QuickOPC. It does not respond if the Copy Session Status is Reserved. |
||||||||||||||||||||
| remote_copysession_id | integer The Copy Session ID of the destination device. It responds only if the Copy Session Type is REC. It does not respond if the Copy Session Status is Reserved. |
||||||||||||||||||||
| transfer_mode | string Copy Session transfer mode. It responds only if the Copy Session Type is REC. It does not respond if the Copy Session Status is Reserved.
|
||||||||||||||||||||
| split_mode | string Copy Session Split Mode. It responds only if the Copy Session Type is REC. It does not respond if the Copy Session Status is Reserved. Responds only if Copy Session transfer mode is Synchronous (synchronous mode).
|
||||||||||||||||||||
| recovery_mode | string Copy Session recovery mode. It responds only if the Copy Session Type is REC. It does not respond if the Copy Session Status is Reserved.
|
||||||||||||||||||||
| remote_boxid | string The Box ID of the destination device. It responds only if the Copy Session Type is REC. It does not respond if the Copy Session Status is Reserved. |
||||||||||||||||||||
| is_local_source_volume | boolean Whether the source Volume of the REC Session exists on the local device. If true, the copy source of the REC Session is the local device. If false, the copy source of the REC Session is the remote device. It responds only if the Copy Session Type is REC. It does not respond if the Copy Session Status is Reserved. |

