Mengajukan titik akhir pribadi untuk instans Tair (kompatibel dengan Redis OSS).
Deskripsi operasi
Klien dapat melewati node proxy dan menggunakan titik akhir pribadi untuk terhubung langsung ke instans kluster, mirip dengan koneksi ke kluster Redis native. Mode koneksi langsung ini dapat mengurangi overhead komunikasi dan waktu respons Tair (kompatibel dengan Redis OSS).
Untuk memanggil operasi ini, pastikan instans memenuhi persyaratan berikut:
Instans merupakan instans kluster.
Instans dideploy dalam mode klasik.
Instans dideploy di virtual private cloud (VPC). Jika instans dideploy di jaringan klasik, Anda dapat memanggil operasi SwitchNetwork untuk mengubah jenis jaringan menjadi VPC.
Enkripsi SSL dinonaktifkan untuk instans tersebut. Jika enkripsi SSL diaktifkan, Anda dapat memanggil operasi ModifyInstanceSSL untuk menonaktifkan enkripsi SSL.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:AllocateDirectConnection |
create |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
r-bp1zxszhcgatnx**** |
| ConnectionString |
string |
No |
Awalan titik akhir pribadi. Awalan harus dimulai dengan huruf kecil dan hanya boleh berisi huruf kecil serta angka. Panjang awalan harus antara 8 hingga 40 karakter. |
redisdirect123 |
| Port |
string |
No |
Nomor port instans. Nilai yang valid: 1024 hingga 65535. Nilai default: 6379. |
6379 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
5D622714-AEDD-4609-9167-F5DDD3D1**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NetTypeExists | Specified net type already existed | |
| 400 | InvalidConnType | Specified DB instance conn type is not valid. | |
| 400 | TaskHasExist | The task already exists. | |
| 400 | ConnectionStringAlreadyExists | Specified connection string already exists in the Aliyun RDS. | |
| 400 | InvalidConnectionString.Format | Specified connection string is not valid. | |
| 400 | DirectConnectionAlreadyExists | Specified instance direct connection already exists. | |
| 400 | InvalidVPCParamGroup | Specified vpc param group is not valid. | |
| 400 | InvalidConnectionString | ConnectionString is invalid, valid regex: ^\w+$ | |
| 403 | UnsupportedEngineVersion | Current engine version does not support operations. | |
| 403 | IncorrectMinorVersion | Current engine minor version does not support operations. | |
| 403 | InstanceStatus.NotSupport | Instance status does not support this operation. | |
| 404 | InvalidDbInstanceId.NotFound | Specified instance does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.