ServerMania logo

Get My Template Group Details

To get details of a particular template group, use the following request:

GET /settings/image_template_groups/:image_template_group_id.xml
GET /settings/image_template_groups/:image_template_group_id.json

XML Request Example

curl -i -X GET -u user:userpass http://test/settings/image_template_groups/57.xml

JSON Request Example

curl -i -X GET -u user:userpass http://test/settings/image_template_groups/57.json

XML Output Example

  <image_template_group>
    <id type="integer">57</id>
    <label>another</label>
    <parent_id nil="true"/>
    <lft type="integer">61</lft>
    <rgt type="integer">62</rgt>
    <depth type="integer">0</depth>
    <mak type="boolean">false</mak>
    <own type="boolean">false</own>
    <kms type="boolean">false</kms>
    <kms_server_label></kms_server_label>
    <kms_host></kms_host>
    <kms_port></kms_port>
    <created_at type="datetime">2014-04-25T14:40:23+00:00</created_at>
    <updated_at type="datetime">2014-04-25T14:40:42+00:00</updated_at>
    <system_group type="boolean">false</system_group>
    <hypervisor_group_id nil="true"/>
    <user_id type="integer">2508</user_id>
    <children type="array"/>
    <relations type="array"/>
  </image_template_group>

Where:

image_template_group – the array with the template group details
id – the ID of this template group
label – the name of the template group
parent_id – the ID of the parent group. Applicable to child groups only
lft - left nested set identifier
rgt - right nested set identifier
depth - the depth of a given node (distance from this template group to the root)
mak – MAK windows licensing type
own – user’s own license for Windows licensing
kms – KMS windows licensing type
kms_server_label – name of the KMS licensing server
kms_host - KMS server host name
kms_port – KMS server port
created_at – time when the template group was created
updated_at – time of the last changes to the template group
system_group - true for the groups created with the installation; for Template Store groups only 
hypervisor_group_id - compute zone ID
user_id – user, to whom this group belongs
children – an array of the child groups