Obtaining All the Copy Session Information
GET /copysession
Introduction
Obtains the Copy Session information.
The information is sorted by copysession id in ascending order.
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.
$ curl -i -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X GET "https://192.168.1.1:5665/api/v1/copysession?fields=type,status"
Response Examples
{
"total_count": 512,
"list_count": 1,
"copysession_list": [
{
"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
}
],
"next_href": "/api/v1/volume?is_used_status_attention=true&fields=number,name&last_get_id=100005"
}
Parameters
QUERY PARAMETERS
| fields | Array of strings Parameter to display. Only the information of the specified Parameter name (Response Body Parameter) is extracted and retrieved. For details about the specification methods, see Property Filter. |
||||||||||||||||||||
| copysession_id | Array of integers Copy Session ID. Specify the Copy Session ID for which you want information. Input criteria:
|
||||||||||||||||||||
| type | Array of strings Copy Session Type. Specify the Copy Session Type for which you want information.
|
||||||||||||||||||||
| status | Array of strings Status. Specify the Copy Session Status for which you want information.
|
||||||||||||||||||||
| phase | Array of strings Phase. Specify the Copy Session Phase for which you want information.
|
||||||||||||||||||||
| max_records | The maximum number of resources for which you want information. Specify this parameter when you want to limit the number of pieces of information that can be answered. Input criteria:
|
||||||||||||||||||||
| start_number | Default: 0 The first number of the resource for which you want information. Input criteria:
|
||||||||||||||||||||
| last_get_id | integer The identifier of the resource for which to retrieve further information. If all resources matching with the response conditions cannot be answered at once, next_href is returned. The last_get_id is the information given to next_href to retrieve further information. |
Responses
If successful, the HTTP status code is 200 (OK) and the response body is returned.
RESPONSE BODY
| total_count | integer (total_count) The total number of Resources present in the device. If a filter is applied, this is the total number of Resources that meet the criteria. |
| list_count | integer (list_count) Number of Lists to respond. |
| copysession_list | Array of objects (copysession) The information that can be retrieved with GET /copysession/{copysession_id} as the number specified for list_count is output. For more information, see "Responses" in Obtaining the Session Information. |
| next_href | string (next_href) Link to get more information. This item is returned only when it is not possible to respond all information at once. For example, this item is returned if there are more Resources that match with the response condition than the number specified by max_records. |

