Get the List of Data Stores Attached to Data Store Zone

To get the list of all data stores attached to a data store zone, use the following request:

GET /settings/data_store_zones/:data_store_group_id/data_stores.xml
GET /settings/data_store_zones/:data_store_group_id/data_stores.json

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/settings/data_store_zones/1/data_stores.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/settings/data_store_zones/1/data_stores.json

On success, an array of data stores is returned.

XML Output Example

<data-stores type="array">
<created_at type="datetime">2011-01-06T10:54:30Z</created_at>
<updated_at type="datetime">2011-02-07T12:27:32Z</updated_at>
<data_store_group_id type="integer">5</data_store_group_id>
<enabled type="boolean">false</enabled>
<id type="integer">1</id>
<zombie_disks_size type="integer">110</zombie_disks_size>
<local_hypervisor_id type="integer" nil="true"></local_compute resource_id>
<data_store_size type="integer">465</data_store_size>


label - the name of the data store attached to this data store zone 

created_at  - time when the DB record was created 

updated_at - time when the DB record was updated 

data_store_group_id - the ID of a data store zone to which this data store is attached 

enabled - true if the data store is enabled and you can create virtual servers on it, otherwise false 

id - the data store ID 

zombie_disks_size - the disk space in GB allocated to zombie disks 

ip - the data store IP address 

local_hypervisor_id - the ID of the compute resource to which this data store is assigned 

data_store_size - the data store disk capacity in GB 

identifier - the data store identifier in DB