All Products
Search
Document Center

Security Center:EnableCustomBlockRecord

Last Updated:Nov 13, 2024

Enables a custom IP address blocking policy.

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
BlockIpstringYes

The IP address that is specified in the policy.

43.248.XX.XX
BoundstringYes

The traffic direction that is specified in the policy. Valid values:

  • in: inbound
  • out: outbound
in

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

F02D5F26-70B9-53BD-9CDF-A316FD11****

Examples

Sample success responses

JSONformat

{
  "RequestId": "F02D5F26-70B9-53BD-9CDF-A316FD11****"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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

Change history

Change timeSummary of changesOperation
No change history