Attach Data Store to Data Store Zone

To attach a data store to a data store zone, use the following request:

POST /settings/data_store_zones/:data_store_zone_id/data_stores/:id/attach.xml
POST /settings/data_store_zones/:data_store_zone_id/data_stores/:id/attach.json

XML Request Example

curl -X POST http://onapp.test/settings/data_store_zones/12/data_stores/2/attach.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' 

JSON Request Example

curl -X POST http://onapp.test/settings/data_store_zones/12/data_stores/2/attach.json -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

Using this request you attach an unassigned data store (:data_store_id*) to a data store zone (:data_store_zone_id*)

When you add a data store to a data store zone, it inherits the zone's type. For more information refer to Zone Types.