Abiquo Documentation Cookies Policy

Our Documentation website uses cookies to improve your experience. Please visit our Cookie Policy page for more information about cookies and how we use them.


Abiquo 4.4

Skip to end of metadata
Go to start of metadata

Contents:

Storage Pool Resource

This resource exposes the management operations for storage pools. Administrators configure storage pools in the target storage devices, and the platform will use them as backend storage for creating iSCSI volumes. 

This class operates mainly over the Resource URI: /admin/datacenters/{datacenter}/storage/devices/{device}/pools

Exposed Methods

List storage pools

Get the information of the storage pools for the current storage device. If the 'sync' flag is set to 'true', then Abiquo will try to discover the pools in the target storage device and return them. This flag can be specially useful when adding storage pools, in order to provide accurate information about the storage pool being added.

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}/pools
Roles Required: PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.storagepools+json; version=4.4; application/vnd.abiquo.storagepools+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

sync

false

 

Synchronize and update remote Storage Pool with the database (Synchronize ->
true)

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: StoragePools Media Type
Request Example:

 Click here to show or hide the request example


GET_adm_dcs_X_stg_devs_X_pls_AC_stgpls_j.0002.txt

cURL:

curl -X GET http://localhost:9000/api/admin/datacenters/2154/storage/devices/441/pools \ 
	 -H 'Accept:application/vnd.abiquo.storagepools+json; version=3.10' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "links": [], 
  "collection": []
}

List storage pools including tier information

Get the information of the storage pools for the current storage device, including the tier that each pool belongs to.

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}/pools
Roles Required: PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.storagepoolswithtier+json; version=4.4; application/vnd.abiquo.storagepoolswithtier+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: StoragePoolsWithTier Media Type
Request Example:

 Click here to show or hide the request example

GET_adm_dcs_X_stg_devs_X_pls_AC_stgplswtr_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/datacenters/4297/storage/devices/995/pools \ 
	 -H 'Accept:application/vnd.abiquo.storagepoolswithtier+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "links": [], 
  "collection": [
    {
      "usedSizeInMb": 424, 
      "name": "421", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4297/storage/devices/995/pools/b81f0c2c-f0f5-473e-892b-3712500643a4", 
          "type": "application/vnd.abiquo.storagepool+json", 
          "rel": "edit", 
          "title": "421"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4297/storage/tiers/1087", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "419"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4297/storage/devices/995", 
          "type": "application/vnd.abiquo.storagedevice+json", 
          "rel": "device", 
          "title": "412"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4297/storage/devices/995/pools/b81f0c2c-f0f5-473e-892b-3712500643a4/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 422, 
      "enabled": false, 
      "tier": {
        "storageAllocationPolicy": "PROGRESSIVE", 
        "description": "420", 
        "links": [], 
        "defaultAllowed": true, 
        "enabled": true, 
        "id": 1087, 
        "name": "419"
      }, 
      "idStorage": "b81f0c2c-f0f5-473e-892b-3712500643a4", 
      "totalSizeInMb": 423, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }, 
    {
      "usedSizeInMb": 418, 
      "name": "415", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4297/storage/devices/995/pools/df27dc64-e1a9-41fd-8277-0b3f05db1183", 
          "type": "application/vnd.abiquo.storagepool+json", 
          "rel": "edit", 
          "title": "415"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4297/storage/tiers/1086", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "413"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4297/storage/devices/995", 
          "type": "application/vnd.abiquo.storagedevice+json", 
          "rel": "device", 
          "title": "412"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4297/storage/devices/995/pools/df27dc64-e1a9-41fd-8277-0b3f05db1183/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 416, 
      "enabled": false, 
      "tier": {
        "storageAllocationPolicy": "PROGRESSIVE", 
        "description": "414", 
        "links": [], 
        "defaultAllowed": true, 
        "enabled": true, 
        "id": 1086, 
        "name": "413"
      }, 
      "idStorage": "df27dc64-e1a9-41fd-8277-0b3f05db1183", 
      "totalSizeInMb": 417, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }
  ]
}

 

Create a Storage Pool means registering an existing Storage Pool obtained from the Get
remote list of Pools method and sending the POST to store it in the DB as a pool
available for creating volumes. The Storage Pools must be associated with a Tier. You
can also create it by using a RESTLink to the corresponding tier.

Synopsis: POST http://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}/pools
Roles Required: PHYS_DC_ALLOW_MODIFY_STORAGE
Request Headers: Accept: application/vnd.abiquo.storagepool+json; version=4.4; application/vnd.abiquo.storagepool+xml; version=4.4;  Content-type:  application/vnd.abiquo.storagepool+json; version=4.4; application/vnd.abiquo.storagepool+xml; version=4.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: StoragePool Media Type
Response Message Body Entity: StoragePool Media Type
Request Example:

 Click here to show or hide the request example

