Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
API aktivieren
Auf dieser Seite wird erläutert, wie die Recommender API aktiviert wird. Sie müssen die API aktivieren, um Empfehlungen und Insights über die Schnittstellen gcloud und REST anzeigen und verwalten zu können.
Legen Sie das Standardprojekt fest, wobei PROJECT_ID die ID Ihres Projekts ist:
gcloud config set project PROJECT_ID
Aktivieren Sie die erforderlichen APIs:
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.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-18 (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"]]