# Method: projects.locations.terraformVersions.list

- [HTTP request](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions/list#body.request_body)
- [Response body](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions/list#body.ListTerraformVersionsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions/list#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions/list#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions/list#try-it)

Lists `https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions#TerraformVersion`s in a given project and location.

### HTTP request

`GET https://config.googleapis.com/v1/{parent=projects/*/locations/*}/terraformVersions`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent in whose context the TerraformVersions are listed. The parent value is in the format: 'projects/{projectId}/locations/{location}'. It takes the form `projects/{project}/locations/{location}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `config.terraformversions.list` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Optional. When requesting a page of terraform versions, 'pageSize' specifies number of terraform versions to return. If unspecified, at most 500 will be returned. The maximum value is 1000. |
| `pageToken` | `string` Optional. Token returned by previous call to 'terraformVersions.list' which specifies the position in the list from where to continue listing the terraform versions. |
| `filter` | `string` Optional. Lists the TerraformVersions that match the filter expression. A filter expression filters the resources listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '\<', '\>', '\<=', '\>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. |
| `orderBy` | `string` Optional. Field to use to sort the list. |

### Request body

The request body must be empty.

### Response body

The response message for the `terraformVersions.list` method.

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

| JSON representation |
|---|
| ``` { "terraformVersions": [ { object (`https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions#TerraformVersion`) } ], "nextPageToken": string, "unreachable": [ string ] } ``` |

| Fields ||
|---|---|
| `terraformVersions[]` | ``object (`https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions#TerraformVersion`)`` List of `https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.terraformVersions#TerraformVersion`s. |
| `nextPageToken` | `string` Token to be supplied to the next terraformVersions.list request via `pageToken` to obtain the next set of results. |
| `unreachable[]` | `string` Unreachable resources, if any. |

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

- `config.googleapis.com/config.terraformversions.list`

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