步驟 1:啟用 API

Apigee Hybrid 需要特定 Google Cloud 服務 API。在這個步驟中,您將啟用安裝平台所需的 API。

按照下列步驟,使用 gcloud 啟用必要的 API。如要使用 Cloud Console 啟用 API,請按照下列步驟操作:

  1. 完成必要條件,並確認您已在本機殼層中安裝 gcloud CLI
    gcloud --help
  2. 建立 PROJECT_ID 環境變數,值為您打算用於 Apigee Hybrid 的 Google Cloud 專案 ID。專案 ID 是專屬字串,用於區分 Google Cloud 中的專案。 如有需要,請參閱「找出專案 ID」:
    export PROJECT_ID=YOUR_PROJECT_ID
  3. 選取要安裝的項目分頁,查看啟用 API 的指令:

    OpenShift

    如果您要在 OpenShift 上執行叢集,請使用下列指令啟用 API:

    gcloud services enable \
        apigee.googleapis.com \
        apigeeconnect.googleapis.com \
        cloudapis.googleapis.com \
        cloudresourcemanager.googleapis.com \
        compute.googleapis.com \
        dns.googleapis.com \
        iam.googleapis.com \
        iamcredentials.googleapis.com \
        pubsub.googleapis.com \
        servicemanagement.googleapis.com \
        serviceusage.googleapis.com \
        storage-api.googleapis.com \
        storage-component.googleapis.com  --project $PROJECT_ID
    

    其他平台

    如果您要在下列任一平台上執行叢集,請執行下方指令來啟用必要 API:

    • 適用於 VMware 或裸機的 Google Distributed Cloud 軟體
    • AKS
    • GKE on AWS
    • EKS
    gcloud services enable \
        apigee.googleapis.com \
        apigeeconnect.googleapis.com \
        cloudresourcemanager.googleapis.com \
        pubsub.googleapis.com  --project $PROJECT_ID

    Google Cloud 中的 GKE

    如果您要在 Google Kubernetes Engine (GKE) 上執行叢集,請執行下列指令來啟用必要 API:

      gcloud services enable \
          apigee.googleapis.com \
          apigeeconnect.googleapis.com \
          cloudresourcemanager.googleapis.com \
          compute.googleapis.com \
          container.googleapis.com \
          pubsub.googleapis.com --project $PROJECT_ID
      
  4. (選用) 執行下列指令,確認必要的 API 已啟用。 如果傳回的清單中包含必要的 API,表示這些 API 已啟用。
    gcloud services list --project $PROJECT_ID

後續步驟

請前往步驟 2:建立機構