All Products
Search
Document Center

Anti-DDoS:ConfigDomainSecurityProfile

Last Updated:Feb 25, 2026

Configures the status and protection level of an Anti-DDoS Global Mitigation Policy.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Domain

string

Yes

The domain name of the website.

Note

A forwarding rule must be configured for the domain name. Call DescribeDomains to query all domain names.

example.aliyundoc.com

Config

string

Yes

The JSON string contains the configurations for the global mitigation policy:

  • global_rule_mode: The protection level of the global mitigation policy. This parameter is a string. Valid values:

    • weak: Loose

    • default: Normal

    • hard: Strict

  • global_rule_enable: Specifies whether to enable the global mitigation policy. This parameter is an integer. Valid values:

    • 0: disabled

    • 1: enabled

The JSON string also contains the configuration for the blacklist/whitelist feature of a custom mitigation policy:

  • bwlist_enable: Specifies whether to enable the blacklist/whitelist feature. This parameter is an integer. Valid values:

    • 0: disabled

    • 1: enabled

{"global_rule_mode":"hard"}

Cluster

string

No

This parameter is deprecated.

default

Response elements

Element

Type

Description

Example

object

The response object.

RequestId

string

The ID of the request. A unique ID is returned for each request. Use this ID to troubleshoot issues.

9728769F-9466-534E-BE12-CAB29A675828

Examples

Success response

JSON format

{
  "RequestId": "9728769F-9466-534E-BE12-CAB29A675828"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.