Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing -
), all of the associated integration under the given triggerId will be executed. Otherwise only the specified integration for the given triggerId
is executed. This is helpful for execution the integration from UI.
HTTP request
POST https://integrations.googleapis.com/v1/{name=projects/*/locations/*/products/*/integrations/*}:execute
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The integration resource name. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"triggerId": string,
"doNotPropagateError": boolean,
"requestId": string,
"inputParameters": {
string: {
object ( |
Fields | |
---|---|
triggerId |
Required. Matched against all {@link TriggerConfig}s across all integrations. i.e. TriggerConfig.trigger_id.equals(triggerId). The triggerId is in the format of |
doNotPropagateError |
Optional. Flag to determine how to should propagate errors. If this flag is set to be true, it will not throw an exception. Instead, it will return a {@link ExecuteIntegrationsResponse} with an execution id and error messages as PostWithTriggerIdExecutionException in {@link EventParameters}. The flag is set to be false by default. |
requestId |
Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned. |
inputParameters |
Optional. Input parameters used by integration execution. An object containing a list of |
Response body
If successful, the response body contains an instance of ExecuteIntegrationsResponse
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires one of the following IAM permissions on the name
resource, depending on the resource type:
integrations.apigeeIntegrations.invoke
integrations.integrations.invoke
integrations.securityIntegrations.invoke
For more information, see the IAM documentation.