Edit Resource Pool Data Store

To edit a resource pool data store, use the following request:

1
2
PUT /vdcs/:resource_pool_id/data_stores/:data_store_id.xml
PUT /vdcs/:resource_pool_id/data_stores/:data_store_id.json

XML Request Example

1
curl -i -X PUT -u user:userpass --url http://onapp.test/vdcs/12/data_stores/1.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<data_store><enabled>false</enabled><data_store_size>200</data_store_size><default>1</default></data_store>'

JSON Request Example

1
curl -i -X PUT -u user:userpass --url http://onapp.test/vdcs/12/data_stores/1.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"data_store": {"enabled": "false", "data_store_size": "200", "default": "1"}}'

Where:

enabled - true if data store is enabled in vCloud; otherwise, false

data_store_size - specify the size of the data store. For Pay-As-You-Go resource pools, you can set 0 to create a data store with unlimited capacity.

image default - set 1 to make the data store a default one; otherwise, set 0

Page History

v. 6.0

  • Added the default parameter