Um Apigee hybrid zu verwenden, müssen Sie die folgenden APIs für das Projekt in der Google Cloud Console aktivieren:
Apigee API: Bietet die Kommunikation zwischen Ihrem Projekt und anderen Hybriddiensten und Google Cloud APIs.
Apigee Connect API: Ermöglicht die Kommunikation zwischen der Apigee-Verwaltungsebene und dem MART-Dienst auf der Laufzeitebene.
Cloud Pub/Sub API: Erforderlich für den Betrieb des Kontingents.
Cloud Resource Manager API: Wird von Hybrid zum Validieren von Dienstkonten verwendet
Compute Engine API: Wird für die Clusterverwaltung verwendet (nur für GKE-basierte Cluster).
Kubernetes Engine API:Aktivieren Sie diese Option, wenn Sie Google Kubernetes Engine (GKE) oder GKE On-Prem (Anthos) für Ihre Hybridlaufzeit installieren möchten.
Aktivieren Sie die erforderlichen APIs in Ihrem Google Cloud-Projekt:
Sie können die APIs über die Befehlszeile oder über die Benutzeroberfläche der Google Cloud Console aktivieren.
Benutzeroberfläche der Google Cloud
Um die APIs über die Benutzeroberfläche zu aktivieren, führen Sie folgende Schritte aus:
Wenn Sie die Seite API-Bibliothek nicht sehen, wählen Sie APIs & Dienste > Bibliothek im Navigationsmenü.
Prüfen Sie, ob das richtige Projekt ausgewählt ist.
Suchen Sie in der Ansicht API-Bibliothek nach "Apigee".
Google Cloud zeigt eine Liste von APIs an, die mit „Apigee“ übereinstimmen
Suchen Sie den Dienst Apigee API und klicken Sie darauf.
Klicken Sie in der Apigee API-Ansicht auf Enable.
Google Cloud aktiviert die Apigee API für Ihr Google Cloud-Projekt. Wiederholen Sie diese Schritte, um weitere APIs zu aktivieren.
Aktivieren Sie die Apigee Connect API:
Cloud Pub/Sub API aktivieren.
Aktivieren Sie die Cloud Resource Manager API.
(Nur für GKE-basierte Cluster) Aktivieren Sie die Google Kubernetes Engine API.
Aktivieren Sie die Compute Engine API nur (GKE-basierte und OpenShift-basierte Cluster).
(Nur OpenShift-basierte Cluster) Aktivieren Sie diese APIs:
Google Cloud APIs
Cloud DNS API
API für Identitäts- und Zugriffsverwaltung (IAM)
IAM Service Account Credentials API
Service Management API
Service Usage API
Google Cloud Storage JSON API
Cloud Storage
Wählen Sie APIs & Dienste > Dashboard aus, um zu bestätigen, dass Sie die APIs aktiviert haben. Die soeben hinzugefügten APIs werden in der Liste der aktivierten APIs angezeigt.
gcloud-CLI
Um die APIs über die Befehlszeile zu aktivieren, führen Sie die folgenden Schritte aus:
Öffnen Sie ein Terminalfenster auf dem Gerät, mit dem Sie Apigee verwalten.
Prüfen Sie, ob gcloud in Ihrer lokalen Shell installiert ist. Führen Sie dazu den folgenden Befehl aus. Das gcloud-Tool stellt die primäre Befehlszeilenschnittstelle für Cloud bereit.
Weitere Informationen zum Aktivieren von APIs in der Google Cloud Console finden Sie unter API im Google Cloud-Projekt aktivieren in der Cloud-Dokumentation.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-28 (UTC)."],[[["\u003cp\u003eThis documentation pertains to Apigee hybrid version 1.7, which is end-of-life, and users should upgrade to a newer version.\u003c/p\u003e\n"],["\u003cp\u003eUtilizing Apigee hybrid requires enabling specific APIs in your Google Cloud project, including Apigee API, Apigee Connect API, Cloud Pub/Sub API, Cloud Resource Manager API, and others.\u003c/p\u003e\n"],["\u003cp\u003eAPIs can be enabled through the Google Cloud console UI, navigating to the API Library and selecting the respective API to enable.\u003c/p\u003e\n"],["\u003cp\u003eAlternatively, the \u003ccode\u003egcloud\u003c/code\u003e CLI tool can be used to enable the necessary APIs, with specific commands provided for GKE, OpenShift, and other Kubernetes platform installations.\u003c/p\u003e\n"],["\u003cp\u003eThe user needs to ensure they have set the \u003ccode\u003ePROJECT_ID\u003c/code\u003e variable correctly for use with \u003ccode\u003egcloud\u003c/code\u003e, and that all the required APIs are enabled by verifying via the command \u003ccode\u003egcloud services list --project $PROJECT_ID\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Step 3: Enable APIs\n\n| You are currently viewing version 1.7 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\nTo use Apigee hybrid, you must enable the following APIs for the project in the Google Cloud console:\n\n- **Apigee API:** Provides communication between your project and other hybrid services and Google Cloud APIs.\n- **Apigee Connect API:** Provides communication between the Apigee management plane and the MART service in the runtime plane.\n- **Cloud Pub/Sub API:** Required for quota to operate.\n- **Cloud Resource Manager API:** Used by hybrid to validate service accounts.\n- **Compute Engine API:** Used for cluster management (GKE-based clusters only).\n- **Kubernetes Engine API:** Enable if you plan to use Google Kubernetes Engine (GKE), or GKE on-prem (Anthos) on-prem for your hybrid runtime installation.\n\n### Enable the required APIs for your Google Cloud project:\n\n\nYou can use the CLI or the Google Cloud console UI to enable the APIs. \n\n### Google Cloud UI\n\n\nTo enable the APIs using the UI, perform the following steps:\n\n1. Open the [Google Cloud console\n API Library](https://console.cloud.google.com/apis/library) and log in with the account you created in [Step 1: Create a Google Cloud account](/apigee/docs/hybrid/v1.7/precog-gcpaccount).\n2. Select the project that you created in [Step 2: Create a Google Cloud project](/apigee/docs/hybrid/v1.7/precog-gcpproject).\n3. Enable the **Apigee API** as follows:\n 1. If you do not see the **API Library** page, select **APIs \\& Services \\\u003e\n Library** from the **Navigation menu** .\n\n 2. Make sure the correct project is selected.\n\n 3. In the **API Library** view search for \"Apigee\".\n\n Google Cloud displays a list of APIs matching \"Apigee\"\n 4. Locate the **Apigee API** service and click it.\n 5. \n 6. In the Apigee API view click **Enable** .\n\n Google Cloud enables the **Apigee API** for your Google Cloud project. Repeat these\n steps to enable additional APIs.\n4. Enable the **Apigee Connect API**.\n5. Enable the **Cloud Pub/Sub API**.\n6. Enable the **Cloud Resource Manager API**.\n7. (**GKE-based clusters only** ) Enable the **Google Kubernetes Engine API**.\n8. (**GKE-based and OpenShift-based clusters only** ) Enable the **Compute Engine API**.\n9. (**OpenShift-based clusters only** ) Enable these APIs:\n - **Google Cloud APIs**\n - **Cloud DNS API**\n - **Identity and Access Management (IAM) API**\n - **IAM Service Account Credentials API**\n - **Service Management API**\n - **Service Usage API**\n - **Google Cloud Storage JSON API**\n - **Cloud Storage**\n10. To confirm that you have enabled the APIs, select **APIs \\& Services \\\u003e\n Dashboard**. The APIs you just added are displayed in the list of enabled APIs.\n\n### gcloud CLI\n\n\nTo enable the APIs using the CLI, perform the following steps:\n\n1. Open a terminal window on the device you are using to manage Apigee.\n2. Be sure you have `gcloud` installed in your local shell by running the following command. The `gcloud` tool provides the primary command-line interface for Cloud. \n\n gcloud -h\n\n\n If you do not have `gcloud` installed,\n [install the Cloud SDK](https://cloud.google.com/sdk/install).\n3. Make sure you have the `PROJECT_ID` variable defined with the ID of the project you created in [Step 2: Create a Google Cloud project](/apigee/docs/hybrid/v1.7/precog-gcpproject): \n\n ```\n echo $PROJECT_ID\n ```\n\n\n If it is not, define the `PROJECT_ID` environment variable with the following\n command: \n\n ```\n export PROJECT_ID=your_project_id\n ```\n | **Note:** Do not include the period after the project ID.\n4. Select the tab for your intended installation to see the command to enable the APIs:\n\n ### GKE\n\n\n If you will be running your clusters in Google Cloud (GKE), enable the APIs with the\n following command: \n\n ```\n gcloud services enable \\\n apigee.googleapis.com \\\n apigeeconnect.googleapis.com \\\n cloudresourcemanager.googleapis.com \\\n compute.googleapis.com \\\n container.googleapis.com \\\n pubsub.googleapis.com --project $PROJECT_ID\n ```\n\n ### OpenShift\n\n\n If you will be running your clusters on OpenShift, enable the APIs with the\n following command: \n\n ```\n gcloud services enable \\\n apigee.googleapis.com \\\n apigeeconnect.googleapis.com \\\n cloudapis.googleapis.com \\\n cloudresourcemanager.googleapis.com \\\n compute.googleapis.com \\\n dns.googleapis.com \\\n iam.googleapis.com \\\n iamcredentials.googleapis.com \\\n pubsub.googleapis.com --project $PROJECT_ID\n servicemanagement.googleapis.com \\\n serviceusage.googleapis.com \\\n storage-api.googleapis.com \\\n storage-component.googleapis.com --project $PROJECT_ID\n ```\n\n ### Other Platforms\n\n\n Enable the APIs with the following command if you will be running your clusters in\n another Kubernetes platform,such as\n - GKE on-prem\n - Anthos on bare metal\n - AKS\n - GKE on AWS\n - EKS\n\n ```\n gcloud services enable \\\n apigee.googleapis.com \\\n apigeeconnect.googleapis.com \\\n cloudresourcemanager.googleapis.com \\\n pubsub.googleapis.com --project $PROJECT_ID\n ```\n5. Verify that all APIs are enabled using the following command: \n\n ```\n gcloud services list --project $PROJECT_ID\n ```\n\n\n The output should include all the APIs you just enabled, as in this example: \n\n ```verilog\n NAME TITLE\n apigee.googleapis.com Apigee API\n apigeeconnect.googleapis.com Apigee Connect API\n bigquery.googleapis.com BigQuery API\n bigquery.googleapis.com BigQuery API\n bigquerystorage.googleapis.com BigQuery Storage API\n cloudapis.googleapis.com Google Cloud APIs\n clouddebugger.googleapis.com Cloud Debugger API\n cloudresourcemanager.googleapis.com Cloud Resource Manager API\n cloudtrace.googleapis.com Cloud Trace API\n compute.googleapis.com Compute Engine API\n container.googleapis.com Kubernetes Engine API\n containeranalysis.googleapis.com Container Analysis API\n containerregistry.googleapis.com Container Registry API\n datastore.googleapis.com Cloud Datastore API\n iam.googleapis.com Identity and Access Management (IAM) API\n iamcredentials.googleapis.com IAM Service Account Credentials API\n logging.googleapis.com Cloud Logging API\n monitoring.googleapis.com Cloud Monitoring API\n oslogin.googleapis.com Cloud OS Login API\n pubsub.googleapis.com Cloud Pub/Sub API\n servicemanagement.googleapis.com Service Management API\n serviceusage.googleapis.com Service Usage API\n sql-component.googleapis.com Cloud SQL\n storage-api.googleapis.com Google Cloud Storage JSON API\n storage-component.googleapis.com Cloud Storage\n ```\n\nFor more information about enabling APIs in the Google Cloud console, see\n[Enabling an API in your Google Cloud project](/endpoints/docs/openapi/enable-api) in\nthe Cloud documentation.\n[1](/apigee/docs/hybrid/v1.7/precog-gcpaccount) [2](/apigee/docs/hybrid/v1.7/precog-gcpproject) [3](/apigee/docs/hybrid/v1.7/precog-enableapi) [(NEXT) Step 4: Create an organization](/apigee/docs/hybrid/v1.7/precog-provision) [5](/apigee/docs/hybrid/v1.7/precog-add-environment)\n\n\u003cbr /\u003e"]]