ServerMania logo

Get 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/105.xml

JSON Request Example:

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

XML Output Example

<image_template_group>
 <created_at type="datetime">2012-07-13T03:25:48-10:00</created_at>
 <depth type="integer">2</depth>
 <id type="integer">105</id>
 <kms type="boolean">false</kms>
 <kms_host></kms_host>
 <kms_port></kms_port>
 <kms_server_label></kms_server_label>
 <label>qweqwe</label>
 <lft type="integer">77</lft>
 <mak type="boolean">false</mak>
 <own type="boolean">false</own>
 <parent_id type="integer">102</parent_id>
 <rgt type="integer">78</rgt>
 <updated_at type="datetime">2012-07-13T03:25:48-10:00</updated_at>
</image_template_group>

Where:

image_template_group - the image template 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