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

Function createKeyVersion

kms/createKeyVersion.js:41–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 const keyName = client.cryptoKeyPath(projectId, locationId, keyRingId, keyId);
40
41 async function createKeyVersion() {
42 const [version] = await client.createCryptoKeyVersion({
43 parent: keyName,
44 });
45
46 console.log(`Created key version: ${version.name}`);
47 return version;
48 }
49
50 return createKeyVersion();
51 // [END kms_create_key_version]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected