You can call this operation to query the regions supported by WAF.

Note You do not need to specify the Region and InstanceId these two public request parameters.

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

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

Response parameters

Parameter Type Example Description
Regions

The list of regions.

Region

The list of regions.

Display String ture

Indicates whether the WAF service is available in the specified region.

  • true: indicates yes.
  • false: indicates no.
Region String cn

The region ID.

RequestId String Cost

The ID of the request.

Samples

Sample request


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

Sample success responses

XML format

<DescribeRegionsResponse>
      <RequestId>56B40D30-4960-4F19-B7D5-2B1F0EE6CB70</RequestId>
      <Regions>
             <Region>
                  <Region>cn</Region>
                  <Display>true</Display>
            </Region>
            <Region>
                  <Region>cn-hongkong</Region>
                  <Display>true</Display>
            </Region>
      </Regions>
</DescribeRegionsResponse>

JSON format

{
	"RequestId":"276D7566-31C9-4192-9DD1-51B10DAC29D2",
	"Regions":{
		"Region":[
			{
				"region":"cn",
				"display":"true"
			},
			{
				"region":"cn-hongkong",
				"display":"true"
			}
		]
	}
}

Error codes.

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