---
title: "POST /v1/folders/{foldersId}/locations/{locationsId}/auditScopeReports:generate"
method: POST
path: "/v1/folders/{foldersId}/locations/{locationsId}/auditScopeReports:generate"
tags: ["folders"]
---

# POST /v1/folders/{foldersId}/locations/{locationsId}/auditScopeReports:generate

`POST /v1/folders/{foldersId}/locations/{locationsId}/auditScopeReports:generate`

## Request

- Base URL: `https://auditmanager.googleapis.com`
- URL: `https://auditmanager.googleapis.com/v1/folders/{foldersId}/locations/{locationsId}/auditScopeReports:generate`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-auditmanager`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-auditmanager`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

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.

## Path parameters

- `foldersId` string, required
- `locationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- GenerateAuditScopeReportRequest: Request message for GenerateAuditScopeReport.
  - `complianceFramework` string: Required. Framework (set of controls) that the audit scope report is generated against. For example, `NIST_800_53`.
  - `complianceStandard` string: Optional. Deprecated. The standard (industry or regulatory requirements) that the audit scope report is run against. Use the `compliance_framework` field instead.
  - `parameterOverrides` object: Optional. Maps dynamic parameter overrides by Cloud Control resource name at execution time. For example, `{"organizations/123/locations/global/cloudControls/control-1": {parameters: [...]}}`
  - `reportFormat` 'AUDIT_SCOPE_REPORT_FORMAT_UNSPECIFIED' | 'AUDIT_SCOPE_REPORT_FORMAT_ODF': Required. Format for the audit scope report.
  - `validateOnly` boolean: Optional. If `true`, only validates the request and does not generate the audit scope report. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas.

## Response `200`

Successful response

- AuditScopeReport: Audit scope report.
  - `name` string: Identifier. Name for the audit scope report, in one of the following formats: * `projects/{project}/locations/{location}/auditScopeReports/{audit_scope_report}` * `folders/{folder}/locations/{location}/auditScopeReports/{audit_scope_report}` * `organizations/{organization}/locations/{location}/auditScopeReports/{audit_scope_report}`
  - `scopeReportContents` string, byte: Audit scope report content in byte format.

## Changes

- **2026-11-18** `8e1ab1224a21`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-auditmanager` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-auditmanager` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-04** `18e8b165f65f`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-auditmanager` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-auditmanager` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/auditmanager/changes/v1/folders/:foldersId/locations/:locationsId/auditScopeReports:generate/post.md)

---

[API](https://skmtc.dev/google/apis/auditmanager.md) - [All operations](https://skmtc.dev/google/apis/auditmanager/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/auditmanager/revisions/8e1ab1224a21?raw)
