api.dc.template
¶
/dc/(dc)/template¶
-
api.dc.template.views.
dc_template_list
(*args, **kwargs)¶ List (
GET
) available server templates in current datacenter.-
GET
/dc/
(dc)/template
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- data.full (boolean) – Return list of objects with all template details (default: false)
- data.order_by (string) – Available fields for sorting:
name
(default:name
)
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found
-
/dc/(dc)/template/(name)¶
-
api.dc.template.views.
dc_template
(*args, **kwargs)¶ Show (
GET
), create (POST
) or delete (DELETE
) a server template (name) association with a datacenter (dc).-
GET
/dc/
(dc)/template/
(name)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- name (string) – required - Server template name
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Template not found
-
POST
/dc/
(dc)/template/
(name)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- name (string) – required - Server template name
Status Codes: - 201 Created – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Template not found
- 406 Not Acceptable – Template already exists
-
DELETE
/dc/
(dc)/template/
(name)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- name (string) – required - Server template name
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Template not found
- 428 – Template is used by some VMs
-