Membuat titik akhir publik untuk titik akhir utama, titik akhir kluster default, atau titik akhir kluster kustom dari kluster PolarDB.
Deskripsi operasi
Anda dapat membuat titik akhir publik untuk titik akhir utama, titik akhir kluster default, atau titik akhir kluster kustom dari kluster PolarDB.
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 ke Public. |
Public |
| VPCId |
string |
No |
ID virtual private cloud (VPC). |
vpc-********** |
| SecurityGroupId |
string |
No |
ID security group ECS. |
sg-bp************** |
| ZoneInfo |
array<object> |
No |
Informasi zona. |
|
|
object |
No |
|||
| ZoneId |
string |
No |
ID zona. |
cn-hangzhou-b |
| VSwitchId |
string |
No |
ID virtual switch. |
vsw-********** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
1 |
||
| RequestId |
string |
ID permintaan. |
6BD9CDE4-5E7B-4BF3-9BB8-83C73E****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6BD9CDE4-5E7B-4BF3-9BB8-83C73E******"
}
Respons error
JSONformat
{
"RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD8660E9CC"
}
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.