Cloud Tasks
The Google Cloud Tasks connector lets you connect to Google Cloud Tasks and manage the execution, dispatch, and delivery of a large number of distributed tasks.
Before you begin
Before using the Cloud Tasks connector, do the following tasks:
In your Google Cloud project:
- Ensure that network connectivity is set up. For information about network patterns, see Network connectivity.
- Grant the
roles/connectors.adminIAM role to the user configuring the connector. - Grant the following IAM roles to the service account that you want to use for the connector:
roles/secretmanager.viewerroles/secretmanager.secretAccessorroles/cloudtasks.admin
A service account is a special type of Google account intended to represent a non-human user that needs to authenticate and be authorized to access data in Google APIs. If you don't have a service account, you must create a service account. The connector and the service account must belong to the same project. For more information, see Service accounts overview.
Enable the following services:
secretmanager.googleapis.com(Secret Manager API)connectors.googleapis.com(Connectors API)cloudtasks.googleapis.com(Cloud Tasks API)
To understand how to enable services, see Enabling services.
If these services or permissions have not been enabled for your project previously, you are prompted to enable them when configuring the connector.
Configure the connector
A connection is specific to a data source. It means that if you have many data sources, you must create a separate connection for each data source. To create a connection, do the following:
- In the Google Cloud console, go to the Integration Connectors > Connections page and then select or create a Google Cloud project.
Go to the Connections page - Click + Create new to open the Create Connection page.
- In the Location section, choose the location for the connection.
- Region: Select a location from the drop-down list.
- Click Next.
- In the Connection Details section, complete the following:
- Connector: Select Cloud Tasks from the drop-down list of available connectors.
- Connector version: Select the connector version from the drop-down list of available versions.
- In the Connection Name field, enter a name for the connection instance.
Connection names must meet the following criteria:- Connection names can use letters, numbers, or hyphens.
- Letters must be lowercase.
- Connection names must begin with a letter and end with a letter or number.
- Connection names cannot exceed 49 characters.
- Optionally, enter a Description for the connection instance.
- Optionally, enable Cloud Logging, and then select a log level. By default, the log level is set to
Error. - Service Account: Select a service account that has the required roles.
- Optionally, configure the Connection node settings:
- Minimum number of nodes: Enter the minimum number of connection nodes.
- Maximum number of nodes: Enter the maximum number of connection nodes.
A node is a unit (or replica) of a connection that processes transactions. More nodes are required to process more transactions for a connection and conversely, fewer nodes are required to process fewer transactions. To understand how the nodes affect your connector pricing, see Pricing for connection nodes. If you don't enter any values, by default the minimum nodes are set to 2 (for better availability) and the maximum nodes are set to 50.
Note: You can customize the connection node values only if you are a Pay-as-you-go customer.
- Optionally, click + Add label to add a label to the connection in the form of a key-value pair.
- Click Next.
- Review: Review your connection.
- Click Create.
Connection information
This section provides a list of information regarding the connection.
Google Cloud Tasks connector
This section explains how to connect to Google Cloud Tasks using OAuth 2.0 (Authorization Code) or Service Account Authentication.
Required details needed to establish a connection
| Field name | Required | Description |
|---|---|---|
| Location | Yes | Choose the location where your connection will runs. |
| Connector | Yes | The name of the specific connector. |
| Connector version | Yes | Connector version refers to a specific release or version of a connector. |
| Connection Name | Yes | Provide a meaningful, unique name for your connection. |
| Description | No | The additional information that needs to be provided. |
| Enable Cloud Logging | No | Collect logs emitted by your connection. |
| Service Account | Yes | Identity to be used by the connection. |
| Connection node settings | No | The number of nodes used by the connection determines your pricing. |
| Authentication | Yes | Select the authentication method: Service Account Authentication or OAuth 2.0 - Authorization code. |
| Service Account Authentication | Conditional | Required if selected as the authentication method. Uses the connection's IAM service account to authenticate without additional credentials. |
| OAuth 2.0 - Authorization code | Conditional | Required if selected as the authentication method (OAuthGrantType='CODE'). |
| Client ID | Conditional | Required when using OAuth 2.0 - Authorization code. The client ID used for requesting access tokens. |
| Scopes | Conditional | Required when using OAuth 2.0 - Authorization code. A comma-separated list of desired scopes to request from the user. |
| Client Secret | Conditional | Required when using OAuth 2.0 - Authorization code. Secret Manager secret containing the client secret for the OAuth application. |
| Secret version | Conditional | Required when using OAuth 2.0 - Authorization code. Secret version for the selected client secret. |
Details needed to establish a connection
Sample connection configurations for the Google Cloud Tasks connector:
Google Cloud Tasks Connection-1 (OAuthGrantType='CODE').
Google Cloud Tasks Connection-2 (Service Account Authentication).
Connection-1 (OAuthGrantType='CODE')
| Field name | Details |
|---|---|
| Location | asia-east1 |
| Connector | Cloud Tasks |
| Connector version | 1 |
| Connection Name | cloudtask-oauth1 |
| Enable Cloud Logging | Yes |
| Service Account | <your_service_account_email> |
| Minimum number of nodes | 2 |
| Maximum number of nodes | 50 |
| OAuth 2.0 - Authorization code | Yes |
| Client ID | <your_client_id> |
| Scope | https://www.googleapis.com/auth/cloud-platform |
| Client Secret | <your_client_secret_manager_secret> |
| Secret version | 1 |
Note: For supported OAuth 2.0 scopes, see OAuth 2.0 Scopes for Google APIs.
Connection-2 (Service Account Authentication)
| Field name | Details |
|---|---|
| Location | asia-east1 |
| Connector | Google Cloud Tasks |
| Connector version | 1 |
| Connection Name | gcp-google-task |
| Enable Cloud Logging | Yes |
| Service Account | <your_service_account_email> |
| Minimum number of nodes | 2 |
| Maximum number of nodes | 50 |
| Authentication | Yes |
| Service Account Authentication | Yes |
Prerequisites:
You can create an OAuth application in Google Cloud and use its credentials in your Cloud Tasks connection. For more information, see:
Actions
This section lists all the actions supported by the Cloud Tasks connector.
projects.locations.get action
Gets information about a location.
Input parameters of the projects.locations.get action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.get operation. |
Output parameters of the projects.locations.get action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.get action, see Example: projects.locations.get.
Example: projects.locations.get
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.getaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1" } }
This action returns the response for the projects.locations.get action. If the action is successful, the
projects.locations.get task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1\",\n \"labels\": {\n \"cloud.googleapis.com/region\": \"asia-east1\"\n },\n \"locationId\": \"asia-east1\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 02 Nov 2026 07:48:45 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.getCmekConfig action
Gets the customer-managed encryption key (CMEK) configuration for a Cloud Tasks location.
Input parameters of the projects.locations.getCmekConfig action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.getCmekConfig operation. |
Output parameters of the projects.locations.getCmekConfig action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.getCmekConfig action, see Example: projects.locations.getCmekConfig.
Example: projects.locations.getCmekConfig
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.getCmekConfigaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/cmekConfig" } }
This action returns the response for the projects.locations.getCmekConfig action. If the action is successful, the
projects.locations.getCmekConfig task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/cmekConfig\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 14:49:35 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.list action
Lists information about the supported locations for Cloud Tasks.
Input parameters of the projects.locations.list action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.list operation. |
Output parameters of the projects.locations.list action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.list action, see Example: projects.locations.list.
Example: projects.locations.list
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.listaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID" } }
This action returns the response for the projects.locations.list action. If the action is successful, the
projects.locations.list task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"locations\": [\n {\n \"name\": \"projects/PROJECT_ID/locations/asia-east1\",\n \"labels\": {\n \"cloud.googleapis.com/region\": \"asia-east1\"\n },\n \"locationId\": \"asia-east1\"\n },\n {\n \"name\": \"projects/PROJECT_ID/locations/asia-east2\",\n \"labels\": {\n \"cloud.googleapis.com/region\": \"asia-east2\"\n },\n \"locationId\": \"asia-east2\"\n }\n ]\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Fri, 23 Oct 2026 15:09:50 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.create action
Creates a queue in a specified location.
Input parameters of the projects.locations.queues.create action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.create operation. |
Output parameters of the projects.locations.queues.create action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.create action, see Example: projects.locations.queues.create.
Example: projects.locations.queues.create
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.createaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "parent": "projects/PROJECT_ID/locations/asia-east1" }, "RequestBody": { "name": "projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue2", "httpTarget": { "uriOverride": { "scheme": "HTTPS", "host": "example.com", "pathOverride": { "path": "/api/test" } } } } }
This action returns the response for the projects.locations.queues.create action. If the action is successful, the
projects.locations.queues.create task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue2\",\n \"rateLimits\": {\n \"maxDispatchesPerSecond\": 500,\n \"maxBurstSize\": 100,\n \"maxConcurrentDispatches\": 1000\n },\n \"retryConfig\": {\n \"maxAttempts\": 100,\n \"minBackoff\": \"0.100s\",\n \"maxBackoff\": \"3600s\",\n \"maxDoublings\": 16\n },\n \"state\": \"RUNNING\",\n \"httpTarget\": {\n \"uriOverride\": {\n \"scheme\": \"HTTPS\",\n \"host\": \"example.com\",\n \"pathOverride\": {\n \"path\": \"/api/test\"\n }\n }\n }\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 12:33:04 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.delete action
Deletes a queue, even if it still contains tasks.
Input parameters of the projects.locations.queues.delete action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.delete operation. |
Output parameters of the projects.locations.queues.delete action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.delete action, see Example: projects.locations.queues.delete.
Example: projects.locations.queues.delete
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.deleteaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/queues/my-new-test-queue" } }
This action returns the response for the projects.locations.queues.delete action. If the action is successful, the
projects.locations.queues.delete task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Fri, 23 Oct 2026 15:48:57 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.get action
Gets a queue.
Input parameters of the projects.locations.queues.get action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.get operation. |
Output parameters of the projects.locations.queues.get action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.get action, see Example: projects.locations.queues.get.
Example: projects.locations.queues.get
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.getaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue" } }
This action returns the response for the projects.locations.queues.get action. If the action is successful, the
projects.locations.queues.get task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue\",\n \"rateLimits\": {\n \"maxDispatchesPerSecond\": 500,\n \"maxBurstSize\": 100,\n \"maxConcurrentDispatches\": 1000\n },\n \"retryConfig\": {\n \"maxAttempts\": 100,\n \"minBackoff\": \"0.100s\",\n \"maxBackoff\": \"3600s\",\n \"maxDoublings\": 16\n },\n \"state\": \"RUNNING\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 07:22:30 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.getIamPolicy action
Gets the IAM access control policy for a queue.
Input parameters of the projects.locations.queues.getIamPolicy action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.getIamPolicy operation. |
Output parameters of the projects.locations.queues.getIamPolicy action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.getIamPolicy action, see Example: projects.locations.queues.getIamPolicy.
Example: projects.locations.queues.getIamPolicy
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.getIamPolicyaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "resource": "projects/PROJECT_ID/locations/asia-east1/queues/test-queue-resume" } }
This action returns the response for the projects.locations.queues.getIamPolicy action. If the action is successful, the
projects.locations.queues.getIamPolicy task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"version\": 1,\n \"etag\": \"BwZe0a5+lXM=\",\n \"bindings\": [\n {\n \"role\": \"roles/cloudtasks.enqueuer\",\n \"members\": [\n \"user:user@example.com\"\n ]\n }\n ]\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Tue, 27 Oct 2026 12:36:06 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.list action
Lists queues in a location in lexicographical order.
Input parameters of the projects.locations.queues.list action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.list operation. |
Output parameters of the projects.locations.queues.list action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.list action, see Example: projects.locations.queues.list.
Example: projects.locations.queues.list
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.listaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "parent": "projects/PROJECT_ID/locations/asia-east1" } }
This action returns the response for the projects.locations.queues.list action. If the action is successful, the
projects.locations.queues.list task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"queues\": [\n {\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/example-queue\",\n \"rateLimits\": {\n \"maxDispatchesPerSecond\": 500,\n \"maxBurstSize\": 100,\n \"maxConcurrentDispatches\": 1000\n },\n \"retryConfig\": {\n \"maxAttempts\": 100,\n \"minBackoff\": \"0.100s\",\n \"maxBackoff\": \"3600s\",\n \"maxDoublings\": 16\n },\n \"state\": \"RUNNING\"\n }\n ],\n \"nextPageToken\": \"NEXT_PAGE_TOKEN\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 09:29:26 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.patch action
Updates an existing queue, or creates the queue if it does not exist.
Input parameters of the projects.locations.queues.patch action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.patch operation. |
Output parameters of the projects.locations.queues.patch action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.patch action, see Example: projects.locations.queues.patch.
Example: projects.locations.queues.patch
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.patchaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/queues/example-queue" }, "RequestBody": { "state": "RUNNING" } }
This action returns the response for the projects.locations.queues.patch action. If the action is successful, the
projects.locations.queues.patch task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/example-queue\",\n \"rateLimits\": {\n \"maxDispatchesPerSecond\": 500,\n \"maxBurstSize\": 100,\n \"maxConcurrentDispatches\": 1000\n },\n \"retryConfig\": {\n \"maxAttempts\": 100,\n \"minBackoff\": \"0.100s\",\n \"maxBackoff\": \"3600s\",\n \"maxDoublings\": 16\n },\n \"state\": \"RUNNING\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 09:52:17 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.pause action
Pauses a queue so that it stops dispatching tasks until resumed.
Input parameters of the projects.locations.queues.pause action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.pause operation. |
Output parameters of the projects.locations.queues.pause action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.pause action, see Example: projects.locations.queues.pause.
Example: projects.locations.queues.pause
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.pauseaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue" } }
This action returns the response for the projects.locations.queues.pause action. If the action is successful, the
projects.locations.queues.pause task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue\",\n \"rateLimits\": {\n \"maxDispatchesPerSecond\": 500,\n \"maxBurstSize\": 100,\n \"maxConcurrentDispatches\": 1000\n },\n \"retryConfig\": {\n \"maxAttempts\": 100,\n \"minBackoff\": \"0.100s\",\n \"maxBackoff\": \"3600s\",\n \"maxDoublings\": 16\n },\n \"state\": \"PAUSED\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 10:14:00 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.purge action
Purges a queue by permanently deleting all of its existing tasks.
Input parameters of the projects.locations.queues.purge action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.purge operation. |
Output parameters of the projects.locations.queues.purge action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.purge action, see Example: projects.locations.queues.purge.
Example: projects.locations.queues.purge
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.purgeaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue2" } }
This action returns the response for the projects.locations.queues.purge action. If the action is successful, the
projects.locations.queues.purge task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue2\",\n \"rateLimits\": {\n \"maxDispatchesPerSecond\": 500,\n \"maxBurstSize\": 100,\n \"maxConcurrentDispatches\": 1000\n },\n \"retryConfig\": {\n \"maxAttempts\": 100,\n \"minBackoff\": \"0.100s\",\n \"maxBackoff\": \"3600s\",\n \"maxDoublings\": 16\n },\n \"state\": \"RUNNING\",\n \"purgeTime\": \"2026-10-26T16:26:57.726208Z\",\n \"httpTarget\": {\n \"uriOverride\": {\n \"scheme\": \"HTTPS\",\n \"host\": \"example.com\",\n \"pathOverride\": {\n \"path\": \"/api/test\"\n }\n }\n }\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 16:26:57 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.resume action
Resumes a paused or disabled queue and sets its state to RUNNING.
Input parameters of the projects.locations.queues.resume action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.resume operation. |
Output parameters of the projects.locations.queues.resume action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.resume action, see Example: projects.locations.queues.resume.
Example: projects.locations.queues.resume
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.resumeaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/queues/test-queue-resume" } }
This action returns the response for the projects.locations.queues.resume action. If the action is successful, the
projects.locations.queues.resume task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/test-queue-resume\",\n \"rateLimits\": {\n \"maxDispatchesPerSecond\": 500,\n \"maxBurstSize\": 100,\n \"maxConcurrentDispatches\": 1000\n },\n \"retryConfig\": {\n \"maxAttempts\": 100,\n \"minBackoff\": \"0.100s\",\n \"maxBackoff\": \"3600s\",\n \"maxDoublings\": 16\n },\n \"state\": \"RUNNING\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Tue, 27 Oct 2026 11:24:03 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.setIamPolicy action
Sets the IAM access control policy for a queue, replacing any existing policy.
Input parameters of the projects.locations.queues.setIamPolicy action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.setIamPolicy operation. |
Output parameters of the projects.locations.queues.setIamPolicy action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.setIamPolicy action, see Example: projects.locations.queues.setIamPolicy.
Example: projects.locations.queues.setIamPolicy
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.setIamPolicyaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "resource": "projects/PROJECT_ID/locations/asia-east1/queues/test-queue-resume" }, "RequestBody": { "policy": { "version": 1, "etag": "BwZe0T8CxLI=", "bindings": [ { "role": "roles/cloudtasks.enqueuer", "members": [ "user:user@example.com" ] } ] } } }
This action returns the response for the projects.locations.queues.setIamPolicy action. If the action is successful, the
projects.locations.queues.setIamPolicy task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"version\": 1,\n \"etag\": \"BwZe0a5+lXM=\",\n \"bindings\": [\n {\n \"role\": \"roles/cloudtasks.enqueuer\",\n \"members\": [\n \"user:user@example.com\"\n ]\n }\n ]\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Tue, 27 Oct 2026 12:35:29 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.tasks.buffer action
Creates and buffers a new task in a queue configured with an HTTP target without explicitly defining a Task message.
Input parameters of the projects.locations.queues.tasks.buffer action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.tasks.buffer operation. |
Output parameters of the projects.locations.queues.tasks.buffer action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.tasks.buffer action, see Example: projects.locations.queues.tasks.buffer.
Example: projects.locations.queues.tasks.buffer
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.tasks.bufferaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "queue": "projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue2", "taskId": "test-task-id-12345" } }
This action returns the response for the projects.locations.queues.tasks.buffer action. If the action is successful, the
projects.locations.queues.tasks.buffer task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"task\": {\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue2/tasks/test-task-id-12345\",\n \"httpRequest\": {\n \"url\": \"https://example.com/api/test\",\n \"httpMethod\": \"POST\",\n \"headers\": {\n \"User-Agent\": \"Google-Cloud-Tasks\"\n }\n },\n \"scheduleTime\": \"2026-10-26T12:35:47.920165Z\",\n \"createTime\": \"2026-10-26T12:35:47Z\",\n \"dispatchDeadline\": \"600s\",\n \"view\": \"FULL\"\n }\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 12:35:47 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.tasks.create action
Creates a task and adds it to a queue.
Input parameters of the projects.locations.queues.tasks.create action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.tasks.create operation. |
Output parameters of the projects.locations.queues.tasks.create action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.tasks.create action, see Example: projects.locations.queues.tasks.create.
Example: projects.locations.queues.tasks.create
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.tasks.createaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "parent": "projects/PROJECT_ID/locations/asia-east1/queues/volume-test-queue" }, "RequestBody": { "task": { "httpRequest": { "httpMethod": "POST", "url": "https://example.com", "headers": { "Content-Type": "application/json" }, "body": "eyJ0ZXN0IjoiQSJ9" } } } }
This action returns the response for the projects.locations.queues.tasks.create action. If the action is successful, the
projects.locations.queues.tasks.create task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/volume-test-queue/tasks/26876787369898515061\",\n \"httpRequest\": {\n \"url\": \"https://example.com/\",\n \"httpMethod\": \"POST\",\n \"headers\": {\n \"User-Agent\": \"Google-Cloud-Tasks\",\n \"Content-Type\": \"application/json\"\n }\n },\n \"scheduleTime\": \"2026-10-29T11:14:45.530809Z\",\n \"createTime\": \"2026-10-29T11:14:45Z\",\n \"dispatchDeadline\": \"600s\",\n \"view\": \"BASIC\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Thu, 29 Oct 2026 11:14:45 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.tasks.delete action
Deletes a scheduled or dispatched task from a queue.
Input parameters of the projects.locations.queues.tasks.delete action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.tasks.delete operation. |
Output parameters of the projects.locations.queues.tasks.delete action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.tasks.delete action, see Example: projects.locations.queues.tasks.delete.
Example: projects.locations.queues.tasks.delete
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.tasks.deleteaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue/tasks/646084562518787264" } }
This action returns the response for the projects.locations.queues.tasks.delete action. If the action is successful, the
projects.locations.queues.tasks.delete task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 11:50:06 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.tasks.get action
Gets a task from a queue.
Input parameters of the projects.locations.queues.tasks.get action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.tasks.get operation. |
Output parameters of the projects.locations.queues.tasks.get action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.tasks.get action, see Example: projects.locations.queues.tasks.get.
Example: projects.locations.queues.tasks.get
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.tasks.getaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue/tasks/3793980035802341539" } }
This action returns the response for the projects.locations.queues.tasks.get action. If the action is successful, the
projects.locations.queues.tasks.get task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue/tasks/3793980035802341539\",\n \"httpRequest\": {\n \"url\": \"https://example.com/\",\n \"httpMethod\": \"GET\",\n \"headers\": {\n \"User-Agent\": \"Google-Cloud-Tasks\"\n }\n },\n \"scheduleTime\": \"2026-10-26T11:29:03.269069Z\",\n \"createTime\": \"2026-10-26T11:29:03Z\",\n \"dispatchDeadline\": \"600s\",\n \"view\": \"BASIC\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 11:33:24 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.tasks.list action
Lists the tasks in a queue.
Input parameters of the projects.locations.queues.tasks.list action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.tasks.list operation. |
Output parameters of the projects.locations.queues.tasks.list action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.tasks.list action, see Example: projects.locations.queues.tasks.list.
Example: projects.locations.queues.tasks.list
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.tasks.listaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "parent": "projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue" } }
This action returns the response for the projects.locations.queues.tasks.list action. If the action is successful, the
projects.locations.queues.tasks.list task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 11:14:30 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.tasks.run action
Forces a task to run immediately for manual debugging.
Input parameters of the projects.locations.queues.tasks.run action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.tasks.run operation. |
Output parameters of the projects.locations.queues.tasks.run action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.tasks.run action, see Example: projects.locations.queues.tasks.run.
Example: projects.locations.queues.tasks.run
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.tasks.runaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue/tasks/5935806719084799458" } }
This action returns the response for the projects.locations.queues.tasks.run action. If the action is successful, the
projects.locations.queues.tasks.run task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/queues/my-last-test-queue/tasks/5935806719084799458\",\n \"httpRequest\": {\n \"url\": \"https://example.com/\",\n \"httpMethod\": \"GET\",\n \"headers\": {\n \"User-Agent\": \"Google-Cloud-Tasks\"\n }\n },\n \"scheduleTime\": \"2026-10-26T12:08:45.966547Z\",\n \"createTime\": \"2026-10-26T12:08:45Z\",\n \"dispatchDeadline\": \"600s\",\n \"dispatchCount\": 1,\n \"lastAttempt\": {\n \"scheduleTime\": \"2026-10-26T12:08:45.966547Z\"\n },\n \"view\": \"BASIC\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Mon, 26 Oct 2026 12:11:33 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.queues.testIamPermissions action
Returns the IAM permissions that a caller has on a queue.
Input parameters of the projects.locations.queues.testIamPermissions action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.queues.testIamPermissions operation. |
Output parameters of the projects.locations.queues.testIamPermissions action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.queues.testIamPermissions action, see Example: projects.locations.queues.testIamPermissions.
Example: projects.locations.queues.testIamPermissions
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.queues.testIamPermissionsaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "resource": "projects/PROJECT_ID/locations/asia-east1/queues/test-iam-queue" }, "RequestBody": { "permissions": [ "cloudtasks.queues.get", "cloudtasks.tasks.create" ] } }
This action returns the response for the projects.locations.queues.testIamPermissions action. If the action is successful, the
projects.locations.queues.testIamPermissions task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"permissions\": [\n \"cloudtasks.queues.get\",\n \"cloudtasks.tasks.create\"\n ]\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Wed, 28 Oct 2026 10:24:19 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
projects.locations.updateCmekConfig action
Creates or updates the customer-managed encryption key (CMEK) configuration for a Cloud Tasks location.
Input parameters of the projects.locations.updateCmekConfig action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Payload | JSON | Yes | The JSON payload required for the projects.locations.updateCmekConfig operation. |
Output parameters of the projects.locations.updateCmekConfig action
| Parameter name | Data type | Description |
|---|---|---|
| ResponseBody | String | The JSON response body returned by the Cloud Tasks API. |
| ResponseHeaders | JSON | HTTP response headers returned as key-value pairs. |
| StatusCode | Integer | HTTP status code returned by the Cloud Tasks API. |
For an example of how to configure the projects.locations.updateCmekConfig action, see Example: projects.locations.updateCmekConfig.
Example: projects.locations.updateCmekConfig
- In the Configure connector task dialog, click Actions.
- Select the
projects.locations.updateCmekConfigaction, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayloadand then enter a value similar to the following in the Default Value field:{ "Path parameters": { "name": "projects/PROJECT_ID/locations/asia-east1/cmekConfig" }, "Query parameters": { "updateMask": "kmsKey" }, "RequestBody": { "kmsKey": "projects/PROJECT_ID/locations/asia-east1/keyRings/cloud-task-key/cryptoKeys/cloud-task-key1" } }
This action returns the response for the projects.locations.updateCmekConfig action. If the action is successful, the
projects.locations.updateCmekConfig task's connectorOutputPayload response
parameter has a value similar to the following:
[ { "ResponseBody": "{\n \"name\": \"projects/PROJECT_ID/locations/asia-east1/cmekConfig\",\n \"kmsKey\": \"projects/PROJECT_ID/locations/asia-east1/keyRings/cloud-task-key/cryptoKeys/cloud-task-key1\"\n}\n", "StatusCode": 200, "ResponseHeaders": { "accept-ranges": "none", "content-type": "application/json; charset=UTF-8", "date": "Wed, 28 Oct 2026 13:07:53 GMT", "server": "ESF", "transfer-encoding": "chunked", "vary": [ "X-Origin", "Referer", "Origin,Accept-Encoding" ], "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0" } } ]
Use the Cloud Tasks connection in an integration
After you create the connection, it becomes available in both Apigee Integration and Application Integration. You can use the connection in an integration through the Connectors task.
- To understand how to create and use the Connectors task in Apigee Integration, see Connectors task.
- To understand how to create and use the Connectors task in Application Integration, see Connectors task.
Get help from the Google Cloud community
You can post your questions and discuss this connector in the Google Cloud community at Cloud Forums.What's next
- Understand how to suspend and resume a connection.
- Understand how to monitor connector usage.
- Understand how to view connector logs.