Add LVM Data Store

To add an LVM data store, use the following request:

POST /settings/data_stores.xml
POST /settings/data_stores.json

XML Request Example

curl -i -X POST http://onapp.test/settings/data_stores.xml -d '<data_store><label>:DS_label</label><data_store_group_id>DS_zone_id</data_store_group_id><local_hypervisor_id>1</local_hypervisor_id><ip>:DS_ip</ip><enabled>true</enabled><data_store_size>40</data_store_size><data_store_type>lvm</data_store_type></data_store>' -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' 

JSON Request Example

curl -i -X POST http://onapp.test/settings/data_stores.json -d '{"data_store":{"label":"DS_label","data_store_group_id":"DS_zone_id","local_hypervisor_id":"1","ip":"DS_ip","enabled":"true","data_store_size":"40","data_store_type":"lvm"}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

Where:

label* - the data store name

data_store_group_id* - the group to which this DS is assigned

ip* - the data store IP

enabled* - set true if data store is enabled, otherwise set false

data_store_size* - set size in GB

data_store_type - set lvm data store type

local_hypervisor_id - ID of a local compute resource