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

Function quickstart

container/quickstart.js:25–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 const client = new container.v1.ClusterManagerClient();
24
25 async function quickstart() {
26 const zone = 'us-central1-a';
27 const projectId = await client.getProjectId();
28 const request = {
29 projectId: projectId,
30 zone: zone,
31 };
32
33 const [response] = await client.listClusters(request);
34 console.log('Clusters: ', response);
35 }
36 quickstart();
37 // [END container_quickstart]
38}

Callers 1

mainFunction · 0.70

Calls 1

getProjectIdMethod · 0.80

Tested by

no test coverage detected