- [HTTP request](https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions/list#body.request_body)
- [Response body](https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions/list#body.ListSoftwareVersionsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions/list#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions/list#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions/list#try-it)

Lists all software packages in lab and their versions.

### HTTP request

`GET https://devicerun.googleapis.com/v1alpha/{parent=projects/*/locations/*}/softwareVersions`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent of the collection of software versions. Format: `projects/{project}/locations/global`. It takes the form `projects/{project}/locations/{location}`. |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Optional. The maximum number of software versions to return. The server may return fewer items than this value. |
| `pageToken` | `string` Optional. A page token, received from a previous `softwareVersions.list` call. Provide this to receive the subsequent page. When paginating, all other parameters provided to `softwareVersions.list` must match the call that provided the page token. |
| `filter` | `string` Optional. An AIP-160 (<https://google.aip.dev/160>) filter expression restricting which software versions are returned. An empty filter returns all software versions. Filtering is supported over the `SoftwareVersion` fields, including nested fields via dot-path. Enum and string values must be double-quoted. Examples: \* `softwareType = "ANDROIDX_TEST_ORCHESTRATOR"` \* `softwareType = "ANDROIDX_TEST_ORCHESTRATOR" AND isDefault = true` \* `lifecycle.state = "ACTIVE"` \* `version = "1.4.1"` |

### Request body

The request body must be empty.

### Response body

Response includes listed software versions.

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

| JSON representation |
|---|
| ``` { "softwareVersions": [ { object (`https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions#SoftwareVersion`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `softwareVersions[]` | ``object (`https://docs.cloud.google.com/developer-device-platform/reference/device-run/rest/v1alpha/projects.locations.softwareVersions#SoftwareVersion`)`` The list of software versions. |
| `nextPageToken` | `string` Token to receive the next page of software versions. This will be absent if the end of the response list has been reached. |

### 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://docs.cloud.google.com/iam/docs) permission on the `parent` resource:

- `devicerun.softwareVersions.list`

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