CREATE OBJECT (TYPE SECRET)
Alert
This command is deprecated and will be removed in future versions of YDB. The recommended syntax for working with secrets is described in the Secrets section.
The following SQL statement creates a secret:
CREATE OBJECT <secret_name> (TYPE SECRET) WITH value = "<secret_value>";
Where:
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";