All Products
Search
Document Center

Edge Security Acceleration:SetDcdnFullDomainsBlockIP

Last Updated:Oct 17, 2024

Blocks or unblocks IP addresses or CIDR blocks.

Operation description

Note You can call this operation to block or unblock a large number of IP addresses or CIDR blocks. You can block or unblock up to 1,000 IP addresses or CIDR blocks in a request.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
IPListstringYes

The IP addresses that you want to block or unblock. Separate multiple IP addresses with commas (,). You can specify up to 1,000 IP addresses.

1.XXX.XXX.1,2.XXX.XXX.2
OperationTypestringYes

The action that you want to perform. Valid values:

  • block
  • unblock
block
BlockIntervalintegerNo

The duration for which IP addresses or CIDR blocks are blocked. Unit: seconds. The value 0 specifies that IP addresses or CIDR blocks are permanently blocked. This parameter is available only if you set OperationType to block.

3000
UpdateTypestringNo

The type of the blocking duration. This parameter is available only if you set OperationType to block. Valid values:

  • cover: the blocking duration that is specified in the request takes effect.
  • uncover: the longer one of the blocking duration that is specified in the request and the remaining blocking duration takes effect.
  • Default value: cover.
cover

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The response code.

If the value of Code is not 0, specific required parameters are missing or the parameter format is invalid.

0
Messagestring

The response message.

OK
RequestIdstring

The request ID.

CB1A380B-09F0-41BB-802B-72F8FD6DA2FE

Examples

Sample success responses

JSONformat

{
  "Code": 0,
  "Message": "OK",
  "RequestId": "CB1A380B-09F0-41BB-802B-72F8FD6DA2FE"
}

Error codes

HTTP status codeError codeError messageDescription
400InvaildParameterThe specified parameters are invalid.A parameter is set to an invalid value. Specify a valid value and try again.
403OperationDeniedAccountYou are not authorized to perform this operation.You are not authorized to perform this operation.
406InvalidKey.QuotaFullThe maximum number of keys is exceeded.The number of keys has reached the upper limit.

For a list of error codes, visit the Service error codes.