Get Template Store Details

To view the list of template groups in the template store, use the following request:

GET http://onapp.test/template_store.xml
GET http://onapp.test/template_store.json

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/template_store.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/template_store.json

XML Output Example

<objects type="array">
  <object>
    <created_at type="datetime">2012-05-28T06:02:00-10:00</created_at>
    <depth type="integer">0</depth>
    <id type="integer">1</id>
    <kms type="boolean">false</kms>
    <kms_host></kms_host>
    <kms_port></kms_port>
    <kms_server_label></kms_server_label>
    <label>Linux</label>
    <lft type="integer">1</lft>
    <mak type="boolean">true</mak>
    <own type="boolean">false</own>
    <parent_id nil="true"></parent_id>
    <rgt type="integer">28</rgt>
    <updated_at type="datetime">2012-07-13T02:51:56-10:00</updated_at>
  </object>
</objects>


Where:

objects - the array with the following parameters:

label – the group name

created_at – the date when the template group was created

id - template group id

kms_host – KMS server host name

kms_port – KMS server port

kms_server_label – KMS server name

label - template group name

mak - MAK windows licensing type

own - user's own license

parent_id - id of the target template group

depth - the depth of a given node (distance from this template group to the root)

lft - left nested set identifier

rgt - right nested set identifier

updated_at – the date when the template group was updated