Debian Codegraph @

docs/dyn/assuredworkloads_v1beta1.organizations.locations.workloads.violations.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="assuredworkloads_v1beta1.html">Assured Workloads API</a> . <a href="assuredworkloads_v1beta1.organizations.html">organizations</a> . <a href="assuredworkloads_v1beta1.organizations.locations.html">locations</a> . <a href="assuredworkloads_v1beta1.organizations.locations.workloads.html">workloads</a> . <a href="assuredworkloads_v1beta1.organizations.locations.workloads.violations.html">violations</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#acknowledge">acknowledge(name, body=None, x__xgafv=None)</a></code></p>
79 <p class="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>
80 <p class="toc_element">
81 <code><a href="#batchAcknowledgeViolations">batchAcknowledgeViolations(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the existence of compliance violations in their workload and decide to ignore them due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted. This is a batch version of AcknowledgeViolation.</p>
83 <p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85 <p class="firstline">Close httplib2 connections.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Retrieves Assured Workload Violation based on ID.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, interval_endTime=None, interval_startTime=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="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>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <h3>Method Details</h3>
96 <div class="method">
97 <code class="details" id="acknowledge">acknowledge(name, body=None, x__xgafv=None)</code>
98 <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.
99
100 Args:
101 name: string, Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} (required)
102 body: object, The request body.
103 The object takes the form of:
104
105 { # Request for acknowledging the violation
106 &quot;acknowledgeType&quot;: &quot;A String&quot;, # Optional. Acknowledge type of specified violation.
107 &quot;comment&quot;: &quot;A String&quot;, # Required. Business justification explaining the need for violation acknowledgement
108 &quot;nonCompliantOrgPolicy&quot;: &quot;A String&quot;, # Optional. This field is deprecated and will be removed in future version of the API. 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}
109 }
110
111 x__xgafv: string, V1 error format.
112 Allowed values
113 1 - v1 error format
114 2 - v2 error format
115
116 Returns:
117 An object of the form:
118
119 { # Response for violation acknowledgement
120 }</pre>
121 </div>
122
123 <div class="method">
124 <code class="details" id="batchAcknowledgeViolations">batchAcknowledgeViolations(parent, body=None, x__xgafv=None)</code>
125 <pre>Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the existence of compliance violations in their workload and decide to ignore them due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted. This is a batch version of AcknowledgeViolation.
126
127 Args:
128 parent: string, Optional. The parent resource shared by all violations being acknowledged. Format: organizations/{organization}/locations/{location}/workloads/{workload} (required)
129 body: object, The request body.
130 The object takes the form of:
131
132 { # Request for acknowledging the violations in a batch
133 &quot;acknowledgeType&quot;: &quot;A String&quot;, # Optional. Acknowledge type of specified violations.
134 &quot;comment&quot;: &quot;A String&quot;, # Required. Business justification explaining the need for violations acknowledgement
135 &quot;names&quot;: [ # Required. The resource names of the Violations to acknowledge. Format for each name: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
136 &quot;A String&quot;,
137 ],
138 }
139
140 x__xgafv: string, V1 error format.
141 Allowed values
142 1 - v1 error format
143 2 - v2 error format
144
145 Returns:
146 An object of the form:
147
148 { # Response for batch violation acknowledgement
149 }</pre>
150 </div>
151
152 <div class="method">
153 <code class="details" id="close">close()</code>
154 <pre>Close httplib2 connections.</pre>
155 </div>
156
157 <div class="method">
158 <code class="details" id="get">get(name, x__xgafv=None)</code>
159 <pre>Retrieves Assured Workload Violation based on ID.
160
161 Args:
162 name: string, Required. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} (required)
163 x__xgafv: string, V1 error format.
164 Allowed values
165 1 - v1 error format
166 2 - v2 error format
167
168 Returns:
169 An object of the form:
170
171 { # Workload monitoring Violation.
172 &quot;acknowledged&quot;: True or False, # A boolean that indicates if the violation is acknowledged
173 &quot;acknowledgementTime&quot;: &quot;A String&quot;, # Optional. Timestamp when this violation was acknowledged first. Check exception_contexts to find the last time the violation was acknowledged when there are more than one violations. This field will be absent when acknowledged field is marked as false.
174 &quot;associatedOrgPolicyViolationId&quot;: &quot;A String&quot;, # Optional. Output only. Violation Id of the org-policy violation due to which the resource violation is caused. Empty for org-policy violations.
175 &quot;auditLogLink&quot;: &quot;A String&quot;, # Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
176 &quot;beginTime&quot;: &quot;A String&quot;, # Output only. Time of the event which triggered the Violation.
177 &quot;category&quot;: &quot;A String&quot;, # Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.
178 &quot;description&quot;: &quot;A String&quot;, # Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.
179 &quot;exceptionAuditLogLink&quot;: &quot;A String&quot;, # Output only. Immutable. Audit Log link to find business justification provided for violation exception. Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
180 &quot;exceptionContexts&quot;: [ # Output only. List of all the exception detail added for the violation.
181 { # Violation exception detail.
182 &quot;acknowledgementTime&quot;: &quot;A String&quot;, # Timestamp when the violation was acknowledged.
183 &quot;comment&quot;: &quot;A String&quot;, # Business justification provided towards the acknowledgement of the violation.
184 &quot;userName&quot;: &quot;A String&quot;, # Name of the user (or service account) who acknowledged the violation.
185 },
186 ],
187 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
188 &quot;nonCompliantOrgPolicy&quot;: &quot;A String&quot;, # 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}
189 &quot;orgPolicyConstraint&quot;: &quot;A String&quot;, # Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.
190 &quot;parentProjectNumber&quot;: &quot;A String&quot;, # Optional. Output only. Parent project number where resource is present. Empty for org-policy violations.
191 &quot;remediation&quot;: { # Represents remediation guidance to resolve compliance violation for AssuredWorkload # Output only. Compliance violation remediation
192 &quot;compliantValues&quot;: [ # Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values
193 &quot;A String&quot;,
194 ],
195 &quot;instructions&quot;: { # Instructions to remediate violation # Required. Remediation instructions to resolve violations
196 &quot;consoleInstructions&quot;: { # Remediation instructions to resolve violation via cloud console # Remediation instructions to resolve violation via cloud console
197 &quot;additionalLinks&quot;: [ # Additional urls for more information about steps
198 &quot;A String&quot;,
199 ],
200 &quot;consoleUris&quot;: [ # Link to console page where violations can be resolved
201 &quot;A String&quot;,
202 ],
203 &quot;steps&quot;: [ # Steps to resolve violation via cloud console
204 &quot;A String&quot;,
205 ],
206 },
207 &quot;gcloudInstructions&quot;: { # Remediation instructions to resolve violation via gcloud cli # Remediation instructions to resolve violation via gcloud cli
208 &quot;additionalLinks&quot;: [ # Additional urls for more information about steps
209 &quot;A String&quot;,
210 ],
211 &quot;gcloudCommands&quot;: [ # Gcloud command to resolve violation
212 &quot;A String&quot;,
213 ],
214 &quot;steps&quot;: [ # Steps to resolve violation via gcloud cli
215 &quot;A String&quot;,
216 ],
217 },
218 },
219 &quot;remediationType&quot;: &quot;A String&quot;, # Output only. Reemediation type based on the type of org policy values violated
220 },
221 &quot;resolveTime&quot;: &quot;A String&quot;, # Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty.
222 &quot;resourceName&quot;: &quot;A String&quot;, # Optional. Output only. Name of the resource like //storage.googleapis.com/myprojectxyz-testbucket. Empty for org-policy violations.
223 &quot;resourceType&quot;: &quot;A String&quot;, # Optional. Output only. Type of the resource like compute.googleapis.com/Disk, etc. Empty for org-policy violations.
224 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the violation
225 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last time when the Violation record was updated.
226 &quot;violationType&quot;: &quot;A String&quot;, # Output only. Type of the violation
227 }</pre>
228 </div>
229
230 <div class="method">
231 <code class="details" id="list">list(parent, filter=None, interval_endTime=None, interval_startTime=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
232 <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 &#x27;-&#x27; (the hyphen or dash character) as a wildcard character instead of workload-id in the parent. Format `organizations/{org_id}/locations/{location}/workloads/-`
233
234 Args:
235 parent: string, Required. The Workload name. Format `organizations/{org_id}/locations/{location}/workloads/{workload}`. (required)
236 filter: string, Optional. A custom filter for filtering by the Violations properties.
237 interval_endTime: string, The end of the time window.
238 interval_startTime: string, The start of the time window.
239 orderBy: string, Optional. Actionable sorting delegation.
240 pageSize: integer, Optional. Page size.
241 pageToken: string, Optional. Page token returned from previous request.
242 x__xgafv: string, V1 error format.
243 Allowed values
244 1 - v1 error format
245 2 - v2 error format
246
247 Returns:
248 An object of the form:
249
250 { # Response of ListViolations endpoint.
251 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token. Returns empty if reached the last page.
252 &quot;totalSize&quot;: 42, # The total number of violations.
253 &quot;violations&quot;: [ # List of Violations under a Workload.
254 { # Workload monitoring Violation.
255 &quot;acknowledged&quot;: True or False, # A boolean that indicates if the violation is acknowledged
256 &quot;acknowledgementTime&quot;: &quot;A String&quot;, # Optional. Timestamp when this violation was acknowledged first. Check exception_contexts to find the last time the violation was acknowledged when there are more than one violations. This field will be absent when acknowledged field is marked as false.
257 &quot;associatedOrgPolicyViolationId&quot;: &quot;A String&quot;, # Optional. Output only. Violation Id of the org-policy violation due to which the resource violation is caused. Empty for org-policy violations.
258 &quot;auditLogLink&quot;: &quot;A String&quot;, # Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
259 &quot;beginTime&quot;: &quot;A String&quot;, # Output only. Time of the event which triggered the Violation.
260 &quot;category&quot;: &quot;A String&quot;, # Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.
261 &quot;description&quot;: &quot;A String&quot;, # Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.
262 &quot;exceptionAuditLogLink&quot;: &quot;A String&quot;, # Output only. Immutable. Audit Log link to find business justification provided for violation exception. Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
263 &quot;exceptionContexts&quot;: [ # Output only. List of all the exception detail added for the violation.
264 { # Violation exception detail.
265 &quot;acknowledgementTime&quot;: &quot;A String&quot;, # Timestamp when the violation was acknowledged.
266 &quot;comment&quot;: &quot;A String&quot;, # Business justification provided towards the acknowledgement of the violation.
267 &quot;userName&quot;: &quot;A String&quot;, # Name of the user (or service account) who acknowledged the violation.
268 },
269 ],
270 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
271 &quot;nonCompliantOrgPolicy&quot;: &quot;A String&quot;, # 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}
272 &quot;orgPolicyConstraint&quot;: &quot;A String&quot;, # Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.
273 &quot;parentProjectNumber&quot;: &quot;A String&quot;, # Optional. Output only. Parent project number where resource is present. Empty for org-policy violations.
274 &quot;remediation&quot;: { # Represents remediation guidance to resolve compliance violation for AssuredWorkload # Output only. Compliance violation remediation
275 &quot;compliantValues&quot;: [ # Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values
276 &quot;A String&quot;,
277 ],
278 &quot;instructions&quot;: { # Instructions to remediate violation # Required. Remediation instructions to resolve violations
279 &quot;consoleInstructions&quot;: { # Remediation instructions to resolve violation via cloud console # Remediation instructions to resolve violation via cloud console
280 &quot;additionalLinks&quot;: [ # Additional urls for more information about steps
281 &quot;A String&quot;,
282 ],
283 &quot;consoleUris&quot;: [ # Link to console page where violations can be resolved
284 &quot;A String&quot;,
285 ],
286 &quot;steps&quot;: [ # Steps to resolve violation via cloud console
287 &quot;A String&quot;,
288 ],
289 },
290 &quot;gcloudInstructions&quot;: { # Remediation instructions to resolve violation via gcloud cli # Remediation instructions to resolve violation via gcloud cli
291 &quot;additionalLinks&quot;: [ # Additional urls for more information about steps
292 &quot;A String&quot;,
293 ],
294 &quot;gcloudCommands&quot;: [ # Gcloud command to resolve violation
295 &quot;A String&quot;,
296 ],
297 &quot;steps&quot;: [ # Steps to resolve violation via gcloud cli
298 &quot;A String&quot;,
299 ],
300 },
301 },
302 &quot;remediationType&quot;: &quot;A String&quot;, # Output only. Reemediation type based on the type of org policy values violated
303 },
304 &quot;resolveTime&quot;: &quot;A String&quot;, # Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty.
305 &quot;resourceName&quot;: &quot;A String&quot;, # Optional. Output only. Name of the resource like //storage.googleapis.com/myprojectxyz-testbucket. Empty for org-policy violations.
306 &quot;resourceType&quot;: &quot;A String&quot;, # Optional. Output only. Type of the resource like compute.googleapis.com/Disk, etc. Empty for org-policy violations.
307 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the violation
308 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last time when the Violation record was updated.
309 &quot;violationType&quot;: &quot;A String&quot;, # Output only. Type of the violation
310 },
311 ],
312 }</pre>
313 </div>
314
315 <div class="method">
316 <code class="details" id="list_next">list_next()</code>
317 <pre>Retrieves the next page of results.
318
319 Args:
320 previous_request: The request for the previous page. (required)
321 previous_response: The response from the request for the previous page. (required)
322
323 Returns:
324 A request object that you can call &#x27;execute()&#x27; on to request the next
325 page. Returns None if there are no more items in the collection.
326 </pre>
327 </div>
328
329 </body></html>