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

Function getInstance

compute/test/disks.test.js:54–62  ·  view source on GitHub ↗
(projectId, zone, instanceName)

Source from the content-addressed store, hash-verified

52};
53
54const getInstance = async (projectId, zone, instanceName) => {
55 const [instance] = await instancesClient.get({
56 project: projectId,
57 zone,
58 instance: instanceName,
59 });
60
61 return instance;
62};
63
64const deleteDisk = async (projectId, zone, diskName) => {
65 const [response] = await disksClient.delete({

Callers 1

disks.test.jsFile · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected