Rename a volume
/api/v1/vol/rename?app=application&vol=volume&volnew=new-volume&vdc=controller-name
Name of the application
Name of the volume
Name of the new volume
Name of the target virtual data center
asynchronous
GET
Rename a volume test:vol1 to test:vol2.
GET http://192.168.123.200/api/v1/vol/rename?app=test&vol=vol1&volnew=vol2&vdc=mygrid
<opt></opt>
{}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Missing required arguments (app). - Argument app=app missing in the request.
Missing required arguments (vol). - Argument vol=vol missing in the request.
Missing required arguments (volnew). - Argument volnew=new_vol missing in the request.
Volume 'test:data' does not exist. - Invalid application in the request.
Failed to rename volume 'test:data'. - Volume specified in the request is in-use.
Volume 'test:data2' does not exist. - Invalid volume specified in the request.
Resize a volume
/api/v1/vol/resize?app=application&vol=volume&size=size&vdc=controller-name
Name of the application
Name of the volume
Size of the volume
Name of the target virtual data center
asynchronous
GET
Resize test:vol1 to 2GB.
GET http://192.168.123.200/api/v1/vol/resize?app=test&vol=vol1&size=2G&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.
Missing required arguments (app). - Argument app=app missing in the request.
Missing required arguments (vol). - Argument vol=vol missing in the request.
Missing required arguments (size). - Argument size=size missing in the request.
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.
Copy a volume
/api/v1/vol/copy?app=application&vol=volume&volnew=new-volume&vdc=controller-name
Name of the application
Name of the volume
Name of the new volume
Name of the target virtual data center
Name of the alternate application to copy the volume to. By default, the volume is copied to the original application.
asynchronous
GET
Copy a volume test:vol1 to test:vol2.
GET http://192.168.123.200/api/v2/vol/copy?app=test&vol=vol1&appnew=test&volnew=vol2&vdc=mygrid
Copy a volume atest:vol1 to btest:vol2.
http://192.168.123.200/api/v1/vol/copy?app=atest&vol=vol1&appnew=btest&volnew=vol2&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.
Missing required arguments (app). - Argument app=app missing in the request.
Missing required arguments (vol). - Argument vol=vol missing in the request.
Missing required arguments (volnew). - Argument volnew=new_vol missing in the request.
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.
Export a volume to a container file on /vol/_impex/
/api/v1/vol/export?app=application&vol=volume&target=filename.img.gz&vdc=controller-name
Name of the application or domain hosting the volume
Name of the volume
Name of the container file to export the volume to.
Creates the file at the root of the import/export volume of the grid: /vol/_impex/ Optionally compresses the file using gzip (upon specification of .gz as a file name extent)
Name of the target virtual data center
asynchronous
GET
Export the volume test1:vol1 to the compressed container file /vol/_impex/test.img.gz.
GET http://192.168.123.200/api/v1/vol/export?app=test1&vol=vol1&target=test.img.gz&vdc=mygrid
<job>bdc176a5-c069-4b23-89d2-d933127a9765</job>
{
"job" : "bdc176a5-c069-4b23-89d2-d933127a9765"
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Missing required arguments (app). - Argument app=app missing in the request.
Missing required arguments (vol). - Argument vol=vol missing in the request.
Missing required arguments (target). - Argument target=filename missing in the request.
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.
Import a volume from a container file on /vol/_impex/
/api/v1/vol/import?app=application&vol=volume&target=filename.img.gz&vdc=controller-name
Name of the application or domain to host the new volum
Name of the new volume
Name of the container file to import the volume from.
Retrieves the volume data from the file located at the root of the import/export volume on the specified grid: /vol/_impex/ Expects gzip-compressed data if the file name extent is .gz
Name of the target virtual data center.
asynchronous
GET
Import the volume test2:vol2 from the compressed container file
/vol/_impex/test.img.gz.
GET
http://192.168.123.200/api/v1/vol/import?app=test2&vol=vol2&target=test.img.gz&vdc=mygrid
<job>bdc176a5-c069-4b23-89d2-d933127a9766</job>
{
"job" : "bdc176a5-c069-4b23-89d2-d933127a9766"
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Missing required arguments (app). - Argument app=app missing in the request.
Missing required arguments (vol). - Argument vol=vol missing in the request.
Missing required arguments (target). - Argument target=filename missing in the request.
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.
Move a volume to an alternate location
/api/v1/vol/move?app=application&vol=volume&volnew=new-volume-location&vdc=controller-name
Name of the source application
Name of the volume
New volume location, in the form <application>:<volume_name>
Name of the target virtual data center
asynchronous
GET
Move a volume atest:vol1 to btest:vol2.
GET http://192.168.123.200/api/v1/vol/move?app=atest&vol=vol1&volnew=btest:vol2&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.
Missing required arguments (app). - Argument app=app missing in the request.
Missing required arguments (vol). - Argument vol=vol missing in the request.
Missing required arguments (volnew). - Argument volnew=new_vol missing in the request.
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 (see page 308) object.
|
Copyright © 2012 CA.
All rights reserved.
|
|