- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- TimeWindow
Lists the Violations in the AssuredWorkload Environment. Callers may also choose to read across multiple Workloads as per AIP-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/-
HTTP request
GET https://{endpoint}/v1beta1/{parent=organizations/*/locations/*/workloads/*}/violations
Where {endpoint}
is one of the supported service endpoints.
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The Workload name. Format Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
interval |
Optional. Specifies the time window for retrieving active Violations. When specified, retrieves Violations that were active between startTime and endTime. |
pageSize |
Optional. Page size. |
pageToken |
Optional. Page token returned from previous request. |
filter |
Optional. A custom filter for filtering by the Violations properties. |
Request body
The request body must be empty.
Response body
Response of violations.list endpoint.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"violations": [
{
object ( |
Fields | |
---|---|
violations[] |
List of Violations under a Workload. |
nextPageToken |
The next page token. Returns empty if reached the last page. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
assuredworkloads.violations.list
For more information, see the IAM documentation.
TimeWindow
Interval defining a time window.
JSON representation |
---|
{ "startTime": string, "endTime": string } |
Fields | |
---|---|
startTime |
The start of the time window. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
The end of the time window. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |