folders

PATCH /v1/folders/{foldersId}/locations/{locationsId}/auditSchedules/{auditSchedulesId}

Changed on

Updates an existing audit schedule.

Request

  • Base URL
    https://auditmanager.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-auditmanager
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-auditmanager
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform

Path parameters

foldersId, string required
locationsId, string required
auditSchedulesId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

updateMask, string google-fieldmask

Optional. List of fields to update.

validateOnly, boolean

Optional. If true, only validates the request and does not update the audit schedule. 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.

Request body

AuditSchedule required

An audit schedule, in one of the following formats: * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}

complianceFramework, string

Required. Framework (set of controls) that the audit scope report is generated against. For example, NIST_800_53.

createTime, string google-datetime

Output only. Timestamp when the schedule was created.

displayName, string

Optional. Display name for the audit schedule.

errorMessage, string

Output only. Describes the error if the schedule is in an error state.

gcsUri, string

Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. The format is gs://{bucket_name}.

lastTriggerTime, string google-datetime

Output only. Timestamp when the audit run was last triggered.

name, string

Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}

nextRunTime, string google-datetime

Output only. Calculated timestamp for the next scheduled run.

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: [...]}}

reportExportFormats, string[]

Optional. Formats in which to export each scheduled audit report, in addition to the ODF report. Each format can be listed only once.

reportFormat, 'AUDIT_REPORT_FORMAT_UNSPECIFIED' | 'AUDIT_REPORT_FORMAT_ODF'

Required. Format for the audit report.

scheduleConfig, ScheduleConfig

Timing and frequency parameters for recurring audit runs.

state, 'SCHEDULE_STATE_UNSPECIFIED' | 'SCHEDULE_STATE_ACTIVE' | 'SCHEDULE_STATE_PAUSED' | 'SCHEDULE_STATE_COMPLETED' | 'SCHEDULE_STATE_FAILED_SETUP' | 'SCHEDULE_STATE_ERROR' | 'SCHEDULE_STATE_DELETED'

Optional. State of the audit schedule. While most states are managed by the system, you can use UpdateAuditSchedule to start, pause, or delete the schedule.

updateTime, string google-datetime

Output only. Timestamp when the schedule was last updated.

Response

Successful response

AuditSchedule required

An audit schedule, in one of the following formats: * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}

complianceFramework, string

Required. Framework (set of controls) that the audit scope report is generated against. For example, NIST_800_53.

createTime, string google-datetime

Output only. Timestamp when the schedule was created.

displayName, string

Optional. Display name for the audit schedule.

errorMessage, string

Output only. Describes the error if the schedule is in an error state.

gcsUri, string

Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. The format is gs://{bucket_name}.

lastTriggerTime, string google-datetime

Output only. Timestamp when the audit run was last triggered.

name, string

Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}

nextRunTime, string google-datetime

Output only. Calculated timestamp for the next scheduled run.

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: [...]}}

reportExportFormats, string[]

Optional. Formats in which to export each scheduled audit report, in addition to the ODF report. Each format can be listed only once.

reportFormat, 'AUDIT_REPORT_FORMAT_UNSPECIFIED' | 'AUDIT_REPORT_FORMAT_ODF'

Required. Format for the audit report.

scheduleConfig, ScheduleConfig

Timing and frequency parameters for recurring audit runs.

state, 'SCHEDULE_STATE_UNSPECIFIED' | 'SCHEDULE_STATE_ACTIVE' | 'SCHEDULE_STATE_PAUSED' | 'SCHEDULE_STATE_COMPLETED' | 'SCHEDULE_STATE_FAILED_SETUP' | 'SCHEDULE_STATE_ERROR' | 'SCHEDULE_STATE_DELETED'

Optional. State of the audit schedule. While most states are managed by the system, you can use UpdateAuditSchedule to start, pause, or delete the schedule.

updateTime, string google-datetime

Output only. Timestamp when the schedule was last updated.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-auditmanager was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-auditmanager was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was removed from the endpoint's security scheme Oauth2

    1 more change in this revision