mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-28 16:48:54 +00:00
4.2 KiB
4.2 KiB
/v2/templates
POST /v2/templates
Create a new template
Response status codes
- 201: Template created
- 400: Invalid request
Input
Name | Mandatory | Type | Description |
---|---|---|---|
builtin | boolean | Template is builtin | |
category | Template category | ||
compute_id | ✔ | ['null', '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
Name | Mandatory | Type | Description |
---|---|---|---|
builtin | ✔ | boolean | Template is builtin |
category | ✔ | Template category | |
compute_id | ✔ | ['null', '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
../../../examples/controller_post_templates.txt
GET /v2/templates
List of template
Response status codes
- 200: Template list returned
Sample session
../../../examples/controller_get_templates.txt