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

# POST /v1/{+migrationJob}:generateTcpProxyScript

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

Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.

## Path parameters

- `migrationJob` string, required

## Request body

- GenerateTcpProxyScriptRequest — Request message for 'GenerateTcpProxyScript' request.
  - `vmName` string — Required. The name of the Compute instance that will host the proxy.
  - `vmMachineType` string — Required. The type of the Compute instance that will host the proxy.
  - `vmZone` string — Optional. The Google Cloud Platform zone to create the VM in. The fully qualified name of the zone must be specified, including the region name, for example "us-central1-b". If not specified, uses the "-b" zone of the destination Connection Profile's region.
  - `vmSubnet` string — Required. The name of the subnet the Compute instance will use for private connectivity. Must be supplied in the form of projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the region for the subnet must match the Compute instance region.

## 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)
