The UpdateVpcEndpointServiceResourceAttribute operation enables or disables automatic allocation for a service resource of an endpoint service.
Operation description
-
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.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:UpdateVpcEndpointServiceResourceAttribute |
update |
*VpcEndpointService
*LoadBalancer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| 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 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. Generate a parameter value from your client to ensure that the value is unique among different requests. ClientToken can contain only ASCII characters. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values:
|
false |
| ServiceId |
string |
Yes |
The ID of the endpoint service. |
epsrv-hp3vpx8yqxblby3i**** |
| ResourceId |
string |
Yes |
The ID of the service resource. |
lb-hp32z1wp5peaoox2q**** |
| ZoneId |
string |
No |
The zone where the service resource is located. This parameter is required if the service resource is an Application Load Balancer (ALB), a Network Load Balancer (NLB), or a Gateway Load Balancer (GWLB). |
cn-hangzhou-i |
| AutoAllocatedEnabled |
boolean |
Yes |
Specifies whether to enable automatic resource allocation. Valid values:
|
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 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
Examples
Success response
JSON format
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EndpointServiceNotFound | The specified Service does not exist. | The specified Service does not exist. |
| 400 | EndpointServiceLocked | The specified Service is locked. | The specified Service is locked. |
| 400 | EndpointServiceOperationDenied | The specified operation of endpoint service is not allowed. | 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. | The specified endpoint service must have at least one automatically allocated resource in one zone. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.