Queries the configurations of Border Gateway Protocol (BGP) dynamic routing.

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 DescribeSagRouteProtocolBgp

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

RegionId String Yes cn-shanghai

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

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
HoldTime Integer 9

The hold time. Unit: seconds.

RequestId String 2F39E4FE-B45C-47FF-9921-95780486F52D

The ID of the request.

KeepAlive Integer 3

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

LocalAs Integer 65536

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

RouterId String 192.XX.XX.1

The ID of the BGP router.

TaskStates Array of TaskState

The details about the query task.

ErrorMessage String Successful

The error message returned. A value of Successful indicates that the query task is successful.

State String Succeed

The state of the query task. Valid values:

  • Initialized: The query task is initialized.
  • Offline: The SAG device is disconnected from Alibaba Cloud and Alibaba Cloud has not assigned the query task to the SAG device. After the SAG device is connected to Alibaba Cloud, Alibaba Cloud assigns the query task to the SAG device.
  • Succeed: Alibaba Cloud has assigned the query task to the SAG device.
  • Processing: Alibaba Cloud is assigning the query task to the SAG device.
  • VersionNotSupport: The query task is not supported by the current version of the SAG device.
  • BuildRequestError: The query task is not supported by the controller of the SAG device.
  • HardwareError: Alibaba Cloud failed to assign the query task to the SAG device because the SAG device is faulty.
  • TaskNotExist: The query task does not exist.
  • OfflineNotConfiged: The SAG device is disconnected from Alibaba Cloud and Alibaba Cloud has not assigned the query task to the SAG device. Alibaba Cloud does not assign the query task to the SAG device even after the SAG device is connected to Alibaba Cloud.
ErrorCode String 200

The error code returned. A value of 200 indicates that the query task is successful.

CreateTime String 1586765938000

The timestamp when the task was created.

Examples

Sample requests

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

Sample success responses

XML format

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

<DescribeSagRouteProtocolBgpResponse>
    <HoldTime>9</HoldTime>
    <RequestId>2F39E4FE-B45C-47FF-9921-95780486F52D</RequestId>
    <KeepAlive>3</KeepAlive>
    <LocalAs>65536</LocalAs>
    <RouterId>192.XX.XX.1</RouterId>
    <TaskStates>
        <ErrorMessage>Successful</ErrorMessage>
        <State>Succeed</State>
        <ErrorCode>200</ErrorCode>
        <CreateTime>1586765938000</CreateTime>
    </TaskStates>
</DescribeSagRouteProtocolBgpResponse>

JSON format

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

{
  "HoldTime" : 9,
  "RequestId" : "2F39E4FE-B45C-47FF-9921-95780486F52D",
  "KeepAlive" : 3,
  "LocalAs" : 65536,
  "RouterId" : "192.XX.XX.1",
  "TaskStates" : {
    "ErrorMessage" : "Successful",
    "State" : "Succeed",
    "ErrorCode" : 200,
    "CreateTime" : 1586765938000
  }
}

Error codes

HTTP status code 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 vCPE 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 disconnected from 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 disconnected from Alibaba Cloud and the system failed to process the request.

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