You can call this operation to delete a static route.

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 DeleteSagStaticRoute

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

RegionId String Yes cn-shanghai

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

SmartAGId String Yes sag-whfn****

The ID of the SAG app instance.

SmartAGSn String Yes sag32a30****

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

PortName String Yes 0

The name of the port.

DestinationCidr String Yes 192.XX.XX.0/24

The destination CIDR block.

Vlan String No 1

The VLAN ID.

Valid values: 0 (physical port) and 1 to 4094 (VLAN).

Response parameters

Parameter Type Example Description
RequestId String A53F71B6-7577-492A-A0CD-C7D3DFFE2D0E

The ID of the request.

Examples

Sample requests

http(s)://smartag.cn-shanghai.aliyuncs.com/? Action=DeleteSagStaticRoute
&DestinationCidr=192.XX.XX.0/24
&PortName=0
&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

<DeleteSagStaticRouteResponse>
   <RequestId>A53F71B6-7577-492A-A0CD-C7D3DFFE2D0E</RequestId>
</DeleteSagStaticRouteResponse>

JSON format

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

{
  "RequestId" : "A53F71B6-7577-492A-A0CD-C7D3DFFE2D0E"
}

Error codes

HttpCode Error code Error message Description
400 Sag.PortNotExist The specified port does not exist. The error message returned because the specified port does not exist.
400 Sag.StaticRouteNotExist The specified static route does not exist. The specified static route does not exist.

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