package
4.1.0+incompatible
Repository: https://github.com/drajen/common-host-libs.git
Documentation: pkg.go.dev
# Functions
Create host device with attributes passed in the body of the http request@APIVersion 1.0.0@Title CreateDevice@Description attach nimble device for the PublishInfo passed@Accept json@Resource /api/v1/devices@Success 200 {array} Device@Router /api/v1/devices [post].
@APIVersion 1.0.0@Title CreateFileSystem on device@Description create a filesysten on the device serialnumber=serialnumber@Accept json@Resource /api/v1/devices/{serialNumber}/filesystem/{fileSystem}@Success 200 {array}@Router /api/v1/devices/{serialNumber}/filesystem/{fileSystem} [put].
@APIVersion 1.0.0@Title CreateMount@Description Mount an attached device with a details passed in the request@Accept json@Resource /api/v1/mounts@Success 200 {array} Mount@Router /api/v1/mounts [post].
DeleteDevice : disconnect and delete the device from the host@APIVersion 1.0.0@Title DeleteDevice@Description delete device for device serialnumber=serialnumber@Accept json@Resource /api/v1/devices/{serialNumber}@Success 200@Router /api/v1/devices/{serialNumber} [delete].
@APIVersion 1.0.0@Title DeleteMount@Description Unmount specified mount point on the host@Accept json@Resource /mounts@Success 200 {array} Mount@Router /api/v1/mounts/{mountId} [delete].
@APIVersion 1.0.0@Title GetAllDeviceDetails@Description retrieves all devices details on host, optionally with serial filter@Accept json@Resource /api/v1/devices@Success 200 {array} Devices@Router /api/v1/devices/details [get].
@APIVersion 1.0.0@Title GetAllMountDetails@Description retrieves all mount details on host, optionally with serial filter@Accept json@Resource /api/v1/mounts@Success 200 {array} Mounts@Router /api/v1/mounts/details [get].
@APIVersion 1.0.0@Title GetChapInfo@Description get iSCSI CHAP info configured on host@Accept json@Resource /api/v1/chap@Success 200 chapi2.ChapInfo@Router /api/v1/chap [get].
@APIVersion 1.0.0@Title GetDeletingDevices@Description get devices in deletion state@Accept json@Resource /api/v1/deletingdevices@Success 200 linux.Recommendation@Router /api/v1/deletingdevices [get].
@APIVersion 1.0.0@Title GetDevices@Description retrieves all devices on host, optionally with serial filter@Accept json@Resource /api/v1/devices@Success 200 {array} Devices@Router /api/v1/devices [get].
@APIVersion 1.0.0@Title GetHostInfo@Description retrieves specific host information@Accept json@Resource /api/v1/hosts@Success 200 Host@Router /api/v1/hosts [get].
@APIVersion 1.0.0@Title GetHostInitiators@Description get Initiators@Accept json@Resource /api/v1/initiators@Success 200 Initiators@Router /api/v1/initiators [get].
@APIVersion 1.0.0@Title GetHostNetworks@Description get host networks@Accept json@Resource /api/v1/networks@Success 200 Network@Router /api/v1/networks [get].
@APIVersion 1.0.0@Title GetHostRecommendations@Description get Recommendations for=host id=id@Accept json@Resource /api/v1/recommendations@Success 200 linux.Recommendation@Router /api/v1/recommendations [get].
@APIVersion 1.0.0@Title GetMounts@Description retrieves all mounts on host, optionally with serial filter@Accept json@Resource /api/v1/mounts@Success 200 {array} Mounts@Router /api/v1/mounts [get].
@APIVersion 1.0.0@Title GetPartitionsForDevice@Description get all partitions for a Nimble Device fpr host id=id and device serialnumber=serialnumber@Accept json@Resource /api/v1/devices/{serialNumber}/partitions@Success 200 {array} DevicePartitions@Router /api/v1/devices/{serialNumber}/partitions [get].
@APIVersion 1.0.0@Title OfflineDevice@Description offline the device on host with specific serialNumber@Accept json@Resource /api/v1/devices/{serialNumber}@Success 200@Router /api/v1/devices/{serialNumber}/actions/offline [put].