Deployments verwalten
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
In diesem Abschnitt finden Sie einen Überblick über die Apps Script API-Methoden, mit denen Sie die Bereitstellungen eines Skriptprojekts erstellen, auflisten, lesen, ändern und löschen können.
Übersicht über API-Methoden |
Bereitstellung erstellen |
projects.deployments.create
Ergebnisse: Erstellen Sie eine neue Bereitstellung für ein Skriptprojekt.
Sie geben die Codeversion, die Manifestdatei und die zu verwendende Bereitstellungsbeschreibung an. Gibt ein
Deployment -Objekt mit den Details zur Bereitstellungskonfiguration zurück.
|
Deployments eines Projekts auflisten |
projects.deployments.list
Results: Gibt ein Array von
Deployment -Objekten zurück, die jeweils eine der Bereitstellungen des Skriptprojekts darstellen.
|
Deployment lesen |
projects.deployments.get
Ergebnisse: Gibt eine
Deployment zurück, die eine bestimmte Bereitstellung in einem bestimmten Skriptprojekt darstellt.
|
Deployment aktualisieren |
projects.deployments.update
Ergebnisse: Ändert die Beschreibung, die Codeversion oder das Manifest eines Deployments, in dem das Deployment definiert ist.
|
Deployment löschen |
projects.deployments.delete
Results: Entfernt ein Deployment.
Warnung:Wenn Sie eine Bereitstellung löschen, verliert jedes Add-on, jede Webanwendung oder andere Anwendung, die diese Bereitstellung verwendet, den Zugriff auf das Apps Script-Projekt. Dies führt in der Regel dazu, dass sie nicht mehr funktionieren. Löschen Sie ein Deployment nicht, ohne zuerst alle Apps zu aktualisieren, die davon abhängen.
|
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-08-31 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-08-31 (UTC)."],[[["\u003cp\u003eThis section explains how to manage script project deployments using the Apps Script API.\u003c/p\u003e\n"],["\u003cp\u003eYou can create new deployments with specific code versions, manifests, and descriptions.\u003c/p\u003e\n"],["\u003cp\u003eThe API allows listing, reading, updating, and deleting existing deployments for a script project.\u003c/p\u003e\n"],["\u003cp\u003eUpdating a deployment involves modifying its description, version, or manifest.\u003c/p\u003e\n"],["\u003cp\u003eDeleting deployments can cause dependent add-ons or applications to fail, requiring caution.\u003c/p\u003e\n"]]],[],null,["# Managing Deployments\n\nThis section provides an overview of the Apps Script API methods you can\nuse to create, list, read, modify, and delete a script project's\n[deployments](/apps-script/concepts/deployments).\n\n| **API method overview** ||\n|----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Create a deployment** | [projects.deployments.create](/apps-script/api/reference/rest/v1/projects.deployments/create) **Results** : Create a new deployment for a script project. You specify the code [version](/apps-script/guides/versions), the [manifest](/apps-script/concepts/manifests) file, and deployment description to use. Returns a [`Deployment`](/apps-script/api/reference/rest/v1/projects.deployments#resource-deployment) object, containing the deployment configuration details. |\n| **List a project's deployments** | [projects.deployments.list](/apps-script/api/reference/rest/v1/projects.deployments/list) **Results** : Returns an array of [`Deployment`](/apps-script/api/reference/rest/v1/projects.deployments#resource-deployment) objects, each representing one of the deployments of the script project. |\n| **Read a deployment** | [projects.deployments.get](/apps-script/api/reference/rest/v1/projects.deployments/get) **Results** : Returns a [`Deployment`](/apps-script/api/reference/rest/v1/projects.deployments#resource-deployment) that represents a specific deployment in a specific script project. |\n| **Update a deployment** | [projects.deployments.update](/apps-script/api/reference/rest/v1/projects.deployments/update) **Results** : Changes a deployment's description, code [version](/apps-script/guides/versions), or the [manifest](/apps-script/concepts/manifests) where the deployment is defined. |\n| **Delete a deployment** | [projects.deployments.delete](/apps-script/api/reference/rest/v1/projects.deployments/delete) **Results**: Removes a deployment. **Warning:** Deleting a deployment causes any add-on, web app, or other application that makes use of that deployment to lose access to the Apps Script project, usually causing them to fail. Do not delete a deployment without first updating any apps that depend on it. |"]]