Create Resource Pool Data Store

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

1
2
POST /vdcs/:id/data_stores.xml
POST /vdcs/:id/data_stores.json

XML Request Example

1
curl -i -X POST -u user:userpass --url http://onapp.test/vdcs/12/data_stores.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<data_store><data_store_group_id>29</data_store_group_id><data_store_size>100</data_store_size><data_store_type>vcloud</data_store_type><default>1</default></data_store>'

JSON Request Example

1
curl -i -X POST -u user:userpass --url http://onapp.test/vdcs/12/data_stores.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"data_store": {"data_store_group_id": "29", "data_store_size": "100", "data_store_type": "vcloud", "default": "1"}}'

Where:

data_store_group_id - indicate the data store group ID

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.

data_store_type - specify the type of the data store (vcloud)

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

Page History

v. 6.0

  • Added the default parameter