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

Generates an audit scope report for the given standard.

The report includes the following:

- The technical attributes and constraints that Audit Manager uses to verify your compliance with a framework.
- A list of Google Cloud services and resources that are within the scope of the framework.

### HTTP request

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

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

### Path parameters

| Parameters ||
|---|---|
| `scope` | `string` Required. Project or folder that the audit scope report is generated for, 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/AuditScopeReportFormat`), "complianceFramework": string } ``` |

| Fields ||
|---|---|
| `complianceStandard (deprecated)` | `string` Optional. Deprecated. The standard (industry or regulatory requirements) that the audit scope report is run against. Use the `complianceFramework` field instead. |
| `reportFormat` | ``enum (`https://docs.cloud.google.com/audit-manager/docs/reference/auditmanager/rest/v1/AuditScopeReportFormat`)`` Required. Format for the audit scope report. |
| `complianceFramework` | `string` Required. Framework (set of controls) that the audit scope report is generated against. For example, `NIST_800_53`. |

### Response body

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

### 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.auditScopeReports.generate`

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