Memperbarui konfigurasi kelompok titik akhir.
Deskripsi operasi
-
The UpdateEndpointGroup API is an asynchronous API. After you call this API, the system returns a request ID and starts the update in the background; the configuration is not modified immediately. Call DescribeEndpointGroup to check the status of the endpoint group:
-
If an endpoint group is in the updating status, its configuration is being modified, and you can only perform queries.
-
If an endpoint group is in the active status, the update is complete.
-
-
The UpdateEndpointGroup API does not support concurrent updates to endpoint groups in the same Global Accelerator (GA) instance.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ga:UpdateEndpointGroup |
update |
*EndpointGroup
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah tempat instans GA di-deploy. Atur nilainya ke cn-hangzhou. |
cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Token harus unik di antara permintaan dan hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId permintaan API sebagai ClientToken. RequestId bersifat unik untuk setiap permintaan API. |
123e4567-e89b-12d3-a456-426655440000 |
| EndpointGroupId |
string |
Yes |
ID kelompok titik akhir. |
epg-bp1dmlohjjz4kqaun**** |
| Name |
string |
No |
Nama kelompok titik akhir. Nama harus terdiri dari 1 hingga 128 karakter, diawali dengan huruf atau karakter Tionghoa, dan dapat berisi angka, titik (.), garis bawah (_), dan tanda hubung (-). |
group1 |
| Description |
string |
No |
Deskripsi kelompok titik akhir. Deskripsi dapat terdiri dari hingga 200 karakter dan tidak boleh diawali dengan |
EndpointGroup |
| EndpointGroupRegion |
string |
Yes |
ID wilayah tempat kelompok titik akhir di-deploy. |
cn-hangzhou |
| TrafficPercentage |
integer |
No |
Bobot kelompok titik akhir ketika Pendengar dikaitkan dengan beberapa kelompok titik akhir dalam satu daftar. |
20 |
| HealthCheckIntervalSeconds |
integer |
No |
Interval antara Pemeriksaan kesehatan, dalam detik. Nilai valid: 1 hingga 50. |
3 |
| HealthCheckPath |
string |
No |
Path yang digunakan untuk Pemeriksaan kesehatan. |
/healthcheck |
| HealthCheckPort |
integer |
No |
Port yang digunakan untuk Pemeriksaan kesehatan. Nilai valid: 1 hingga 65535. |
20 |
| HealthCheckProtocol |
string |
No |
Protokol yang digunakan untuk Pemeriksaan kesehatan. Nilai valid:
|
HTTPS |
| ThresholdCount |
integer |
No |
Jumlah Pemeriksaan kesehatan berurutan yang berhasil atau gagal yang diperlukan sebelum status Pemeriksaan kesehatan suatu Titik akhir berubah. Nilai valid: 2 hingga 10. |
3 |
| EndpointConfigurations |
array<object> |
No |
Konfigurasi Titik akhir. |
|
|
object |
No |
The configurations of the endpoints. |
||
| Type |
string |
Yes |
The type of endpoint. Valid values:
Catatan
Catatan
For more information, see service-linked roles. |
Ip |
| EnableClientIPPreservation |
boolean |
No |
Specifies whether to preserve client source IP addresses. Valid values:
Catatan
|
false |
| Weight |
integer |
Yes |
The weight of the endpoint. Valid values: 0 to 255. Catatan
If you set the weight of an endpoint to 0, Global Accelerator stops distributing traffic to the endpoint. Proceed with caution. |
20 |
| EnableProxyProtocol |
boolean |
No |
Specifies whether to use the Proxy Protocol to preserve client source IP addresses. Valid values:
Catatan
|
false |
| Endpoint |
string |
Yes |
Enter an IP address, a domain name, or an instance ID based on the value of the |
120.XX.XX.21 |
| SubAddress |
string |
No |
The private IP address of the elastic network interface. Catatan
If the endpoint type is ENI, you can specify this parameter. If you omit this parameter, the primary private IP address of the ENI is used. |
172.168.XX.XX |
| VpcId |
string |
No |
The ID of the VPC. You can specify at most one VPC ID for an endpoint group that is associated with an intelligent routing listener. Catatan
This parameter is required only when the endpoint type is IpTarget. |
vpc-2zen6t0u7xhm0k5iz**** |
| VSwitchIds |
array |
No |
A list of vSwitches in the VPC. |
|
|
string |
No |
The vSwitch ID. You can specify at most two vSwitch IDs for an endpoint group that is associated with an intelligent routing listener. Catatan
This parameter is required only when the endpoint type is IpTarget.
|
vsw-2ze2dbtkxabpvpqxc**** |
|
| Provider |
string |
No |
BAILIAN |
|
| ApiKeys |
array |
No |
||
|
string |
No |
sk-****** |
||
| EndpointRequestProtocol |
string |
No |
Protokol yang digunakan oleh layanan backend. Daftar nilai valid:
Catatan
|
HTTP |
| EndpointProtocolVersion |
string |
No |
Versi protokol yang digunakan oleh layanan backend. Nilai valid:
Catatan
Anda hanya dapat mengatur parameter ini ketika |
HTTP1.1 |
| PortOverrides |
array<object> |
No |
Konfigurasi Pemetaan port. |
|
|
object |
No |
The port override settings. |
||
| ListenerPort |
integer |
No |
The listener port in the port override settings. Catatan
|
443 |
| EndpointPort |
integer |
No |
The endpoint port in the port override settings. |
80 |
| HealthCheckEnabled |
boolean |
No |
Apakah akan mengaktifkan fitur Pemeriksaan kesehatan. Nilai valid:
|
true |
| HealthCheckHost |
string |
No |
Nama domain yang digunakan untuk Pemeriksaan kesehatan. |
www.taobao.com |
| EndpointIpVersion |
string |
No |
Protokol IP yang digunakan oleh GA untuk berkomunikasi dengan Titik akhir. Nilai valid: ● IPv4 (default): IPv4. ● IPv6: IPv6. ● ProtocolAffinity: protokol IP yang sama dengan permintaan Klien. |
IPv4 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data returned in the response. |
||
| RequestId |
string |
The ID of the request. |
6FEA0CF3-D3B9-43E5-A304-D217037876A8 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6FEA0CF3-D3B9-43E5-A304-D217037876A8\t"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission.EnableHealthCheck | You do not have permission to enable health check. | |
| 400 | NotExist.EndPointGroup | The endpoint group does not exist. | |
| 400 | StateError.EndPointGroup | The specified state of endpoint group is invalid. | |
| 400 | NotExist.Listener | The listener does not exist. | |
| 400 | NotActive.Listener | The state of the listener is not active. | |
| 400 | NotExist.Accelerator | The accelerated instance does not exist. | |
| 400 | StateError.Accelerator | The state of the accelerated instance is invalid. | |
| 400 | QuotaExceeded.EndPoint | The maximum number of endpoints is exceeded. | |
| 400 | NoPermission.VpcEndpoint | You are not authorized to perform the operation. | |
| 400 | EndPointRequestProtocolIllegal.EndpointGroup | endpoint group request protoco is illegal | |
| 400 | QuotaExceeded.PortOverride | The number of port override exceeds the limit. | |
| 400 | NotExist.ListenerPort | listener port %s is not exist |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.