Child pages
  • Add Data Store Zone
Skip to end of metadata
Go to start of metadata

Use the following methods to create a new data store zone:

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></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"}}' -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

Page history

v. 3.1:

  • Added the location_group_id parameter

  • No labels