api.node.storage
¶
/node/(hostname)/storage¶
-
api.node.storage.views.
node_storage_list
(*args, **kwargs)¶ List (
GET
) all node storages.-
GET
/node/
(hostname)/storage
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - hostname (string) – required - Node hostname
- data.full (boolean) – Return list of objects with node storage details (default: false)
- data.extended (boolean) – Return list of objects with extended node storage details (default: false)
- data.order_by (string) – Available fields for sorting:
zpool
,created
(default:zpool
)
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Node not found
-
/node/(hostname)/storage/(zpool)¶
-
api.node.storage.views.
node_storage
(*args, **kwargs)¶ Show (
GET
), create (POST
) update (PUT
) or delete (DELETE
) a node storage.-
GET
/node/
(hostname)/storage/
(zpool)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - hostname (string) – required - Node hostname
- zpool (string) – required - Node storage pool name
- data.extended (boolean) – Display extended node storage details (default: false)
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Node not found / Storage not found
-
POST
/node/
(hostname)/storage/
(zpool)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - hostname (string) – required - Node hostname
- zpool (string) – required - Node storage pool name
- data.alias (string) – Short node storage name (default:
zpool
) - data.access (integer) – Access type (1 - Public, 3 - Private) (default: 3)
- data.owner (string) – User that owns the node storage (default: logged in user)
- data.type (integer) – Node storage type (1 - Local, 3 - iSCSI, 4 - Fiber Channel) (default: 1)
- data.size_coef (float) – Coefficient for calculating the maximum amount of disk space available for virtual machines (default: 0.6)
- data.desc (string) – Node storage description
Status Codes: - 201 Created – SUCCESS
- 400 Bad Request – FAILURE
- 403 Forbidden – Forbidden
- 404 Not Found – Node not found
- 406 Not Acceptable – Storage already exists
-
PUT
/node/
(hostname)/storage/
(zpool)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - hostname (string) – required - Node hostname
- zpool (string) – required - Node storage pool name
- data.alias (string) – Short node storage name
- data.access (integer) – Access type (1 - Public, 3 - Private)
- data.owner (string) – User that owns the node storage
- data.type (integer) – Node storage type (1 - Local, 3 - iSCSI, 4 - Fiber Channel)
- data.size_coef (float) – Coefficient for calculating the maximum amount of disk space available for virtual machines
- data.desc (string) – Node storage description
Status Codes: - 200 OK – SUCCESS
- 400 Bad Request – FAILURE
- 403 Forbidden – Forbidden
- 404 Not Found – Node not found / Storage not found
-
DELETE
/node/
(hostname)/storage/
(zpool)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - hostname (string) – required - Node hostname
- zpool (string) – required - Node storage pool name
Status Codes: - 200 OK – SUCCESS
- 400 Bad Request – FAILURE
- 403 Forbidden – Forbidden
- 404 Not Found – Node not found / Storage not found
- 428 – Storage is used by some VMs / Storage is used by some VM backups
-