- [HTTP request](https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/folders.locations.auditReports/generate#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/folders.locations.auditReports/generate#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/folders.locations.auditReports/generate#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/folders.locations.auditReports/generate#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/folders.locations.auditReports/generate#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/folders.locations.auditReports/generate#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/folders.locations.auditReports/generate#body.aspect_1)

Registers audit report generation requests. This method returns the operation identifier that you can use to track the report generation progress.

### HTTP request

`POST https://auditmanager.googleapis.com/v1/{scope=folders/*/locations/*}/auditReports:generate`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `scope` | `string` Required. Organization, folder, or project that the audit applies to, in one of the following formats: - `projects/{project}/locations/{location}` - `folders/{folder}/locations/{location}` - `organizations/{organization}/locations/{location}` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "complianceStandard": string, "reportFormat": enum (`https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/AuditReportFormat`), "complianceFramework": string, // Union field `destination` can be only one of the following: "gcsUri": string // End of list of possible types for union field `destination`. } ``` |

| Fields ||
|---|---|
| `complianceStandard (deprecated)` | `string` Optional. Deprecated. Compliance standard for the audit report. Use the `complianceFramework` field instead. |
| `reportFormat` | ``enum (`https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/AuditReportFormat`)`` Required. Format for the audit report. |
| `complianceFramework` | `string` Required. The framework that's used for the audit report. For example, `NIST_800_53`. |
| Union field `destination`. Options for the report destination location. `destination` can be only one of the following: ||
| `gcsUri` | `string` URL for the Cloud Storage bucket where the report and evidence is uploaded. You must select a bucket that was provided during the enrollment process. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/folders.locations.operationDetails#Operation`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `scope` resource:

- `auditmanager.auditReports.generate`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).