| 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 |
"acknowledgeType": "A String", # Optional. Acknowledge type of specified violation. |
| 107 |
"comment": "A String", # Required. Business justification explaining the need for violation acknowledgement |
| 108 |
"nonCompliantOrgPolicy": "A String", # 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 |
"acknowledgeType": "A String", # Optional. Acknowledge type of specified violations. |
| 134 |
"comment": "A String", # Required. Business justification explaining the need for violations acknowledgement |
| 135 |
"names": [ # Required. The resource names of the Violations to acknowledge. Format for each name: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} |
| 136 |
"A String", |
| 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 |
"acknowledged": True or False, # A boolean that indicates if the violation is acknowledged |
| 173 |
"acknowledgementTime": "A String", # 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 |
"associatedOrgPolicyViolationId": "A String", # Optional. Output only. Violation Id of the org-policy violation due to which the resource violation is caused. Empty for org-policy violations. |
| 175 |
"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} |
| 176 |
"beginTime": "A String", # Output only. Time of the event which triggered the Violation. |
| 177 |
"category": "A String", # Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc. |
| 178 |
"description": "A String", # Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value. |
| 179 |
"exceptionAuditLogLink": "A String", # 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 |
"exceptionContexts": [ # Output only. List of all the exception detail added for the violation. |
| 181 |
{ # Violation exception detail. |
| 182 |
"acknowledgementTime": "A String", # Timestamp when the violation was acknowledged. |
| 183 |
"comment": "A String", # Business justification provided towards the acknowledgement of the violation. |
| 184 |
"userName": "A String", # Name of the user (or service account) who acknowledged the violation. |
| 185 |
}, |
| 186 |
], |
| 187 |
"name": "A String", # Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id} |
| 188 |
"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} |
| 189 |
"orgPolicyConstraint": "A String", # Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation. |
| 190 |
"parentProjectNumber": "A String", # Optional. Output only. Parent project number where resource is present. Empty for org-policy violations. |
| 191 |
"remediation": { # Represents remediation guidance to resolve compliance violation for AssuredWorkload # Output only. Compliance violation remediation |
| 192 |
"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 |
| 193 |
"A String", |
| 194 |
], |
| 195 |
"instructions": { # Instructions to remediate violation # Required. Remediation instructions to resolve violations |
| 196 |
"consoleInstructions": { # Remediation instructions to resolve violation via cloud console # Remediation instructions to resolve violation via cloud console |
| 197 |
"additionalLinks": [ # Additional urls for more information about steps |
| 198 |
"A String", |
| 199 |
], |
| 200 |
"consoleUris": [ # Link to console page where violations can be resolved |
| 201 |
"A String", |
| 202 |
], |
| 203 |
"steps": [ # Steps to resolve violation via cloud console |
| 204 |
"A String", |
| 205 |
], |
| 206 |
}, |
| 207 |
"gcloudInstructions": { # Remediation instructions to resolve violation via gcloud cli # Remediation instructions to resolve violation via gcloud cli |
| 208 |
"additionalLinks": [ # Additional urls for more information about steps |
| 209 |
"A String", |
| 210 |
], |
| 211 |
"gcloudCommands": [ # Gcloud command to resolve violation |
| 212 |
"A String", |
| 213 |
], |
| 214 |
"steps": [ # Steps to resolve violation via gcloud cli |
| 215 |
"A String", |
| 216 |
], |
| 217 |
}, |
| 218 |
}, |
| 219 |
"remediationType": "A String", # Output only. Reemediation type based on the type of org policy values violated |
| 220 |
}, |
| 221 |
"resolveTime": "A String", # Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty. |
| 222 |
"resourceName": "A String", # Optional. Output only. Name of the resource like //storage.googleapis.com/myprojectxyz-testbucket. Empty for org-policy violations. |
| 223 |
"resourceType": "A String", # Optional. Output only. Type of the resource like compute.googleapis.com/Disk, etc. Empty for org-policy violations. |
| 224 |
"state": "A String", # Output only. State of the violation |
| 225 |
"updateTime": "A String", # Output only. The last time when the Violation record was updated. |
| 226 |
"violationType": "A String", # 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 '-' (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 |
"nextPageToken": "A String", # The next page token. Returns empty if reached the last page. |
| 252 |
"totalSize": 42, # The total number of violations. |
| 253 |
"violations": [ # List of Violations under a Workload. |
| 254 |
{ # Workload monitoring Violation. |
| 255 |
"acknowledged": True or False, # A boolean that indicates if the violation is acknowledged |
| 256 |
"acknowledgementTime": "A String", # 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 |
"associatedOrgPolicyViolationId": "A String", # Optional. Output only. Violation Id of the org-policy violation due to which the resource violation is caused. Empty for org-policy violations. |
| 258 |
"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} |
| 259 |
"beginTime": "A String", # Output only. Time of the event which triggered the Violation. |
| 260 |
"category": "A String", # Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc. |
| 261 |
"description": "A String", # Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value. |
| 262 |
"exceptionAuditLogLink": "A String", # 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 |
"exceptionContexts": [ # Output only. List of all the exception detail added for the violation. |
| 264 |
{ # Violation exception detail. |
| 265 |
"acknowledgementTime": "A String", # Timestamp when the violation was acknowledged. |
| 266 |
"comment": "A String", # Business justification provided towards the acknowledgement of the violation. |
| 267 |
"userName": "A String", # Name of the user (or service account) who acknowledged the violation. |
| 268 |
}, |
| 269 |
], |
| 270 |
"name": "A String", # Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id} |
| 271 |
"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} |
| 272 |
"orgPolicyConstraint": "A String", # Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation. |
| 273 |
"parentProjectNumber": "A String", # Optional. Output only. Parent project number where resource is present. Empty for org-policy violations. |
| 274 |
"remediation": { # Represents remediation guidance to resolve compliance violation for AssuredWorkload # Output only. Compliance violation remediation |
| 275 |
"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 |
| 276 |
"A String", |
| 277 |
], |
| 278 |
"instructions": { # Instructions to remediate violation # Required. Remediation instructions to resolve violations |
| 279 |
"consoleInstructions": { # Remediation instructions to resolve violation via cloud console # Remediation instructions to resolve violation via cloud console |
| 280 |
"additionalLinks": [ # Additional urls for more information about steps |
| 281 |
"A String", |
| 282 |
], |
| 283 |
"consoleUris": [ # Link to console page where violations can be resolved |
| 284 |
"A String", |
| 285 |
], |
| 286 |
"steps": [ # Steps to resolve violation via cloud console |
| 287 |
"A String", |
| 288 |
], |
| 289 |
}, |
| 290 |
"gcloudInstructions": { # Remediation instructions to resolve violation via gcloud cli # Remediation instructions to resolve violation via gcloud cli |
| 291 |
"additionalLinks": [ # Additional urls for more information about steps |
| 292 |
"A String", |
| 293 |
], |
| 294 |
"gcloudCommands": [ # Gcloud command to resolve violation |
| 295 |
"A String", |
| 296 |
], |
| 297 |
"steps": [ # Steps to resolve violation via gcloud cli |
| 298 |
"A String", |
| 299 |
], |
| 300 |
}, |
| 301 |
}, |
| 302 |
"remediationType": "A String", # Output only. Reemediation type based on the type of org policy values violated |
| 303 |
}, |
| 304 |
"resolveTime": "A String", # Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty. |
| 305 |
"resourceName": "A String", # Optional. Output only. Name of the resource like //storage.googleapis.com/myprojectxyz-testbucket. Empty for org-policy violations. |
| 306 |
"resourceType": "A String", # Optional. Output only. Type of the resource like compute.googleapis.com/Disk, etc. Empty for org-policy violations. |
| 307 |
"state": "A String", # Output only. State of the violation |
| 308 |
"updateTime": "A String", # Output only. The last time when the Violation record was updated. |
| 309 |
"violationType": "A String", # 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 'execute()' 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> |