Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Ativar a API
Esta página explica como ativar a API do recomendador. A ativação da API
é necessária para visualizar e gerenciar recomendações e insights usando as interfaces
gcloud
e
REST.
Para ativar a API Recommender:
gcloud
Se você ainda não tiver um projeto do Google Cloud, crie um
agora.
Defina o projeto padrão, em que PROJECT_ID é o ID do
projeto:
gcloud config set project PROJECT_ID
Ative as APIs necessárias:
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.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 UTC."],[],[],null,["# Enable the API\n==============\n\nThis page explains how to enable the Recommender API. Enabling the API\nis required in order to view and manage recommendations and insights using the\n[`gcloud`](/sdk/gcloud/reference/recommender) and\n[REST](/recommender/docs/reference/rest/v1/projects.locations.recommenders.recommendations)\ninterfaces.\n\nTo enable the Recommender API: \n\n### gcloud\n\n1. If you don't already have a Google Cloud project, [create one](/resource-manager/docs/creating-managing-projects#creating_a_project)\n now.\n\n2. Set the default project, where \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e is the ID of your\n project:\n\n ```\n gcloud config set project PROJECT_ID\n ```\n3. Enable the required APIs:\n\n ```\n gcloud services enable recommender.googleapis.com\n ```\n\n### console\n\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n\n\n Enable the Recommender API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=recommender.googleapis.com)\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n\n\n Enable the Recommender API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=recommender.googleapis.com)\n\n\u003cbr /\u003e"]]