Menambahkan resource layanan ke endpoint service.
Deskripsi operasi
-
Sebelum Anda menambahkan resource layanan ke endpoint service, pastikan endpoint service berada dalam status Active. Panggil operasi GetVpcEndpointServiceAttribute untuk menanyakan status endpoint service.
-
Operasi AttachResourceToVpcEndpointService tidak mendukung penambahan resource layanan secara bersamaan ke instance endpoint service yang sama.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:AttachResourceToVpcEndpointService |
update |
*VpcEndpointService
LoadBalancer
LoadBalancer
LoadBalancer
*NatGateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region tempat endpoint service di-deploy. Panggil operasi DescribeRegions untuk memperoleh ID region. |
cn-hangzhou |
| ResourceType |
string |
Yes |
Tipe resource layanan. Nilai yang valid:
|
slb |
| ResourceId |
string |
Yes |
ID dari resource layanan. |
lb-hp32z1wp5peaoox2q**** |
| ZoneId |
string |
No |
Zona tempat resource layanan berada. Parameter ini wajib diisi jika resource layanan berupa instance ALB, NLB, atau GWLB. |
cn-hangzhou-j |
| ServiceId |
string |
Yes |
Endpoint service yang ingin Anda tambahkan resource layanannya. |
epsrv-hp3vpx8yqxblby3i**** |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan dry run. Nilai yang valid:
|
false |
| ClientToken |
string |
No |
Client token yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. ClientToken hanya boleh berisi karakter ASCII. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| RegionId |
string |
Yes |
ID region tempat endpoint service di-deploy. Panggil operasi DescribeRegions untuk memperoleh ID region. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
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 | EndpointServiceOperationDenied | The specified operation of endpoint service is not allowed. | |
| 400 | EndpointServiceResourceExist | The specified resource already exists. | |
| 400 | LoadBalancerNotFound | The specified load balancer does not exist. | |
| 400 | LoadBalancerNotSupportPrivateLink | The specified SLB does not support PrivateLink. | |
| 400 | AlbNotFound | The specified Alb does not exist. | |
| 400 | EndpointServiceResourceTypeNotSupport | The specified resource type is not supported. | |
| 400 | QuotaMisMatched | The resource you applied for has exceeded the quota. | |
| 400 | VSwitchNotFound | The specified VSwitch does not exist. | |
| 400 | ResourceNotFound.NatGateway | The specified resource %s is not found. | |
| 400 | Mismatch.ResourceType | The %s is mismatched for %s and %s. | |
| 400 | EndpointServiceNotSupportedZone | The specified endpoint service does not support the zone. | |
| 400 | ServiceResourceNotSupportIpv6 | The resource is not support ipv6. | |
| 400 | EndpointServiceResourceTypeNotEqual | the service resource type not equal request type. | |
| 400 | OperationDenied.ServiceResourceIpVersionMismatch | The endpoint service and service resource AddressIpVersion do not match. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.