You need to enable JavaScript to run this app.
RDS for PostgreSQL

RDS for PostgreSQL

Copy page
Download PDF
Managing connections
CreateDBEndpointPublicAddress
Copy page
Download PDF
CreateDBEndpointPublicAddress
Call the CreateDBEndpointPublicAddress API to create a public address.​
Request type​
Synchronous request.​
Precautions​
  • The public network address is associated with an Elastic IP Address (EIP) . Using an EIP is billed according to EIP billing standards. For more billing information about public network IPs, refer to Elastic IP Address.​
  • A pay-as-you-go EIP enters the Closed status after it falls into arrears for two hours and is automatically disassociated from resources. If your PostgreSQL instance is associated with a pay-as-you-go EIP, you are recommended to pay close attention to the account balance and top it up in good time to avoid unavailability of the instance public address due to arrears. For more information about public IP address billing, refer to Elastic IP Address.​
  • An instance enters the shut-down status when the account is in arrears for 2 hours. During this period, after you top up your account, settle the overdue bills, and have an available balance greater than 0, the instance status will automatically restore to Running. However, released EIPs will not be re-associated with the instance. You need to manually enable public access and bind a new EIP to the instance.​
Debug​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
​
Parameter​
Type​
Is it required?​
Example​
Description​
InstanceId​
String​
Yes​
postgres-ca7b7019****​
Instance ID.​
EndpointId​
String​
No​
postgres-ca7b7019****-custom-f07b​
Instance connection endpoint ID. If not set, the default endpoint is selected.​
EipId​
String​
Yes​
eip-3jhjud2zgy1og3pncmeh7****​
ID of the EIP. Use the DescribeEipAddressAttributes API to query the basic information of the EIP.​
​
Response parameter​
null​
Sample​
Sample request​
​
POST /?Action=CreateDBEndpointPublicAddress&Version=2022-01-01 HTTP/1.1​
Content-Type: application/json​
Host: rds-postgresql.cn-beijing.volcengineapi.com​
X-Date: 20231002T101010Z​
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****​
{​
"InstanceId": "postgres-ca7b7019****",​
"EndpointId": "postgres-ca7b7019****-custom-f07b",​
"EipId": "eip-3jhjud2zgy1og3pncmeh7****"​
}​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "202308021632037746FBCF122026EECAB5",​
"Action": "CreateDBEndpointPublicAddress",​
"Version": "2022-01-01",​
"Service": "rds_postgresql",​
"Region": "cn-beijing"​
},​
"Result": null​
}​
​
Last updated: 2026.03.31 10:45:18