int ctMemphisPersistVolume( pRCESJson request, ppRCESJson result )
Description:
Persist a Volume into the Replication Manager Database. If it doesn't exist, create it, otherwise update it. To create a new volume, the ID must be -1 or not passed. And the update will be done by the ID.
HTTP URL: <baseURL>/ctMemphisPersistVolume/
HTTP Verb: POST
Constraints:
Parameters:
{
"volume": {
"id": 3, // optional, must be an existing
ID for update
"opSystem": 0, // required
"name": "E:/", // required to create a new volume,
"description": "Volume 3 description", // optional
"totalDiskSpace": 1000, // optional
"availDiskSpace": 500 // optional
}
}
{
"success": true,
"error":
{
"errorCode": 0,
"message": "Success"
},
"id": 3
}
Return:
Error code