Child pages
  • Add LVM Data Store
Skip to end of metadata
Go to start of metadata
POST /settings/data_stores.xml
POST /settings/data_stores.json

XML Output example

curl -i -X POST http://onapp.test/settings/data_stores.xml -d '<data_store><label>:DS_label</label><data_store_group>DS_zone_id</data_store_group><local_hypervisor_id>1</local_hypervisor_id><ip>:DS_ip</ip><enabled>true/false</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:"DS_zone_id",local_hypervisor_id:"1",ip"DS_ip",enabled:"true/false",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* - 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 lvm data store type

local_hypervisor_id - ID of a local compute resource

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels