List Templates¶
Supported Versions | Last Updated |
---|---|
1.2.00 & higher json output 1.14.00 & higher |
2015/04/29 |
Action | listtemplates |
---|---|
Method | GET, 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 | XMLSuccess: <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> JSONSuccess: { "status":"success", "statusmsg":"", "templates":"template1,template2,template3", "templateshvm":"template1,template2,template3", "templateskvm":"template1,template2,template3" } Error: {"status":"error","statusmsg":"ERROR MESSAGE"} |