Get List of Data Store Joins Attached to Compute Resource
To get the list of compute resource data store joins (data stores which are attached to the compute resource), use the following request:
GET /settings/hypervisors/:hypervisor_id/data_store_joins.xml
GET /settings/hypervisors/:hypervisor_id/data_store_joins.json
XML Request Example
curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u account_email:API_key --url http://onapp.test/settings/hypervisors/7/data_store_joins.xml
JSON Request Example
curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u account_email:API_key --url http://onapp.test/settings/hypervisors/7/data_store_joins.json
XML Output Example
<data_store_joins type="array"> <data_store_join> <created_at type="datetime">2011-10-11T12:50:02+03:00</created_at> <data_store_id type="integer">2</data_store_id> <hypervisor_id nil="true"></hypervisor_id> <id type="integer">7</id> <target_join_id type="integer">2</target_join_id> <target_join_type>Hypervisor</target_join_type> <updated_at type="datetime">2011-10-11T12:50:02+03:00</updated_at> </data_store_join> ... <data_store_join></data_store_join> ... </data_store_joins>
Where:
data_store_id - the ID of the data store, which is attached to the compute resource
hypervisor_id - the compute resource ID
id - the join ID
target_join_id - the ID of the join target; in this case, it is the compute resource ID
target_join_type - type of join target; in this case, it is compute resource