- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Create a new trigger in a particular project and location.
HTTP request
POST https://eventarc.googleapis.com/v1/{parent=projects/*/locations/*}/triggers
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent collection in which to add this trigger. Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
trigger |
Required. The user-provided ID to be assigned to the trigger. |
validate |
Optional. If set, validate the request and preview the review, but do not post it. |
Request body
The request body contains an instance of Trigger
.
Response body
If successful, the response body contains a newly created instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.