Modifies the Border Gateway Protocol (BGP) settings 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 Yes ModifySagRouteProtocolBgp

The operation that you want to perform. Set the value to ModifySagRouteProtocolBgp.

RegionId String Yes cn-shanghai

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

SmartAGId String Yes sag-whfn****

The ID of the SAG instance.

SmartAGSn String Yes sag32a30****

The serial number of the SAG device.

RouterId String Yes 172.XX.XX.1

The ID of the BGP router.

Set the value to an IPv4 address.

LocalAs Long Yes 65535

The autonomous system number (ASN) to which the SAG device belongs.

Valid values: 1 to 4294967295.

HoldTime Integer Yes 9

The hold time.

Valid values: 3 to 65535. Unit: seconds.

Note When the SAG device establishes a peering 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 within the hold time, the connection between the BGP peers is closed.
KeepAlive Integer Yes 3

The time interval at which keep-alive packets are sent.

Valid values: 0 to 65535. Unit: seconds.

Response parameters

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

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifySagRouteProtocolBgp
&RegionId=cn-shanghai
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30****
&RouterId=172.XX.XX.1
&LocalAs=65535
&HoldTime=9
&KeepAlive=3
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

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

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "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 error message returned because the specified SAG instance does not exist.
400 SAG.SoftwareNotSupport The specified SAG software edition instance does not support ACL. The error message returned because the SAG app instance does not support access control lists (ACLs).
400 InstanceNotExit The specified instance does not exist. The error message returned because the specified instance does not exist.
400 ConfigUnsynchronized The network configuration is not synchronized. The error message returned because the network configurations are not synchronized.
403 SmartAccessGatewayNotOnline The specified smart access gateway is not online. The error message returned because the specified SAG device is not connected to Alibaba Cloud and the system failed to process the request.
403 FeatureNotSupport The current edition of the smart access gateway does not support this feature. The error message returned because the current version of the specified SAG device does not support this feature.
403 FeatureNotSupportForActiveSmartAG The current edition of the active smart access gateway does not support this feature. The error message returned because 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 error message returned because the current version of the standby SAG device does not support this feature.
500 SmartAccessGatewayInArrears The specified Smart Access Gateway has expired. The error message returned because the specified SAG instance has expired. Renew the SAG instance.
500 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated. The error message returned because the specified SAG instance is not activated. Activate the SAG instance first.
500 SmartAccessGatewayOffline The request cannot be completed. The Smart Access Gateway is offline. The error message returned because the specified SAG device is not connected to Alibaba Cloud and the system failed to process the request.

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