Step 3: Enable APIs

To use Apigee hybrid, you must enable the following APIs for the project in the Google Cloud console:

  • Apigee API: Provides communications between your project and other hybrid services and GCP APIs
  • Cloud Resource Manager API: Used by hybrid to validate service accounts
  • Compute Engine API: Used for cluster management (GKE-based clusters only)
  • Kubernetes Engine API: Enable if you plan to use Google Kubernetes Engine (GKE) or GKE on-prem (GKE-based clusters only) for your hybrid runtime installation

You can use the CLI or the Google Cloud console UI to enable the APIs.

Google Cloud UI

To enable the APIs using the UI, perform the following steps:

  1. Open the Google Cloud console and log in with the account you created in Step 1: Create a Google Cloud account.
  2. Select the project that you created in Step 2: Create a Google Cloud project.
  3. Enable the Apigee API:
    1. Select APIs & Services > Library.

      The API Library view displays:

    2. Search for “Apigee”.

      GCP displays a list of APIs matching "Apigee"

    3. Locate the Apigee API service and click on it:

    4. Click Enable.

      GCP enables the Apigee API for your GCP project.

  4. Enable the Cloud Resource Manager API:
    1. In the API Library view, search for "Cloud Resource Manager".
    2. Locate the Cloud Resource Manager service and click on it.
    3. Click Enable.

      GCP enables the Cloud Resource Manager API for your GCP project.

  5. (GKE-based clusters only) Enable the Compute Engine API:
    1. In the API Library view, search for "Compute Engine".
    2. Locate the Compute Engine API service and click on it.
    3. Click Enable.

      Google Cloud enables the Compute Engine API for your project.

  6. To confirm that you have enabled the APIs, select APIs & Services > Dashboard.

    Your list of enabled APIs should include the APIs you just added, as the following example shows:

  7. (GKE-based clusters only) Enable the Kubernetes Engine API:
    1. In the API Library view, search for "Kubernetes Engine".
    2. Locate the Kubernetes Engine API service and click on it.
    3. Click Enable.

      Google Cloud enables the Kubernetes Engine API for your project.

    4. From the Navigation menu in the upper left corner of the screen, select APIs & Services > Library to return to the API selection page.

gcloud CLI

To enable the APIs using the CLI, perform the following steps:

  1. Open a terminal window on the device you are using to manage Apigee.
  2. Define the PROJECT_ID environment variable from Step 2: Create a Google Cloud project with the following command:
    export PROJECT_ID=your_project_id
    Project ID name with trailing period
  3. If you will be running your clusters in Google Cloud (GKE) as opposed to GKE on-prem (Anthos) or AKS, enable the APIs with the following command:

    gcloud services enable \
        apigee.googleapis.com \
        cloudresourcemanager.googleapis.com \
        compute.googleapis.com \
        container.googleapis.com  --project $PROJECT_ID
    

    For GKE on-prem (Anthos) or AKS installations, enable the APIs with the following command:

    gcloud services enable \
        apigee.googleapis.com \
        cloudresourcemanager.googleapis.com  --project $PROJECT_ID
    
  4. Verify that all APIs are enabled using the following command:
    gcloud services list

For more information about enabling APIs in Google Cloud console, see Enabling an API in your GCP project in the Cloud documentation.

Next step

1 2 3 (NEXT) Step 4: Create an organization 5