App Optimize API를 사용하려면 사용량 및 비용 보고서 리소스를 만들고 관리하려는 Google Cloud 프로젝트 에서 사용 설정해야 합니다. 콘솔 또는 Google Cloud CLI를 사용하여 API를 사용 설정할 수 있습니다. Google Cloud
시작하기 전에
- 계정에 로그인합니다. Google Cloud 를 처음 사용하는 경우 계정을 만들고 Google 제품의 실제 성능을 평가해 보세요. Google Cloud신규 고객에게는 워크로드를 실행, 테스트, 배포하는 데 사용할 수 있는 $300의 무료 크레딧이 제공됩니다.
-
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 theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
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 theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
API 사용 설정
App Optimize API를 사용 설정하려면 다음 안내 중 하나를 따르세요.
콘솔
콘솔에서 API 라이브러리 로 이동합니다. Google Cloud
메시지가 나타나면 Google Cloud 프로젝트를 선택합니다.
App Optimize API 페이지에서 사용 설정 을 클릭합니다.
gcloud
- Google Cloud CLI를 설치하고 초기화합니다.
App Optimize API를 사용 설정하려면 다음 명령어를 실행하세요.
gcloud services enable appoptimize.googleapis.com --project=PROJECT_IDPROJECT_ID를 Google Cloud 프로젝트 ID로 바꿉니다.
API가 사용 설정되었는지 확인
App Optimize API가 사용 설정되었는지 확인하려면 다음 안내 중 하나를 따르세요.
콘솔
콘솔에서 사용 설정된 API 및 서비스 페이지로 이동합니다. Google Cloud
목록에서 App Optimize API 가 나열되어 있는지 찾아 확인합니다.
gcloud
다음 명령어를 실행합니다.
gcloud services list --enabled --project=PROJECT_ID --filter="NAME:appoptimize.googleapis.com"API가 사용 설정된 경우 출력에 다음이 포함됩니다.
NAME TITLE appoptimize.googleapis.com App Optimize API