Files
dynamix-golang-sdk/pkg/cloudbroker/audit/export_audits_to_file.go

19 lines
399 B
Go
Raw Normal View History

2025-09-23 14:34:24 +03:00
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"
2025-09-26 18:56:58 +03:00
res, err := a.client.DecortApiCall(ctx, http.MethodGet, url, nil)
2025-09-23 14:34:24 +03:00
if err != nil {
return nil, err
}
return res, nil
}