Skip to main content
client.secrets().getSecret() fetches one secret from a folder in an environment of a project. The machine identity needs a role in the project that can read secrets, such as Viewer.

Parameters

GetSecretOptions
required

Returns

Secret
The secret.