Mengaktifkan atau menonaktifkan alokasi otomatis untuk sumber daya layanan dari layanan titik akhir.
Deskripsi operasi
-
Before you modify the properties of a service resource, ensure that the endpoint service is in the Active state. You can call the GetVpcEndpointServiceAttribute operation to query the status of the endpoint service.
-
The UpdateVpcEndpointServiceResourceAttribute operation does not support concurrent modifications to the properties of service resources that belong to the same endpoint service.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:UpdateVpcEndpointServiceResourceAttribute |
update |
*VpcEndpointService
*LoadBalancer
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah tempat Anda ingin mengubah sumber daya layanan. Panggil operasi DescribeRegions untuk mendapatkan ID wilayah. |
cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Hasilkan nilai parameter dari klien Anda untuk memastikan bahwa nilainya unik di antara permintaan yang berbeda. ClientToken hanya dapat berisi karakter ASCII. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid:
|
false |
| ServiceId |
string |
Yes |
ID layanan titik akhir. |
epsrv-hp3vpx8yqxblby3i**** |
| ResourceId |
string |
Yes |
ID sumber daya layanan. |
lb-hp32z1wp5peaoox2q**** |
| ZoneId |
string |
No |
Zona tempat sumber daya layanan berada. Parameter ini diperlukan jika sumber daya layanan adalah Application Load Balancer (ALB), Network Load Balancer (NLB), atau Gateway Load Balancer (GWLB). |
cn-hangzhou-i |
| AutoAllocatedEnabled |
boolean |
Yes |
Apakah akan mengaktifkan alokasi sumber daya otomatis. Nilai valid:
|
true |
| RegionId |
string |
Yes |
The ID of the region where you want to modify the service resource. Call the DescribeRegions operation to obtain the region ID. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EndpointServiceNotFound | The specified Service does not exist. | |
| 400 | EndpointServiceLocked | The specified Service is locked. | |
| 400 | EndpointServiceOperationDenied | The specified operation of endpoint service is not allowed. | |
| 400 | EndpointServiceResourceNotFound | The specified service resource is not found. | |
| 400 | ResourceAutoAllocateViolation | The specified endpoint service must have at least one automatically allocated resource in one zone. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.