- Resource: Report
- IaCValidationReport
- Violation
- PostureDetails
- Severity
- AssetDetails
- PolicyDetails
- ConstraintType
- Methods
Resource: Report
Details of a report.
JSON representation |
---|
{ "name": string, "createTime": string, "updateTime": string, // Union field |
Fields | |
---|---|
name |
Required. The name of the report, in the format |
create |
Output only. The time at which the report was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
update |
Output only. The time at which the report was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Union field type . The type of report. type can be only one of the following: |
|
iac |
Output only. An infrastructure-as-code (IaC) validation report. |
IaCValidationReport
Details of an infrastructure-as-code (IaC) validation report.
JSON representation |
---|
{
"violations": [
{
object ( |
Fields | |
---|---|
violations[] |
A list of every |
note |
Additional information about the report. |
Violation
Details of a violation.
JSON representation |
---|
{ "assetId": string, "policyId": string, "violatedPosture": { object ( |
Fields | |
---|---|
asset |
The full resource name of the asset that caused the violation. For details about the format of the full resource name for each asset type, see Resource name format. |
policy |
The policy that was violated. |
violated |
Details for the posture that was violated. This field is present only if the violated policy belongs to a deployed posture. |
severity |
The severity of the violation. |
next |
A description of the steps that you can take to fix the violation. |
violated |
Details of the Cloud Asset Inventory asset that caused the violation. |
violated |
Details of the policy that was violated. |
PostureDetails
Details of a posture deployment.
JSON representation |
---|
{ "postureDeployment": string, "postureDeploymentTargetResource": string, "posture": string, "postureRevisionId": string, "policySet": string } |
Fields | |
---|---|
posture |
The name of the posture deployment, in the format |
posture |
The organization, folder, or project where the posture is deployed. Uses one of the following formats:
|
posture |
The posture used in the deployment, in the format |
posture |
The revision ID of the posture used in the deployment. |
policy |
The identifier for the |
Severity
The severity of a violation.
Enums | |
---|---|
SEVERITY_UNSPECIFIED |
Default value. This value is unused. |
CRITICAL |
Critical severity. |
HIGH |
High severity. |
MEDIUM |
Medium severity. |
LOW |
Low severity. |
AssetDetails
Details of a Cloud Asset Inventory asset that caused a violation.
JSON representation |
---|
{ "asset": string, "assetType": string } |
Fields | |
---|---|
asset |
Information about the Cloud Asset Inventory asset that violated a policy. The format of this information can change at any time without prior notice. Your application must not depend on this information in any way. |
asset |
The type of Cloud Asset Inventory asset. For a list of asset types, see Supported asset types. |
PolicyDetails
Details of a policy that was violated.
JSON representation |
---|
{
"constraint": string,
"constraintType": enum ( |
Fields | |
---|---|
constraint |
Information about the constraint that was violated. The format of this information can change at any time without prior notice. Your application must not depend on this information in any way. |
constraint |
The type of constraint that was violated. |
compliance |
The compliance standards that the policy maps to. For example, |
description |
A description of the policy. |
ConstraintType
A type of constraint that can be violated.
Enums | |
---|---|
CONSTRAINT_TYPE_UNSPECIFIED |
Default value. This value is unused. |
SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE |
A custom module for Security Health Analytics. |
ORG_POLICY_CUSTOM |
A custom organization policy constraint. |
SECURITY_HEALTH_ANALYTICS_MODULE |
A built-in detector for Security Health Analytics. |
ORG_POLICY |
A predefined organization policy constraint. |
Methods |
|
---|---|
|
Validates a specified infrastructure-as-code (IaC) configuration, and creates a Report with the validation results. |
|
Gets details for a Report . |
|
Lists every Report in a given organization and location. |