Releases an expired Anti-DDoS Pro or Anti-DDoS Premium instance.

When an Anti-DDoS Pro or Anti-DDoS Premium instance expires, DDoS protection stops. The instance stops forwarding traffic seven days after it expires.

  • We recommend that you renew your instance before they expire. This eliminates the impacts on service protection and traffic forwarding. You can call the DescribeInstances operation to query the expiration time of all instances. If you want to renew your instance, log on to the Alibaba Cloud Anti-DDoS Pro or Anti-DDoS Premium console.
  • If you do not plan to renew your instance, we recommend that you change the service IP address to the actual IP address or use the actual DNS record rather than CNAME record before your instance expires. This way, traffic is no longer rerouted to your instance, which eliminates the impacts on traffic forwarding.

You can call this operation to release a specific instance after the instance expires.

Note Before you release a specific instance, make sure that the IP address or DNS record of the protected service is restored.

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 ReleaseInstance

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

InstanceId String Yes ddoscoo-cn-mp91j1ao****

The ID of the instance that you want to release.

Note You can release only expired instances. You can call the DescribeInstances operation to query the IDs and expiration status of all instances.
RegionId String Yes cn-hangzhou

The region ID of the instance. Valid values:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance

Response parameters

Parameter Type Example Description
RequestId String 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ReleaseInstance
&InstanceId=ddoscoo-cn-mp91j1ao****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ReleaseInstanceResponse>
      <RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
</ReleaseInstanceResponse>

JSON format

{
  "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}

Error codes

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