All Products
Search
Document Center

AnalyticDB:Manage public endpoints

Last Updated:Mar 28, 2026

AnalyticDB for PostgreSQL supports two types of endpoints: internal and public. An internal endpoint is provided by default. Apply for a public endpoint when your application needs to connect from outside the instance's region or network type.

When to use a public endpoint

Endpoint typeUse when
Internal onlyYour application runs on an Elastic Compute Service (ECS) instance in the same region and network type as the AnalyticDB for PostgreSQL instance.
Public onlyYour application runs on an ECS instance in a different region, or on a third-party system.
BothSome modules of your application run on a same-region, same-network-type ECS instance, while other modules run in a different region or on a third-party system.

Prerequisites

Before you begin, ensure that you have:

  • An AnalyticDB for PostgreSQL instance

  • The IP address or CIDR block of your application (required to configure the whitelist before connecting)

Apply for or release a public endpoint

Warning

Public endpoints expose your instance to the internet and reduce security. For production workloads, migrate your application to an ECS instance in the same region as your AnalyticDB for PostgreSQL instance to improve security and data transfer speed.

  1. Log on to the AnalyticDB for PostgreSQL console.

  2. In the upper-left corner, select the region where the instance resides.

  3. Find the instance and click its ID.

  4. In the left-side navigation pane, click Database Connection.

  5. To the right of Public Endpoint, click Apply for Public Endpoint or Release Public Endpoint.

Before you connect your application, add the IP address or CIDR block of your application to the instance whitelist. For details, see Configure an IP address whitelist.

API reference

OperationDescription
AllocateInstancePublicConnectionApplies for a public endpoint for an AnalyticDB for PostgreSQL instance.
ReleaseInstancePublicConnectionReleases the public endpoint of an AnalyticDB for PostgreSQL instance.