Creates a new Occurrence
. Use this method to create Occurrences
for a resource.
HTTP request
POST https://containeranalysis.googleapis.com/v1alpha1/{parent=projects/*}/occurrences
The URL uses Google API HTTP annotation syntax.
Path parameters
Parameters | |
---|---|
parent |
This field contains the project Id for example: "projects/{projectId}" Authorization requires the following Google IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
name |
The name of the project. Should be of the form "projects/{projectId}". @Deprecated |
Request body
The request body contains an instance of Occurrence
.
Response body
If successful, the response body contains a newly created instance of Occurrence
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.