You can call this operation to modify the Border Gateway Protocol (BGP) configurations 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 ModifySagRouteProtocolBgp

The operation that you want to perform.

Set the value to ModifySagRouteProtocolBgp.

HoldTime Integer Yes 9

The time period during which the BGP peers remain connected.

Valid values: 3 to 65535.

Note When the SAG device establishes a peer-to-peer connection with a peer device, the hold time of both devices must be the same. If the SAG device does not receive a keepalive or update message from the peer device, the connection between the BGP peers is closed.
KeepAlive Integer Yes 3

The time interval at which keepalive packets are transmitted.

Valid values: 0 to 65535.

LocalAs Integer Yes 12345

The autonomous system number to which the SAG device belongs.

Valid values: 1 to 2147483647.

RegionId String Yes cn-shanghai

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

RouterId String Yes 172.XX.XX.1

The ID of the router that has enabled BGP.

The ID is an IPv4 address.

SmartAGId String Yes sag-whfn****

The ID of the SAG instance.

SmartAGSn String Yes sag32a30****

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

Response parameters

Parameter Type Example Description
RequestId String 48868976-45A2-4E87-B3AA-25089B8B7E49

The ID of the request.

Examples

Sample requests

http(s)://smartag.cn-shanghai.aliyuncs.com/? Action=ModifySagRouteProtocolBgp
&HoldTime=9
&KeepAlive=3
&LocalAs=12345
&RegionId=cn-shanghai
&RouterId=172.XX.XX.1
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30****
&<Common request parameters>

Sample success responses

XML format

<ModifySagRouteProtocolBgpResponse>
      <RequestId>48868976-45A2-4E87-B3AA-25089B8B7E49</RequestId>
</ModifySagRouteProtocolBgpResponse>

JSON format

{
"RequestId": "48868976-45A2-4E87-B3AA-25089B8B7E49"
}

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 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.