You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Acknowledges an existing violation. By acknowledging a violation, users acknowledge the existence of a compliance violation in their workload and decide to ignore it due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted.</p>
<pclass="firstline">Lists the Violations in the AssuredWorkload Environment. Callers may also choose to read across multiple Workloads as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard character instead of workload-id in the parent. Format `organizations/{org_id}/locations/{location}/workloads/-`</p>
<pre>Acknowledges an existing violation. By acknowledging a violation, users acknowledge the existence of a compliance violation in their workload and decide to ignore it due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted.
96
+
97
+
Args:
98
+
name: string, Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} (required)
99
+
body: object, The request body.
100
+
The object takes the form of:
101
+
102
+
{ # Request for acknowledging the violation Next Id: 4
103
+
"comment": "A String", # Required. Business justification explaining the need for violation acknowledgement
104
+
"nonCompliantOrgPolicy": "A String", # Optional. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
<pre>Retrieves Assured Workload Violation based on ID.
127
+
128
+
Args:
129
+
name: string, Required. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} (required)
130
+
x__xgafv: string, V1 error format.
131
+
Allowed values
132
+
1 - v1 error format
133
+
2 - v2 error format
134
+
135
+
Returns:
136
+
An object of the form:
137
+
138
+
{ # Workload monitoring Violation.
139
+
"acknowledged": True or False, # A boolean that indicates if the violation is acknowledged
140
+
"acknowledgementTime": "A String", # Optional. Timestamp when this violation was acknowledged last. This will be absent when acknowledged field is marked as false.
141
+
"auditLogLink": "A String", # Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
142
+
"beginTime": "A String", # Output only. Time of the event which triggered the Violation.
143
+
"category": "A String", # Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.
144
+
"description": "A String", # Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.
145
+
"name": "A String", # Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
146
+
"nonCompliantOrgPolicy": "A String", # Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and resulted this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
147
+
"orgPolicyConstraint": "A String", # Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.
148
+
"remediation": { # Represents remediation guidance to resolve compliance violation for AssuredWorkload # Output only. Compliance violation remediation
149
+
"compliantValues": [ # Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values
150
+
"A String",
151
+
],
152
+
"instructions": { # Instructions to remediate violation # Required. Remediation instructions to resolve violations
153
+
"consoleInstructions": { # Remediation instructions to resolve violation via cloud console # Remediation instructions to resolve violation via cloud console
154
+
"additionalLinks": [ # Additional urls for more information about steps
155
+
"A String",
156
+
],
157
+
"consoleUris": [ # Link to console page where violations can be resolved
158
+
"A String",
159
+
],
160
+
"steps": [ # Steps to resolve violation via cloud console
161
+
"A String",
162
+
],
163
+
},
164
+
"gcloudInstructions": { # Remediation instructions to resolve violation via gcloud cli # Remediation instructions to resolve violation via gcloud cli
165
+
"additionalLinks": [ # Additional urls for more information about steps
166
+
"A String",
167
+
],
168
+
"gcloudCommands": [ # Gcloud command to resolve violation
169
+
"A String",
170
+
],
171
+
"steps": [ # Steps to resolve violation via gcloud cli
172
+
"A String",
173
+
],
174
+
},
175
+
},
176
+
"remediationType": "A String", # Output only. Reemediation type based on the type of org policy values violated
177
+
},
178
+
"resolveTime": "A String", # Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty.
179
+
"state": "A String", # Output only. State of the violation
180
+
"updateTime": "A String", # Output only. The last time when the Violation record was updated.
<pre>Lists the Violations in the AssuredWorkload Environment. Callers may also choose to read across multiple Workloads as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard character instead of workload-id in the parent. Format `organizations/{org_id}/locations/{location}/workloads/-`
187
+
188
+
Args:
189
+
parent: string, Required. The Workload name. Format `organizations/{org_id}/locations/{location}/workloads/{workload}`. (required)
190
+
filter: string, Optional. A custom filter for filtering by the Violations properties.
191
+
interval_endTime: string, The end of the time window.
192
+
interval_startTime: string, The start of the time window.
193
+
pageSize: integer, Optional. Page size.
194
+
pageToken: string, Optional. Page token returned from previous request.
195
+
x__xgafv: string, V1 error format.
196
+
Allowed values
197
+
1 - v1 error format
198
+
2 - v2 error format
199
+
200
+
Returns:
201
+
An object of the form:
202
+
203
+
{ # Response of ListViolations endpoint.
204
+
"nextPageToken": "A String", # The next page token. Returns empty if reached the last page.
205
+
"violations": [ # List of Violations under a Workload.
206
+
{ # Workload monitoring Violation.
207
+
"acknowledged": True or False, # A boolean that indicates if the violation is acknowledged
208
+
"acknowledgementTime": "A String", # Optional. Timestamp when this violation was acknowledged last. This will be absent when acknowledged field is marked as false.
209
+
"auditLogLink": "A String", # Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
210
+
"beginTime": "A String", # Output only. Time of the event which triggered the Violation.
211
+
"category": "A String", # Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.
212
+
"description": "A String", # Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.
213
+
"name": "A String", # Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
214
+
"nonCompliantOrgPolicy": "A String", # Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and resulted this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
215
+
"orgPolicyConstraint": "A String", # Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.
216
+
"remediation": { # Represents remediation guidance to resolve compliance violation for AssuredWorkload # Output only. Compliance violation remediation
217
+
"compliantValues": [ # Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values
218
+
"A String",
219
+
],
220
+
"instructions": { # Instructions to remediate violation # Required. Remediation instructions to resolve violations
221
+
"consoleInstructions": { # Remediation instructions to resolve violation via cloud console # Remediation instructions to resolve violation via cloud console
222
+
"additionalLinks": [ # Additional urls for more information about steps
223
+
"A String",
224
+
],
225
+
"consoleUris": [ # Link to console page where violations can be resolved
226
+
"A String",
227
+
],
228
+
"steps": [ # Steps to resolve violation via cloud console
229
+
"A String",
230
+
],
231
+
},
232
+
"gcloudInstructions": { # Remediation instructions to resolve violation via gcloud cli # Remediation instructions to resolve violation via gcloud cli
233
+
"additionalLinks": [ # Additional urls for more information about steps
234
+
"A String",
235
+
],
236
+
"gcloudCommands": [ # Gcloud command to resolve violation
237
+
"A String",
238
+
],
239
+
"steps": [ # Steps to resolve violation via gcloud cli
240
+
"A String",
241
+
],
242
+
},
243
+
},
244
+
"remediationType": "A String", # Output only. Reemediation type based on the type of org policy values violated
245
+
},
246
+
"resolveTime": "A String", # Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty.
247
+
"state": "A String", # Output only. State of the violation
248
+
"updateTime": "A String", # Output only. The last time when the Violation record was updated.
0 commit comments