Edit SolidFire Data Store
To edit a SolidFire data store, use the following request:
PUT /settings/data_stores.xml
PUT /settings/data_stores.json
XML Request Example
curl -i -X PUT -u user:userpass --url http://onapp.test/settings/data_stores/12.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<data_store><label>API_SF_test_xml</label><ip>10.98.0.101</ip><data_store_type>solidfire</data_store_type><enabled>1</enabled><data_store_size>60</data_store_size><local_hypervisor_id></local_hypervisor_id><data_store_group_id>5</data_store_group_id><iscsi_ip>10.99.99.101</iscsi_ip><admin_attributes><username>onapp</username><password>password</password></admin_attributes><account_attributes><username>onapp</username><initiator_secret>ttttt123456790</initiator_secret><target_secret>ttttt123456780</target_secret></account_attributes></data_store>'
JSON Request Example
curl -i -X PUT -u user:userpass --url http://onapp.test/settings/data_stores/12.json -H 'Accept: application/json' -H 'Content-type: application/json' "-d'{"data_store":{"label":"API_SF_test_json","ip":"10.98.0.101", "data_store_type":"solidfire", "enabled":"1","data_store_size":"60","local_hypervisor_id":"","data_store_group_id":"5", "iscsi_ip":"10.99.99.101","admin_attributes":{"username":"onapp", "password":"password"}, "account_attributes":{"username":"onapp","initiator_secret":"ttttt123456790", "target_secret":"ttttt123456780"}}}'
Where:
label* - the data store name
data_store_group * - the group to which this DS is assigned
ip* - the data store IP
enabled* - set 1 if data store is enabled, otherwise set 0
data_store_size* - set size in GB
data_store_type - set solidfire data store type
local_hypervisor_id - ID of a local compute resource
iscsi_ip - iSCSI IP address
admin_attributes - an array of cluster admin attributes:
- username - username for cluster authorization
- password - password for cluster authorization
account_attributes - an array of SolidFire account attributes:
- username* - specify SolidFire account username
- initiator_secret - iSCSI initiator secret (optional)
- target_secret - iSCSI target secret (optional)
Returns HTTP 204 response on successful deletion, or HTTP 404 when a data sore with the ID specified is not found, or the URL requested is incorrect.