POST_adm_dcs_X_stg_devs_X_pls_CT_stgpls_j_AC_stgpls_j.0001.txt

cURL:

curl -X POST http://localhost:9000/api/admin/datacenters/4292/storage/devices/990/pools \ 
	 -H 'Accept:application/vnd.abiquo.storagepools+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.storagepools+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 201

Request payload:

{
  "links": [], 
  "collection": [
    {
      "usedSizeInMb": 338, 
      "name": "335", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1081", 
          "rel": "tier"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 336, 
      "enabled": false, 
      "idStorage": "025f91b7-f608-4f54-8776-f0d8eefba189", 
      "totalSizeInMb": 337, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }, 
    {
      "usedSizeInMb": 344, 
      "name": "341", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1082", 
          "rel": "tier"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 342, 
      "enabled": false, 
      "idStorage": "32a240d1-2dab-44f3-8f33-0ea9a6c58365", 
      "totalSizeInMb": 343, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }, 
    {
      "usedSizeInMb": 350, 
      "name": "347", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1083", 
          "rel": "tier"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 348, 
      "enabled": false, 
      "idStorage": "9f2a564f-12ef-4721-82b4-eb9c90918b89", 
      "totalSizeInMb": 349, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }
  ]
}

Response payload:

{
  "links": [], 
  "collection": [
    {
      "usedSizeInMb": 338, 
      "name": "335", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/03cf7150-af44-4d2f-b0f6-abd740c14727", 
          "type": "application/vnd.abiquo.storagepool+json", 
          "rel": "edit", 
          "title": "335"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1081", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "333"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990", 
          "type": "application/vnd.abiquo.storagedevice+json", 
          "rel": "device", 
          "title": "332"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/03cf7150-af44-4d2f-b0f6-abd740c14727/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 336, 
      "enabled": false, 
      "idStorage": "03cf7150-af44-4d2f-b0f6-abd740c14727", 
      "totalSizeInMb": 337, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }, 
    {
      "usedSizeInMb": 344, 
      "name": "341", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/0677af63-147c-4a04-9288-9c96dbbef993", 
          "type": "application/vnd.abiquo.storagepool+json", 
          "rel": "edit", 
          "title": "341"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1082", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "339"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990", 
          "type": "application/vnd.abiquo.storagedevice+json", 
          "rel": "device", 
          "title": "332"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/0677af63-147c-4a04-9288-9c96dbbef993/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 342, 
      "enabled": false, 
      "idStorage": "0677af63-147c-4a04-9288-9c96dbbef993", 
      "totalSizeInMb": 343, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }, 
    {
      "usedSizeInMb": 350, 
      "name": "347", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/f218cbe1-6f11-4627-8bdb-e00ebec5e4a4", 
          "type": "application/vnd.abiquo.storagepool+json", 
          "rel": "edit", 
          "title": "347"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1083", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "345"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990", 
          "type": "application/vnd.abiquo.storagedevice+json", 
          "rel": "device", 
          "title": "332"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/f218cbe1-6f11-4627-8bdb-e00ebec5e4a4/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 348, 
      "enabled": false, 
      "idStorage": "f218cbe1-6f11-4627-8bdb-e00ebec5e4a4", 
      "totalSizeInMb": 349, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }
  ]
}

 

 

Add a storage pool to a storage tier using a tier entity

Add a storage pool to the platform and associate it with the given tier. The JSON or XML representing the tier must be embedded inside the JSON or XML describing the storage pool to add.

Synopsis: POST http://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}/pools
Roles Required:  PHYS_DC_ALLOW_MODIFY_STORAGE
Request Headers: Accept: application/vnd.abiquo.storagepoolwithtier+json; version=4.4; application/vnd.abiquo.storagepoolwithtier+xml; version=4.4;  Content-type:  application/vnd.abiquo.storagepoolwithtier+json; version=4.4; application/vnd.abiquo.storagepoolwithtier+xml; version=4.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: StoragePoolWithTier Media Type
Response Message Body Entity: StoragePoolWithTier Media Type
Request Example:

 Click here to show or hide the request example

POST_adm_dcs_X_stg_devs_X_pls_CT_stgplwtr_j_AC_stgplwtr_j.0001.txt

cURL:

curl -X POST http://localhost:9000/api/admin/datacenters/4273/storage/devices/971/pools \ 
	 -H 'Accept:application/vnd.abiquo.storagepoolwithtier+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.storagepoolwithtier+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 201

