Obtient les détails des quotas pour les ressources du Web Application Firewall (WAF). Ces quotas définissent les limites de quantité des ressources correspondantes qu'un client peut utiliser, telles que les groupes de règles gérées, les listes personnalisées, les pages de réponse personnalisées et les règles de protection spécifiques à un scénario.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
esa:GetWafQuota |
get |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| Paths |
string |
Non |
Les chemins des quotas WAF. Valeurs valides :
|
page |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Le schéma de la réponse. |
||
| RequestId |
string |
L'identifiant de la requête. |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| Quota |
object |
Les informations de quota renvoyées. |
|
| ManagedRulesGroup |
object |
Les informations de quota pour les groupes de règles gérées WAF. |
|
| Enable |
boolean |
Indicates whether WAF managed rule groups are enabled. |
|
| NumberTotal | WafQuotaInteger |
The total quantity quota for WAF managed rule groups. |
|
| List |
object |
Les informations de quota pour les listes personnalisées. |
|
| Enable |
boolean |
Indicates whether custom lists are enabled. |
|
| NumberTotal | WafQuotaInteger |
The total quantity quota for custom lists. |
|
| NumberItemsTotal | WafQuotaInteger |
The total quantity quota for items across all custom lists. |
|
| NumberItemsPerList | WafQuotaInteger |
The quantity quota for items in each custom list. |
|
| Items |
object |
The object that contains quota information for each item type in custom lists. |
|
|
object |
The object that contains quota information for items in custom lists. |
||
| Enable |
boolean |
Indicates whether the corresponding custom list item type is enabled. |
|
| Value | WafQuotaString |
The format restriction for the corresponding item type in custom lists. |
|
| Page |
object |
Les informations de quota pour les pages de réponse personnalisées. |
|
| Enable |
boolean |
Indicates whether custom response pages are enabled. |
|
| NumberTotal | WafQuotaInteger |
The total quantity quota for custom response pages. |
|
| ContentTypes |
object |
The object that contains quota information for each Content-Type in custom response pages. |
|
|
object |
The object that contains Content-Type quota information for custom response pages. |
||
| Enable |
boolean |
Indicates whether the corresponding Content-Type for custom response pages is enabled. |
|
| ContentLength | WafQuotaInteger |
The content length quota for the corresponding Content-Type in custom response pages. |
|
| ScenePolicy |
object |
Les informations de quota pour les règles de protection spécifiques à un scénario. |
|
| Enable |
boolean |
Indicates whether the scenario-specific protection feature is enabled. |
|
| NumberTotal | WafQuotaInteger |
The total quantity quota for scenario-specific protection rules. |
|
| Captcha |
object |
Les informations de quota pour les règles CAPTCHA. |
|
| Enable |
boolean |
Indicates whether CAPTCHA rules are enabled. |
|
| NumberTotal | WafQuotaInteger |
The total quantity quota for CAPTCHA rules. |
|
| SliderCaptchaPage |
object |
Les informations de quota pour les pages de CAPTCHA à curseur. |
|
| Enable |
boolean |
Indicates whether slider CAPTCHA pages are enabled. |
|
| NumberTotal | WafQuotaInteger |
The quantity quota for slider CAPTCHA pages. |
Exemples
JSON format
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"Quota": {
"ManagedRulesGroup": {
"Enable": false,
"NumberTotal": {
"Equal": 1,
"GreaterThan": 1,
"GreaterThanOrEqual": 1,
"LessThan": 1,
"LessThanOrEqual": 1
}
},
"List": {
"Enable": false,
"NumberTotal": {
"Equal": 1,
"GreaterThan": 1,
"GreaterThanOrEqual": 1,
"LessThan": 1,
"LessThanOrEqual": 1
},
"NumberItemsTotal": {
"Equal": 1,
"GreaterThan": 1,
"GreaterThanOrEqual": 1,
"LessThan": 1,
"LessThanOrEqual": 1
},
"Items": {
"key": {
"Enable": false,
"Value": {
"Regexp": "^\\d+$"
}
}
}
},
"Page": {
"Enable": false,
"ContentTypes": {
"key": {
"Enable": false
}
}
},
"ScenePolicy": {
"Enable": false
},
"Captcha": {
"Enable": false
},
"SliderCaptchaPage": {
"Enable": false
}
}
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.