Provision API hub using a script

This page applies to Apigee and Apigee hybrid.

This document describes how to provision API hub using a script.

Summary of steps

The provisioning steps are as follows:

  1. Verify that you have met the API hub prerequisites.
  2. Enable APIs. Apigee requires you to enable several Google Cloud APIs.
  3. Download (or create) the script.
  4. Run the script.
  5. Wait 30 minutes for provisioning to complete.

Provisioning steps

To provision API hub using a script:

  1. Download the script:
    1. Navigate to provision-apihub.sh.
    2. Right-click Raw and then click Save Link As.
    3. Click Save.
  2. Run the script:

    provision-apihub.sh -u USER_EMAIL -p PROJECT_ID -l RUNTIME_LOCATION -r KEY_RING_NAME -k KEY_NAME
    

    Where:

    • USER_EMAIL is a Google Cloud account with billing enabled.
    • PROJECT_ID is a Google Cloud project.
    • RUNTIME_LOCATION is chosen location for the instance.
    • KEY_RING_NAME is the CMEK key ring name.
    • KEY_NAME is the CMEK key name.
  3. Wait 30 minutes for provisioning to complete.

Next steps

See Next steps for some tips on how to get started using API hub.