Method: projects.locations.environments.userWorkloadsSecrets.get

Gets an existing user workloads Secret. Values of the "data" field in the response are cleared.

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

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The resource name of the Secret to get, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}"

Authorization requires the following IAM permission on the specified resource name:

  • composer.userworkloadssecrets.get

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of UserWorkloadsSecret.

Authorization scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.