Modifies the route advertisement policy for a CIDR block.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the Smart Access Gateway (SAG) instance. | cn-shanghai |
SmartAGId | string | Yes | The ID of the SAG instance. | sag-erx3qta5xg5zyq**** |
HcInstanceId | string | Yes | The ID of the health check instance. | hc-sztovuprqzgm50**** |
SourceType | string | Yes | The type of the route source. Valid values:
| local |
DestCidrBlock | string | Yes | The destination CIDR block. | 172.XX.XX.0/24 |
RouteSource | string | Yes | The source of routes. Valid values:
| OSPF |
RouteDistribution | string | Yes | The route advertisement policy. Valid values:
For more information, see Configure health checks and Advertise routes. | publish |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "24C58BD0-1679-4942-9D42-00B635DAAADB"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | SAG.InstanceIdEmpty | You must specify the SAG instance ID. | You must specify the SAG instance ID. |
400 | SAG.InstanceNoFound | The specified SAG instance does not exist. | The specified SAG instance does not exist. |
400 | RD.InvalidDestCidrBlock | The specified destination CIDR block is invalid. | The specified destination CIDR block is invalid. |
400 | RD.InvalidHcInstanceId | The specified network health check instance ID is invalid. | The specified network health check instance ID is invalid. |
400 | RD.InvalidRouteDistribution | The specified route distribution policy is invalid. | The specified route distribution policy is invalid. |
400 | RD.InvalidRouteSource | The specified route source is invalid. | The specified route source is invalid. |
400 | RD.InvalidSourceType | The specified route source type is invalid. | The specified route source type is invalid. |
400 | HC.InstanceNoFound | The specified network health check instance does not exist. | The specified network health check instance does not exist. |
400 | SAG.Arrearage | The specified SAG instance has overdue payments. Renew the instance first. | The specified SAG instance has overdue payments. Renew the instance first. |
400 | SAG.NoActive | The specified SAG instance has not been activated. | The specified SAG instance has not been activated. |
400 | SAG.SoftwareNotSupportFeature | The specified SAG Software instance does not support this feature. | The specified SAG Software instance does not support this feature. |
403 | FeatureNotSupport | The current edition of the smart access gateway does not support this feature. | The current version of Smart Access Gateway does not support this feature. |
500 | InternalError | An error occurred while processing your request. | An error occurred while processing your request. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history