Retrieve list of current volume repair status
/api/v1/vol/repair_status?app=application&vol=volume&vdc=controller-name
Name of the application
Name of the volume
Name of the target virtual data center
synchronous
GET
Retrieve list of repair status for test:vol1.
GET http://192.168.123.200/api/v1/vol/repair_status?app=test&vol=vol1&vdc=mygrid
<message> Name : test:vol Comment : UUID : cf432100-63fc-450d-8eb7-2da6deca8627 Size : 1.00 GB State : ok Filesystem : ext3 Mount State : available Mounted Device : none Current Users : 0 Time Created : Fri Apr 23 12:47:11 2010 Time Written : Fri Apr 23 12:47:12 2010 Time Accessed : Fri Apr 23 13:11:50 2010 Number Mirrors : 1 Mirrors : Server State srv1 ok </message>
{ }
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
The specified volume 'test:data' does not exist. - Invalid application or volume specified in the request.
Destroy unused volume(s), unused volume streams, and volumes that have broken symbolic links
/api/v1/vol/clean?vdc=controller-name
Name of the target virtual data center
asynchronous
GET
Destroy unused volume(s), unused volume streams, and volumes that have broken symbolic links.
GET http://192.168.123.200/api/v1/vol/clean?vdc=mygrid
<job>be805915-76b2-48c8-b8a0-b881cca66da6</job>
{
"job" : "be805915-76b2-48c8-b8a0-b881cca66da6"
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Note: To get the status of job, issue a /api/v1/job/info? request with the job_id returned above as the argument. For more information about how to obtain the job status, refer to the job object.
|
Copyright © 2012 CA.
All rights reserved.
|
|