Method: projects.deployments.list
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงรายการการทำให้โปรเจ็กต์ Apps Script ใช้งานได้
คำขอ HTTP
GET https://script.googleapis.com/v1/projects/{scriptId}/deployments
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
scriptId |
string
รหัสไดรฟ์ของโปรเจ็กต์สคริปต์
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
pageToken |
string
โทเค็นสำหรับดำเนินการกับคำขอรายการก่อนหน้าต่อในหน้าถัดไป ควรตั้งค่านี้เป็นค่า nextPageToken จากคำตอบก่อนหน้า
|
pageSize |
integer
จำนวนการทำให้ใช้งานได้สูงสุดในหน้าเว็บที่แสดงผลแต่ละหน้า ค่าเริ่มต้นคือ 50
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การตอบกลับพร้อมรายการการติดตั้งใช้งานสำหรับโปรเจ็กต์ Apps Script ที่ระบุ
การแสดง JSON |
{
"deployments": [
{
object (Deployment )
}
],
"nextPageToken": string
} |
ช่อง |
deployments[] |
object (Deployment )
รายการการทำให้ใช้งานได้
|
nextPageToken |
string
โทเค็นที่ใช้ในการเรียกครั้งถัดไปเพื่อรับผลลัพธ์หน้าถัดไป
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth รายการใดรายการหนึ่งต่อไปนี้
https://www.googleapis.com/auth/script.deployments
https://www.googleapis.com/auth/script.deployments.readonly
สำหรับข้อมูลเพิ่มเติม โปรดดูที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThis endpoint lists the deployments of an Apps Script project using an HTTP GET request.\u003c/p\u003e\n"],["\u003cp\u003eYou need to provide the \u003ccode\u003escriptId\u003c/code\u003e as a path parameter to identify the project.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of deployments and a token for pagination if there are more results.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is required using specific OAuth scopes related to script deployments.\u003c/p\u003e\n"]]],[],null,["# Method: projects.deployments.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListDeploymentsResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists the deployments of an Apps Script project.\n\n### HTTP request\n\n`GET https://script.googleapis.com/v1/projects/{scriptId}/deployments`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|-----------------------------------------|\n| `scriptId` | `string` The script project's Drive ID. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageToken` | `string` The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response. |\n| `pageSize` | `integer` The maximum number of deployments on each returned page. Defaults to 50. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse with the list of deployments for the specified Apps Script project.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"deployments\": [ { object (/apps-script/api/reference/rest/v1/projects.deployments#Deployment) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------|\n| `deployments[]` | `object (`[Deployment](/apps-script/api/reference/rest/v1/projects.deployments#Deployment)`)` The list of deployments. |\n| `nextPageToken` | `string` The token that can be used in the next call to get the next page of results. |\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/script.deployments`\n- `https://www.googleapis.com/auth/script.deployments.readonly`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]