Mengubah sumber daya layanan dari zona tempat koneksi titik akhir berada.
Deskripsi operasi
Prerequisites
By default, the feature of modifying a service resource of a zone to which an endpoint connection belongs is unavailable. To use this feature, log on to the Quota Center console. Click Whitelist Quotas in the left-side navigation pane and click PrivateLink in the Networking section. On the page that appears, search for privatelink_whitelist/svc_res_mgt_uat and click Apply in the Actions column.
Usage notes
-
If the endpoint connection is in the Disconnected state, you can manually allocate the service resource in the zone.
-
If the endpoint connection is in the Connected state, you can manually migrate the service resource in the zone. In this case, the connection might be interrupted.
-
UpdateVpcEndpointZoneConnectionResourceAttribute is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the GetVpcEndpointServiceAttribute operation to check whether the service resource is modified.
-
If the endpoint service is in the Pending state, the service resource is being modified.
-
If the endpoint service is in the Active state, the service resource is modified.
-
-
You cannot repeatedly call the UpdateVpcEndpointZoneConnectionResourceAttribute operation to modify a service resource in the zone to which an endpoint connection belongs within a specified period of time.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:UpdateVpcEndpointZoneConnectionResourceAttribute |
update |
*VpcEndpointService
*LoadBalancer
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah koneksi titik akhir yang bandwidth-nya ingin Anda ubah. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan token tersebut unik di antara permintaan yang berbeda. Token hanya dapat berisi karakter ASCII. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run saja, tanpa menjalankan permintaan aktual. Nilai valid:
|
false |
| ServiceId |
string |
Yes |
ID layanan titik akhir. |
epsrv-hp3vpx8yqxblby3i**** |
| EndpointId |
string |
Yes |
ID titik akhir. |
ep-hp33b2e43fays7s8**** |
| ZoneId |
string |
Yes |
ID zona. |
cn-hangzhou-b |
| ResourceAllocateMode |
string |
No |
Mode alokasi sumber daya. Anda hanya dapat mengubah mode alokasi sumber daya jika koneksi titik akhir berada dalam status Disconnected. Nilai valid:
|
Auto |
| ResourceReplaceMode |
string |
No |
Mode migrasi sumber daya layanan. Nilai valid:
Catatan
Anda hanya perlu menentukan parameter ini jika Anda ingin memigrasikan sumber daya layanan dan koneksi titik akhir berada dalam status Connected. Jika Anda menentukan parameter ini, Anda juga harus menentukan parameter ResourceId dan ResourceType. |
Graceful |
| ResourceType |
string |
No |
Tipe sumber daya layanan. Nilai valid:
Catatan
Jika ResourceAllocateMode ditetapkan ke Mannual, atau ResourceReplaceMode ditetapkan, parameter ini wajib diisi. |
slb |
| ResourceId |
string |
No |
ID sumber daya layanan yang ingin Anda mengalokasikan atau migrasikan secara manual di zona tempat koneksi titik akhir di-deploy. Catatan
Jika ResourceAllocateMode ditetapkan ke Mannual, atau ResourceReplaceMode ditetapkan, parameter ini wajib diisi. |
lb-hp32z1wp5peaoox2q**** |
| RegionId |
string |
Yes |
The region ID of the endpoint connection whose bandwidth you want to modify. You can call the DescribeRegions operation to query the most recent region list. |
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 | EndpointConnectionNotFound | The specified endpoint connection does not exist. | |
| 400 | EndpointConnectionOperationDenied | The endpoint is being connected. | |
| 400 | EndpointNotFound | The specified Endpoint does not exist. | |
| 400 | EndpointServiceLocked | The specified Service is locked. | |
| 400 | EndpointLocked | The specified Endpoint is locked. | |
| 400 | EndpointZoneNotFound | The specified zone of Endpoint does not exist. | |
| 400 | EndpointServiceResourceTypeNotSupport | The specified resource type is not supported. | |
| 400 | EndpointServiceResourceNotFound | The specified service resource is not found. | |
| 400 | ZoneOperationDenied | You cannot operate the specified zone. | |
| 400 | IllegalParam.ResourceAllocateMode | The param of %s is illegal. | |
| 400 | IllegalParam.ResourceReplaceMode | The param of %s is illegal. | |
| 400 | MissingParam.ResourceId | The param of %s is missing. | |
| 400 | MissingParam.ResourceAllocateMode | The param of %s is missing. | |
| 400 | OperationDenied.CurrentResourceAutoAllocated | The operation is not allowed because of CurrentResourceAutoAllocated. | |
| 400 | Mismatch.ZoneId | The %s is mismatched for %s and %s. | |
| 400 | GatewayLoadBalancerNotSupportZoneConnection | The gateway load balancer not support zone connection. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.