Dienste aktivieren und deaktivieren
Sie können mit Service Usage alle verfügbaren Dienste für Ihre Google Cloud Projekte aktivieren oder deaktivieren. Dazu gehören auch private Dienste, die mit Cloud Endpoints erstellt wurden. Weitere Informationen zu den Unterschieden zwischen öffentlichen und privaten Diensten finden Sie unter Öffentliche und private Dienste.
Die meisten Nutzer können Dienste mit der Google Cloud Console aktivieren und deaktivieren. Verwenden Sie für Skripts die Google Cloud CLI. Für den programmatischen Zugriff auf die Service Usage API empfehlen wir die Verwendung einer Clientbibliothek. Um die API auszuprobieren, können Sie eine Anfrage senden, ohne eine vollständige Entwicklungsumgebung einzurichten.
Informationen zu Kontingentlimits für die Dienstnutzung finden Sie unter Kontingente und Limits. Es kann sinnvoll sein, die kostenpflichtige Nutzung zu beschränken. Je nach API können Sie Anfragen explizit begrenzen.
Hinweis
Bevor Sie Dienste aktivieren und deaktivieren können, müssen Sie IhrGoogle Cloud -Projekt und Ihre Umgebung für Service Usage einrichten.
Console
- Melden Sie sich in Ihrem Google Cloud -Konto an. Wenn Sie mit Google Cloudnoch nicht vertraut sind, erstellen Sie ein Konto, um die Leistungsfähigkeit unserer Produkte in der Praxis sehen und bewerten zu können. Neukunden erhalten außerdem ein Guthaben von 300 $, um Arbeitslasten auszuführen, zu testen und bereitzustellen.
-
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.
-
If you're using an existing project for this guide, verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Service Usage API.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). 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 role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
If you're using an existing project for this guide, verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Service Usage API.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (