Page tree
Skip to end of metadata
Go to start of metadata
Supported VersionsLast Updated
1.2.00 & higher
json output 1.14.00 & higher
2015/04/29
Actionlisttemplates
MethodGET, POST
Variables
type             [openvz|xen|xen hvm|kvm]
listpipefriendly [true|false] Return template list with friendly name
rdtype           [json] For json output specify json or for default output leave blank. This variable is optional
Example Output

XML

Success:

 <status>success</status>
<statusmsg></statusmsg>
<templates>template1|Centos 6,template2|Debian 8,template3|Centos 7</templates> (this will also return iso's for Xen HVM/KVM
<templateshvm>template1,template2,template3</templateshvm>
<templateskvm>template1,template2,template3</templateskvm>

Error:

 <status>error</status>
<statusmsg>ERROR MESSAGE</statusmsg>

JSON

Success:

 {
"status":"success",
"statusmsg":"",
"templates":"template1,template2,template3",
"templateshvm":"template1,template2,template3",
"templateskvm":"template1,template2,template3"
}

Error:

 {"status":"error","statusmsg":"ERROR MESSAGE"}
  • No labels