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

Function callGetTpuVM

tpu/getVM.js:39–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 const zone = 'europe-west4-a';
38
39 async function callGetTpuVM() {
40 const request = {
41 name: `projects/${projectId}/locations/${zone}/nodes/${nodeName}`,
42 };
43
44 const [response] = await tpuClient.getNode(request);
45
46 console.log(`Node: ${nodeName} retrived.`);
47 return response;
48 }
49
50 return await callGetTpuVM();
51 // [END tpu_vm_get]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected