Files
dynamix-golang-sdk/pkg/cloudbroker/audit/export_audits_to_file.go
2025-09-26 18:56:58 +03:00

19 lines
399 B
Go

package audit
import (
"context"
"net/http"
)
// ExportAuditsToFile Get audits in csv file, return []byte which should be written to a file *tar.gz
func (a Audit) ExportAuditsToFile(ctx context.Context) ([]byte, error) {
url := "/cloudbroker/audit/exportAuditsToFile"
res, err := a.client.DecortApiCall(ctx, http.MethodGet, url, nil)
if err != nil {
return nil, err
}
return res, nil
}