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

Function listKeyRings

kms/quickstart.js:34–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 const locationName = client.locationPath(projectId, locationId);
33
34 async function listKeyRings() {
35 const [keyRings] = await client.listKeyRings({
36 parent: locationName,
37 });
38
39 for (const keyRing of keyRings) {
40 console.log(keyRing.name);
41 }
42
43 return keyRings;
44 }
45
46 return listKeyRings();
47 // [END kms_quickstart]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected