|
Method |
Description |
|
Retrieve list of applications |
|
|
Retrieve application info |
|
|
Create a new application |
|
|
Destroy an application |
|
|
Provision an application from a template. |
|
|
Rename an application |
|
|
Retrieve application configuration parameters |
|
|
Retrieve application boundary |
|
|
Start an application |
|
|
Stop an application |
|
|
Stop all applications |
|
|
Copy an application |
|
|
Restart an application |
|
|
Migrate an application from a remote grid |
|
|
Lock an application |
|
|
Unlock an application |
|
|
Log in to an application and run a specified shell command. |
|
|
Clean instantiated application volumes |
|
|
Prepare application for running |
|
|
Continue starting of an application |
|
|
Repair an application |
|
|
Export an application |
|
|
Import an application |
|
|
Retrieve application package descriptor |
|
|
Replace application package descriptor |
|
|
Retrieves the application ACL or portion of the application ACL |
|
|
Replace the entire application ACL |
|
|
Replace portion of application ACL |
Retrieve a list of applications
/api/v<vers>/app/list?vdc=controller-name
Name of the target virtual data center
synchronous
GET
Retrieve a list of applications.
GET http://192.168.123.200/api/v1/app/list?vdc=mygrid
<applications> <application> name>J2EE</name> description>J2EE application</description> destroy_on_stop>0</destroy_on_stop> doc_url></doc_url> id>2</id> state>stopped</state> template>0</template> user1></user1> user2></user2> </application> <application> name>Lamp</name> description>Lamp application</description> destroy_on_stop>0</destroy_on_stop> doc_url></doc_url> id>3</id> state>running</state> template>0</template> user1></user1> user2></user2> </application> . . . </applications>
{
"application" : [
{
"template" : "0",
"user1" : "",
"name" : "J2EE", br> "description" : "J2EE application",
"state" : "stopped",
"doc_url" : "",
"destroy_on_stop" : "0", br> "id" : "2",
"user2" : ""
},
{
"template" : "0",
"user1" : "",
"name" : "Lamp",
"description" : "Lamp application",
"state" : "running",
"doc_url" : "",
"destroy_on_stop" : "0",
"id" : "3",
"user2" : ""
},
.
.
.
]
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Retrieve application info
/api/v1/app/info?app=application&vdc=controller-name
Name of the application
Name of the target virtual data center
synchronous
GET
Retrieve information for an application named test.
GET http://192.168.123.200/api/v1/app/info?app=test&vdc=mygrid
<application> <name>test</name> <bw>1000000</bw> <cpu>0.25</cpu> <description>Virtual Dedicated Server - Based on CentOS 5.1 (v1.0.14-1)</description> <destroy_on_stop>0</destroy_on_stop> <dflt_appliance></dflt_appliance> <dflt_appliance_opts></dflt_appliance_opts> <doc_url>http://doc.3tera.net/AppLogic27/RefAppsVdsLinux.html</doc_url> <id>12</id> <incomplete>0</incomplete> <locked>0</locked> <mem>268435456</mem> <state>stopped</state> <template>0</template> <user1></user1> <user2></user2> </application>
{
"locked" : "0",
"template" : "0",
"cpu" : "0.25",
"user1" : "",
"name" : "test",
"dflt_appliance" : "",
"description" : "Virtual Dedicated Server - Based on CentOS 5.1 (v1.0.14-1)",
"state" : "stopped",
"bw" : "1000000",
"incomplete" : "0",
"doc_url" : "http://doc.3tera.net/AppLogic27/RefAppsVdsLinux.html",
"dflt_appliance_opts" : "",
"destroy_on_stop" : "0",
"id" : "12",
"mem" : "268435456",
"user2" : ""
}
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-name not specified in the request.
Entity not found – Permission denied – application ‘test123’ does not exist.
Create a new application
/api/v1/app/create?app=application&vdc=controller-name
Name of the new 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.
asynchronous
GET
Create a new empty application named test.
GET http://192.168.123.200/api/v1/app/create?app=test &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.
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.
Destroy an application
/api/v1/app/destroy?app=application&vdc=controller-name
Name of the application to be destroyed
Name of the target virtual data center
asynchronous
GET
Destroy an application named test.
GET http://192.168.123.200/api/v1/app/destroy?app=test&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.
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.
Provision from a template, configure, and optionally start an application.
/api/v1/app/provision?app=application&template=template&vdc=controller-name
Name of the new application
Name of the template 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.
asynchronous
GET
Provision an application named test from VDS_CentOS51_r15 template.
GET http://192.168.123.200/api/v1/app/provision?app=test&template=VDS_CentOS51_r15&vdc=mygridcode2
<job>be805915-76b2-48c8-b8a0-b881cca66db7</job>
{
"job" : "be805915-76b2-48c8-b8a0-b881cca66db7"
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Missing required arguments (template). - Argument template=template missing in the request.
Missing required arguments (app). - Argument app=app 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.
|
Copyright © 2012 CA.
All rights reserved.
|
|