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

Function getInstance

compute/test/suspendResume.test.js:36–43  ·  view source on GitHub ↗
(projectId, zone, instanceName)

Source from the content-addressed store, hash-verified

34 const delay = ms => new Promise(res => setTimeout(res, ms));
35
36 const getInstance = async (projectId, zone, instanceName) => {
37 const [instance] = await instancesClient.get({
38 project: projectId,
39 zone,
40 instance: instanceName,
41 });
42 return instance;
43 };
44
45 after(async () => {
46 const instances = await getStaleVMInstances();

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected