Get Data Store Details

To get details of a particular data store, use the following request:

GET /settings/data_stores/:id.xml
GET /settings/data_stores/:id.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_stores/1.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_stores/1.json 

XML Output Example

<data_store>
<label>SAN1</label>
<created_at type="datetime">2010-10-28T03:18:51+07:00</created_at>
<updated_at type="datetime">2011-07-19T21:21:42+07:00</updated_at>
<zombie_disks_size type="integer">93</zombie_disks_size>
<id type="integer">1</id>
<enabled type="boolean">true</enabled>
<data_store_group_id type="integer">1</data_store_group_id>
<ip nil="true"></ip>
<iscsi_ip nil="true"/>
<local_hypervisor_id nil="true"></local_hypervisor_id>
<hypervisor_group_id nil="true"/>
<identifier>onapp-9yblt1m70pdtdp</identifier>
<data_store_size type="integer">500</data_store_size>
<data_store_type>lvm</data_store_type>
<trim>false</trim>
<usage type="integer">57</usage>
</data_store> 


Where:

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

data_store_type - data store type. Can be either lvm or vmware.

id — the data store ID

label — the data store label

local_hypervisor_id — IDs of the compute resources using this Data Store

hypervisor_group_id - the ID of the compute zone to which this data store is attached.

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 data store is attached

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

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

(lightbulb) trim - true if TRIM is enabled on the data store, otherwise, false

usage - the total disk usage on this data store in GB.


Page History

v. 6.1 Edge 1

  • added the trim parameter