Returns a list of executions which belong to the workflow with the given
name. The method returns executions of all workflow revisions. Returned
executions are ordered by their start time (newest first).

## Arguments

| Parameters ||
|---|---|
| `parent` | `string` Required. Name of the workflow for which the executions should be listed. Format: projects/{project}/locations/{location}/workflows/{workflow} |
| `filter` | `string` Optional. Filters applied to the `[Executions.ListExecutions]` results. The following fields are supported for filtering: `executionId`, `state`, `createTime`, `startTime`, `endTime`, `duration`, `workflowRevisionId`, `stepName`, `label`, and `disableConcurrencyQuotaOverflowBuffering`. For details, see AIP-160. For more information, see Filter executions. For example, if you are using the Google APIs Explorer: `state="SUCCEEDED"` or `startTime>"2023-08-01" AND state="FAILED"` |
| `orderBy` | `string` Optional. Comma-separated list of fields that specify the ordering applied to the `[Executions.ListExecutions]` results. By default the ordering is based on descending `createTime`. The following fields are supported for ordering: `executionId`, `state`, `createTime`, `startTime`, `endTime`, `duration`, and `workflowRevisionId`. For details, see AIP-132. |
| `pageSize` | `integer (https://developers.google.com/discovery/v1/type-format?tenant=cloud format)` Maximum number of executions to return per call. Max supported value depends on the selected Execution view: it's 1000 for BASIC and 100 for FULL. The default value used if the field is not specified is 100, regardless of the selected view. Values greater than the max value will be coerced down to it. |
| `pageToken` | `string` A page token, received from a previous `ListExecutions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListExecutions` must match the call that provided the page token. Note that pagination is applied to dynamic data. The list of executions returned can change between page requests. |
| `view` | `enum` Optional. A view defining which fields should be filled in the returned executions. The API will default to the BASIC view. |
| `EXECUTION_VIEW_UNSPECIFIED` | The default / unset value. |
| `BASIC` | Includes only basic metadata about the execution. The following fields are returned: name, start_time, end_time, duration, state, and workflow_revision_id. |
| `FULL` | Includes all data. |

## Raised exceptions

| Exceptions ||
|---|---|
| `ConnectionError` | In case of a network problem (such as DNS failure or refused connection). |
| `HttpError` | If the response status is \>= 400 (excluding 429 and 503). |
| `TimeoutError` | If a long-running operation takes longer to finish than the specified timeout limit. |
| `TypeError` | If an operation or function receives an argument of the wrong type. |
| `ValueError` | If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |

## Response

If successful, the response contains an instance of [`ListExecutionsResponse`](https://cloud.google.com/workflows/docs/reference/googleapis/workflowexecutions/v1/Overview#ListExecutionsResponse).

## Subworkflow snippet

Some fields might be optional or required.
To identify required fields, refer to the [API documentation](https://cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions/list).

### YAML

```yaml
- list:
    call: googleapis.workflowexecutions.v1.projects.locations.workflows.executions.list
    args:
        parent: ...
        filter: ...
        orderBy: ...
        pageSize: ...
        pageToken: ...
        view: ...
    result: listResult
```

### JSON

```json
[
  {
    "list": {
      "call": "googleapis.workflowexecutions.v1.projects.locations.workflows.executions.list",
      "args": {
        "parent": "...",
        "filter": "...",
        "orderBy": "...",
        "pageSize": "...",
        "pageToken": "...",
        "view": "..."
      },
      "result": "listResult"
    }
  }
]
```