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 |
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. |