Postgres

Update 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 /> Approves VPC endpoints by ID and sets the supported regions. At least one of allowedVpcEndpoints and supportedRegions is required, and each one provided replaces the existing list in full, so include every entry to keep. 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.

patch/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

PostgresPrivateEndpointPatchRequest required
allowedVpcEndpoints, PostgresPrivateEndpointVpcEndpoint[]

Full replacement of the approved VPC endpoints: endpoints not listed are no longer allowed to connect. Each endpoint ID must be unique.

supportedRegions, string[]

Full replacement of the supported regions. 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

{
  "allowedVpcEndpoints": [
    {
      "vpcEndpointId": "vpce-0123456789abcdef0",
      "description": "Production VPC"
    }
  ],
  "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