App Optimize API 사용 설정

App Optimize API를 사용하려면 사용량 및 비용 보고서 리소스를 만들고 관리할 Google Cloud 프로젝트에서 API를 사용 설정해야 합니다. Google Cloud 콘솔 또는 Google Cloud CLI를 사용하여 API를 사용 설정할 수 있습니다.

시작하기 전에

  1. Google Cloud 계정에 로그인합니다. Google Cloud를 처음 사용하는 경우 계정을 만들고 Google 제품의 실제 성능을 평가해 보세요. 신규 고객에게는 워크로드를 실행, 테스트, 배포하는 데 사용할 수 있는 $300의 무료 크레딧이 제공됩니다.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  5. Verify that billing is enabled for your Google Cloud project.

API 사용 설정

앱 최적화 API를 사용 설정하려면 다음 안내 중 하나를 따르세요.

콘솔

  1. Google Cloud 콘솔에서 API 라이브러리로 이동합니다.

    API 라이브러리로 이동

  2. 메시지가 표시되면 Google Cloud 프로젝트를 선택합니다.

  3. App Optimize API 페이지에서 사용 설정을 클릭합니다.

gcloud

  1. Google Cloud CLI를 설치하고 초기화합니다.
  2. App Optimize API를 사용 설정하려면 다음 명령어를 실행하세요.

    gcloud services enable appoptimize.googleapis.com --project=PROJECT_ID
    

    PROJECT_ID를 Google Cloud 프로젝트 ID로 바꿉니다.

API가 사용 설정되어 있는지 확인

앱 최적화 API가 사용 설정되어 있는지 확인하려면 다음 안내 중 하나를 따르세요.

콘솔

  1. Google Cloud 콘솔에서 사용 설정된 API 및 서비스 페이지로 이동합니다.

    사용 설정된 API 및 서비스로 이동

  2. 목록에서 App Optimize API가 나열되어 있는지 확인합니다.

gcloud

  1. 다음 명령어를 실행합니다.

    gcloud services list --enabled --project=PROJECT_ID --filter="NAME:appoptimize.googleapis.com"
    
  2. API가 사용 설정된 경우 출력에 다음이 포함됩니다.

    NAME                        TITLE
    appoptimize.googleapis.com  App Optimize API
    

다음 단계