Mengasosiasikan sertifikat tambahan dengan listener.
Deskripsi operasi
Operasi AssociateAdditionalCertificatesWithListener bersifat asinkron. Setelah mengirim permintaan, sistem akan mengembalikan ID permintaan dan menjalankan tugas tersebut di latar belakang. Anda dapat memanggil operasi GetListenerAttribute untuk memeriksa status tugas tersebut:
Jika listener HTTPS atau QUIC berada dalam status Associating, proses asosiasi sertifikat sedang berlangsung.
Jika listener HTTPS atau QUIC berada dalam status Associated, proses asosiasi sertifikat telah selesai.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:AssociateAdditionalCertificatesWithListener |
create |
*LoadBalancer
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ListenerId |
string |
Yes |
ID listener. Parameter ini hanya berlaku untuk listener HTTPS dan QUIC. |
lsn-5qnirjhpt****** |
| Certificates |
array<object> |
Yes |
Sertifikat tambahan. |
|
|
object |
No |
Sertifikat tambahan. |
||
| CertificateId |
string |
Yes |
ID sertifikat. Sertifikat tersebut harus merupakan server certificate. Catatan
ID sertifikat harus unik secara global dan diakhiri dengan ID wilayah. Contohnya, 1011****-cn-hangzhou. |
1011****-cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menghasilkan token klien dan memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan sebagai ClientToken. RequestId setiap permintaan API bersifat unik. |
5A2CFF0E-5718-45B5-9D4D-70B3F****** |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan dry run. Nilai yang valid:
|
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|
||
| JobId |
string |
ID tugas asinkron. |
72dcd26b-f12d-4c27-b3af-18f6aed5**** |
| RequestId |
string |
ID permintaan. |
365F4154-92F6-4AE4-92F8-7FF3****** |
Contoh
Respons sukses
JSONformat
{
"JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5****",
"RequestId": "365F4154-92F6-4AE4-92F8-7FF3******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.Listener | The status of %s [%s] is incorrect. | |
| 400 | OperationDenied.DefaultCertificateUsed | The operation is not allowed because of %s. | |
| 400 | OperationFailed.DefaultCertificateNotFound | The operation failed because of %s. | |
| 400 | ResourceAlreadyAssociated.Certificate | The specified resource %s is already associated. | |
| 400 | ResourceQuotaExceeded.LoadBalancerCertificatesNum | The quota of %s is exceeded for resource %s, usage %s/%s. | |
| 400 | OperationDenied.HttpListenerNotSupport | The operation is not allowed because of %s. | |
| 400 | InvalidParameter | Invalid parameter, please check the parameter input. | |
| 400 | ResourceInConfiguring.Listener | The specified resource %s is configuring, please try again later. | |
| 403 | Forbidden.LoadBalancer | Authentication has failed for LoadBalancer. | |
| 404 | ResourceNotFound.Certificate | The specified resource %s is not found. | |
| 404 | ResourceNotFound.Listener | The specified resource %s is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.