如要使用 Apigee Hybrid,您必須啟用下列服務 API (另有註明者除外):
| 工作 | 說明 |
|---|---|
| Apigee API | 在專案與其他混合式服務和 Google Cloud API 之間提供通訊。 |
| Apigee Connect API | 在 Apigee 管理層和執行階段層之間提供通訊。 |
| Cloud Pub/Sub API | Apigee 配額功能運作時需要此項目。 |
| Cloud Resource Manager API | 混合式服務會使用這項設定驗證服務帳戶。 |
| Kubernetes Engine API | 如果您打算使用 Google Kubernetes Engine (GKE) 或 GKE On-Prem (Anthos) 安裝混合式執行階段,請啟用這項服務。 |
| Compute Engine API | 用於叢集管理 (僅限以 GKE 和 OpenShift on Google Cloud 為基礎的叢集)。 |
| Google Cloud API | 這是 Google Cloud API 的中繼服務,方便您使用 (僅限以 OpenShift on Google Cloud 為基礎的叢集)。 |
| Cloud DNS API | Google Cloud DNS 是一項穩固可靠、可擴充的權威網域名稱系統 (DNS) 代管服務,採用與 Google 相同的基礎架構。(僅限以 Google Cloud 為基礎的 OpenShift 叢集)。 |
| Identity and Access Management (IAM) API | 管理 Google Cloud Platform 資源的身分識別和存取控制功能,包括建立服務帳戶,讓您用來向 Google 驗證身分並進行 API 呼叫。(僅限以 Google Cloud 為基礎的 OpenShift 叢集)。 |
| IAM Service Account Credentials API | 開發人員可透過 Service Account Credentials API,為 Google Cloud 上的服務帳戶建立短期、權限受限的憑證。(僅限以 Google Cloud 為基礎的 OpenShift 叢集)。 |
| Service Management API | 服務生產者可透過 Google Service Management 在 Google Cloud Platform 上發布服務,供服務消費者探索及使用。(僅限以 Google Cloud 為基礎的 OpenShift 叢集)。 |
| Service Usage API | 啟用服務用戶要在 Google Cloud Platform 上使用的服務、列出可用或已啟用的服務,或是停用服務用戶不再使用的服務。(僅限以 Google Cloud 為基礎的 OpenShift 叢集)。 |
| Google Cloud Storage JSON API | 可讓您儲存及擷取可能很大且無法改變的資料物件 (僅限以 Google Cloud 為基礎的 OpenShift 叢集)。 |
| Cloud Storage | Google Cloud Storage 是專為儲存及存取 Google 基礎架構資料且符合 REST 樣式的服務。(僅限以 Google Cloud 為基礎的 OpenShift 叢集)。 |
按照下列步驟,使用 gcloud 啟用必要的 API。如要使用 Cloud Console 啟用 API,請按照下列步驟操作:
- 完成必要條件,並確認您已在本機殼層中安裝 gcloud CLI:
gcloud -h -
建立
PROJECT_ID環境變數,值為您打算用於 Apigee Hybrid 的 Google Cloud 專案 ID。專案 ID 是專屬字串,用於區分 Google Cloud 中的專案。 如有需要,請參閱「找出專案 ID」:export PROJECT_ID=YOUR_PROJECT_ID
- 選取要安裝的項目分頁,查看啟用 API 的指令:
GKE
如果您要在 Google Cloud (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_IDGoogle Cloud 中的 OpenShift
如果您要在 Google Cloud 上的 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 --project $PROJECT_ID servicemanagement.googleapis.com \ serviceusage.googleapis.com \ storage-api.googleapis.com \ storage-component.googleapis.com --project $PROJECT_ID其他平台
如果您要在其他 Kubernetes 平台 (例如
- GKE On-Prem
- 裸機中的 Anthos
- AKS
- GKE on AWS
- EKS
gcloud services enable \ apigee.googleapis.com \ apigeeconnect.googleapis.com \ cloudresourcemanager.googleapis.com \ pubsub.googleapis.com --project $PROJECT_ID -
使用下列指令,確認所有 API 均已啟用:
gcloud services list --project $PROJECT_ID
輸出內容應包含您剛啟用的所有 API,如以下範例所示:
NAME TITLE apigee.googleapis.com Apigee API apigeeconnect.googleapis.com Apigee Connect API bigquery.googleapis.com BigQuery API bigquery.googleapis.com BigQuery API bigquerystorage.googleapis.com BigQuery Storage API cloudapis.googleapis.com Google Cloud APIs clouddebugger.googleapis.com Cloud Debugger API cloudresourcemanager.googleapis.com Cloud Resource Manager API cloudtrace.googleapis.com Cloud Trace API compute.googleapis.com Compute Engine API container.googleapis.com Kubernetes Engine API containeranalysis.googleapis.com Container Analysis API containerregistry.googleapis.com Container Registry API datastore.googleapis.com Cloud Datastore API iam.googleapis.com Identity and Access Management (IAM) API iamcredentials.googleapis.com IAM Service Account Credentials API logging.googleapis.com Cloud Logging API monitoring.googleapis.com Cloud Monitoring API oslogin.googleapis.com Cloud OS Login API pubsub.googleapis.com Cloud Pub/Sub API servicemanagement.googleapis.com Service Management API serviceusage.googleapis.com Service Usage API sql-component.googleapis.com Cloud SQL storage-api.googleapis.com Google Cloud Storage JSON API storage-component.googleapis.com Cloud Storage
後續步驟
請前往步驟 2:建立機構。