()
| 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 | } |