Memperbarui atribut Pendengar, seperti nama Pendengar dan aksi default.
Deskripsi operasi
UpdateListenerAttribute is an asynchronous operation. After you send a request, the system returns a request ID and runs the task in the background. The listener configuration is not updated immediately. You can call the operation to query the update status of the listener:
-
If a listener is in the Configuring state, it is being updated.
-
If a listener is in the Running state, it has been updated.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:UpdateListenerAttribute |
update |
*LoadBalancer
*SecurityPolicy
*ServerGroup
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ListenerId |
string |
Yes |
ID Pendengar Application Load Balancer (ALB). |
lsn-o4u54y73wq7b****** |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Token harus unik di antara permintaan dan hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem menggunakan RequestId permintaan sebagai ClientToken. RequestId setiap permintaan API mungkin berbeda. |
5A2CFF0E-5718-45B5-9D4D-70B****** |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid:
|
false |
| ListenerDescription |
string |
No |
Nama Pendengar. Nama harus terdiri dari 2 hingga 256 karakter dan dapat berisi huruf, angka, karakter Tiongkok, koma (,), titik (.), titik koma (;), garis miring (/), tanda at (@), garis bawah (_), dan tanda hubung (-). |
HTTP_80 |
| RequestTimeout |
integer |
No |
periode waktu tunggu permintaan. Unit: detik. Nilai valid: 1 hingga 180. Jika tidak ada tanggapan yang diterima dari server backend selama periode waktu tunggu, ALB mengirimkan kode kesalahan |
3 |
| IdleTimeout |
integer |
No |
Periode waktu tunggu idle. Unit: detik. Nilai valid: 1 hingga 60. Jika tidak ada permintaan yang diterima selama periode waktu tunggu, ALB menutup koneksi saat ini. Ketika permintaan baru diterima, ALB membuat koneksi baru. |
15 |
| GzipEnabled |
boolean |
No |
Apakah akan mengaktifkan kompresi Gzip untuk mengompresi tipe file tertentu. Nilai valid:
|
true |
| Http2Enabled |
boolean |
No |
Apakah akan mengaktifkan HTTP/2. Nilai valid:
Catatan
Parameter ini hanya tersedia untuk Pendengar HTTPS. |
true |
| SecurityPolicyId |
string |
No |
Kebijakan keamanan. Kebijakan keamanan sistem dan kebijakan keamanan kustom didukung. Catatan
Parameter ini hanya tersedia untuk Pendengar HTTPS. |
tls_cipher_policy_1_0 |
| CaEnabled |
boolean |
No |
Apakah akan mengaktifkan Otentikasi timbal balik. Nilai valid:
|
false |
| XForwardedForConfig |
object |
No |
Konfigurasi header |
|
| XForwardedForClientCertClientVerifyAlias |
string |
No |
The name of the custom header. This parameter takes effect only when XForwardedForClientCertClientVerifyEnabled is set to true. The name must be 1 to 40 characters in length and can contain letters, digits, underscores (_), and hyphens (-). Catatan
This parameter is available only for HTTPS listeners. |
test_client-verify-alias_123456 |
| XForwardedForClientCertClientVerifyEnabled |
boolean |
No |
Specifies whether to use the
Catatan
This parameter is available only for HTTPS listeners. |
false |
| XForwardedForClientCertFingerprintAlias |
string |
No |
The name of the custom header. This parameter takes effect only when XForwardedForClientCertFingerprintEnabled is set to true. The name must be 1 to 40 characters in length and can contain letters, digits, underscores (_), and hyphens (-). Catatan
This parameter is available only for HTTPS listeners. |
test_finger-print-alias_123456 |
| XForwardedForClientCertFingerprintEnabled |
boolean |
No |
Specifies whether to use the
Catatan
This parameter is available only for HTTPS listeners. |
false |
| XForwardedForClientCertIssuerDNAlias |
string |
No |
The name of the custom header. This parameter takes effect only when XForwardedForClientCertIssuerDNEnabled is set to true. The name must be 1 to 40 characters in length and can contain letters, digits, underscores (_), and hyphens (-). Catatan
This parameter is available only for HTTPS listeners. |
test_issue-dn-alias_123456 |
| XForwardedForClientCertIssuerDNEnabled |
boolean |
No |
Specifies whether to use the
Catatan
This parameter is available only for HTTPS listeners. |
false |
| XForwardedForClientCertSubjectDNAlias |
string |
No |
The name of the custom header. This parameter takes effect only when XForwardedForClientCertSubjectDNEnabled is set to true. The name must be 1 to 40 characters in length and can contain letters, digits, underscores (_), and hyphens (-). Catatan
This parameter is available only for HTTPS listeners. |
test_subject-dn-alias_123456 |
| XForwardedForClientCertSubjectDNEnabled |
boolean |
No |
Specifies whether to use the
Catatan
This parameter is available only for HTTPS listeners. |
false |
| XForwardedForClientSrcPortEnabled |
boolean |
No |
Specifies whether to use the
Catatan
This parameter is available for HTTP and HTTPS listeners. |
false |
| XForwardedForEnabled |
boolean |
No |
Specifies whether to use the
Catatan
|
true |
| XForwardedForProcessingMode |
string |
No |
The processing mode of the
Catatan
|
append |
| XForwardedForProtoEnabled |
boolean |
No |
Specifies whether to use the
Catatan
This parameter is available for HTTP, HTTPS, and QUIC listeners. |
false |
| XForwardedForSLBIdEnabled |
boolean |
No |
Specifies whether to use the
Catatan
This parameter is available for HTTP, HTTPS, and QUIC listeners. |
false |
| XForwardedForSLBPortEnabled |
boolean |
No |
Specifies whether to use the
Catatan
This parameter is available for HTTP, HTTPS, and QUIC listeners. |
false |
| XForwardedForClientSourceIpsEnabled |
boolean |
No |
Specifies whether to allow ALB to find the client's real IP address from the `X-Forwarded-For` header. Valid values:
Catatan
This parameter is available for HTTP and HTTPS listeners. |
false |
| XForwardedForClientSourceIpsTrusted |
string |
No |
The trusted proxy IP address. ALB traverses the |
10.1.1.0/24 |
| XForwardedForHostEnabled |
boolean |
No |
Specifies whether to use the
Catatan
This parameter is available for HTTP, HTTPS, and QUIC listeners. |
false |
| QuicConfig |
object |
No |
Konfigurasi asosiasi Pendengar QUIC. |
|
| QuicListenerId |
string |
No |
The ID of the QUIC listener to associate. This parameter is required if QuicUpgradeEnabled is set to true. This parameter is available only for HTTPS listeners. Catatan
The original listener and the associated QUIC listener must belong to the same ALB instance. The QUIC listener must not be associated with another listener. |
lsn-333 |
| QuicUpgradeEnabled |
boolean |
No |
Specifies whether to enable QUIC upgrade. Valid values:
Catatan
This parameter is available only for HTTPS listeners. |
false |
| Certificates |
array<object> |
No |
Sertifikat. |
|
|
object |
No |
The certificate. |
||
| CertificateId |
string |
No |
The ID of the default certificate. You can add only one default server certificate. |
123157****** |
| CaCertificates |
array<object> |
No |
Sertifikat CA. Anda hanya dapat menentukan satu Sertifikat CA. |
|
|
object |
No |
The CA certificate. |
||
| CertificateId |
string |
No |
The ID of the CA certificate. Catatan
This parameter is required if CaEnabled is set to true. |
123359****** |
| DefaultActions |
array<object> |
No |
Aksi default untuk aturan pengalihan. |
|
|
array<object> |
No |
The default action. |
||
| ForwardGroupConfig |
object |
No |
The configuration of the forwarding action. This parameter is required and takes effect if Type is set to ForwardGroup. You can specify a maximum of 20 forwarding actions. |
|
| ServerGroupTuples |
array<object> |
Yes |
The server group to which requests are forwarded. |
|
|
object |
No |
The server group. |
||
| ServerGroupId |
string |
Yes |
The ID of the server group to which requests are forwarded. |
sgp-i5qt20****** |
| Type |
string |
Yes |
The action type. You can specify only one action type. Set the value to ForwardGroup. This forwards requests to multiple server groups. |
ForwardGroup |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| JobId |
string |
The ID of the asynchronous task. |
72dcd26b-f12d-4c27-b3af-18f6aed5**** |
| RequestId |
string |
The request ID. |
365F4154-92F6-4AE4-92F8-7FF****** |
Contoh
Respons sukses
JSONformat
{
"JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5****",
"RequestId": "365F4154-92F6-4AE4-92F8-7FF******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.LoadBalancer | The status of %s [%s] is incorrect. | |
| 400 | IncorrectBusinessStatus.LoadBalancer | The business status of %s [%s] is incorrect. | |
| 400 | IncorrectStatus.Listener | The status of %s [%s] is incorrect. | |
| 400 | OperationDenied.CrossLoadBalancerQUICListener | The operation is not allowed because of %s. | |
| 400 | ResourceAlreadyAssociated.Listener | The specified resource %s is already associated. | |
| 400 | OperationDenied.GRPCServerGroup | The operation is not allowed because of %s. | |
| 400 | ResourceAlreadyAssociated.Certificate | The specified resource %s is already associated. | |
| 400 | ResourceQuotaExceeded.SecurityPolicyAttachedNum | The quota of %s is exceeded for resource %s, usage %s/%s. | |
| 400 | ResourceQuotaExceeded.ServerGroupAttachedNum | The quota of %s is exceeded for resource %s, usage %s/%s. | |
| 400 | ResourceQuotaExceeded.LoadBalancerServersNum | The quota of %s is exceeded for resource %s, usage %s/%s. | |
| 400 | ResourceQuotaExceeded.ServerAddedNum | The quota of %s is exceeded for resource %s, usage %s/%s. | |
| 400 | OperationDenied.ServerGroupProtocolNotSupport | The operation is not allowed because of ServerGroupProtocolNotSupport. | |
| 400 | UnsupportedFeature.FullTraceHttps | The feature of FullTraceHttps is not supported for current instance. | |
| 400 | ResourceInConfiguring.Listener | The specified resource of %s is being configured, please try again later. | |
| 400 | Mismatch.VpcId | The %s is mismatched for %s and %s. | |
| 400 | InvalidParameter | Invalid parameter, please check the parameter input. | |
| 400 | OperationDenied.CACertificateCorrupted | The CA certificate is corrupted. | |
| 403 | Forbidden.LoadBalancer | Authentication is failed for %s. | |
| 404 | ResourceNotFound.Listener | The specified resource %s is not found. | |
| 404 | ResourceNotFound.ServerGroup | The specified resource %s is not found. | |
| 404 | ResourceNotFound.SecurityPolicy | The specified resource %s is not found. | |
| 404 | ResourceNotFound.Certificate | The specified resource %s is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.