Add Data Store Zone

To create a new data store zone, use the following request:

POST /settings/data_store_zones.xml
POST /settings/data_store_zones.json

XML Request Example

curl -i -X POST http://onapp.test/settings/data_store_zones.xml -d '<?xml version="1.0" encoding="UTF-8"?><data_store_group><label>TEST_XML</label><location_group_id>1</location_group_id><preconfigured_only>true</preconfigured_only></data_store_group>' -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' 

JSON Request Example

curl -i -X POST http://onapp.test/settings/data_store_zones.json -d '{"data_store_group":{"label":"TEST_JSON","location_group_id":"1","preconfigured_only":"true"}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'


Where:

label* - is new data_store_zone title

location_group_id - ID of a location group you wish to assign the data store zone to

server_type - specify the type of this data store zone, it can be one of the following: virtual, smart, baremetal or vpc:

  • LVM data store zones can have either the virtual or the smart type
  • Integrated Storage data store zones can have either the virtual or the smart type
  • SolidFire data store zones can have either the virtual or the smart type
  • vCloud Direcor data store zones should have the vpc type
  • VMware data store zones should have the virtual type

preconfigured_only - specify whether the zone can be used for creating Instance Package VSs only. When this option is enabled, the zone cannot be used during custom virtual server (VSs built by setting resources manually) creation.


Page History

v. 5.3

  • added the server_type parameter

v. 4.2

  • added the preconfigured_only parameter

v. 3.1

  • added the location_group_id parameter