UPDATE SECRET

Syntax

UPDATE SECRET secret_name WITH (secret_parameter = value [, ...]);

Description

Updates a new Secret within the Organization.

Arguments

secret_name

Name of the Secret to update. For case-sensitive names, the name must be wrapped in double quotes, otherwise, the lowercased name will be used.

WITH (secret_parameter = value [, …​ ])

This clause specifies Secret parameters; see Secret Parameters for more information.

Secret Parameters

Parameters to be used if type is GENERIC_SECRET:

Examples

Update a GENERIC_SECRET

The following updates a Secret named my_secret:

UPDATE SECRET 
    my_secret
WITH ( 
    'secret_string' = 'SGVsbG8gdXBkYXRlZCBEZWx0YXNTdHJlYW0hCg==', 
    'description' = 'This is an updated generic_string secret'
);

Last updated