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

# POST /v1/{+parent}/privateConnections

`POST /v1/{+parent}/privateConnections`

Use this method to create a private connectivity configuration.

## Path parameters

- `parent` string, required

## Query parameters

- `force` boolean
- `privateConnectionId` string
- `requestId` string
- `validateOnly` boolean

## Request body

- PrivateConnection — The PrivateConnection resource is used to establish private connectivity between Datastream and a customer's network.
  - `satisfiesPzs` boolean — Output only. Reserved for future use.
  - `updateTime` string, google-datetime — Output only. The update time of the resource.
  - `name` string — Output only. Identifier. The resource's name.
  - `pscInterfaceConfig` PscInterfaceConfig — The PSC Interface configuration is used to create PSC Interface between Datastream and the consumer's PSC.
    - `networkAttachment` string — Required. Fully qualified name of the Network Attachment that Datastream will connect to. Format: `projects/{project}/regions/{region}/networkAttachments/{name}`
  - `satisfiesPzi` boolean — Output only. Reserved for future use.
  - `vpcPeeringConfig` VpcPeeringConfig — The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC.
    - `vpc` string — Required. Fully qualified name of the VPC that Datastream will peer to. Format: `projects/{project}/global/{networks}/{name}`
    - `subnet` string — Required. A free subnet for peering. (CIDR of /29)
  - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'CREATED' | 'FAILED' | 'DELETING' | 'FAILED_TO_DELETE' — Output only. The state of the Private Connection.
  - `createTime` string, google-datetime — Output only. The create time of the resource.
  - `displayName` string — Required. Display name.
  - `labels` object — Labels.
  - `error` Error — Represent a user-facing Error.
    - `reason` string — A title that explains the reason for the error.
    - `errorUuid` string — A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
    - `message` string — A message containing more information about the error that occurred.
    - `errorTime` string, google-datetime — The time when the error occurred.
    - `details` object — Additional information about the error.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/datastream.md) · [All operations](https://skmtc.net/google/apis/datastream/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/datastream/versions/f9da70538976/schema)
