Child pages
  • Edit SolidFire Data Store
Skip to end of metadata
Go to start of metadata
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_compute resource_id></local_compute resource_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/11.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_compute resource_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 you can edit:

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_compute resource_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.

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels