Get List of Data Stores Attached to Compute Resource

To get the list of data stores attached to the compute resource, use the following request:

GET /settings/hypervisor_zones/:hypervisor_zone_id/data_stores.xml
GET /settings/hypervisor_zones/:hypervisor_zone_id/data_stores.json

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u account_email:API_key --url http://onapp.test/settings/hypervisor_zones/1/data_stores.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u account_email:API_key --url http://onapp.test/settings/hypervisor_zones/1/data_stores.json 

XML Output Example

<data_stores type="array">
<created_at type="datetime">2012-04-03T16:07:07+00:00</created_at>
<data_store_group_id type="integer">3</data_store_group_id>
<data_store_size type="integer">460</data_store_size>
<enabled type="boolean">true</enabled>
<id type="integer">1</id>
<local_hypervisor_id nil="true"/>
<updated_at type="datetime">2012-05-25T10:51:21+00:00</updated_at>
<zombie_disks_size type="integer">0</zombie_disks_size>
<usage type="integer">188</usage>


created_at — the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format

data_store_size — the size of your data store shown in GB

id — the data store ID

label — the data store label

local_hypervisor_id — the ID of the compute resource using this Data Store

updated_at — the date when the Data Store was updated in the [YYYY][MM][DD]T[hh][mm][ss]Z format

data_store_group_id — the ID of a data store zone to which a particular datastore is attached

zombie_disk_size — the size of zombie disks attached to this data store in GB.

enabled — true if a datastore is enabled and you can attach disks to it, otherwise false.