All Products
Search
Document Center

Smart Access Gateway:ModifyRouteDistributionStrategy

Last Updated:Jul 31, 2025

Modifies the route advertisement policy for a CIDR block.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
smartag:ModifyRouteDistributionStrategyupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the Smart Access Gateway (SAG) instance.

cn-shanghai
SmartAGIdstringYes

The ID of the SAG instance.

sag-erx3qta5xg5zyq****
HcInstanceIdstringYes

The ID of the health check instance.

hc-sztovuprqzgm50****
SourceTypestringYes

The type of the route source. Valid values:

  • cloud: Alibaba Cloud-facing routes.
  • local: private network-facing routes.
local
DestCidrBlockstringYes

The destination CIDR block.

172.XX.XX.0/24
RouteSourcestringYes

The source of routes. Valid values:

  • Alibaba Cloud-facing routes

    • The ID of the Virtual Private Cloud (VPC): learns routes from the VPC network.
    • The ID of the virtual border router (VBR): learns routes from the VBR.
    • The ID of the SAG instance: learns routes from the SAG instance.
  • Private network-facing routes

    • STATIC: static routes specified in the SAG console.
    • OSPF: learns routes through the Open Shortest Path First (OSPF) protocol.
    • BGP: learns routes through Border Gateway Protocol (BGP).
OSPF
RouteDistributionstringYes

The route advertisement policy. Valid values:

  • publish: advertises routes.
  • no_publish: does not advertise routes.
  • no_publish_and_publish_on_health_success: routes are advertised only when they pass the health check.
  • no_publish_and_publish_on_health_fail: routes are advertised only when they fail the health check.
  • publish_and_revoke_on_health_success: advertised routes are withdrawn only when they pass the health check.
  • publish_and_revoke_on_health_fail: advertised routes are withdrawn only when they fail the health check.

For more information, see Configure health checks and Advertise routes.

publish

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

24C58BD0-1679-4942-9D42-00B635DAAADB

Examples

Sample success responses

JSONformat

{
  "RequestId": "24C58BD0-1679-4942-9D42-00B635DAAADB"
}

Error codes

HTTP status codeError codeError messageDescription
400SAG.InstanceIdEmptyYou must specify the SAG instance ID.You must specify the SAG instance ID.
400SAG.InstanceNoFoundThe specified SAG instance does not exist.The specified SAG instance does not exist.
400RD.InvalidDestCidrBlockThe specified destination CIDR block is invalid.The specified destination CIDR block is invalid.
400RD.InvalidHcInstanceIdThe specified network health check instance ID is invalid.The specified network health check instance ID is invalid.
400RD.InvalidRouteDistributionThe specified route distribution policy is invalid.The specified route distribution policy is invalid.
400RD.InvalidRouteSourceThe specified route source is invalid.The specified route source is invalid.
400RD.InvalidSourceTypeThe specified route source type is invalid.The specified route source type is invalid.
400HC.InstanceNoFoundThe specified network health check instance does not exist.The specified network health check instance does not exist.
400SAG.ArrearageThe specified SAG instance has overdue payments. Renew the instance first.The specified SAG instance has overdue payments. Renew the instance first.
400SAG.NoActiveThe specified SAG instance has not been activated.The specified SAG instance has not been activated.
400SAG.SoftwareNotSupportFeatureThe specified SAG Software instance does not support this feature.The specified SAG Software instance does not support this feature.
403FeatureNotSupportThe current edition of the smart access gateway does not support this feature.The current version of Smart Access Gateway does not support this feature.
500InternalErrorAn 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 timeSummary of changesOperation
No change history