MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / getSecret

Function getSecret

secret-manager/deleteSecretLabel.js:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 const client = new SecretManagerServiceClient();
30
31 async function getSecret() {
32 const [secret] = await client.getSecret({
33 name: name,
34 });
35
36 return secret;
37 }
38
39 async function deleteSecretLabel() {
40 const oldSecret = await getSecret();

Callers 1

deleteSecretLabelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected