UPSERT OBJECT (TYPE SECRET)

Warning

The syntax for managing secrets will change in future YDB releases.

To change the contents of a secret, use the following statement:

UPSERT OBJECT `secret_name` (TYPE SECRET) WITH value = `secret_value`;

Where:

  • secret_name — Name of the secret.
  • secret_value — Secret payload.

Example

The following statement sets the secret named MySecretName to MySecretData:

UPSERT OBJECT `MySecretName` (TYPE SECRET) WITH value = `MySecretData`;
Previous
Next