Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
HTTP request
POST https://notebooks.googleapis.com/v1/{name}:diagnose
Path parameters
| Parameters | |
|---|---|
name | 
                
                   
 Required. Format:   | 
              
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
{
  "diagnosticConfig": {
    object ( | 
                
| Fields | |
|---|---|
diagnosticConfig | 
                  
                     
 Required. Defines flags that are used to run the diagnostic tool  | 
                
timeoutMinutes | 
                  
                     
 Optional. Maximum amount of time in minutes before the operation times out.  | 
                
Response body
If successful, the response body contains an instance of Operation.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
DiagnosticConfig
Defines flags that are used to run the diagnostic tool
| JSON representation | 
|---|
{ "gcsBucket": string, "relativePath": string, "repairFlagEnabled": boolean, "packetCaptureFlagEnabled": boolean, "copyHomeFilesFlagEnabled": boolean }  | 
              
| Fields | |
|---|---|
gcsBucket | 
                
                   
 Required. User Cloud Storage bucket location (REQUIRED). Must be formatted with path prefix ( Permissions: User Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account attached to VM. Google Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account or user credentials attached to VM depending on authentication mode. Cloud Storage bucket Log file will be written to   | 
              
relativePath | 
                
                   
 Optional. Defines the relative storage path in the Cloud Storage bucket where the diagnostic logs will be written: Default path will be the root directory of the Cloud Storage bucket (  | 
              
repairFlagEnabled | 
                
                   
 Optional. Enables flag to repair service for instance  | 
              
packetCaptureFlagEnabled | 
                
                   
 Optional. Enables flag to capture packets from the instance for 30 seconds  | 
              
copyHomeFilesFlagEnabled | 
                
                   
 Optional. Enables flag to copy all   |