projects

Triggers a new execution using the latest revision of the given workflow by a Pub/Sub push notification.

post/v1/{+workflow}:triggerPubsubExecution

Request

  • Base URL: https://workflowexecutions.googleapis.com
  • URL: https://workflowexecutions.googleapis.com/v1/{+workflow}:triggerPubsubExecution
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)

Path parameters

workflowstring required

Required. Name of the workflow for which an execution should be created. Format: projects/{project}/locations/{location}/workflows/{workflow}

Request body

GCPCloudEventsModestring

Required. LINT: LEGACY_NAMES The query parameter value for __GCP_CloudEventsMode, set by the Eventarc service when configuring triggers.

deliveryAttemptinteger

The number of attempts that have been made to deliver this message. This is set by Pub/Sub for subscriptions that have the "dead letter" feature enabled, and hence provided here for compatibility, but is ignored by Workflows.

subscriptionstring

Required. The subscription of the Pub/Sub push notification. Format: projects/{project}/subscriptions/{sub}

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status