You can call this operation to obtain a list of domains that have been added to a specified 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 DescribeDomainNames

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

InstanceId String No waf_elasticity-cn-0xldbqtm005

The ID of the WAF instance.

Note You can call the DescribeInstanceInfo operation to query the ID of the WAF instance.
ResourceGroupId String Yes rg-atstuj3rtoptyui

The ID of the resource group to which the queried domain belongs in Resource Management. By default, no value is specified, indicating that the domain belongs to the default resource group.

Response parameters

Parameter Type Example Description
DomainNames List ["","",""]

A list of domains that have been added to the WAF instance.

RequestId String D7861F61-5B61-46CE-A47C-6B19160D5EB0

The ID of the request.


Sample request

http(s)://[Endpoint]/? Action=DescribeDomainNames
&<Common request parameters>

Sample success responses

XML format


JSON format



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