Mengajukan permohonan titik akhir publik untuk instans Tair (kompatibel dengan Redis OSS).
Deskripsi operasi
Anda juga dapat mengajukan permohonan titik akhir publik melalui Konsol ApsaraDB for Redis. Untuk informasi selengkapnya, lihat Menggunakan titik akhir publik untuk menghubungkan ke instans ApsaraDB for Redis.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:AllocateInstancePublicConnection |
create |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
r-bp1zxszhcgatnx**** |
| ConnectionStringPrefix |
string |
Yes |
Awalan titik akhir publik. Awalan harus dimulai dengan huruf kecil dan hanya boleh berisi huruf kecil serta angka. Panjang awalan harus antara 8 hingga 40 karakter. Catatan
Titik akhir menggunakan format |
r-bp1zxszhcgatnx**** |
| Port |
string |
Yes |
Nomor port layanan instans. Nilai yang valid: 1024 hingga 65535. |
6379 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
20C8341E-B5AD-4B24-BD82-D73241522ABF |
Contoh
Respons sukses
JSONformat
{
"RequestId": "20C8341E-B5AD-4B24-BD82-D73241522ABF"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingInstanceId | InstanceId is mandatory for this action. | |
| 400 | MissingConnectionString | ConnectionStringPrefix is mandatory for this action. | |
| 400 | MissingPort | Port is mandatory for this action. | |
| 400 | NetTypeExists | Specified net type already existed. | |
| 400 | InvalidConnectionString.Format | Specified connection string is not valid. | |
| 400 | NewSSLAlreadyEnabled | new SSL have already been enabled. | |
| 403 | SSLNotSupportNetType | SSL instance does not support create public network. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.