Updates the state of a finding.
HTTP request
POST https://securitycenter.googleapis.com/v1/{name=folders/*/sources/*/findings/*}:setState
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The relative resource name of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{findingId}", "folders/{folder_id}/sources/{source_id}/findings/{findingId}", "projects/{projectId}/sources/{source_id}/findings/{findingId}". |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"state": enum ( |
Fields | |
---|---|
state |
Required. The desired State of the finding. |
startTime |
Required. The time at which the updated state takes effect. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Response body
If successful, the response body contains an instance of Finding
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.