> [!WARNING]
>
> **Preview**
>
>
> This feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

# 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](https://docs.cloud.google.com/integration-connectors/docs/network-connectivity-private.md.txt).
- Grant the `roles/connectors.admin` IAM 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.viewer`
  - `roles/secretmanager.secretAccessor`
  - `roles/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](https://docs.cloud.google.com/iam/docs/creating-managing-service-accounts#creating). The connector and the service account must belong to the same project. For more information, see [Service accounts overview](https://docs.cloud.google.com/iam/docs/service-accounts).

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](https://docs.cloud.google.com/service-usage/docs/enable-disable.md.txt#enabling).

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:

1. 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](https://console.cloud.google.com//integration/connectors/connections)
2. Click **+ Create new** to open the **Create Connection** page.
3. In the **Location** section, choose the location for the connection.
   - **Region**: Select a location from the drop-down list.

   For the list of all the supported regions, see [Locations](https://docs.cloud.google.com/integration-connectors/docs/locations.md.txt).
4. Click **Next**.
5. 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](https://docs.cloud.google.com/integration-connectors/docs/pricing#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.
6. Click **Next**.
7. **Review**: Review your connection.
8. 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')](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp_1).

Google Cloud Tasks [Connection-2 (Service Account Authentication)](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp_2).

### 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](https://developers.google.com/identity/protocols/oauth2/scopes).

### 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:

- [Create Client credentials](https://developers.google.com/workspace/guides/create-credentials#oauth-client-id)
- [Cloud Tasks REST API reference](https://docs.cloud.google.com/tasks/docs/reference/rest.md.txt)

## 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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-0).

#### Example: projects.locations.get

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.get` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-1).

#### Example: projects.locations.getCmekConfig

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.getCmekConfig` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-2).

#### Example: projects.locations.list

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.list` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-3).

#### Example: projects.locations.queues.create

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.create` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-4).

#### Example: projects.locations.queues.delete

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.delete` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-5).

#### Example: projects.locations.queues.get

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.get` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-6).

#### Example: projects.locations.queues.getIamPolicy

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.getIamPolicy` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-7).

#### Example: projects.locations.queues.list

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.list` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-8).

#### Example: projects.locations.queues.patch

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.patch` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-9).

#### Example: projects.locations.queues.pause

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.pause` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-10).

#### Example: projects.locations.queues.purge

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.purge` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-11).

#### Example: projects.locations.queues.resume

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.resume` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-12).

#### Example: projects.locations.queues.setIamPolicy

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.setIamPolicy` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-13).

#### Example: projects.locations.queues.tasks.buffer

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.tasks.buffer` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-14).

#### Example: projects.locations.queues.tasks.create

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.tasks.create` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-15).

#### Example: projects.locations.queues.tasks.delete

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.tasks.delete` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-16).

#### Example: projects.locations.queues.tasks.get

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.tasks.get` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-17).

#### Example: projects.locations.queues.tasks.list

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.tasks.list` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-18).

#### Example: projects.locations.queues.tasks.run

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.tasks.run` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-19).

#### Example: projects.locations.queues.testIamPermissions

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.queues.testIamPermissions` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/integration-connectors/docs/connectors/cloudtasks/configure.md.txt#examp-20).

#### Example: projects.locations.updateCmekConfig

1. In the **Configure connector task** dialog, click **Actions**.
2. Select the `projects.locations.updateCmekConfig` action, and then click **Done**.
3. In the **Task Input** section of the **Connectors** task, click `connectorInputPayload` and then enter a value similar to the following in the **Default Value** field:

   ```json
   {
     "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:

```json
[
  {
    "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](https://docs.cloud.google.com/apigee/docs/api-platform/integration/connectors-task#configure-the-connectors-task).
- To understand how to create and use the Connectors task in Application Integration, see [Connectors task](https://docs.cloud.google.com/application-integration/docs/configure-connectors-task.md.txt).

## Get help from the Google Cloud community

You can post your questions and discuss this connector in the Google Cloud community at [Cloud Forums](https://www.googlecloudcommunity.com/gc/Integration-Services/bd-p/cloud-integration-services).

## What's next

- Understand how to [suspend and resume a connection](https://docs.cloud.google.com/integration-connectors/docs/suspend-resume-connection.md.txt).
- Understand how to [monitor connector usage](https://docs.cloud.google.com/integration-connectors/docs/cloud-monitoring.md.txt).
- Understand how to [view connector logs](https://docs.cloud.google.com/integration-connectors/docs/view-connector-logs.md.txt).