Request payload:

{
  "usedSizeInMb": 15, 
  "name": "12", 
  "links": [], 
  "maxVolumes": 0, 
  "availableSizeInMb": 13, 
  "enabled": false, 
  "tier": {
    "storageAllocationPolicy": "PROGRESSIVE", 
    "description": "11", 
    "links": [], 
    "defaultAllowed": false, 
    "enabled": true, 
    "id": 1059, 
    "name": "10"
  }, 
  "idStorage": "31a7078f-4004-4bd0-ac7f-2e85b3fdeb3b", 
  "totalSizeInMb": 14, 
  "usablePercent": 100, 
  "type": "ISCSI"
}

Response payload:

{
  "usedSizeInMb": 15, 
  "name": "12", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/datacenters/4273/storage/devices/971/pools/7a4413cf-d9c9-430d-a5da-d24f81716789", 
      "type": "application/vnd.abiquo.storagepool+json", 
      "rel": "edit", 
      "title": "12"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4273/storage/tiers/1059", 
      "type": "application/vnd.abiquo.tier+json", 
      "rel": "tier", 
      "title": "10"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4273/storage/devices/971", 
      "type": "application/vnd.abiquo.storagedevice+json", 
      "rel": "device", 
      "title": "9"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4273/storage/devices/971/pools/7a4413cf-d9c9-430d-a5da-d24f81716789/action/volumes", 
      "type": "application/vnd.abiquo.volumes+json", 
      "rel": "volumes", 
      "title": "volumes"
    }
  ], 
  "maxVolumes": 0, 
  "availableSizeInMb": 13, 
  "enabled": false, 
  "tier": {
    "storageAllocationPolicy": "PROGRESSIVE", 
    "description": "11", 
    "links": [], 
    "defaultAllowed": true, 
    "enabled": true, 
    "id": 1059, 
    "name": "10"
  }, 
  "idStorage": "7a4413cf-d9c9-430d-a5da-d24f81716789", 
  "totalSizeInMb": 14, 
  "usablePercent": 100, 
  "type": "ISCSI"
}

 

 

Add a list of storage pools

Add a list of storage pools in a specified storage device.

Synopsis: POST http://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}/pools
Roles Required: PHYS_DC_ALLOW_MODIFY_STORAGE
Request Headers: Accept: application/vnd.abiquo.storagepools+json; version=4.4; application/vnd.abiquo.storagepools+xml; version=4.4;  Content-type:  application/vnd.abiquo.storagepools+json; version=4.4; application/vnd.abiquo.storagepools+xml; version=4.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: StoragePools Media Type
Response Message Body Entity: StoragePools Media Type
Request Example:

 Click here to show or hide the request example

POST_adm_dcs_X_stg_devs_X_pls_CT_stgpls_j_AC_stgpls_j.0001.txt

cURL:

curl -X POST http://localhost:9000/api/admin/datacenters/4292/storage/devices/990/pools \ 
	 -H 'Accept:application/vnd.abiquo.storagepools+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.storagepools+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 201

Request payload:

{
  "links": [], 
  "collection": [
    {
      "usedSizeInMb": 338, 
      "name": "335", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1081", 
          "rel": "tier"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 336, 
      "enabled": false, 
      "idStorage": "025f91b7-f608-4f54-8776-f0d8eefba189", 
      "totalSizeInMb": 337, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }, 
    {
      "usedSizeInMb": 344, 
      "name": "341", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1082", 
          "rel": "tier"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 342, 
      "enabled": false, 
      "idStorage": "32a240d1-2dab-44f3-8f33-0ea9a6c58365", 
      "totalSizeInMb": 343, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }, 
    {
      "usedSizeInMb": 350, 
      "name": "347", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1083", 
          "rel": "tier"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 348, 
      "enabled": false, 
      "idStorage": "9f2a564f-12ef-4721-82b4-eb9c90918b89", 
      "totalSizeInMb": 349, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }
  ]
}

Response payload:

