Membuat titik akhir publik untuk titik akhir utama, titik akhir kluster default, atau titik akhir kluster kustom dari kluster PolarDB Basis Data Relasional Cloud-Native.
Deskripsi operasi
You can create a public endpoint for the primary endpoint, the default cluster endpoint, or a custom cluster endpoint of a PolarDB cluster.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateDBEndpointAddress |
create |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. |
pc-************** |
| DBEndpointId |
string |
Yes |
ID titik akhir. Catatan
Untuk informasi selengkapnya, lihat DescribeDBClusterEndpoints. |
pe-************** |
| ConnectionStringPrefix |
string |
No |
Awalan titik akhir baru. Awalan harus memenuhi persyaratan berikut:
|
test-1 |
| NetType |
string |
Yes |
Jenis jaringan titik akhir baru. Tetapkan nilainya menjadi Public. |
Public |
| VPCId |
string |
No |
ID virtual private cloud (VPC). |
vpc-********** |
| SecurityGroupId |
string |
No |
ID grup keamanan ECS. |
sg-bp************** |
| ZoneInfo |
array<object> |
No |
Informasi zona. |
|
|
object |
No |
|||
| ZoneId |
string |
No |
The zone ID. |
cn-hangzhou-b |
| VSwitchId |
string |
No |
The virtual switch ID. |
vsw-********** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
1 |
||
| RequestId |
string |
The request ID. |
6BD9CDE4-5E7B-4BF3-9BB8-83C73E****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6BD9CDE4-5E7B-4BF3-9BB8-83C73E******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EndpointStatus.NotSupport | Current endpoint status does not support this operation. | |
| 400 | NetTypeExists | Specified net type already existed. | |
| 400 | MissParameter.NetType | When NetType is set to NlbVpc, the VPCId, SecurityGroupId and ZoneInfo is needed. | |
| 400 | InvalidDBEndpointId.Malformed | The specified parameter DBEndpointId is not valid. | |
| 400 | InvalidNetType.Malformed | The specified parameter NetType is not valid. | |
| 400 | InvalidConnectionStringPrefix.Malformed | The specified parameter ConnectionStringPrefix is not valid. | |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.