Python GCP: Revision history

From Federal Burro of Information
Jump to navigationJump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

23 November 2022

  • curprev 20:1620:16, 23 November 2022David talk contribs 700 bytes −1 No edit summary
  • curprev 20:1620:16, 23 November 2022David talk contribs 701 bytes +701 Created page with " using discover to get the container service client. Then listing clusters. <pre> from googleapiclient import discovery from oauth2client.client import GoogleCredentials credentials = GoogleCredentials.get_application_default() service = discovery.build('container', 'v1', credentials=credentials) gcp_projects = ['project-1', 'project-2', 'project-3'] for project in gcp_projects: request = service.projects().zones().clusters().list(projectId=project, zone='-')..."