---
title: "POST /v1/{+migrationJob}:generateSshScript"
method: POST
path: "/v1/{+migrationJob}:generateSshScript"
tags: ["projects"]
---

# POST /v1/{+migrationJob}:generateSshScript

`POST /v1/{+migrationJob}:generateSshScript`

Generate a SSH configuration script to configure the reverse SSH connectivity.

## Path parameters

- `migrationJob` string, required

## Request body

- GenerateSshScriptRequest — Request message for 'GenerateSshScript' request.
  - `vm` string — Required. Bastion VM Instance name to use or to create.
  - `vmSelectionConfig` VmSelectionConfig — VM selection configuration message
    - `vmZone` string — Required. The Google Cloud Platform zone the VM is located.
  - `vmPort` integer — The port that will be open on the bastion host.
  - `vmCreationConfig` VmCreationConfig — VM creation configuration message
    - `vmMachineType` string — Required. VM instance machine type to create.
    - `vmZone` string — The Google Cloud Platform zone to create the VM in.
    - `subnet` string — The subnet name the vm needs to be created in.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/datamigration.md) · [All operations](https://skmtc.dev/google/apis/datamigration/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/datamigration/revisions/d77bd66e25e6/schema)
