Membuat TautanDB.
Deskripsi operasi
A DBLink provides connectivity between two PolarDB for PostgreSQL (Oracle-compatible) clusters, or between a PolarDB for PostgreSQL (Oracle-compatible) cluster and a self-managed PostgreSQL database on an Elastic Compute Service (ECS) instance. This lets you query data across clusters.
-
Each cluster supports a maximum of 10 DBLinks.
-
A DBLink consumes one DBLink quota from both the source cluster and the destination cluster.
-
The source cluster and the destination cluster or destination ECS instance must be in the same region.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateDBLink |
create |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-************ |
| DBClusterId |
string |
Yes |
ID Kluster sumber untuk TautanDB. Catatan
Anda dapat memanggil operasi DescribeDBClusters untuk mengkueri daftar Kluster PolarDB Basis Data Relasional Cloud-Native. |
pc-a************ |
| DBLinkName |
string |
Yes |
Nama TautanDB.
|
dblink_test |
| TargetDBInstanceName |
string |
No |
ID Kluster tujuan untuk TautanDB. Catatan
|
pc-b************ |
| TargetDBAccount |
string |
Yes |
Akun database tujuan. Catatan
Anda dapat memanggil operasi DescribeAccounts untuk mengkueri akun database dari Kluster PolarDB Basis Data Relasional Cloud-Native. |
testacc |
| TargetDBPasswd |
string |
Yes |
Kata sandi akun database tujuan. |
Test1111 |
| TargetDBName |
string |
Yes |
Nama database tujuan. Catatan
Anda dapat memanggil operasi DescribeDatabases untuk mengkueri database dalam Kluster PolarDB Basis Data Relasional Cloud-Native. |
testdb2 |
| SourceDBName |
string |
Yes |
Nama database sumber. Catatan
Anda dapat memanggil operasi DescribeDatabases untuk mengkueri database dalam Kluster PolarDB Basis Data Relasional Cloud-Native. |
testdb1 |
| TargetIp |
string |
No |
Alamat IP database Oracle yang dikelola sendiri yang berjalan pada Instance ECS. |
192.**.**.46 |
| TargetPort |
string |
No |
Nomor Port database Oracle yang dikelola sendiri yang berjalan pada Instance ECS. |
1521 |
| VpcId |
string |
No |
ID virtual private cloud (VPC). Catatan
Anda dapat memanggil operasi DescribeVpcs untuk mengkueri detail VPC. |
vpc-bp1qpo0kug3a20qqe**** |
| RegionId |
string |
No |
ID Wilayah. Catatan
Anda dapat memanggil operasi DescribeRegions untuk mengkueri detail Wilayah. |
cn-hangzhou |
| ClientToken |
string |
No |
token Klien yang digunakan untuk memastikan idempotensi permintaan. Klien menghasilkan token tersebut. Pastikan token unik di antara permintaan yang berbeda. token bersifat case-sensitive dan panjangnya maksimal 64 karakter ASCII. |
6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F9F1CB1A-B1D5-4EF5-A53A-************ |
Contoh
Respons sukses
JSONformat
{
"RequestId": "F9F1CB1A-B1D5-4EF5-A53A-************"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBLinkName.Malformed | The specified parameter DBLinkName is not valid. | |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | DBLinkSourceDBNotFound | Specified source db does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.