Get List of Data Stores

To get the list of data stores, use the following request:

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

XML Output Example

<data-stores type="array">
 <data_store>
	<id type="integer">33</id>
	<label>test</label>
	<identifier>onapp-rcvbozgnipdjxt</identifier>
	<created_at type="dateTime">2019-04-03T15:32:14+03:00</created_at>
	<updated_at type="dateTime">2019-04-03T15:32:21+03:00</updated_at>
	<local_hypervisor_id type="integer">5</local_hypervisor_id>
	<data_store_size type="integer">1000</data_store_size>
	<zombie_disks_size type="integer">0</zombie_disks_size>
	<ip>11.111.111.111</ip>
	<data_store_group_id type="integer">1</data_store_group_id>
	<enabled type="boolean">true</enabled>
	<data_store_type>lvm</data_store_type>
	<hypervisor_group_id>12</hypervisor_group_id>
	<io_limits> </io_limits>
	<trim type="boolean">true</trim>
	<usage type="integer">40</usage> 
 </data_store>
 <data_store>...</data_store>
</data_stores>


Where:

id - the data store ID

label - the data store label

identifier - the data store identifier

created_at - the date when the data store was created in the [YYYY][MM][DD]T[hh][mm][ss]Z format

updated_at - the date when the data store was updated in the [YYYY][MM][DD]T[hh][mm][ss]Z format

local_hypervisor_id  - the ID of the compute resource using this data store

data_store_size - the size of your data store shown in GB

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

ip - the IP address of the data store

data_store_group_id - the ID of the data store zone to which the data store belongs

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

data_store_type - data store type: lvm or vmware.

hypervisor_group_id - the ID of the compute resource zone associated with the data store 

io_limits - an array of IO limits applied to the data store

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

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


Page History

v. 6.1 Edge 1

  • added the trim parameter