Method: projects.deployments.list
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Apps Script 프로젝트의 배포를 나열합니다.
HTTP 요청
GET https://script.googleapis.com/v1/projects/{scriptId}/deployments
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
scriptId |
string
스크립트 프로젝트의 Drive ID
|
쿼리 매개변수
매개변수 |
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 개요를 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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)."]]