Postgres

Create the PostgreSQL private endpoint

Changed on

This endpoint is in beta. API contract is stable, and no breaking changes are expected in the future. <br /><br /> Creates the AWS private endpoint service of a Postgres service. Creation takes about 5 to 10 minutes: state is creating until the service is available. A VPC endpoint can connect only after its ID is approved with the update endpoint. Returns 409 if the service already has a private endpoint. Private endpoints are available only for AWS Postgres services, and only for organizations with the feature enabled. Available on the Scale and Enterprise plans; Basic organizations get a 403.

post/v1/organizations/{organizationId}/postgres/{postgresId}/privateEndpoint

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the organization that owns the Postgres service.

postgresId, string uuid required
Example:f71df78e-ddad-82d0-8dfa-abbec741b82e

ID of the Postgres service.

Request body

PostgresPrivateEndpointPostRequest required
supportedRegions, string[]

AWS region IDs, other than the service region, from which VPC endpoints can connect, such as us-west-2. The service region is always supported and must not be listed. Requires cross-region private endpoints to be enabled for the organization.

Example request

{
  "supportedRegions": [
    "us-west-2"
  ]
}

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, PostgresPrivateEndpoint

Example response

{
  "status": 200,
  "result": {
    "state": "available",
    "endpointServiceName": "com.amazonaws.vpce.us-east-1.vpce-svc-0123456789abcdef0",
    "endpointServiceId": "vpce-svc-0123456789abcdef0",
    "ipAddressType": "dual",
    "ports": [
      {
        "port": 5432,
        "targetPort": 5432
      }
    ],
    "supportedRegions": [
      "us-west-2"
    ],
    "allowedVpcEndpoints": [
      {
        "vpcEndpointId": "vpce-0123456789abcdef0",
        "description": "Production VPC"
      }
    ]
  }
}

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status