Rename an application
/api/v1/app/rename?app=application&new_name=new-application&vdc=controller-name
Name of the application to be renamed
New name of the application
Name of the target virtual data center
synchronous
GET
Rename an application named test to test2.
GET http://192.168.123.200/api/v1/app/rename?app=test&new_name=test2&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 (new_name). - Argument new=new-name missing in the request.
Entity not found – Permission denied – application ‘test123’ does not exist.
Retrieve application configuration parameters
/api/v1/app/config?app=application&vdc=controller-name
Name of the application
Name of the target virtual data center
See Application Control in the Command Line Shell Reference for descriptions of the options available for this command.
synchronous
GET
Retrieve configuration parameters for application test.
GET http://192.168.123.200/api/v1/app/config?app=test&vdc=mygrid
<config> <name>test</name> <__description>Virtual Dedicated Server - Based on CentOS 5.1 (v1.0.14-1)</__description> <__doc_url>http://doc.3tera.net/AppLogic27/RefAppsVdsLinux.html</__doc_url> <__template>0</__template> </config>
{
"__doc_url" : "http://doc.3tera.net/AppLogic27/RefAppsVdsLinux.html",
"__template" : "0",
"__description" : "Virtual Dedicated Server - Based on CentOS 5.1 (v1.0.14-1)",
"name" : "test"
}
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.
Application test does not exist. - An invalid application name was specified in the request.
|
Copyright © 2012 CA.
All rights reserved.
|
|