Updates prefix routes.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateVbrAllowPrefixes | The operation that you want to perform. Set the value to UpdateVbrAllowPrefixes. |
RegionId | String | Yes | cn-hangzhou | The ID of the region where you want to query prefix routes. You can call the DescribeRegions operation to query the most recent region list. |
VbrId | String | No | vbr-bp1jcg5cmxjbl9xgc**** | The VBR ID. |
AllowPrefixes.N | String | No | 10.0.0.0/8 | The prefix routes. You can enter up to 20 prefix routes. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6 | The request ID. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpdateVbrAllowPrefixes
&RegionId=cn-hangzhou
&VbrId=vbr-bp1jcg5cmxjbl9xgc****
&AllowPrefixes=["10.0.0.0/8"]
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateVbrAllowPrefixesResponse>
<RequestId>DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6</RequestId>
</UpdateVbrAllowPrefixesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | MissingParam.VbrId | You must specify VbrId. | vbrId is not specified. |
400 | OperationDenied.PconnTrafficNotEnable | Operation is not allowed because the outbound data transfer fees is not enabled. | The operation is not allowed because billing for outbound data transfer is disabled. |
400 | QuotaExceeded.PrefixesCount | The quota of prefixes count is exceeded. | The number of prefixes exceeds the quota limit. |
400 | IllegalParam.CidrBlock | The specified CidrBlock (%s) is illegal. | CidrBlock is set to an invalid value. |
400 | DuplicatedParam.CidrBlock | The param of cidrBlock is duplicated. | A duplicate CIDR block is specified. |
400 | OperationDenied.NotAttachCen | The operation is not allowed because the instance is not attached to a CEN instance. | The operation is not allowed because the instance is not attached to Cloud Enterprise Network (CEN). |
400 | IncorrectStatus.VbrId | The status of %s is incorrect. | The status of the VBR is invalid. |
404 | ResourceNotFound.Vbr | The VBR resource is not found. | The VBR is not found. |
For a list of error codes, see Service error codes.