You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
399 B
19 lines
399 B
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
|
|
}
|