WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions mmv1/products/auditmanager/FrameworkAudit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Copyright 2025 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
name: FrameworkAudit
base_url: "{{parent}}/frameworkAudits"
description: Represents a framework audit.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

immutable: true
create_verb: POST
create_url: "{{parent}}/frameworkAudits?frameworkAuditId={{framework_audit_id}}"
delete_verb: DELETE
delete_url: "{{name}}"
async:
actions: ['create', 'delete']
operation:
path: 'name'
base_url: '{{op_id}}'
wait_ms: 1000
result:
path: 'response'
status:
path: 'done'
complete: true
error:
path: 'error'
message: 'message'
parameters:
- name: parent
type: String
description: 'The parent resource where this framework audit is created.'
required: true
url_param_only: true
- name: framework_audit_id
type: String
description: 'The ID to use for the framework audit.'
required: true
url_param_only: true
properties:
- name: name
type: String
description: 'The name of the framework audit.'
output: true
- name: compliance_framework
type: String
description: 'The compliance framework used for the audit.'
required: true
- name: scope
type: String
description: 'The scope of the audit.'
required: true
- name: framework_audit_destination
type: NestedObject
description: 'The destination for the audit reports.'
required: true
properties:
- name: bucket
type: NestedObject
description: 'The Cloud Storage bucket destination.'
properties:
- name: bucket_uri
type: String
description: 'The URI of the Cloud Storage bucket.'
required: true
- name: start_time
type: String
description: 'The time that the audit started.'
output: true
- name: finish_time
type: String
description: 'The time that the audit finished.'
output: true
- name: state
type: String
description: 'The state of the framework audit.'
output: true
references:
guides:
'Official Documentation': 'https://cloud.google.com/audit-manager/docs'
api: 'https://cloud.google.com/audit-manager/docs/reference/rest/v1/organizations.locations.frameworkAudits'
21 changes: 21 additions & 0 deletions mmv1/products/auditmanager/product.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2025 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
name: AuditManager
display_name: Audit Manager
scopes:
- https://www.googleapis.com/auth/cloud-platform
versions:
- base_url: https://auditmanager.googleapis.com/v1/
name: ga
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
resource "google_audit_manager_framework_audit" "primary" {
provider = google-beta

parent = "organizations/{{org_id}}"
framework_audit_id = "my-framework-audit"
compliance_framework = "my-compliance-framework"
scope = "my-scope"

framework_audit_destination {
bucket {
bucket_uri = "gs://my-bucket"
}
}
}

data "google_audit_manager_framework_audit_scope_report" "report" {
provider = google-beta

scope = "organizations/{{org_id}}"
report_format = "ODF"
compliance_framework = "my-compliance-framework"
}

output "report_contents" {
value = data.google_audit_manager_framework_audit_scope_report.report.scope_report_contents
}
Loading
Loading