Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Wenn Sie Ihrer Anwendung die API-Verwaltung auf Google Cloudhinzugefügt haben und anschließend entscheiden, dass Sie die API-Verwaltungsfeatures nicht verwenden möchten, können Sie Cloud Endpoints Frameworks so konfigurieren, dass Ihre API nicht mehr verwaltet wird.
Auch wenn Sie die API-Verwaltung entfernen, wird Ihre API weiterhin bereitgestellt. Wenn Sie die Bereitstellung der API beenden möchten, können Sie die Anwendung entweder auf der Seite App Engine-Einstellungen in der Google Cloud Console deaktivieren oder das Google Cloud -Projekt löschen. Weitere Informationen finden Sie unter Anwendung deaktivieren und Projekt beenden.
So entfernen Sie die API-Verwaltung:
Sichern Sie die Datei app.yaml des API-Projekts.
Die Google Cloud CLI (gcloud) muss berechtigt sein, auf Ihre Daten und Dienste auf Google Cloudzuzugreifen:
gcloudauthlogin
Rufen Sie die Projekt-IDs für Ihre Google Cloud-Projekte ab:
gcloudprojectslist
Verwenden Sie die entsprechende Projekt-ID aus dem vorherigen Schritt, um das Standard-Google Cloud -Projekt auf das Projekt festzulegen, in dem sich Ihre Anwendung befindet:
gcloud config set project YOUR_PROJECT_ID
Wechseln Sie in das Verzeichnis, in dem sich die Datei app.yaml befindet, und öffnen Sie sie.
Löschen Sie im Abschnitt env_variables die Zeilen, die die Umgebungsvariablen ENDPOINTS_SERVICE_NAME und ENDPOINTS_SERVICE_VERSION enthalten. Wenn Sie keine anderen Umgebungsvariablen definiert haben, löschen Sie den Abschnitt env_variables.
Speichern Sie die Datei app.yaml.
Stellen Sie Ihre Anwendung mit der aktualisierten Datei app.yaml bereit:
gcloudappdeploy
Nachdem Sie die Anwendung wieder bereitgestellt haben, beendet Endpoints Frameworks die Verwaltung Ihrer API.
Entfernung der API-Verwaltung überprüfen
So überprüfen Sie, ob die API von Endpoints Frameworks nicht mehr verwaltet wird:
Rufen Sie in der Google Cloud Console die Seite Endpoints > Services auf.
Der Anfragezähler für die Methode wird nicht aktualisiert.
Klicken Sie auf den View logs-Link für die Methode.
Das Log Produced API enthält keine Einträge für die Anfragen, die Sie gesendet haben.
Verwalteten Dienst löschen
Endpoints Frameworks verwaltet Ihre API mit Service Management von Google.
Wenn Sie das OpenAPI-Dokument mit dem Befehl gcloud endpoints services
deploy bereitgestellt haben, wurde mithilfe von Service Management ein verwalteter Dienst für die API erstellt. Diesen Dienst können Sie löschen, wenn Sie die Daten auf der Seite Endpoints > Dienste und auf der Seite Loganzeige im Log Produzierte API nicht benötigen. Die Daten werden dann aus der Google Cloud -Konsole entfernt.
So löschen Sie den verwalteten Dienst:
Achten Sie darauf, dass die gcloud CLI (gcloud) zum Zugriff auf Ihre Daten und Dienste auf Google Cloudberechtigt ist:
gcloudauthlogin
Geben Sie Folgendes ein, um sich die Projekt-IDs für Ihre Google Cloud-Projekte anzeigen zu lassen:
gcloudprojectslist
Verwenden Sie die entsprechende Projekt-ID aus dem vorherigen Schritt, um das Standard-Google Cloud -Projekt auf das Projekt festzulegen, in dem sich Ihre Anwendung befindet:
gcloudconfigsetproject[YOUR_PROJECT_ID]
Ermitteln Sie den Namen aller verwalteten Dienste in Ihrem Google Cloud -Projekt:
gcloudendpointsserviceslist
Löschen Sie den Dienst aus Service Management. Ersetzen Sie dabei SERVICE_NAME durch den Namen des Dienstes, den Sie entfernen möchten:
gcloud endpoints services delete SERVICE_NAME
Der verwaltete Dienst wird bei Ausführung von gcloud endpoints services delete nicht sofort gelöscht. Service Management deaktiviert den verwalteten Dienst 30 Tage lang, sodass Sie ihn bei Bedarf wiederherstellen können. Nach 30 Tagen löscht Service Management den verwalteten Dienst endgültig.
[[["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-09-04 (UTC)."],[[["\u003cp\u003eYou can remove API management from your application on Google Cloud by configuring Cloud Endpoints Frameworks to stop managing it, without impacting the API's ability to continue being served.\u003c/p\u003e\n"],["\u003cp\u003eTo remove API management, back up your \u003ccode\u003eapp.yaml\u003c/code\u003e file, remove the \u003ccode\u003eENDPOINTS_SERVICE_NAME\u003c/code\u003e and \u003ccode\u003eENDPOINTS_SERVICE_VERSION\u003c/code\u003e environment variables from it, and redeploy your application.\u003c/p\u003e\n"],["\u003cp\u003eAfter removing API management, you can verify it is removed by checking that the request counter and logs in the Google Cloud console for your API method are not updated.\u003c/p\u003e\n"],["\u003cp\u003eIf you no longer need the data in the \u003cstrong\u003eEndpoints\u003c/strong\u003e > \u003cstrong\u003eServices\u003c/strong\u003e page or in the \u003cstrong\u003eProduced API\u003c/strong\u003e log, you can delete the managed service for your API using the \u003ccode\u003egcloud endpoints services delete\u003c/code\u003e command, which disables it for 30 days before permanently deleting it.\u003c/p\u003e\n"]]],[],null,["# Removing API management\n\nIf you added API management to your application on Google Cloud, and\nsubsequently decide that you don't want the API management features, you can configure\nCloud Endpoints Frameworks to stop managing your API.\n\n\u003cbr /\u003e\n\n\nRemoving API management doesn't stop your API from being served. If you want\nto stop serving your API, you can either disable the application on the **App\nEngine Settings** page in the Google Cloud console, or\nyou can delete the Google Cloud project. See [Disabling\nan application and shutting down a project](https://cloud.google.com/appengine/docs/flexible/python/managing-projects-apps-billing#disabling_an_application) for more information.\n\n\u003cbr /\u003e\n\nTo remove API management:\n\n1. Backup your API project's `app.yaml` file.\n\n2. Make sure that the Google Cloud CLI (`gcloud`) is authorized to access your data\n and services on Google Cloud:\n\n gcloud auth login\n\n3. Display the project IDs for your Google Cloud\n projects:\n\n gcloud projects list\n\n4. Using the applicable project ID from the previous step, set the default\n Google Cloud project to the one that your application is in:\n\n ```\n gcloud config set project YOUR_PROJECT_ID\n ```\n5. Change to the directory where your `app.yaml` file is located, and open it.\n\n6. In the `env_variables` section, delete the lines containing the\n `ENDPOINTS_SERVICE_NAME` and `ENDPOINTS_SERVICE_VERSION` environment\n variables. If you don't have any other environment variables defined, delete\n the `env_variables` section.\n\n7. Save the `app.yaml` file.\n\n8. Deploy your application with the updated `app.yaml` file:\n\n gcloud app deploy\n\nAfter you redeploy your application, Endpoints Frameworks stops\nmanaging your API.\n\nVerifying API management removal\n--------------------------------\n\nTo verify that Endpoints Frameworks is no longer managing your API:\n\n1. In the Google Cloud console, go to the **Endpoints** \\\u003e **Services** page.\n\n\n [Go to the Endpoints Services page](https://console.cloud.google.com/endpoints)\n\n \u003cbr /\u003e\n\n2. Write down the number of requests to one of the methods in your API.\n\n3. Click the `View logs` link for the method.\n\n4. In the `Produced API` log, write down the date and time of the most recent\n log entry.\n\n5. Send some requests to the method in your API.\n\n6. In the Google Cloud console, go to the **Endpoints** \\\u003e **Services** page.\n\n\n [Go to the Endpoints Services page](https://console.cloud.google.com/endpoints)\n\n \u003cbr /\u003e\n\n The request counter for the method isn't updated.\n7. Click the `View logs` link for the method.\n\n The `Produced API` log doesn't contain log entries for the requests that\n you sent.\n\nDeleting the managed service\n----------------------------\n\n\nEndpoints Frameworks uses Google's Service Management to manage your API.\nWhen you deployed the OpenAPI document by using the `gcloud endpoints services\ndeploy` command, the command used Service Management to create a\nmanaged service for your API. If you don't need the data on the\n**Endpoints** \\\u003e **Services** page and in the **Produced API** log on the **Logs Viewer**\npage, you can delete the managed service for your API, which removes the data\nfrom the Google Cloud console.\n\n\u003cbr /\u003e\n\nTo delete the managed service:\n\n1. Make sure that the gcloud CLI (`gcloud`) is authorized to access your\n data and services on Google Cloud:\n\n gcloud auth login\n\n2. Enter the following to display the project IDs for your Google Cloud\n projects:\n\n gcloud projects list\n\n3. Using the applicable project ID from the previous step, set the default\n Google Cloud project to the one that your application is in:\n\n gcloud config set project [YOUR_PROJECT_ID]\n\n4. Obtain the name of all managed services in your Google Cloud project:\n\n gcloud endpoints services list\n\n5. Delete the service from Service Management. Replace\n \u003cvar translate=\"no\"\u003eSERVICE_NAME\u003c/var\u003e with the name of the service you want\n to remove.\n\n ```\n gcloud endpoints services delete SERVICE_NAME\n ```\n\n Running `gcloud endpoints services delete` doesn't immediately delete the\n managed service. Service Management disables the managed service for\n 30 days, which allows you time to restore it if you need to. After 30 days,\n Service Management permanently deletes the managed service.\n\nWhat's next\n-----------\n\n- To restore a managed service, see\n [Restoring a managed service](/endpoints/docs/frameworks/python/restore-managed-service).\n\n- For information on the `gcloud` commands used on this page, see the\n [`gcloud` reference page](/sdk/gcloud/reference).\n\n- For information on Service Management, see\n [Creating and deleting managed services](/service-infrastructure/docs/create-services)."]]