# Method: projects.locations.environments.userWorkloadsSecrets.list

- [HTTP request](https://docs.cloud.google.com/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets/list#body.request_body)
- [Response body](https://docs.cloud.google.com/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets/list#body.ListUserWorkloadsSecretsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets/list#body.aspect)
- [Try it!](https://docs.cloud.google.com/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets/list#try-it)

Lists user workloads Secrets.

This method is supported for Cloud Composer environments in versions composer-3-airflow-\*.\*.\*-build.\* and newer.

### HTTP request

`GET https://composer.googleapis.com/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. List Secrets in the given environment, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `composer.userworkloadssecrets.list` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Optional. The maximum number of Secrets to return. |
| `pageToken` | `string` Optional. The nextPageToken value returned from a previous List request, if any. |

### Request body

The request body must be empty.

### Response body

The user workloads Secrets for a given environment.

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

| JSON representation |
|---|
| ``` { "userWorkloadsSecrets": [ { object (`https://docs.cloud.google.com/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets#UserWorkloadsSecret`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `userWorkloadsSecrets[]` | ``object (`https://docs.cloud.google.com/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets#UserWorkloadsSecret`)`` The list of Secrets returned by a ListUserWorkloadsSecretsRequest. |
| `nextPageToken` | `string` The page token used to query for the next page if one exists. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

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