- HTTP request
 - Path parameters
 - Request body
 - Response body
 - Authorization scopes
 - VmCreationConfig
 - VmSelectionConfig
 - Examples
 - Try it!
 
Generate a SSH configuration script to configure the reverse SSH connectivity.
HTTP request
POST https://datamigration.googleapis.com/v1beta1/{migrationJob}:generateSshScript
Path parameters
| Parameters | |
|---|---|
migrationJob | 
                
                   
 Name of the migration job resource to generate the SSH script. Authorization requires the following IAM permission on the specified resource  
  | 
              
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
{ "vm": string, "vmPort": integer, // Union field  | 
                
| Fields | |
|---|---|
vm | 
                  
                     
 Required. Bastion VM Instance name to use or to create.  | 
                
vmPort | 
                  
                     
 The port that will be open on the bastion host  | 
                
Union field vm_config. The VM configuration vm_config can be only one of the following: | 
                |
vmCreationConfig | 
                  
                     
 The VM creation configuration  | 
                
vmSelectionConfig | 
                  
                     
 The VM selection configuration  | 
                
Response body
Response message for 'migrationJobs.generateSshScript' request.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{ "script": string }  | 
                  
| Fields | |
|---|---|
script | 
                    
                       
 The ssh configuration script.  | 
                  
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
VmCreationConfig
VM creation configuration message
| JSON representation | 
|---|
{ "vmMachineType": string, "vmZone": string, "subnet": string }  | 
              
| Fields | |
|---|---|
vmMachineType | 
                
                   
 Required. VM instance machine type to create.  | 
              
vmZone | 
                
                   
 The Google Cloud Platform zone to create the VM in.  | 
              
subnet | 
                
                   
 The subnet name the vm needs to be created in.  | 
              
VmSelectionConfig
VM selection configuration message
| JSON representation | 
|---|
{ "vmZone": string }  | 
              
| Fields | |
|---|---|
vmZone | 
                
                   
 Required. The Google Cloud Platform zone the VM is located.  |