API v2: External Storage πŸ†•ΒΆ

Fudo Enterprise enables management of external storage devices via fiber channel cards.


Data StructuresΒΆ

ExternalStorageModelΒΆ
Attribute Type Required Description
interface_statuses object-array   Fiber channel cards status. Read-only.
external_wwns object-array   List of available external storage devices. Read-only.
connection_mode string yes Fiber channel cards operating mode. Possible values: failover, loadbalancer.
wwn_to_configure string   WWN of selected external storage device to configure.
current_storage string   WWN of configured external storage device. Read-only.
is_configured boolean   Is external storage configured? Read-only.
occupancy object   Occupancy of configured external storage device: allocated, capacity, free, size. Read-only.

Retrieve Available Attributes of the ExternalStorageModelΒΆ

Request

Method GET
Path /api/v2/objspec/external_storage

GET /api/v2/objspec/external_storage

Example Request

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w61877n1g06sk' \
  'https://10.31.124.76/api/v2/objspec/external_storage'

Get External Storage InformationΒΆ

Request

Method GET
Path /api/v2/external_storage

GET /api/v2/external_storage

Example Request

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w61877n1g06sk' \
  'https://10.31.124.76/api/v2/external_storage'

Get Specific External Storage DeviceΒΆ

Request

Method GET
Path /api/v2/external_storage/<id>

GET /api/v2/external_storage/<id>

Example Request

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w61877n1g06sk' \
  'https://10.31.124.76/api/v2/external_storage/5620492334958379016'

Configure External StorageΒΆ

Request

Method POST
Path /api/v2/external_storage
Headers Content-Type: Application/json
Body ExternalStorageModel

POST /api/v2/external_storage

Example Request

curl -s -k -X POST \
     -H 'Authorization: sgfeea6jsaz4mum9su8w61877n1g06sk' \
         -H 'Content-Type: application/json' \
         -d '{"connection_mode": "failover", "wwn_to_configure": "50:01:43:80:03:6f:8e:a0"}' \
     'https://10.31.124.76/api/v2/external_storage'

Delete External Storage ConfigurationΒΆ

Request

Method DELETE
Path /api/v2/external_storage/<id>

DELETE /api/v2/external_storage/<id>

Example Request

curl -s -k -X DELETE \
  -H 'Authorization: sgfeea6jsaz4mum9su8w61877n1g06sk' \
  'https://10.31.124.76/api/v2/external_storage/5620492334958379016'