Documentation ¶
Index ¶
- func CreateDevice(w http.ResponseWriter, r *http.Request)
- func CreateFileSystem(w http.ResponseWriter, r *http.Request)
- func CreateMount(w http.ResponseWriter, r *http.Request)
- func DeleteDevice(w http.ResponseWriter, r *http.Request)
- func DeleteMount(w http.ResponseWriter, r *http.Request)
- func GetAllDeviceDetails(w http.ResponseWriter, r *http.Request)
- func GetAllMountDetails(w http.ResponseWriter, r *http.Request)
- func GetChapInfo(w http.ResponseWriter, r *http.Request)
- func GetDeletingDevices(w http.ResponseWriter, r *http.Request)
- func GetDevices(w http.ResponseWriter, r *http.Request)
- func GetHostInfo(w http.ResponseWriter, r *http.Request)
- func GetHostInitiators(w http.ResponseWriter, r *http.Request)
- func GetHostNetworks(w http.ResponseWriter, r *http.Request)
- func GetHostRecommendations(w http.ResponseWriter, r *http.Request)
- func GetMounts(w http.ResponseWriter, r *http.Request)
- func GetPartitionsForDevice(w http.ResponseWriter, r *http.Request)
- func OfflineDevice(w http.ResponseWriter, r *http.Request)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDevice ¶
func CreateDevice(w http.ResponseWriter, r *http.Request)
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]
func CreateFileSystem ¶
func CreateFileSystem(w http.ResponseWriter, r *http.Request)
@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]
func CreateMount ¶
func CreateMount(w http.ResponseWriter, r *http.Request)
@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]
func DeleteDevice ¶
func DeleteDevice(w http.ResponseWriter, r *http.Request)
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]
func DeleteMount ¶
func DeleteMount(w http.ResponseWriter, r *http.Request)
@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]
func GetAllDeviceDetails ¶
func GetAllDeviceDetails(w http.ResponseWriter, r *http.Request)
@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]
func GetAllMountDetails ¶
func GetAllMountDetails(w http.ResponseWriter, r *http.Request)
@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]
func GetChapInfo ¶
func GetChapInfo(w http.ResponseWriter, r *http.Request)
@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]
func GetDeletingDevices ¶
func GetDeletingDevices(w http.ResponseWriter, r *http.Request)
@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]
func GetDevices ¶
func GetDevices(w http.ResponseWriter, r *http.Request)
@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]
func GetHostInfo ¶
func GetHostInfo(w http.ResponseWriter, r *http.Request)
@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]
func GetHostInitiators ¶
func GetHostInitiators(w http.ResponseWriter, r *http.Request)
@APIVersion 1.0.0 @Title GetHostInitiators @Description get Initiators @Accept json @Resource /api/v1/initiators @Success 200 Initiators @Router /api/v1/initiators [get]
func GetHostNetworks ¶
func GetHostNetworks(w http.ResponseWriter, r *http.Request)
@APIVersion 1.0.0 @Title GetHostNetworks @Description get host networks @Accept json @Resource /api/v1/networks @Success 200 Network @Router /api/v1/networks [get]
func GetHostRecommendations ¶
func GetHostRecommendations(w http.ResponseWriter, r *http.Request)
@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]
func GetMounts ¶
func GetMounts(w http.ResponseWriter, r *http.Request)
@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]
func GetPartitionsForDevice ¶
func GetPartitionsForDevice(w http.ResponseWriter, r *http.Request)
@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]
func OfflineDevice ¶
func OfflineDevice(w http.ResponseWriter, r *http.Request)
@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]