StorageDevicesResource


Create a storage device


POST https://example.com/api/admin/datacenters/{datacenter}/storage/devices

Roles : [ROLE_PHYS_DC_ALLOW_MODIFY_STORAGE]

Content-Type : storagedevice Accept : storagedevice

Error Codes

  • CONSTR-IP - The property 'managementIp' must be an IP address.
  • CONSTR-PORT - The property 'managementPort' invalid port :-1.
  • CONSTR-RANGE - The property 'managementPort' must be between 0 and 65535.
  • CONSTR-REQUIRED - The property 'name' must have a value.
  • DC-0 - The requested datacenter does not exist
  • DEVICE-1 - Duplicate storage device

Example

List storage devices


GET https://example.com/api/admin/datacenters/{datacenter}/storage/devices

Roles : [ROLE_PHYS_DC_RETRIEVE_DETAILS]

Accept : storagedevices

Error Codes

  • DC-0 - The requested datacenter does not exist

Example

List storage device types supported


List the types of storage devices that are supported by the platform

GET https://example.com/api/admin/datacenters/{datacenter}/storage/devices/action/supported

Roles : [ROLE_PHYS_DC_RETRIEVE_DETAILS]

Example

Delete a storage device


Remove a storage device from the platform.

DELETE https://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}

Roles : [ROLE_PHYS_DC_ALLOW_MODIFY_STORAGE]

Example

Get a storage device


GET https://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}

Roles : [ROLE_PHYS_DC_RETRIEVE_DETAILS]

Accept : storagedevice

Error Codes

  • DEVICE-0 - The requested device does not exist

Example

Update a storage device


PUT https://example.com/api/admin/datacenters/{datacenter}/storage/devices/{device}

Roles : [ROLE_PHYS_DC_ALLOW_MODIFY_STORAGE]

Content-Type : storagedevice Accept : storagedevice

Error Codes

  • DC-0 - The requested datacenter does not exist
  • DEVICE-0 - The requested device does not exist

Example