Creating REC Sessions
POST /copysession/rec
Introduction
Creates an REC Session.
The source/destination volume types are Standard, TPV, FTV, and WSV (Except for the system volume).
You can find the Href of the created REC Session in resource_href_list of "GET /job/{job_id}".
You can check the state of the created REC Session in "GET /copysession/{copysession_id}".
When the REC Session is created, the state of the Job becomes Success. The physical data is copied in the background.
The destination data cannot be viewed/updated until the Copy Session changes to the Suspend state.
If the Copy Session is not in the equivalent state, the destination data cannot be used as meaningful. When creating a Clone or Snapshot, issue a "POST /copysession/{copysession_id}/suspend" after the Copy Session has transitioned to the equivalent state.
Tenant users cannot execute this command.
Request Examples
- An example of creating an REC Session from Volume ID 100001 on the storage system whose Box ID is 00ETERNUSDXHS3ET00000A####EI000000###### to Volume ID 200001 on the storage system whose Box ID is 00ETERNUSDXHS3ET00000A####EI000001######.
$ curl -i -H "Content-Type:application/json" -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X POST "https://192.168.1.1:5665/api/v1/copysession/rec" -d '{ "source_volume_id": 100001, "destination_volume_id": 200001, "source_boxid": "00ETERNUSDXHS3ET00000A####EI000000######", "destination_boxid": "00ETERNUSDXHS3ET00000A####EI000001######", "transfer_mode": "Synchronous" }'
Response Examples
{
"job_id": 8192001,
"job_href": "/api/v1/job/8192001"
}
Parameters
REQUEST BODY
| source_volume_id (required) |
integer Volume ID of the copy source volume. Input criteria:
|
||||||||
| destination_volume_id (required) |
integer Volume ID of the copy destination volume. Input criteria:
|
||||||||
| source_boxid (required) |
The Box ID of the copy source device. Input criteria:
|
||||||||
| destination_boxid (required) |
The Box ID of the copy destination device. Input criteria:
|
||||||||
| transfer_mode (required) |
string Copy Session transfer mode.
|
||||||||
| split_mode | string Default: "Manual" Copy Session Split Mode.
Input criteria:
|
||||||||
| recovery_mode | string Default: "Automatic" Copy Session recovery mode.
|
Responses
If the job registration is successful, the HTTP status code will be 202 (Accepted) and the response body will respond.
RESPONSE BODY
| job_id | integer Job ID. |
| job_href | string Resource link of the job. |

