CREATE OBJECT (TYPE SECRET)
Warning
The syntax for managing secrets will change in future YDB releases.
The CREATE OBJECT (TYPE SECRET)
statement creates a secret.
Syntax
CREATE OBJECT <secret_name> (TYPE SECRET) WITH value="<secret_value>";
Parameters
secret_name
- the name of the secret.secret_value
- the contents of the secret.
Example
The following statement creates a secret named MySecretName
with MySecretData
as a value.
CREATE OBJECT MySecretName (TYPE SECRET) WITH value="MySecretData";