डिप्लॉयमेंट मैनेज करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस सेक्शन में, Apps Script API के उन तरीकों के बारे में खास जानकारी दी गई है जिनका इस्तेमाल करके, स्क्रिप्ट प्रोजेक्ट के डप्लॉयमेंट बनाए, सूची में शामिल किए, पढ़े, बदले, और मिटाए जा सकते हैं.
एपीआई के तरीके के बारे में खास जानकारी |
डिप्लॉयमेंट बनाना |
projects.deployments.create
नतीजे: स्क्रिप्ट प्रोजेक्ट के लिए नया डिप्लॉयमेंट बनाएं.
आपको इस्तेमाल करने के लिए, कोड का वर्शन,
मेनिफ़ेस्ट फ़ाइल, और
डिप्लॉयमेंट का ब्यौरा देना होगा. यह
Deployment
ऑब्जेक्ट दिखाता है. इसमें डिप्लॉयमेंट कॉन्फ़िगरेशन की जानकारी होती है.
|
किसी प्रोजेक्ट के डिप्लॉयमेंट की सूची बनाना |
projects.deployments.list
नतीजे: यह
Deployment ऑब्जेक्ट का एक कलेक्शन दिखाता है. इनमें से हर ऑब्जेक्ट, स्क्रिप्ट प्रोजेक्ट के एक डिप्लॉयमेंट को दिखाता है.
|
डिप्लॉयमेंट पढ़ना |
projects.deployments.get
नतीजे: यह
Deployment दिखाता है, जो किसी स्क्रिप्ट प्रोजेक्ट में किसी खास डिप्लॉयमेंट को दिखाता है.
|
कोई डिप्लॉयमेंट अपडेट करना |
projects.deployments.update
नतीजे: इससे डिप्लॉयमेंट की जानकारी, कोड वर्शन या मेनिफ़ेस्ट में बदलाव होता है. मेनिफ़ेस्ट में डिप्लॉयमेंट की जानकारी होती है.
|
कोई डिप्लॉयमेंट मिटाना |
projects.deployments.delete
नतीजे: इससे डिप्लॉयमेंट हट जाता है.
चेतावनी: डिप्लॉयमेंट मिटाने से, उस डिप्लॉयमेंट का इस्तेमाल करने वाले किसी भी ऐड-ऑन, वेब ऐप्लिकेशन या अन्य ऐप्लिकेशन का ऐक्सेस, Apps Script प्रोजेक्ट से हट जाता है. आम तौर पर, इसकी वजह से वे काम नहीं करते. ऐसे किसी भी ऐप्लिकेशन को अपडेट किए बिना डिप्लॉयमेंट न मिटाएं जो उस पर निर्भर करता है.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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. |"]]