Resource: OrgPolicyViolation
OrgPolicyViolation is a resource representing a single resource violating a single OrgPolicy constraint.
JSON representation |
---|
{ "name": string, "resource": { object ( |
Fields | |
---|---|
name |
The name of the |
resource |
The resource violating the constraint. |
customConstraint |
The custom constraint being violated. |
error |
Any error encountered during the evaluation. |
ResourceContext
ResourceContext provides the context we know about a resource. It is similar in concept to google.cloud.asset.v1.Resource, but focuses on the information specifically used by Simulator.
JSON representation |
---|
{ "resource": string, "assetType": string, "ancestors": [ string ] } |
Fields | |
---|---|
resource |
The full name of the resource. Example: See Resource names for more information. |
assetType |
The asset type of the resource as defined by CAIS. Example: See Supported asset types for more information. |
ancestors[] |
The ancestry path of the resource in Google Cloud resource hierarchy, represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. If the resource is a project, folder, or organization, the ancestry path starts from the resource itself. Example: |
Methods |
|
---|---|
|
ListOrgPolicyViolations lists the [OrgPolicyViolations][] that are present in an OrgPolicyViolationsPreview . |