Child pages
  • Edit LVM Data Store
Skip to end of metadata
Go to start of metadata
PUT /settings/data_stores/:id.xml
PUT /settings/data_stores/:id.json

You can edit the data store's disk capacity and label.

XML Request example

curl -i -X PUT http://onapp.test/settings/data_stores/:data_store_id.xml -d '<data_store><label>:DS_label</label><data_store_group>DS_zone_id</data_store_group><local_compute resource_id>1</local_compute resource_id><ip>:DS_ip</ip><enabled>true/false</enabled><data_store_size>DS_size</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 PUT http://onapp.test/settings/data_stores/:data_store_id.json -d '{data_store:{label:"DS_label",data_store_group:"DS_zone_id",local_compute resource_id:"1",ip"DS_ip",enabled:"true/false",data_store_size:"DS_size","data_store_type":"lvm"}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output example

<?xml version="1.0" encoding="UTF-8"?>
<data_store>
<data_store_size>{SIZE}</data_store_size>
<label>{LABEL}</label>
</data_store>

 

Returns HTTP 204 response on successful deletion, or HTTP 404 when a data sore with the ID specified is not found, or the URL requested is incorrect.

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