3단계: API 사용 설정

Apigee Hybrid를 사용하려면 Google Cloud Console에서 프로젝트에 대해 다음 API를 사용 설정해야 합니다.

  • Apigee API: 프로젝트, 다른 하이브리드 서비스, Google Cloud API 간의 통신 제공
  • Apigee Connect API: 런타임 영역 내에서 Apigee 관리 영역과 MART 서비스 간의 통신 제공
  • Cloud Pub/Sub API: 할당량을 작동하는 데 필요
  • Cloud Resource Manager API: 하이브리드에서 서비스 계정의 유효성을 검사하는 데 사용
  • Compute Engine API: 클러스터를 관리에 사용(GKE 기반 클러스터만 해당)
  • Kubernetes Engine API: 하이브리드 런타임 설치에 Google Kubernetes Engine(GKE) 또는 GKE On-Prem (Anthos) On-Prem을 사용하려는 경우 사용 설정

Google Cloud 프로젝트에 필요한 API 사용 설정:

CLI 또는 Google Cloud Console UI를 사용하여 API를 사용 설정할 수 있습니다.

Google Cloud UI

UI를 사용하여 API를 사용 설정하려면 다음 단계를 수행합니다.

  1. Google Cloud Console API 라이브러리를 열고 1단계: Google Cloud 계정 만들기에서 만든 계정으로 로그인합니다.
  2. 2단계: Google Cloud 프로젝트 만들기에서 만든 프로젝트를 선택합니다.
  3. 다음과 같이 Apigee API를 사용 설정합니다.
    1. API 라이브러리 페이지가 표시되지 않으면 탐색 메뉴에서 API 및 서비스 > 라이브러리를 선택합니다.

      강조표시된 탐색 메뉴

    2. 올바른 프로젝트가 선택되어 있는지 확인합니다.

      Google Cloud Platform 프로젝트 선택기

    3. API 라이브러리 뷰에서 'Apigee'를 검색합니다.

      API 라이브러리 검색창

      Google Cloud가 'Apigee'와 일치하는 API 목록을 표시합니다.

    4. Apigee API 서비스를 찾아 클릭합니다.
    5. Apigee API 서비스 옵션

    6. Apigee API 뷰에서 사용 설정을 클릭합니다.

      Google Cloud는 Google Cloud 프로젝트에 대해 Apigee API를 사용 설정합니다. 추가 API를 사용 설정하려면 이 단계를 반복합니다.

  4. Apigee Connect API를 사용 설정합니다.
  5. Cloud Pub/Sub API를 사용 설정합니다.
  6. Cloud Resource Manager API를 사용 설정합니다.
  7. (GKE 기반 클러스터만 해당) Google Kubernetes Engine API를 사용 설정합니다.
  8. (GKE 기반 및 OpenShift 기반 클러스터만 해당) Compute Engine API를 사용 설정합니다.
  9. (OpenShift 기반 클러스터만 해당) 다음 API를 사용 설정합니다.
    • Google Cloud API
    • Cloud DNS API
    • Identity and Access Management(IAM) API
    • IAM Service Account Credentials API
    • Service Management API
    • Service Usage API
    • Google Cloud Storage JSON API
    • Cloud Storage
  10. API가 사용 설정되었는지 확인하려면 API 및 서비스 > 대시보드를 선택합니다. 방금 추가한 API가 사용 설정된 API 목록에 표시됩니다.

gcloud CLI

CLI를 사용하여 API를 사용 설정하려면 다음 단계를 수행합니다.

  1. Apigee를 관리하는 데 사용하는 기기에서 터미널 창을 엽니다.
  2. 다음 명령어를 실행하여 로컬 셸에 gcloud가 설치되어 있는지 확인합니다. gcloud 도구는 Cloud의 기본 명령줄 인터페이스를 제공합니다.
    gcloud -h

    gcloud를 설치하지 않았다면 Cloud SDK를 설치합니다.

  3. PROJECT_ID 변수가 2단계: Google Cloud 프로젝트 만들기에서 만든 프로젝트의 ID로 정의되어 있는지 확인합니다.
    echo $PROJECT_ID

    그렇지 않은 경우 다음 명령어를 사용하여 PROJECT_ID 환경 변수를 정의합니다.

    export PROJECT_ID=your_project_id
    뒤에 마침표가 있는 프로젝트 ID 이름
  4. 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

    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 플랫폼에서 클러스터를 실행할 경우 다음 명령어로 API를 사용 설정합니다.

    • 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
    
  5. 다음 명령어를 사용하여 모든 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

Google Cloud Console에서 API를 사용 설정하는 방법에 대한 자세한 내용은 Cloud 문서의 Google Cloud 프로젝트에서 API 사용 설정을 참조하세요.

다음 단계

1 2 3 (다음) 4단계: 조직 만들기 5