- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
Lists Violations for a workload Callers may also choose to read across multiple Customers or for a single customer as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of {customer} & {workload}. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
HTTP request
GET https://cloudcontrolspartner.googleapis.com/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/violations
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Parent resource Format organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. The maximum number of customers row to return. The service may return fewer than this value. If unspecified, at most 10 customers will be returned. |
pageToken |
Optional. A page token, received from a previous |
filter |
Optional. Filtering results |
orderBy |
Optional. Hint for how to order the results |
interval |
Optional. Specifies the interval for retrieving violations. if unspecified, all violations will be returned. |
Request body
The request body must be empty.
Response body
Response message for list customer violation requests
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"violations": [
{
object ( |
Fields | |
---|---|
violations[] |
List of violation |
nextPageToken |
A token that can be sent as |
unreachable[] |
Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217 |
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:
cloudcontrolspartner.violations.list
For more information, see the IAM documentation.