Method: projects.locations.environments.userWorkloadsSecrets.create

Creates a user workloads Secret.

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 environment name to create a Secret for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

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

  • composer.userworkloadssecrets.create

Request body

The request body contains an instance of UserWorkloadsSecret.

Response body

If successful, the response body contains a newly created instance of UserWorkloadsSecret.

Authorization scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.