AI-generated Key Takeaways
- 
          
This page provides details on how to list a script's executed processes, including their type and status.
 - 
          
The HTTP request method is GET and the URL uses gRPC Transcoding syntax.
 - 
          
Query parameters are used to filter the results by script ID, a script process filter object, page size, and page token.
 - 
          
The response body contains a list of Process resources and a token for the next page of results.
 - 
          
The
ListScriptProcessesFilterobject allows for filtering processes by deployment ID, function name, start and end time, process types, statuses, and user access levels. 
- HTTP request
 - Query parameters
 - Request body
 - Response body
 - Authorization Scopes
 - ListScriptProcessesFilter
 - Try it!
 
List information about a script's executed processes, such as process type and current status.
HTTP request
GET https://script.googleapis.com/v1/processes:listScriptProcesses
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
scriptId | 
                
                   
 The script ID of the project whose processes are listed.  | 
              
scriptProcessFilter | 
                
                   
 A filter used to limit the list results; only processes matching the filter criteria are returned.  | 
              
pageSize | 
                
                   
 The maximum number of returned processes per page of results. Defaults to 50.  | 
              
pageToken | 
                
                   
 The token for continuing a previous list request on the next page. This should be set to the value of   | 
              
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Response with the list of Process resources.
| JSON representation | 
|---|
{
  "processes": [
    {
      object ( | 
                  
| Fields | |
|---|---|
processes[] | 
                    
                       
 List of processes matching request parameters.  | 
                  
nextPageToken | 
                    
                       
 Token for the next page of results. If empty, there are no more pages remaining.  | 
                  
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/script.processes
For more information, see the OAuth 2.0 Overview.
ListScriptProcessesFilter
Filter used to further specify which processes to list. Only processes that match all the specified conditions are returned.
| JSON representation | 
|---|
{ "deploymentId": string, "functionName": string, "startTime": string, "endTime": string, "types": [ enum (  | 
              
| Fields | |
|---|---|
deploymentId | 
                
                   
 Optional field used to limit returned processes to those originating from projects with a specific deployment ID.  | 
              
functionName | 
                
                   
 Optional field used to limit returned processes to those originating from a script function with the given function name.  | 
              
startTime | 
                
                   
 Optional field used to limit returned processes to those that were started on or after the given timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples:   | 
              
endTime | 
                
                   
 Optional field used to limit returned processes to those that completed on or before the given timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples:   | 
              
types[] | 
                
                   
 Optional field used to limit returned processes to those having one of the specified process types.  | 
              
statuses[] | 
                
                   
 Optional field used to limit returned processes to those having one of the specified process statuses.  | 
              
userAccessLevels[] | 
                
                   
 Optional field used to limit returned processes to those having one of the specified user access levels.  |