v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-132562112.4 KB
projects

Create a new trigger in a particular project and location.

post/v1/{+parent}/triggers

Path parameters

parentstring required

Required. The parent collection in which to add this trigger.

Query parameters

triggerIdstring

Required. The user-provided ID to be assigned to the trigger.

validateOnlyboolean

Optional. If set, validate the request and preview the review, but do not post it.

Request body

labelsobject

Optional. User labels attached to the triggers that can be used to group resources.

uidstring

Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

createTimestring google-datetime

Output only. The creation time.

updateTimestring google-datetime

Output only. The last-modified time.

etagstring

Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding.

eventDataContentTypestring

Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to application/json if the value is not defined.

namestring

Required. The resource name of the trigger. Must be unique within the location of the project and must be in projects/{project}/locations/{location}/triggers/{trigger} format.

satisfiesPzsboolean

Output only. Whether or not this Trigger satisfies the requirements of physical zone separation

channelstring

Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.

serviceAccountstring

Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The iam.serviceAccounts.actAs permission must be granted on the service account to allow a principal to impersonate the service account. For more information, see the Roles and permissions page specific to the trigger destination.

conditionsobject

Output only. The reason(s) why a trigger is in FAILED state.

Response

Successful response