Required. The parent location where this vpn connection will be created.
Authorization requires the following IAM permission on the specified resource parent:
edgecontainer.vpnConnections.create
Query parameters
Parameters
vpnConnectionId
string
Required. The VPN connection identifier.
requestId
string
A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if requestId is provided.
Request body
The request body contains an instance of VpnConnection.
Response body
If successful, the response body contains a newly created instance of Operation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-11 UTC."],[[["\u003cp\u003eThis document describes how to create a new VPN connection within a specified project and location using a POST request to the \u003ccode\u003ehttps://edgecontainer.googleapis.com/v1/{parent=projects/*/locations/*}/vpnConnections\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter that specifies the location, along with mandatory query parameter \u003ccode\u003evpnConnectionId\u003c/code\u003e and an optional \u003ccode\u003erequestId\u003c/code\u003e parameter for idempotency.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an instance of the \u003ccode\u003eVpnConnection\u003c/code\u003e resource, and a successful response will include a newly created \u003ccode\u003eOperation\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eCreating a VPN connection requires the \u003ccode\u003eedgecontainer.vpnConnections.create\u003c/code\u003e IAM permission on the parent resource, and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe document uses gRPC Transcoding syntax for the URL and it also include a section on how to try it out, although the section details are not specified in the content.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.vpnConnections.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a new VPN connection in a given project and location.\n\n### HTTP request\n\n`POST https://edgecontainer.googleapis.com/v1/{parent=projects/*/locations/*}/vpnConnections`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [VpnConnection](/distributed-cloud/edge/1.5.1/docs/reference/container/rest/v1/projects.locations.vpnConnections#VpnConnection).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/distributed-cloud/edge/1.5.1/docs/reference/container/rest/v1/projects.locations.operations#Operation).\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]