---
title: "Create reverse private endpoint"
method: POST
path: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints"
tags: ["ClickPipes"]
---

# Create reverse private endpoint

`POST /v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints`
- Auth: HTTP basic

Create a new reverse private endpoint.

## Path parameters

- `organizationId` string, uuid, required
- `serviceId` string, uuid, required

## Request body

- CreateReversePrivateEndpoint
  - `description` string, required: Reverse private endpoint description. Maximum length is 255 characters.
  - `type` 'VPC_ENDPOINT_SERVICE' | 'VPC_RESOURCE' | 'MSK_MULTI_VPC' | 'GCP_PSC_SERVICE_ATTACHMENT', required: Reverse private endpoint type.
  - `vpcEndpointServiceName` string: VPC endpoint service name.
  - `vpcResourceConfigurationId` string: VPC resource configuration ID. Required for VPC_RESOURCE type.
  - `vpcResourceShareArn` string: VPC resource share ARN. Required for VPC_RESOURCE type.
  - `mskClusterArn` string: MSK cluster ARN. Required for MSK_MULTI_VPC type.
  - `mskAuthentication` 'SASL_IAM' | 'SASL_SCRAM': MSK cluster authentication type. Required for MSK_MULTI_VPC type.
  - `gcpServiceAttachment` string: Private Preview. GCP PSC service attachment URI. Required for GCP_PSC_SERVICE_ATTACHMENT type. Format: projects/{project}/regions/{region}/serviceAttachments/{name}.
  - `customPrivateDnsMappings` CustomPrivateDnsMapping[]: Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com
    - `privateDnsName` string: Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com
    - `targetId` string: Optional DNS target ID. For VPC_RESOURCE, it is the CHILD resource configuration ID (rcfg-…), or the configuration ID for a single resource. For VPC_ENDPOINT_SERVICE, it is an AWS availability zone ID (for example use1-az1, not the zone name us-east-1a) that the endpoint service offers and ClickPipes supports in the region; if the endpoint is not in that zone yet, ClickPipes adds the zone to the endpoint. Cross-region VPC endpoint services reject targetId. Not supported for other endpoint types. Set it at create time to route a custom DNS name to that target. If the target is not reported in dnsTargets yet, the mapping is not served until it appears; it does not fall back to the default target. If omitted, the default target is used. For VPC_RESOURCE, once dnsTargets is non-empty, adding or changing a targetId requires an ID in that list; unchanged target IDs are not re-checked.

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` ReversePrivateEndpoint
    - `description` string: Reverse private endpoint description. Maximum length is 255 characters.
    - `type` 'VPC_ENDPOINT_SERVICE' | 'VPC_RESOURCE' | 'MSK_MULTI_VPC' | 'GCP_PSC_SERVICE_ATTACHMENT': Reverse private endpoint type.
    - `vpcEndpointServiceName` string, nullable: VPC endpoint service name.
    - `vpcResourceConfigurationId` string, nullable: VPC resource configuration ID. Required for VPC_RESOURCE type.
    - `vpcResourceShareArn` string, nullable: VPC resource share ARN. Required for VPC_RESOURCE type.
    - `mskClusterArn` string, nullable: MSK cluster ARN. Required for MSK_MULTI_VPC type.
    - `mskAuthentication` 'SASL_IAM' | 'SASL_SCRAM', nullable: MSK cluster authentication type. Required for MSK_MULTI_VPC type.
    - `gcpServiceAttachment` string, nullable: Private Preview. GCP PSC service attachment URI. Required for GCP_PSC_SERVICE_ATTACHMENT type. Format: projects/{project}/regions/{region}/serviceAttachments/{name}.
    - `customPrivateDnsMappings` CustomPrivateDnsMapping[]: Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com
      - `privateDnsName` string: Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com
      - `targetId` string: Optional DNS target ID. For VPC_RESOURCE, it is the CHILD resource configuration ID (rcfg-…), or the configuration ID for a single resource. For VPC_ENDPOINT_SERVICE, it is an AWS availability zone ID (for example use1-az1, not the zone name us-east-1a) that the endpoint service offers and ClickPipes supports in the region; if the endpoint is not in that zone yet, ClickPipes adds the zone to the endpoint. Cross-region VPC endpoint services reject targetId. Not supported for other endpoint types. Set it at create time to route a custom DNS name to that target. If the target is not reported in dnsTargets yet, the mapping is not served until it appears; it does not fall back to the default target. If omitted, the default target is used. For VPC_RESOURCE, once dnsTargets is non-empty, adding or changing a targetId requires an ID in that list; unchanged target IDs are not re-checked.
    - `id` string, uuid: Reverse private endpoint ID.
    - `serviceId` string, uuid: ClickHouse service ID reverse private endpoint is associated with.
    - `endpointId` string: Reverse private endpoint endpoint ID.
    - `dnsNames` string[]: Reverse private endpoint internal DNS names.
    - `privateDnsNames` string[]: Reverse private endpoint private DNS names.
    - `privateDnsMappings` ReversePrivateEndpointPrivateDnsMapping[]: Read-only provider private DNS names and their internal DNS targets reported by the Reverse Private Endpoint. For VPC_RESOURCE, this list can be empty when CHILD resources have no provider private DNS.
      - `privateDnsName` string: Provider private DNS name reported by the Reverse Private Endpoint.
      - `internalDnsName` string: Internal DNS target for the provider private DNS name.
    - `dnsTargets` ReversePrivateEndpointDnsTarget[]: Read-only DNS targets the Reverse Private Endpoint currently reports. For VPC_RESOURCE, there is one RESOURCE_CONFIGURATION target per resource configuration association, identified by its CHILD resource configuration ID, or the configuration ID for a single resource. For VPC_ENDPOINT_SERVICE, there is one AVAILABILITY_ZONE target per zonal endpoint DNS name, identified by its AWS availability zone ID; the regional DNS name is the default target and is not listed. Cross-region VPC endpoint services report no AVAILABILITY_ZONE targets. Other endpoint types report an empty list. Targets can appear over time; a custom mapping with a targetId that is not reported yet is not served until it appears.
      - `id` string: DNS target ID. For VPC_RESOURCE, the associated CHILD resource configuration ID, or the configuration ID for a single resource. For VPC_ENDPOINT_SERVICE, the AWS availability zone ID of the zonal endpoint DNS name.
      - `kind` string: DNS target kind. Current values: 'RESOURCE_CONFIGURATION', 'AVAILABILITY_ZONE'. RESOURCE_CONFIGURATION is used for VPC_RESOURCE targets and AVAILABILITY_ZONE for VPC_ENDPOINT_SERVICE zonal targets. New kinds may be added, so clients must accept unknown values.
      - `internalDnsName` string: Internal DNS name currently reported for this target. To select a target for a custom private DNS mapping, use its id as targetId.
    - `status` 'Unknown' | 'Provisioning' | 'Deleting' | 'Ready' | 'Failed' | 'PendingAcceptance' | 'Rejected' | 'Expired': Reverse private endpoint status.

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

## Changes

- **2026-11-04** `5e14898dffd9`: 1 info
  - removed the `RESOURCE_CONFIGURATION` enum value from the `result/dnsTargets/items/kind` response property for the response status `200`

[Operation history](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/changes/v1/organizations/:organizationId/services/:serviceId/clickpipesReversePrivateEndpoints/post.md)

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
