package
1.0.2
Repository: https://github.com/pingcap/tiunimanager.git
Documentation: pkg.go.dev

# Functions

CreateDisks godoc @Summary Add disks to the specified host @Description add disks to the specified host @Tags resource @Accept json @Produce json @Security ApiKeyAuth @Param createDisksReq body message.CreateDisksReq true "specify the hostId and disks" @Success 200 {object} controller.CommonResult{data=message.CreateDisksResp} @Router /resources/disks [post].
DownloadHostTemplateFile godoc @Summary Download the host information template file for importing @Description get host template xlsx file @Tags resource @Accept json @Produce octet-stream @Security ApiKeyAuth @Success 200 {file} file @Router /resources/hosts-template [get].
ImportHosts godoc @Summary Import a batch of hosts to EM @Description import hosts by xlsx file @Tags resource @Accept mpfd @Produce json @Security ApiKeyAuth @Param hostReserved formData string false "whether hosts are reserved(won't be allocated) after import" default(false) @Param skipHostInit formData string false "whether to skip host init steps" default(false) @Param ignorewarns formData string false "whether to ignore warings in init steps" default(false) @Param file formData file true "hosts information in a xlsx file" @Success 200 {object} controller.CommonResult{data=message.ImportHostsResp} @Router /resources/hosts [post].
QueryHosts godoc @Summary Show all hosts list in EM @Description get hosts list @Tags resource @Accept json @Produce json @Security ApiKeyAuth @Param hostQuery query message.QueryHostsReq false "list condition" @Success 200 {object} controller.ResultWithPage{data=message.QueryHostsResp} @Router /resources/hosts [get].
RemoveDisks godoc @Summary Remove a batch of disks @Description remove disks by a list @Tags resource @Accept json @Produce json @Security ApiKeyAuth @Param diskIds body message.DeleteDisksReq true "list of disk IDs" @Success 200 {object} controller.CommonResult{data=message.DeleteDisksResp} @Router /resources/disks [delete].
RemoveHosts godoc @Summary Remove a batch of hosts @Description remove hosts by a list @Tags resource @Accept json @Produce json @Security ApiKeyAuth @Param hostIds body message.DeleteHostsReq true "list of host IDs" @Success 200 {object} controller.CommonResult{data=message.DeleteHostsResp} @Router /resources/hosts [delete].
UpdateDisk godoc @Summary Update disk info @Description update disk information @Tags resource @Accept json @Produce json @Security ApiKeyAuth @Param updateReq body message.UpdateDiskReq true "update disk information" @Success 200 {object} controller.CommonResult{data=message.UpdateDiskResp} @Router /resources/disk [put].
UpdateHost godoc @Summary Update host info @Description update host information @Tags resource @Accept json @Produce json @Security ApiKeyAuth @Param updateReq body message.UpdateHostInfoReq true "update host information" @Success 200 {object} controller.CommonResult{data=message.UpdateHostInfoResp} @Router /resources/host [put].
UpdateHostReserved godoc @Summary Update host reserved @Description update host reserved by a list @Tags resource @Accept json @Produce json @Security ApiKeyAuth @Param updateReq body message.UpdateHostReservedReq true "do update in host list" @Success 200 {object} controller.CommonResult{data=message.UpdateHostReservedResp} @Router /resources/host-reserved [put].
UpdateHostStatus godoc @Summary Update host status @Description update host status by a list @Tags resource @Accept json @Produce json @Security ApiKeyAuth @Param updateReq body message.UpdateHostStatusReq true "do update in host list" @Success 200 {object} controller.CommonResult{data=message.UpdateHostStatusResp} @Router /resources/host-status [put].

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants for importing host information.
Constants for importing host information.
Constants for importing host information.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author