You can call this operation to perform queries on modes that are used to set up Anti-DDoS Pro for different domain names.

Request parameters

Name Type Required Description
DomainList []String Yes The list of domain names that you want to query.

Response parameters

Name Type Description
RequestId String The GUID generated by Alibaba Cloud for the request.
DomainModeList []Object The list of modes that are used to set up Anti-DDoS Pro. For more information, see DomainModeList.
Table 1. DomainModeList
Name Type Description
Domain String The domain name.
AccessMode Integer The mode that is used to set up Anti-DDoS Pro for the domain. Valid values:
  • 0: A value of 0 indicates that A records are used.
  • 1: A value of 1 indicates that the Anti-DDoS Pro mode is used.
  • 2: A value of 2 indicates that the back-to-origin mode is used.

Examples

Sample requests
{
  "DomainList": ["www.alibaba.com","www.aliyun.com"]
}
Sample responses
{
    "RequestId":"0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc",
    "DomainModeList":[
        {
            "Domain":"www.alibaba.com",
            "AccessMode":1
        },
        {
            "Domain":"www.aliyun.com",
            "AccessMode":2
        }
    ]
}