Queries the domain names that are added to a specific 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 DescribeDomainNames

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

InstanceId String Yes waf_elasticity-cn-0xldbqt****

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-atstuj3rtop****

The ID of the resource group to which the domain name belongs in Resource Management. This parameter is empty by default, indicating that the domain name belongs to the default resource group.

Response parameters

Parameter Type Example Description
DomainNames List ["1.example.com","2.example.com","3.example.com"]

An array that consists of the domain names that are added to the WAF instance.

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

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeDomainNames
&InstanceId=waf_elasticity-cn-0xldbqt****
&<Common request parameters>

Sample success responses

XML format

<DescribeDomainNamesResponse>
	  <DomainNames>1.example.com</DomainNames>
	  <DomainNames>2.example.com</DomainNames>
	  <DomainNames>3.example.com</DomainNames>
	  <RequestId>D7861F61-5B61-46CE-A47C-6B19160D5EB0</RequestId>
</DescribeDomainNamesResponse>

JSON format

{
    "DomainNames": [
        "1.example.com",
        "2.example.com",
        "3.example.com"
    ],
    "RequestId": "D7861F61-5B61-46CE-A47C-6B19160D5EB0"
}

Error codes

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