# Method: projects.locations.integrations.executions.list

- [HTTP request](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#body.request_body)
- [Response body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#body.ListExecutionsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#body.aspect_1)
- [Execution](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#Execution)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#Execution.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#State)
- [ReplayInfo](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#ReplayInfo)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#ReplayInfo.SCHEMA_REPRESENTATION)
- [ReplayMode](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#ReplayMode)
- [CloudLoggingDetails](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#CloudLoggingDetails)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#CloudLoggingDetails.SCHEMA_REPRESENTATION)
- [CloudLoggingSeverity](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#CloudLoggingSeverity)
- [Try it!](https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#try-it)

Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.

### HTTP request

`GET https://integrations.googleapis.com/v2/{parent=projects/*/locations/*/integrations/*}/executions`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. parent resource name of integration execution. |

### Query parameters

| Parameters ||
|---|---|
| `filter` | `string` Optional. Standard filter field, we support filtering on following fields: integrationName: the name of the integration. createTime: the execution created time. updateTime: the execution last update time. state: the state of the executions. executionId: the id of the execution. triggerId: the id of the trigger. All fields support for EQUALS, in additional: createTime and updateTime support for LESS_THAN, GREATER_THAN Also supports operators like AND, OR, NOT For example: triggerId="id1" AND integrationName="testIntegration" |
| `pageSize` | `integer` Optional. The size of entries in the response. |
| `pageToken` | `string` Optional. The token returned in the previous response. |
| `readMask` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` format)`` Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in execution info will be filled and returned. This is a comma-separated list of fully qualified names of fields. Example: `"user.displayName,photo"`. |

### Request body

The request body must be empty.

### Response body

Response for listing the Integration executions.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "executions": [ { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#Execution`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `executions[]` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#Execution`)`` Required. The list of executions. |
| `nextPageToken` | `string` The token for retrieving the next page of results. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `integrations.executions.list`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).

## Execution

The Execution contains detailed information of an individual integration execution.

| JSON representation |
|---|
| ``` { "name": string, "triggerId": string, "state": enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#State`), "requestVariables": { object }, "responseVariables": { object }, "taskExecutions": [ { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions.taskExecutions#TaskExecution`) } ], "integrationVersionNumber": string, "createTime": string, "updateTime": string, "containTaskVariables": boolean, "executionAttemptStats": [ { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions.taskExecutions#AttemptStats`) } ], "replayInfo": { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#ReplayInfo`) }, "cloudLoggingDetails": { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#CloudLoggingDetails`) }, "integrationVersionUserLabel": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Execution resource name. |
| `triggerId` | `string` The ID of the trigger invoked at the start of the execution. |
| `state` | ``enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#State`)`` Output only. Status of the execution. |
| `requestVariables` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. Variables provided in the request. |
| `responseVariables` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. Variables returned as part of the response. |
| `taskExecutions[]` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions.taskExecutions#TaskExecution`)`` Optional. List of task executions. |
| `integrationVersionNumber` | `string (https://developers.google.com/discovery/v1/type-format format)` Indicates which snapshot of integration is used for this execution. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Time the execution is created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Time the execution is recently updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `containTaskVariables` | `boolean` Indicates if the task execution contains variables. |
| `executionAttemptStats[]` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions.taskExecutions#AttemptStats`)`` Start and end time of each execution attempt. |
| `replayInfo` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#ReplayInfo`)`` Output only. Replay info for the execution |
| `cloudLoggingDetails` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#CloudLoggingDetails`)`` Cloud Logging details for the integration version |
| `integrationVersionUserLabel` | `string` Optional. User-defined label that annotates the executed integration version. |

## State

State of execution.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Default. |
| `ON_HOLD` | Execution is scheduled and awaiting to be triggered. |
| `IN_PROCESS` | Execution is processing. |
| `SUCCEEDED` | Execution successfully finished. There are no more changes after this state. |
| `FAILED` | Execution failed. There's no more change after this state. |
| `CANCELLED` | Execution is cancelled. There's no more change after this state. |
| `RETRY_ON_HOLD` | Execution failed and is waiting for retry. |
| `SUSPENDED` | Execution suspended and waiting for manual intervention. |

## ReplayInfo

Contains the details of the execution info: this includes the replay reason and replay tree connecting executions in a parent-child relationship

| JSON representation |
|---|
| ``` { "originalExecutionId": string, "replayedExecutionIds": [ string ], "replayReason": string, "replayMode": enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#ReplayMode`) } ``` |

| Fields ||
|---|---|
| `originalExecutionId` | `string` If this execution is a replay of another execution, then this field contains the original execution id. |
| `replayedExecutionIds[]` | `string` If this execution has been replayed, then this field contains the execution ids of the replayed executions. |
| `replayReason` | `string` reason for replay |
| `replayMode` | ``enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#ReplayMode`)`` Replay mode for the execution |

## ReplayMode

Replay mode for the execution.

| Enums ||
|---|---|
| `REPLAY_MODE_UNSPECIFIED` | Default value. |
| `REPLAY_MODE_FROM_BEGINNING` | Replay the original execution from the beginning. |
| `REPLAY_MODE_POINT_OF_FAILURE` | Replay the execution from the first failed task. |

## CloudLoggingDetails

Cloud Logging details for execution info

| JSON representation |
|---|
| ``` { "cloudLoggingSeverity": enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#CloudLoggingSeverity`), "enableCloudLogging": boolean } ``` |

| Fields ||
|---|---|
| `cloudLoggingSeverity` | ``enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrations.executions/list#CloudLoggingSeverity`)`` Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. |
| `enableCloudLogging` | `boolean` Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. |

## CloudLoggingSeverity

The severity will be mapped to the Integration Execution State.

| Enums ||
|---|---|
| `CLOUD_LOGGING_SEVERITY_UNSPECIFIED` | Unspecified |
| `INFO` | If Severity selected is `INFO`, then all the Integration Execution States (`IN_PROCESS`, `ON_HOLD`, `SUCCEEDED`, `SUSPENDED`, `ERROR`, `CANCELLED`) will be sent to Cloud Logging. |
| `ERROR` | If Severity selected is `ERROR`, then only the following Integration Execution States (`ERROR`, `CANCELLED`) will be sent to Cloud Logging. |
| `WARNING` | If Severity selected is `WARNING`, then only the following Integration Execution States (`ERROR`, `CANCELLED`) will be sent to Cloud Logging. |