Deletes a route advertisement policy.

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 DeleteRouteDistributionStrategy

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

RegionId String Yes cn-shanghai

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

SmartAGId String Yes sag-gyat6giidkvyk****

The ID of the SAG instance.

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

The destination CIDR block.

SourceType String Yes local

The type of the route source. Valid values:

  • cloud: Alibaba Cloud
  • local: on-premises network
RouteSource String Yes STATIC

The source of routes. Valid values:

  • Alibaba Cloud
    • Virtual private cloud (VPC) IDs: Routes that are learned from VPCs.
    • Virtual border router (VBR) IDs: Routes that are learned from VBRs.
    • SAG instance IDs: Routes that are learned from SAG instances.
  • On-premises network
    • STATIC: Static routes that are specified in the SAG console.
    • OSPF: Routes that are learned through the Open Shortest Path First (OSPF) protocol.
    • BGP: Routes that are learned through Border Gateway Protocol (BGP).

Response parameters

Parameter Type Example Description
RequestId String BF62139B-D64A-4C95-A55F-6A2335C4417D

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteRouteDistributionStrategy
&DestCidrBlock=192.XX.XX.0/24
&RegionId=cn-shanghai
&RouteSource=STATIC
&SmartAGId=sag-gyat6giidkvyk****
&SourceType=local
&<Common request parameters>

Sample success responses

XML format

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

<DeleteRouteDistributionStrategyResponse>
<RequestId>BF62139B-D64A-4C95-A55F-6A2335C4417D</RequestId>
</DeleteRouteDistributionStrategyResponse>

JSON format

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

{
  "RequestId" : "BF62139B-D64A-4C95-A55F-6A2335C4417D"
}

Error codes

HttpCode Error code Error message Description
400 SAG.InstanceIdEmpty You must specify the SAG instance ID. The error message returned because the ID of the SAG instance is not set.
400 SAG.InstanceNoFound The specified SAG instance does not exist. The error message returned because the specified SAG instance does not exist.
400 RD.InvalidDestCidrBlock The specified destination CIDR block is invalid. The error message returned because the specified CIDR block is invalid.
400 RD.InvalidRouteSource The specified route source is invalid. The error message returned because the specified route source is invalid.
400 RD.InvalidSourceType The specified route source type is invalid. The error message returned because the type of the specified route source is invalid.

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