You can call this operation to perform queries on layer 7 forwarding rules.

Request parameters

Name Type Required Description
Domain String No The domain name that you want to query.
QueryDomainPattern String No The query mode. Valid values:
  • fuzzy (Default): Fuzzy query.
  • exact: Exact query.
Offset Integer Yes The number of records to skip when returning the result records. Default value: 0.
PageSize Integer Yes The number of result records per page. Maximum value: 10.

Response parameters

Name Type Description
RequestId String The GUID generated by Alibaba Cloud for the request.
Total Integer The total number of domain names.
Domains []Domain The array of domain names and associated forwarding rules. For more information, see Domain.
Table 1. Domain
Name Type Description
Domain String The domain name.
ProxyTypes []String The array of forwarding protocols. Valid values:
  • http
  • https
  • websocket
  • websockets
RealServers []String The array of origin servers.
CcEnabled Boolean Indicates whether HTTP flood protection is enabled.
CcRuleEnabled Boolean Indicates whether HTTP flood protection rules are enabled.
CcTemplate String The template of HTTP flood protection.
WhiteList []String The array of IP addresses in the whitelist.
BlackList []String The array of IP addresses in the blacklist.
CertName String The name of the certificate.
RealSevers []Layer7RealServer The array of origin servers. For more information, see Layer7RealServer.
Table 2. Layer7RealServer
Name Type Description
RealServer String The address of the origin server.
RsType Integer The address type. Valid values:
  • 0: IP address.
  • 1: Domain name.

Examples

Sample requests
{
  "Domain": "www.alibaba.com",
  "QueryDomainPattern": "fuzzy",
  "Offset":0,
  "PageSize":10
}
Sample responses
{
  "Total": 2,
  "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc",
  "Domains": [
  	{
		"Domain": "www.alibaba.com",
		"ProxyTypes": ["https","http"],
		"RealServers": [{
			"RealServer": "1.1.1.1",
			"RsType":0
		},{
			"RealServer":"1.1.1.1",
			"RsType":1
			}
		],
		"CcEnabled" : false,
		"CcRuleEnabled" : true,
		"CcTemplate" : "default",
		"BlackList" : ["1.1.1.1/1","1.1.1.2/2"],
		"WhiteList" : ["1.1.1.1/1","1.1.1.2/2"],
		"CertName" : "www_alibaba_com.pem"
	},{
		"Domain": "www.alibaba.com",
		"ProxyTypes": ["https","http"],
		"RealServers": [{
			"RealServer": "1.1.1.1",
			"RsType":0
		},{
			"RealServer": "1.1.1.2",
			"RsType":1
			}
		],
		"CcEnabled" : false,
		"CcRuleEnabled" : true,
		"CcTemplate" : "default",
		"BlackList" : ["1.1.1.1/1","1.1.1.2/2"],
		"WhiteList" : ["1.1.1.1/1","1.1.1.2/2"],
		"CertName" : "www_alibaba_com.pem"
	}
  ]
}