Query Configuration of Website Business Forwarding Rules.
Operation description
This interface is used for paginated querying of the configurations of website business forwarding rules you have created, such as forwarding protocol types, source server addresses, HTTPS configurations, IP blacklist configurations, and more.
Before calling this interface, you must have already called CreateWebRule to create website business forwarding rules.
QPS Limit
The per-user QPS limit for this interface is 50 times/second. Exceeding this limit will result in API calls being throttled, which may impact your business; please use it reasonably.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-ddoscoo:DescribeWebRules | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceGroupId | string | No | The resource group ID of the DDoS protection instance in the resource management service. Not setting this parameter indicates the default resource group. | rg-acfm2pz25js**** |
Domain | string | No | The domain name of the website to query. Note
The domain must have been configured with website business forwarding rules. You can call DescribeDomains to query all domains that have been configured with website business forwarding rules.
| example.com |
Cname | string | No | The CNAME address to query. | kzmk7b8tt351****.aliyunddos1014**** |
QueryDomainPattern | string | No | The query matching pattern. Values:
| exact |
PageNumber | integer | No | The page number. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. Valid values: 1 to 10. | 10 |
InstanceIds | array | No | The list of DDoS protection instance IDs to query. | |
string | No | The ID of the DDoS protection instance to query. The maximum value of N is 200, meaning up to 200 DDoS protection instances can be configured, with instance IDs separated by a comma (,). Note
You can call DescribeInstanceIds to query the IDs of all DDoS protection instances.
| ddoscoo-cn-i7m27nf3**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 1,
"RequestId": "0F5B72DD-96F4-423A-B12B-A5151DD746B8",
"WebRules": [
{
"Domain": "example.com",
"Http2HttpsEnable": true,
"SslProtocols": "tls1.1",
"PunishReason": 1,
"CcTemplate": "default",
"CcEnabled": true,
"SslCiphers": "default",
"Ssl13Enabled": false,
"CcRuleEnabled": false,
"OcspEnabled": false,
"PunishStatus": true,
"ProxyEnabled": true,
"CertName": "testcert",
"PolicyMode": "ip_hash",
"Cname": "kzmk7b8tt351****.aliyunddos1014****",
"Http2Enable": true,
"Https2HttpEnable": true,
"ProxyTypes": [
{
"ProxyType": "https",
"ProxyPorts": [
"443"
]
}
],
"RealServers": [
{
"RsType": 0,
"RealServer": "192.0.XX.XX"
}
],
"WhiteList": [
"192.168.XX.XX"
],
"BlackList": [
"192.0.XX.XX"
],
"CustomCiphers": [
"ECDHE-ECDSA-AES128-GCM-SHA256"
],
"GmCert": {
"CertId": "725****",
"GmEnable": 1,
"GmOnly": 1
},
"CertRegion": "cn-hangzhou",
"UserCertName": "test"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-30 | The response structure of the API has changed | View Change Details |
2023-07-18 | The response structure of the API has changed | View Change Details |