All Products
Search
Document Center

Web Application Firewall:DescribeWafSourceIpSegment

更新時間:May 31, 2024

Queries the back-to-origin CIDR blocks that are used by a Web Application Firewall (WAF) instance.

Debugging

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

String

Yes

DescribeWafSourceIpSegment

The operation that you want to perform. Set the value to DescribeWafSourceIpSegment.

InstanceId

String

Yes

waf-cn-zz11sr5****

The ID of the WAF instance.

Note

You can call the DescribeInstanceInfo operation to query the ID of the WAF instance.

ResourceGroupId

String

No

rg-acfm2pz25js****

The ID of the resource group to which the WAF instance belongs in Resource Management. By default, this parameter is empty, which specifies that the instance belongs to the default resource group.

For information about resource groups, see Create a resource group.

RegionId

String

No

cn-hangzhou

The region in which the WAF instance is deployed. Valid values:

  • cn-hangzhou: Chinese mainland.

  • ap-southeast-1: outside the Chinese mainland.

All Alibaba Cloud API requests must include common request parameters. For information about common request parameters, see Common request parameters.

For information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter

Type

Example

Description

RequestId

String

AB2F5E31-EE96-4FD7-9560-45FF****77FF

The ID of the request.

Ips

String

47.XXX.XXX.192/26,……,47.XXX.XXX.0/24

The back-to-origin IPv4 CIDR blocks that are used by the protection cluster.

IpV6s

String

39.XXX.XXX.0/24,……,2408:400a:XXXX:XXXX::/56

The back-to-origin IPv6 CIDR blocks that are used by the protection cluster.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeWafSourceIpSegment
&InstanceId=waf-cn-zz11sr5****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8" ?>
<DescribeWafSourceIpSegmentResponse>
	<RequestId>AB2F5E31-EE96-4FD7-9560-45FF5D5377FF</RequestId>
	<IpV6s>39.XXX.XXX.0/24,……,2408:400a:XXXX:XXXX::/56</IpV6s>
	<Ips>47.XXX.XXX.192/26,……,47.XXX.XXX.0/24</Ips>
</DescribeWafSourceIpSegmentResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "AB2F5E31-EE96-4FD7-9560-45FF5D5377FF",
  "IpV6s" : "39.XXX.XXX.0/24,……,2408:400a:XXXX:XXXX::/56",
  "Ips" : "47.XXX.XXX.192/26,……,47.XXX.XXX.0/24"
}

Error codes

For a list of error codes, see Service error codes.