api.dc.storage
¶
/dc/(dc)/storage¶
-
api.dc.storage.views.
dc_storage_list
(*args, **kwargs)¶ List (
GET
) available node storages in current datacenter.-
GET
/dc/
(dc)/storage
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- data.full (boolean) – Return list of objects with all storage details (default: false)
- data.extended (boolean) – Return list of objects with extended storage details (default: false)
- data.order_by (string) – Available fields for sorting:
hostname
,zpool
(default:hostname,zpool
)
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found
es get /dc/cloud1/storage
{ "url": "https://my.erigones.com/api/dc/cloud1/storage/", "status": 200, "method": "GET", "text": { "status": "SUCCESS", "result": [ "zones@node99.erigones.com", "db@node99.erigones.com" ], "task_id": "1e1d23-6f75849b-21ea-4187-af26" }
-
/dc/(dc)/storage/(zpool@node)¶
-
api.dc.storage.views.
dc_storage
(*args, **kwargs)¶ Show (
GET
), create (POST
) or delete (DELETE
) a node storage (zpool@node) association with a datacenter (dc).-
GET
/dc/
(dc)/storage/(zpool@node)
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- zpool@node (string) – required - Storage pool name @ Compute node hostname
- data.extended (boolean) – Display extended storage details (default: false)
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Storage not found
-
POST
/dc/
(dc)/storage/(zpool@node)
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- zpool@node (string) – required - Storage pool name @ Compute node hostname
Status Codes: - 201 Created – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Storage not found
- 406 Not Acceptable – Storage already exists
- 428 – Compute node is not available
-
DELETE
/dc/
(dc)/storage/(zpool@node)
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- zpool@node (string) – required - Storage pool name @ Compute node hostname
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Storage not found
- 428 – Storage is used by some VMs / Storage is used by some VM backups
es create /dc/cloud1/storage/db@node99.erigones.com
{ "url": "https://my.erigones.com/api/dc/cloud1/storage/db/", "status": 200, "method": "POST", "text": { "status": "SUCCESS", "result": { "access": 3, "alias": "db", "size_free": 245760, "owner": "admin", "zpool": "db", "desc": "", "type": "1", "size": 409600 }, "task_id": "1e1d23-6f75849b-b5cc-4544-8bdd" }
-