Method: projects.deployments.list
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Elenca i deployment di un progetto Apps Script.
Richiesta HTTP
GET https://script.googleapis.com/v1/projects/{scriptId}/deployments
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
scriptId |
string
L'ID Drive del progetto dello script.
|
Parametri di query
Parametri |
pageToken |
string
Il token per continuare una richiesta di elenco precedente nella pagina successiva. Dovrebbe essere impostato sul valore nextPageToken di una risposta precedente.
|
pageSize |
integer
Il numero massimo di deployment su ogni pagina restituita. Il valore predefinito è 50.
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene dati con la seguente struttura:
Risposta con l'elenco dei deployment per il progetto Apps Script specificato.
Rappresentazione JSON |
{
"deployments": [
{
object (Deployment )
}
],
"nextPageToken": string
} |
Campi |
deployments[] |
object (Deployment )
L'elenco dei deployment.
|
nextPageToken |
string
Il token che può essere utilizzato nella chiamata successiva per ottenere la pagina successiva di risultati.
|
Ambiti di autorizzazione
Richiede uno dei seguenti ambiti OAuth:
https://www.googleapis.com/auth/script.deployments
https://www.googleapis.com/auth/script.deployments.readonly
Per ulteriori informazioni, consulta la panoramica di OAuth 2.0.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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)."]]