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:

/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:
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:
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:
DELETE /node/(hostname)/storage/(zpool)
DC-bound?:
Permissions:
Asynchronous?:
Parameters:
  • hostname (string) – required - Node hostname
  • zpool (string) – required - Node storage pool name
Status Codes: