Skip to main content

db_framework_compliance_reports

Creates, updates, deletes, gets or lists a db_framework_compliance_reports resource.

Overview

Namedb_framework_compliance_reports
TypeResource
Idgoogle.assuredworkloads.db_framework_compliance_reports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the framework compliance report.
controlAssessmentDetailsobjectThe control assessment details of the framework. (id: GoogleCloudAssuredworkloadsV1ControlAssessmentDetails)
frameworkstringThe name of the framework.
frameworkCategoriesarrayThe list of framework categories supported.
frameworkDescriptionstringThe description of the framework.
frameworkDisplayNamestringOptional. The display name for the framework.
frameworkTypestringThe type of the framework. (FRAMEWORK_TYPE_UNSPECIFIED, BUILT_IN, CUSTOM)
majorRevisionIdstring (int64)The latest major revision ID of the framework.
minorRevisionIdstring (int64)The latest minor revision ID of the latest major revision of the framework.
supportedCloudProvidersarrayThe list of cloud providers that are supported by the framework.
targetResourceDetailsarrayThe target resource details of the framework.
updateTimestring (google-datetime)Output only. The last updated time of the report.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetchselectprojectsId, locationsId, dbFrameworkComplianceReportsIdendTime, filterFetches the framework compliance report for a given scope.
aggregateexecprojectsId, locationsId, dbFrameworkComplianceReportsIdinterval.startTime, filter, interval.endTimeGets the aggregated compliance report over time for a given scope.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
dbFrameworkComplianceReportsIdstring
locationsIdstring
projectsIdstring
endTimestring (google-datetime)
filterstring
interval.endTimestring (google-datetime)
interval.startTimestring (google-datetime)

SELECT examples

Fetches the framework compliance report for a given scope.

SELECT
name,
controlAssessmentDetails,
framework,
frameworkCategories,
frameworkDescription,
frameworkDisplayName,
frameworkType,
majorRevisionId,
minorRevisionId,
supportedCloudProviders,
targetResourceDetails,
updateTime
FROM google.assuredworkloads.db_framework_compliance_reports
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND dbFrameworkComplianceReportsId = '{{ dbFrameworkComplianceReportsId }}' -- required
AND endTime = '{{ endTime }}'
AND filter = '{{ filter }}'
;

Lifecycle Methods

Gets the aggregated compliance report over time for a given scope.

EXEC google.assuredworkloads.db_framework_compliance_reports.aggregate
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@dbFrameworkComplianceReportsId='{{ dbFrameworkComplianceReportsId }}' --required,
@interval.startTime='{{ interval.startTime }}',
@filter='{{ filter }}',
@interval.endTime='{{ interval.endTime }}'
;