{
  "links": [], 
  "collection": [
    {
      "usedSizeInMb": 338, 
      "name": "335", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/03cf7150-af44-4d2f-b0f6-abd740c14727", 
          "type": "application/vnd.abiquo.storagepool+json", 
          "rel": "edit", 
          "title": "335"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1081", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "333"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990", 
          "type": "application/vnd.abiquo.storagedevice+json", 
          "rel": "device", 
          "title": "332"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/03cf7150-af44-4d2f-b0f6-abd740c14727/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 336, 
      "enabled": false, 
      "idStorage": "03cf7150-af44-4d2f-b0f6-abd740c14727", 
      "totalSizeInMb": 337, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }, 
    {
      "usedSizeInMb": 344, 
      "name": "341", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/0677af63-147c-4a04-9288-9c96dbbef993", 
          "type": "application/vnd.abiquo.storagepool+json", 
          "rel": "edit", 
          "title": "341"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1082", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "339"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990", 
          "type": "application/vnd.abiquo.storagedevice+json", 
          "rel": "device", 
          "title": "332"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/0677af63-147c-4a04-9288-9c96dbbef993/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 342, 
      "enabled": false, 
      "idStorage": "0677af63-147c-4a04-9288-9c96dbbef993", 
      "totalSizeInMb": 343, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }, 
    {
      "usedSizeInMb": 350, 
      "name": "347", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/f218cbe1-6f11-4627-8bdb-e00ebec5e4a4", 
          "type": "application/vnd.abiquo.storagepool+json", 
          "rel": "edit", 
          "title": "347"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/tiers/1083", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "345"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990", 
          "type": "application/vnd.abiquo.storagedevice+json", 
          "rel": "device", 
          "title": "332"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/4292/storage/devices/990/pools/f218cbe1-6f11-4627-8bdb-e00ebec5e4a4/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }
      ], 
      "maxVolumes": 0, 
      "availableSizeInMb": 348, 
      "enabled": false, 
      "idStorage": "f218cbe1-6f11-4627-8bdb-e00ebec5e4a4", 
      "totalSizeInMb": 349, 
      "usablePercent": 100, 
      "type": "ISCSI"
    }
  ]
}

 

Get a storage pool

Get the information about a storage pool.

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}/pools/{pool}
Roles Required:  PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.storagepool+json; version=4.4; application/vnd.abiquo.storagepool+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

sync

false

 

Synchronize and update remote Storage Pool with the database (Synchronize ->
true)

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: StoragePool Media Type
Request Example:

 Click here to show or hide the request example

GET_adm_dcs_X_stg_devs_X_pls_X_AC_stgpl_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/datacenters/4259/storage/devices/958/pools/694b0ff6-4a27-48b9-b46f-0abaca5223e0 \ 
	 -H 'Accept:application/vnd.abiquo.storagepool+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "usedSizeInMb": 87, 
  "name": "84", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/datacenters/4259/storage/devices/958/pools/694b0ff6-4a27-48b9-b46f-0abaca5223e0", 
      "type": "application/vnd.abiquo.storagepool+json", 
      "rel": "edit", 
      "title": "84"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4259/storage/tiers/1044", 
      "type": "application/vnd.abiquo.tier+json", 
      "rel": "tier", 
      "title": "82"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4259/storage/devices/958", 
      "type": "application/vnd.abiquo.storagedevice+json", 
      "rel": "device", 
      "title": "81"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4259/storage/devices/958/pools/694b0ff6-4a27-48b9-b46f-0abaca5223e0/action/volumes", 
      "type": "application/vnd.abiquo.volumes+json", 
      "rel": "volumes", 
      "title": "volumes"
    }
  ], 
  "maxVolumes": 0, 
  "availableSizeInMb": 85, 
  "enabled": false, 
  "idStorage": "694b0ff6-4a27-48b9-b46f-0abaca5223e0", 
  "totalSizeInMb": 86, 
  "usablePercent": 100, 
  "type": "ISCSI"
}

Update a storage pool to change the tier

Change the storage tier where the pool is assigned.

Synopsis: PUT http://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}/pools/{pool}
Roles Required: PHYS_DC_ALLOW_MODIFY_STORAGE
Request Headers: Accept: application/vnd.abiquo.storagepool+json; version=4.4; application/vnd.abiquo.storagepool+xml; version=4.4;  Content-type:  application/vnd.abiquo.storagepool+json; version=4.4; application/vnd.abiquo.storagepool+xml; version=4.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: StoragePool Media Type
Response Message Body Entity: StoragePool Media Type
Request Example:

 Click here to show or hide the request example

PUT_adm_dcs_X_stg_devs_X_pls_X_CT_stgpl_j_AC_stgpl_j.0001.txt

cURL:

curl -X PUT http://localhost:9000/api/admin/datacenters/4262/storage/devices/961/pools/4a349ea8-d9e9-4368-96da-539536ad1477 \ 
	 -H 'Accept:application/vnd.abiquo.storagepool+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.storagepool+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

{
  "usedSizeInMb": 141, 
  "name": "138", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/datacenters/4262/storage/tiers/1047", 
      "rel": "tier"
    }
  ], 
  "maxVolumes": 10, 
  "availableSizeInMb": 139, 
  "enabled": false, 
  "idStorage": "4a349ea8-d9e9-4368-96da-539536ad1477", 
  "totalSizeInMb": 140, 
  "usablePercent": 100
}

