Add Data Store Join to Compute Resource

To add a data store to the compute resource, use the following request:

POST /settings/hypervisors/:hypervisor_id/data_store_joins.xml
POST /settings/hypervisors/:hypervisor_id/data_store_joins.json

XML Request Example

curl -i -X POST http://onapp.test/settings/hypervisors/14/data_store_joins.xml -d '<data_store_id>5</data_store_id>' -u account_email:API_key -H 'Accept: application/xml' -H 'Content-type: application/xml' 

JSON Request Example

curl -i -X POST http://onapp.test/settings/hypervisors/14/data_store_joins.json -d '{"data_store_id":"5"}' -u account_email:API_key -H 'Accept: application/json' -H 'Content-type: application/json'

This request creates a data store join, attaching a data store (data_store_id*) to a specified compute resource.

You can add data stores to a compute resource only if the zones to which the two entities belong are of the same type. For more information refer to Zone Types.