Use this object to manage existing templates.
|
Method |
Description |
|
Retrieve list of application templates |
|
|
Retrieve application template information |
|
|
Rename an application template |
|
|
Destroy an application template |
|
|
Import an application template |
|
|
Export an application template |
|
|
Copy an application template |
|
|
Migrate a template from a remote grid |
|
|
Retrieve application template configuration parameters |
|
|
Retrieve application template boundary |
|
|
Lock an application template |
|
|
Unlock an application template |
|
|
get_acl |
Retrieve template ACL. |
|
Replace entire template ACL |
|
|
Replace a portion of template ACL |
Retrieve list of application templates
/api/v1/template/list?vdc=controller-name
Name of the target virtual data center
synchronous
GET
Retrieve list of application templates
GET http://192.168.123.200/api/v1/template/list?vdc=mygrid
<templates> template> name>TWiki_r11</name> description>TWiki 4.3.1 collaboration platform (v4.3.1-7)</description> destroy_on_stop>0</destroy_on_stop> doc_url>http://doc.3tera.net/AppLogic29/RefAppsTWiki4.html</doc_url> id>2</id> state>stopped</state> template>0</template> user1></user1> user2></user2> </template> . . . </templates>
{
"template" : [
{
"template" : "0",
"user1" : "",
"name" : "TWiki_r11",
"description" : "TWiki 4.3.1 collaboration platform (v4.3.1-7)",
"state" : "stopped",
"doc_url" : "http://doc.3tera.net/AppLogic29/RefAppsTWiki4.html",
"destroy_on_stop" : "0",
"id" : "2",
"user2" : ""
},
.
.
.
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Retrieve application template info
/api/v1/template/info?template=template&vdc=controller-name
Name of the application template
Name of the target virtual data center
synchronous
GET
Retrieve information for an application template named
VDS_CentOS51_r15. GET http://192.168.123.200/api/v1/template/info?template=VDS_CentOS51_r15&vdc=mygrid
<template> <name>VDS_CentOS51_r15</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> </template>
{
"locked" : "0",
"template" : "0",
"cpu" : "0.25",
"user1" : "",
"name" : "VDS_CentOS51_r15",
"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 (template). - Argument template=template missing in the request.
Application VDS_CentOS_r1 does not exist. - Template specified in the request does not exist on the VDC.
|
Copyright © 2012 CA.
All rights reserved.
|
|