Response payload:

{
  "usedSizeInMb": 141, 
  "name": "138", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/datacenters/4262/storage/devices/961/pools/4a349ea8-d9e9-4368-96da-539536ad1477", 
      "type": "application/vnd.abiquo.storagepool+json", 
      "rel": "edit", 
      "title": "138"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4262/storage/tiers/1047", 
      "type": "application/vnd.abiquo.tier+json", 
      "rel": "tier", 
      "title": "136"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4262/storage/devices/961", 
      "type": "application/vnd.abiquo.storagedevice+json", 
      "rel": "device", 
      "title": "135"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4262/storage/devices/961/pools/4a349ea8-d9e9-4368-96da-539536ad1477/action/volumes", 
      "type": "application/vnd.abiquo.volumes+json", 
      "rel": "volumes", 
      "title": "volumes"
    }
  ], 
  "maxVolumes": 10, 
  "availableSizeInMb": 139, 
  "enabled": false, 
  "idStorage": "4a349ea8-d9e9-4368-96da-539536ad1477", 
  "totalSizeInMb": 140, 
  "usablePercent": 100, 
  "type": "ISCSI"
}

 

Remove a storage pool

Unassign the storage pool from the storage device.

Synopsis: DELETE http://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}/pools/{pool}
Roles Required: PHYS_DC_ALLOW_MODIFY_STORAGE
Request Headers: Accept: ; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity:
Request Example:

 Click here to show or hide the request example

DELETE_adm_dcs_X_stg_devs_X_pls_X.0001.txt

cURL:

curl -X DELETE http://localhost:9000/api/admin/datacenters/4255/storage/devices/954/pools/62c056de-7217-4887-bc12-44b3f434168a \ 
	 -H 'Accept:text/json,application/json' \ 
	 -u user:password --verbose 

Success status code: 204

Request payload:

--none--

Response payload:

--none--

List volumes in a storage pool

Retrieve the list of volumes in a storage pool.

Paging Method

This method works with paging. Check out Basic Behaviors for information about how it works

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}/pools/{pool}/action/volumes
Roles Required: PHYS_DC_ALLOW_MODIFY_STORAGE, PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.iscsivolumes+json; version=4.4; application/vnd.abiquo.iscsivolumes+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

startwith

false

0

First element to retrieve

by

false

id

How to order the search. Available values are: {NAME, VIRTUALDATACENTER,
VIRTUALAPPLIANCE, VIRUTALMACHINE, TIER, TOTALSIZE, USEDSIZE, AVAILABLESIZE}

has

false

 

A way to filter the search. It can be filtered by: Volume name, Virtual Datacenter
name, Virtual Appliance name, Virtual Machine name, Tier name, Total size

limit

false

25

Number of elements to retrieve.

asc

false

true

The way to order the search (ascendant -> true, descendant -> false). Ascendant by
default.

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: VolumesManagement Media Type
Request Example:

 Click here to show or hide the request example

GET_adm_dcs_X_stg_devs_X_pls_X_act_vols_AC_vols_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/datacenters/3505/storage/devices/619/pools/7bdb738c-6b0c-44f6-8143-fd693e2d42e6/action/volumes \ 
	 -H 'Accept:application/vnd.abiquo.volumes+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "totalSize": 1, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/datacenters/3505/storage/devices/619/pools/7bdb738c-6b0c-44f6-8143-fd693e2d42e6/action/volumes?limit=25&by=id&asc=true", 
      "rel": "first"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/3505/storage/devices/619/pools/7bdb738c-6b0c-44f6-8143-fd693e2d42e6/action/volumes?startwith=0&limit=25&by=id&asc=true", 
      "rel": "last"
    }
  ], 
  "collection": [
    {
      "name": "260", 
      "links": [
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2460/volumes/15752", 
          "type": "application/vnd.abiquo.volume+json", 
          "rel": "edit", 
          "title": "260"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2460/tiers/664", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "230"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2460/volumes/15752/action/initiatormappings", 
          "type": "application/vnd.abiquo.initiatormappings+json", 
          "rel": "initiatormappings", 
          "title": "initiator mappings"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2460", 
          "type": "application/vnd.abiquo.virtualdatacenter+json", 
          "rel": "virtualdatacenter", 
          "title": "236"
        }
      ], 
      "sequence": 0, 
      "bootable": true, 
      "state": "DETACHED", 
      "sizeInMB": 1024, 
      "diskControllerType": "IDE", 
      "allowResize": true, 
      "id": 15752, 
      "uuid": "8bd034d0-a6dc-44f3-b4b0-6fb13fc7e949"
    }
  ]
}

