v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13226495.2 KB
projects

Creates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3-airflow-..-build. and newer.

post/v1/{+parent}/userWorkloadsSecrets

Path parameters

parentstring required

Required. The environment name to create a Secret for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

Request body

namestring

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

dataobject

Optional. The "data" field of Kubernetes Secret, organized in key-value pairs, which can contain sensitive values such as a password, a token, or a key. The values for all keys have to be base64-encoded strings. For details see: https://kubernetes.io/docs/concepts/configuration/secret/ Example: { "example": "ZXhhbXBsZV92YWx1ZQ==", "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" }

Response

Successful response