/v2/templates/{template_id} ------------------------------------------------------------------------------------------------------------------------------------------ .. contents:: GET /v2/templates/**{template_id}** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get an template Response status codes ********************** - **200**: Template found - **400**: Invalid request - **404**: Template doesn't exist Output ******* .. raw:: html
Name Mandatory Type Description
builtin boolean Template is builtin
category Template category
compute_id string Compute identifier
default_name_format string Default name format
name string Template name
symbol string Symbol of the template
template_id string Template UUID
template_type enum Possible values: cloud, ethernet_hub, ethernet_switch, docker, dynamips, vpcs, traceng, virtualbox, vmware, iou, qemu
Sample session *************** .. literalinclude:: ../../../examples/controller_get_templatestemplateid.txt PUT /v2/templates/**{template_id}** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Update an template Response status codes ********************** - **200**: Template updated - **400**: Invalid request - **404**: Template doesn't exist Input ******* .. raw:: html
Name Mandatory Type Description
builtin boolean Template is builtin
category Template category
compute_id string Compute identifier
default_name_format string Default name format
name string Template name
symbol string Symbol of the template
template_id string Template UUID
template_type enum Possible values: cloud, ethernet_hub, ethernet_switch, docker, dynamips, vpcs, traceng, virtualbox, vmware, iou, qemu
Output ******* .. raw:: html
Name Mandatory Type Description
builtin boolean Template is builtin
category Template category
compute_id string Compute identifier
default_name_format string Default name format
name string Template name
symbol string Symbol of the template
template_id string Template UUID
template_type enum Possible values: cloud, ethernet_hub, ethernet_switch, docker, dynamips, vpcs, traceng, virtualbox, vmware, iou, qemu
Sample session *************** .. literalinclude:: ../../../examples/controller_put_templatestemplateid.txt DELETE /v2/templates/**{template_id}** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Delete an template Parameters ********** - **template_id**: template UUID Response status codes ********************** - **204**: Template deleted - **400**: Invalid request - **404**: Template doesn't exist Sample session *************** .. literalinclude:: ../../../examples/controller_delete_templatestemplateid.txt