i am able to create, restore, list full backup from cPanel using API2 and UAPI but i'm not able to export created backup tar.gz file from cPanel using API2 and UAPI in GO.
func (c CpanelApi) GetFileActions(dir, file string, newedit bool) (GetFileActionsApiResponse, error) {
var out GetFileActionsApiResponse
err := c.Gateway.API2("Fileman", "download", cpanelgo.Args{
"dir": dir,
"file": file,
}, &out)
return out, err
}