api.dc.image
¶
/dc/(dc)/image¶
-
api.dc.image.views.
dc_image_list
(*args, **kwargs)¶ List (
GET
) available server disk images in current datacenter.-
GET
/dc/
(dc)/image
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- data.full (boolean) – Return list of objects with all image 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)/image/(name)¶
-
api.dc.image.views.
dc_image
(*args, **kwargs)¶ Show (
GET
), create (POST
) or delete (DELETE
) a server disk image (name) association with a datacenter (dc).-
GET
/dc/
(dc)/image/
(name)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- name (string) – required - Server disk image name
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Image not found
-
POST
/dc/
(dc)/image/
(name)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- name (string) – required - Server disk image name
Status Codes: - 201 Created – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Image not found
- 406 Not Acceptable – Image already exists
-
DELETE
/dc/
(dc)/image/
(name)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- name (string) – required - Server disk image name
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Image not found
- 428 – Image is used by some VMs
-