שלב 1: הפעלת ממשקי API

כדי להשתמש ב-Apigee Hybrid, צריך (אלא אם צוין אחרת) להפעיל את ממשקי ה-API של השירותים הבאים:

משימה תיאור
Apigee API השירות מאפשר תקשורת בין הפרויקט שלכם לבין שירותים היברידיים אחרים וממשקי Google Cloud API.
Apigee Connect API הוא מספק תקשורת בין מישור הניהול של Apigee לבין מישור זמן הריצה.
Cloud Pub/Sub API נדרש כדי להפעיל את תכונת המכסות של Apigee.
Cloud Resource Manager API משמש את Hybrid לאימות חשבונות שירות.
Kubernetes Engine API מפעילים את האפשרות הזו אם מתכננים להשתמש ב-Google Kubernetes Engine‏ (GKE) או ב-GKE On-Prem (‏Anthos) להתקנת זמן הריצה ההיברידי.
‫Compute Engine API משמש לניהול אשכולות (רק אשכולות שמבוססים על GKE ועל OpenShift ב-Google Cloud).
Google Cloud APIs זהו שירות מטא לממשקי Google Cloud API, שנועד להקל על השימוש בהם (רק באשכולות שמבוססים על OpenShift ב-Google Cloud).
Cloud DNS API ‫Google Cloud DNS הוא שירות DNS מהימן, ניתן להרחבה ומנוהל, שפועל על אותה תשתית כמו Google. (רק באשכולות שמבוססים על OpenShift ב-Google Cloud).
Identity and Access Management (IAM) API ניהול של זהויות ובקרת גישה למשאבים ב-Google Cloud Platform, כולל יצירה של חשבונות שירות שאפשר להשתמש בהם כדי לבצע אימות ב-Google ולבצע קריאות ל-API. (רק באשכולות שמבוססים על OpenShift ב-Google Cloud).
IAM Service Account Credentials API ‫Service Account Credentials API מאפשר למפתחים ליצור פרטי כניסה לטווח קצר עם הרשאות מוגבלות לחשבונות השירות שלהם ב-Google Cloud. (רק באשכולות שמבוססים על OpenShift ב-Google Cloud).
Service Management API בעזרת Google Service Management, ספקי שירותים יכולים לפרסם את השירותים שלהם ב-Google Cloud Platform, כך שצרכני השירותים יוכלו לגלות אותם ולהשתמש בהם. (רק באשכולות שמבוססים על OpenShift ב-Google Cloud).
Service Usage API הפעלת שירותים שצרכני שירות רוצים להשתמש בהם ב-Google Cloud Platform, הצגת רשימה של השירותים הזמינים או המופעלים, או השבתת שירותים שצרכני שירות כבר לא משתמשים בהם. (רק באשכולות שמבוססים על OpenShift ב-Google Cloud).
Google Cloud Storage JSON API מאפשר לאחסן ולאחזר אובייקטים של נתונים גדולים ובלתי ניתנים לשינוי (רק באשכולות מבוססי OpenShift ב-Google Cloud).
Cloud Storage ‫Google Cloud Storage הוא שירות RESTful לאחסון נתונים בתשתית של Google ולגישה אליהם משם. (רק באשכולות שמבוססים על OpenShift ב-Google Cloud).

משתמשים ב-gcloud כדי להפעיל את ממשקי ה-API הנדרשים, כמו שמוסבר בשלבים הבאים. אם אתם מעדיפים, אתם יכולים להשתמש ב-Cloud Console כדי להפעיל את ממשקי ה-API.

  1. משלימים את הדרישות המוקדמות ומוודאים שה-CLI של gcloud מותקן במעטפת המקומית:
    gcloud -h
  2. יוצרים משתנה סביבה PROJECT_ID שבו הערך הוא המזהה של פרויקט בענן של Google שבו אתם מתכננים להשתמש ב-Apigee Hybrid. מזהה פרויקט הוא מחרוזת ייחודית שמשמשת להבחין בין הפרויקט שלכם לבין כל הפרויקטים האחרים ב-Google Cloud. במקרה הצורך, אפשר לעיין במאמר בנושא איתור מזהה הפרויקט.
    export PROJECT_ID=YOUR_PROJECT_ID
  3. בוחרים את הכרטיסייה של ההתקנה הרצויה כדי לראות את הפקודה להפעלת ממשקי ה-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_ID
    

    ‫OpenShift ב-Google Cloud

    אם אתם מריצים את האשכולות שלכם ב-OpenShift ב-Google Cloud, אתם צריכים להפעיל את ממשקי ה-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
    

    פלטפורמות אחרות

    מפעילים את ממשקי ה-API באמצעות הפקודה הבאה אם מריצים את האשכולות בפלטפורמת Kubernetes אחרת, כמו

    • GKE on-prem
    • Anthos בשרת פיזי
    • AKS
    • ‫GKE ב-AWS
    • EKS
    gcloud services enable \
        apigee.googleapis.com \
        apigeeconnect.googleapis.com \
        cloudresourcemanager.googleapis.com \
        pubsub.googleapis.com  --project $PROJECT_ID
  4. כדי לוודא שכל ממשקי ה-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: יצירת ארגון.