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

Function createKeyRing

kms/createKeyRing.js:39–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 const locationName = client.locationPath(projectId, locationId);
38
39 async function createKeyRing() {
40 const [keyRing] = await client.createKeyRing({
41 parent: locationName,
42 keyRingId: id,
43 });
44
45 console.log(`Created key ring: ${keyRing.name}`);
46 return keyRing;
47 }
48
49 return createKeyRing();
50 // [END kms_create_key_ring]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected