All Products
Search
Document Center

Web Application Firewall:AddAddress

Last Updated:Dec 26, 2025

Adds an address to an address book.

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

InstanceId

string

Yes

The ID of the WAF instance.

Note

Call DescribeInstance to view the ID of your WAF instance.

waf_cdnsdf3****

RuleId

integer

Yes

The ID of the address book.

12345678

AddressList

array

Yes

The list of addresses to add.

string

No

A single address. Both IP addresses and CIDR blocks are supported. IPv4 and IPv6 are supported.

XX.XX.XX.XX

ResourceManagerResourceGroupId

string

No

The ID of the Alibaba Cloud resource group.

rg-acfm***q

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

2EFCFE18-78F8-5079-B312-07***48B

Examples

Success response

JSON format

{
  "RequestId": "2EFCFE18-78F8-5079-B312-07***48B"
}

Error codes

HTTP status code

Error code

Error message

Description

400 Defense.Control.DefenseAddressInvalid The address in the address book is illegal. The address in the address book is illegal.
400 Defense.Control.DefenseAddressOversize The number of addresses in the address book exceeds the limit. The number of addresses in the address book exceeds the limit.
400 Defense.Control.DefenseAddressOperationTooFrequent Address book operations are too frequent. Address book operations are too frequent. Please try again later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.