Add VMware Data Store

To add a VMware data store, use the following request:

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

XML Request Example

curl -i POST -d '<data_store><label>testapi</label><ip></ip><enabled>1</enabled><data_store_size>40</data_store_size><local_hypervisor_id></local_hypervisor_id><data_store_group_id>84</data_store_group_id><data_store_type>vmware</data_store_type></data_store>' -u user:userpass http://onapp.test/settings/data_stores.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

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


label* - the data store name

data_store_group* - the group to which this DS is assigned

ip* - the data store IP

enabled* - set 1 if data store is enabled, otherwise set 0

data_store_size* - set size in GB

data_store_type - set VMware data store type

local_hypervisor_id - ID of a local compute resource