Queries DescribeWafSourceIpSegment CIDR blocks of the WAF instance.


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 Boolean No DescribeWafSourceIpSegment

The operation that you want to perform. Valid values: DescribeWafSourceIpSegment.

InstanceId String No waf_elasticity-cn-0xldbqtm005

The ID of the WAF instance.

Note You can callDescribePayInfo to view your WAF instance ID.
Region String Yes cn

The ID of the region to which the WAF instance belongs. Set the value to:

  • cn: mainland China (default)
  • cn-hongkong: outside mainland China

Response parameters

Parameter Type Example Description
Ips String,,

The CIDR blocks used by WAF. Separate the CIDR blocks with commas (,).

RequestId String 9087 ADDC-9047-4D02-82A7-33021B58083C

The ID of the request.


Sample request

https://wafopenapi.cn-hangzhou.aliyuncs.com/? Action=DescribeWafSourceIpSegment
& <Common request parameters>

Sample success responses

XML format


JSON format


Error codes.

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