You can call this operation to globally modify the routing protocol of a Smart Access Gateway (SAG) device.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No ModifySagGlobalRouteProtocol

The operation that you want to perform.

Set the value to ModifySagGlobalRouteProtocol.

RegionId String Yes cn-shanghai

The ID of the region where the SAG instance is deployed.

RouteProtocol String Yes OSPF

The routing protocol. Valid values:

  • STATIC: the static routing protocol.
  • OSPF: the Open Shortest Path First (OSPF) protocol.
  • BGP: the Border Gateway Protocol (BGP).
SmartAGId String Yes sag-whfn****

The ID of the SAG instance.

SmartAGSn String Yes sag32a30****

The serial number of the SAG device that is associated with the SAG instance.

Response parameters

Parameter Type Example Description
RequestId String DB0A026C-A8E5-40AB-977E-3A87DD78F694

The ID of the request.

Examples

Sample requests

http(s)://smartag.cn-shanghai.aliyuncs.com/? Action=ModifySagGlobalRouteProtocol
&RegionId=cn-shanghai
&RouteProtocol=OSPF
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30****
&<Common request parameters>

Sample success responses

XML format

<ModifySagGlobalRouteProtocolResponse>
     <RequestId>DB0A026C-A8E5-40AB-977E-3A87DD78F694</RequestId>
</ModifySagGlobalRouteProtocolResponse>

JSON format

{
"RequestId": "DB0A026C-A8E5-40AB-977E-3A87DD78F694"
}

Error codes

HttpCode Error code Error message Description
400 SAG.InstanceNoFound The specified SAG instance does not exist. The specified SAG instance does not exist.
400 SAG.SoftwareNotSupport The specified SAG software edition instance does not support ACL. The SAG APP instance does not support access control lists (ACLs).
500 SmartAccessGatewayInArrears The specified Smart Access Gateway has expired. The specified SAG instance has expired and stops running. Renew the SAG instance.
500 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated. The specified SAG instance is not activated. Activate the SAG instance.
403 SmartAccessGatewayNotOnline The specified smart access gateway is not online. The system failed to process the request because the specified SAG device is not connected to Alibaba Cloud.
500 SmartAccessGatewayOffline The request cannot be completed. The Smart Access Gateway is offline. The system failed to process the request because the specified SAG device is not connected to Alibaba Cloud.
400 InstanceNotExit The specified instance does not exist. The specified SAG instance does not exist.
400 ConfigUnsynchronized The network configuration is not synchronized. The network configurations are not synchronized.
403 FeatureNotSupport The current edition of the smart access gateway does not support this feature. The current version of the SAG device does not support this feature.
403 FeatureNotSupportForActiveSmartAG The current edition of the active smart access gateway does not support this feature. The current version of the active SAG device does not support this feature.
403 FeatureNotSupportForStandBySmartAG The current edition of the standby smart access gateway does not support this feature. The current version of the standby SAG device does not support this feature.

For a list of error codes, visit the API Error Center.