API 사용 설정
이 페이지에서는 Recommender API를 사용 설정하는 방법을 설명합니다. gcloud
및 REST 인터페이스를 사용하여 권장사항 및 통계를 보고 관리하려면 API를 사용 설정해야 합니다.
Recommender API를 사용 설정하려면 다음 안내를 따르세요.
gcloud
아직 Google Cloud 프로젝트가 없으면 지금 만듭니다.
기본 프로젝트를 설정합니다. 여기서 PROJECT_ID는 프로젝트의 ID입니다.
gcloud config set project PROJECT_ID
필요한 API를 사용 설정합니다.
gcloud services enable recommender.googleapis.com
Console
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
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
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Enable the Recommender API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin
), which contains theserviceusage.services.enable
permission. Learn how to grant roles. -
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
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Enable the Recommender API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin
), which contains theserviceusage.services.enable
permission. Learn how to grant roles.