Modifies the Diversion from Origin Server configuration of an Anti-DDoS Pro instance.

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

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 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.
Status String Yes do

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

  • do: enables the policy.
  • undo: disables the policy.
RegionId String No cn-hangzhou

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

Duration Integer No 10

The blocking time. Valid values: 5 to 43200. Unit: minutes.

Note If you set Status to do, you must also specify this parameter.
Lines.N RepeatList No ct

Line N to block. Valid values:

  • ct: China Telecom (International)
  • cut: China Unicom (International)

Response parameters

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

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyBlockStatus
&InstanceId=ddoscoo-cn-mp91j1ao****
&Status=do
&Duration=10
&<Common request parameters>

Sample success responses

XML format

<ModifyBlockStatusResponse>
      <RequestId>C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E</RequestId>
</ModifyBlockStatusResponse>

JSON format

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

Error codes

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