Enables or disables the Diversion from Origin Server policy for an Anti-DDoS Pro instance.

Note This operation is suitable only for Anti-DDoS Pro.


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 ModifyBlockStatus

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

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

The ID of the instance.

Note You can call the DescribeInstanceIds operation to query the IDs of all instances.
Lines.N RepeatList Yes ct

Line N that you want to use. Valid values:

  • ct: a China Telecom line intended for users outside mainland China
  • cut: a China Unicom line intended for users outside mainland China
Status String Yes do

The status of the Diversion from Origin Server policy. Valid values:

  • do: The policy is enabled.
  • undo: The policy is disabled.
RegionId String No cn-hangzhou

The region ID of the instance. Set the value to cn-hangzhou, which indicates an Anti-DDoS Pro instance in mainland China.

Duration Integer No 10

The blocking period. Valid values: 15 to 43200. Unit: minutes.

Note If you set Status to do, you must also specify this parameter.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the Examples section of this topic.

Response parameters

Parameter Type Example Description
RequestId String C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"

Error codes

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