GKE Hub API . projects . locations . global_ . memberships

Instance Methods

close()

Close httplib2 connections.

initializeHub(project, body=None, x__xgafv=None)

Initializes the Hub in this project, which includes creating the default Hub Service Account and the Hub Workload Identity Pool. Initialization is optional, and happens automatically when the first Membership is created. InitializeHub should be called when the first Membership cannot be registered without these resources. A common example is granting the Hub Service Account access to another project, which requires the account to exist first.

Method Details

close()
Close httplib2 connections.
initializeHub(project, body=None, x__xgafv=None)
Initializes the Hub in this project, which includes creating the default Hub Service Account and the Hub Workload Identity Pool. Initialization is optional, and happens automatically when the first Membership is created. InitializeHub should be called when the first Membership cannot be registered without these resources. A common example is granting the Hub Service Account access to another project, which requires the account to exist first.

Args:
  project: string, Required. The Hub to initialize, in the format `projects/*/locations/*/memberships/*`. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for the InitializeHub method.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for the InitializeHub method.
  "serviceIdentity": "A String", # Name of the Hub default service identity, in the format: service-@gcp-sa-gkehub.iam.gserviceaccount.com The service account has `roles/gkehub.serviceAgent` in the Hub project.
  "workloadIdentityPool": "A String", # The Workload Identity Pool used for Workload Identity-enabled clusters registered with this Hub. Format: `.hub.id.goog`
}