Mengelola Deployment
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Bagian ini memberikan ringkasan metode Apps Script API yang dapat Anda gunakan untuk membuat, mencantumkan, membaca, mengubah, dan menghapus penerapan project skrip.
Ringkasan metode API |
Membuat deployment |
projects.deployments.create
Hasil: Membuat deployment baru untuk project skrip.
Anda menentukan version kode,
file manifest, dan
deskripsi deployment yang akan digunakan. Menampilkan objek
Deployment , yang berisi detail konfigurasi deployment.
|
Mencantumkan deployment project |
projects.deployments.list
Hasil: Menampilkan array objek
Deployment , yang masing-masing merepresentasikan salah satu
deployment project skrip.
|
Membaca deployment |
projects.deployments.get
Hasil: Menampilkan
Deployment yang merepresentasikan deployment tertentu
dalam project skrip tertentu.
|
Memperbarui deployment |
projects.deployments.update
Hasil: Mengubah deskripsi deployment, versi kode, atau manifes tempat deployment ditentukan.
|
Menghapus deployment |
projects.deployments.delete
Hasil: Menghapus deployment.
Peringatan: Menghapus deployment akan menyebabkan
add-on, aplikasi web, atau aplikasi lain yang menggunakan
deployment tersebut kehilangan akses ke project Apps Script, yang biasanya menyebabkan
aplikasi tersebut gagal. Jangan menghapus deployment tanpa memperbarui aplikasi yang bergantung padanya terlebih dahulu.
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-31 UTC.
[null,null,["Terakhir diperbarui pada 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. |"]]