List volumes in a storage pool with virtual machine information

Retrieve the list of volumes in a storage pool, including the representation of the virtual machine, virtual appliance and virtual datacenter if the volume is attached to a virtual machine.

Paging Method

This method works with paging. Check out Basic Behaviors for information about how it works

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}/pools/{pool}/action/volumes
Roles Required: PHYS_DC_ALLOW_MODIFY_STORAGE, PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.iscsivolumeswithvirtualmachine+json; version=4.4; application/vnd.abiquo.iscsivolumeswithvirtualmachine+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

startwith

false

0

First element to retrieve

by

false

id

How to order the search. Available values are: {NAME, VIRTUALDATACENTER,
VIRTUALAPPLIANCE, VIRUTALMACHINE, TIER, TOTALSIZE, USEDSIZE, AVAILABLESIZE}

has

false

 

A way to filter the search. It can be filtered by: Volume name, Virtual Datacenter
name, Virtual Appliance name, Virtual Machine name, Tier name, Total size

limit

false

25

Number of elements to retrieve.

asc

false

true

The way to order the search (ascendant -> true, descendant -> false). Ascendant by
default.

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: VolumesManagementWithVirtualMachine Media Type
Request Example:

 Click here to show or hide the request example

GET_adm_dcs_X_stg_devs_X_pls_X_act_vols_AC_volswvm_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/datacenters/4271/storage/devices/970/pools/f55f9ca7-db25-4157-80cb-ea5420b1aa7f/action/volumes \ 
	 -H 'Accept:application/vnd.abiquo.volumeswithvirtualmachine+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "totalSize": 2, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/datacenters/4271/storage/devices/970/pools/f55f9ca7-db25-4157-80cb-ea5420b1aa7f/action/volumes?limit=25&by=id&asc=true", 
      "rel": "first"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4271/storage/devices/970/pools/f55f9ca7-db25-4157-80cb-ea5420b1aa7f/action/volumes?startwith=0&limit=25&by=id&asc=true", 
      "rel": "last"
    }
  ], 
  "collection": [
    {
      "virtualDatacenter": {
        "ramHard": 0, 
        "datacenter": {
          "name": "308", 
          "location": "309", 
          "links": [], 
          "id": 4271
        }, 
        "name": "318", 
        "links": [], 
        "cpuHard": 0, 
        "vlansHard": 0, 
        "publicIpsHard": 0, 
        "publicIpsSoft": 0, 
        "id": 2746, 
        "vlansSoft": 0, 
        "ramSoft": 0, 
        "cpuSoft": 0, 
        "hypervisorType": "TEST_HYPERVISOR"
      }, 
      "uuid": "69726a56-ec93-4bca-a5ce-8e2548a00b83", 
      "links": [
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/volumes/18662", 
          "type": "application/vnd.abiquo.volume+json", 
          "rel": "edit", 
          "title": "vol1"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/tiers/1058", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "312"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/volumes/18662/action/initiatormappings", 
          "type": "application/vnd.abiquo.initiatormappings+json", 
          "rel": "initiatormappings", 
          "title": "initiator mappings"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746", 
          "type": "application/vnd.abiquo.virtualdatacenter+json", 
          "rel": "virtualdatacenter", 
          "title": "318"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529", 
          "type": "application/vnd.abiquo.virtualappliance+json", 
          "rel": "virtualappliance", 
          "title": "337"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552", 
          "type": "application/vnd.abiquo.virtualmachine+json", 
          "rel": "virtualmachine", 
          "title": "336"
        }
      ], 
      "sequence": 0, 
      "bootable": true, 
      "virtualDatacenterWithDatacenter": {
        "ramHard": 0, 
        "datacenter": {
          "name": "308", 
          "location": "309", 
          "links": [], 
          "id": 4271
        }, 
        "name": "318", 
        "links": [], 
        "cpuHard": 0, 
        "vlansHard": 0, 
        "publicIpsHard": 0, 
        "publicIpsSoft": 0, 
        "id": 2746, 
        "vlansSoft": 0, 
        "ramSoft": 0, 
        "cpuSoft": 0, 
        "hypervisorType": "TEST_HYPERVISOR"
      }, 
      "storagePoolWithDevice": {
        "usedSizeInMb": 317, 
        "name": "314", 
        "links": [], 
        "availableSizeInMb": 315, 
        "enabled": false, 
        "device": {
          "storageTechnology": "NEXENTA", 
          "name": "311", 
          "links": [], 
          "serviceIp": "192.168.1.1", 
          "managementIp": "102.168.1.2", 
          "servicePort": 80, 
          "managementPort": 8080, 
          "id": 970
        }, 
        "idStorage": "f55f9ca7-db25-4157-80cb-ea5420b1aa7f", 
        "totalSizeInMb": 316
      }, 
      "diskController": "342", 
      "state": "DETACHED", 
      "virtualMachine": {
        "links": [
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552", 
            "type": "application/vnd.abiquo.virtualmachine+json", 
            "rel": "edit", 
            "title": "336"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/4878", 
            "type": "application/vnd.abiquo.enterprise+json", 
            "rel": "enterprise", 
            "title": "302"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/4878/users/5047", 
            "type": "application/vnd.abiquo.user+json", 
            "rel": "user", 
            "title": "305 306"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746", 
            "type": "application/vnd.abiquo.virtualdatacenter+json", 
            "rel": "virtualdatacenter", 
            "title": "318"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529", 
            "type": "application/vnd.abiquo.virtualappliance+json", 
            "rel": "virtualappliance", 
            "title": "337"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/metadata", 
            "type": "application/vnd.abiquo.metadata+json", 
            "rel": "metadata", 
            "title": "metadata"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/network/configurations", 
            "type": "application/vnd.abiquo.virtualmachinenetworkconfigurations+json", 
            "rel": "configurations", 
            "title": "vlan network configurations"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/network/nics", 
            "type": "application/vnd.abiquo.nics+json", 
            "rel": "nics", 
            "title": "nics"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/storage/disks", 
            "type": "application/vnd.abiquo.harddisks+json", 
            "rel": "harddisks", 
            "title": "disks"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/state", 
            "type": "application/vnd.abiquo.virtualmachinestate+json", 
            "rel": "state", 
            "title": "NOT_ALLOCATED"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/action/undeploy", 
            "type": "application/vnd.abiquo.acceptedrequest+json", 
            "rel": "undeploy", 
            "title": "virtual machine undeploy"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/action/deploy", 
            "type": "application/vnd.abiquo.acceptedrequest+json", 
            "rel": "deploy", 
            "title": "virtual machine deploy"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/action/reset", 
            "type": "application/vnd.abiquo.acceptedrequest+json", 
            "rel": "reset", 
            "title": "virtual machine reset"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/action/instance", 
            "type": "application/vnd.abiquo.acceptedrequest+json", 
            "rel": "instance", 
            "title": "virtual machine snapshot"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/config/rdpaccess", 
            "type": "application/vnd.abiquo.virtualmachineconsole+json", 
            "rel": "rdpaccess", 
            "title": "remote access"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/tasks", 
            "type": "application/vnd.abiquo.tasks+json", 
            "rel": "tasks", 
            "title": "tasks"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/firewalls", 
            "type": "application/vnd.abiquo.links+json", 
            "rel": "firewalls", 
            "title": "firewalls"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/loadbalancers", 
            "type": "application/vnd.abiquo.loadbalancers+json", 
            "rel": "loadbalancers", 
            "title": "load balancers"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/backup/action/request", 
            "type": "application/vnd.abiquo.ondemandbackup+json", 
            "rel": "requestbackup", 
            "title": "request on demand backup"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/backup/action/restore", 
            "type": "application/vnd.abiquo.restore+json", 
            "rel": "requestrestore", 
            "title": "request a restore of a backup"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/storage/volumes", 
            "type": "application/vnd.abiquo.volumes+json", 
            "rel": "volumes", 
            "title": "volumes"
          }, 
          {
            "length": "340", 
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/volumes/18662", 
            "rel": "disk0", 
            "title": "vol1", 
            "diskControllerType": "IDE", 
            "type": "application/vnd.abiquo.volume+json", 
            "diskController": "342"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/action/protect", 
            "type": "text/plain", 
            "rel": "protect", 
            "title": "protect"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/action/unprotect", 
            "type": "text/plain", 
            "rel": "unprotect", 
            "title": "unprotect"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/metrics", 
            "type": "application/vnd.abiquo.metricsmetadata+json", 
            "rel": "metricsmetadata", 
            "title": "metricsmetadata"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/metrics/collectd", 
            "type": "application/json", 
            "rel": "collectd", 
            "title": "collectd"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/alarms", 
            "type": "application/vnd.abiquo.alarms+json", 
            "rel": "alarms", 
            "title": "alarms"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/actionplans", 
            "type": "application/vnd.abiquo.virtualmachineactionplans+json", 
            "rel": "actionplans", 
            "title": "actionplans"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/actionplans", 
            "type": "application/vnd.abiquo.virtualmachineactionplansflat+json", 
            "rel": "actionplansflat", 
            "title": "actionplansflat"
          }, 
          {
            "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/virtualappliances/1529/virtualmachines/1552/action/clone", 
            "type": "application/vnd.abiquo.virtualmachinecloneoptions+json", 
            "rel": "clone", 
            "title": "clone"
          }, 
          {
            "href": "http://localhost:9009/api/config/hypervisortypes/TEST_HYPERVISOR", 
            "type": "application/vnd.abiquo.hypervisortype+json", 
            "rel": "hypervisortype", 
            "title": "TestHypervisor"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/4878/datacenterrepositories/4272/virtualmachinetemplates/2001", 
            "type": "application/vnd.abiquo.virtualmachinetemplate+json", 
            "rel": "virtualmachinetemplate", 
            "title": "332"
          }, 
          {
            "href": "http://localhost:9009/api/config/categories/1949", 
            "type": "application/vnd.abiquo.category+json", 
            "rel": "category", 
            "title": "333"
          }
        ], 
        "idType": 0, 
        "variables": {}, 
        "ram": 4, 
        "highDisponibility": 0, 
        "creationTimestamp": 1512487855000, 
        "id": 1552, 
        "uuid": "e9eb997b-4dc7-4150-b080-81aa7a8d6ce7", 
        "vdrpPort": 0, 
        "backuppolicies": [], 
        "monitored": false, 
        "name": "336", 
        "idState": 1, 
        "vdrpEnabled": true, 
        "state": "NOT_ALLOCATED", 
        "protected": false, 
        "lastSynchronize": 1512487855000, 
        "type": "NOT_MANAGED", 
        "cpu": 1, 
        "generateGuestInitialPassword": false, 
        "metadata": null
      }, 
      "sizeInMB": 340, 
      "diskControllerType": "IDE", 
      "allowResize": true, 
      "id": 18662, 
      "name": "vol1"
    }, 
    {
      "virtualDatacenter": {
        "ramHard": 0, 
        "datacenter": {
          "name": "308", 
          "location": "309", 
          "links": [], 
          "id": 4271
        }, 
        "name": "318", 
        "links": [], 
        "cpuHard": 0, 
        "vlansHard": 0, 
        "publicIpsHard": 0, 
        "publicIpsSoft": 0, 
        "id": 2746, 
        "vlansSoft": 0, 
        "ramSoft": 0, 
        "cpuSoft": 0, 
        "hypervisorType": "TEST_HYPERVISOR"
      }, 
      "uuid": "fe0c96cd-5b9b-4147-a5fb-c6059fbf8aac", 
      "links": [
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/volumes/18663", 
          "type": "application/vnd.abiquo.volume+json", 
          "rel": "edit", 
          "title": "vol2"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/tiers/1058", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "312"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746/volumes/18663/action/initiatormappings", 
          "type": "application/vnd.abiquo.initiatormappings+json", 
          "rel": "initiatormappings", 
          "title": "initiator mappings"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2746", 
          "type": "application/vnd.abiquo.virtualdatacenter+json", 
          "rel": "virtualdatacenter", 
          "title": "318"
        }
      ], 
      "sequence": 0, 
      "bootable": true, 
      "virtualDatacenterWithDatacenter": {
        "ramHard": 0, 
        "datacenter": {
          "name": "308", 
          "location": "309", 
          "links": [], 
          "id": 4271
        }, 
        "name": "318", 
        "links": [], 
        "cpuHard": 0, 
        "vlansHard": 0, 
        "publicIpsHard": 0, 
        "publicIpsSoft": 0, 
        "id": 2746, 
        "vlansSoft": 0, 
        "ramSoft": 0, 
        "cpuSoft": 0, 
        "hypervisorType": "TEST_HYPERVISOR"
      }, 
      "storagePoolWithDevice": {
        "usedSizeInMb": 317, 
        "name": "314", 
        "links": [], 
        "availableSizeInMb": 315, 
        "enabled": false, 
        "device": {
          "storageTechnology": "NEXENTA", 
          "name": "311", 
          "links": [], 
          "serviceIp": "192.168.1.1", 
          "managementIp": "102.168.1.2", 
          "servicePort": 80, 
          "managementPort": 8080, 
          "id": 970
        }, 
        "idStorage": "f55f9ca7-db25-4157-80cb-ea5420b1aa7f", 
        "totalSizeInMb": 316
      }, 
      "diskController": "345", 
      "state": "DETACHED", 
      "sizeInMB": 343, 
      "diskControllerType": "IDE", 
      "allowResize": true, 
      "id": 18663, 
      "name": "vol2"
    }
  ]
}