@huaweicloud/huaweicloud-sdk-waf 3.1.174 → 3.1.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/v1/WafClient.d.ts +736 -22
- package/v1/WafClient.d.ts.map +1 -1
- package/v1/WafClient.js +1851 -144
- package/v1/WafClient.js.map +1 -1
- package/v1/model/AlertNoticeConfig.d.ts +40 -0
- package/v1/model/AlertNoticeConfig.d.ts.map +1 -0
- package/v1/model/AlertNoticeConfig.js +91 -0
- package/v1/model/AlertNoticeConfig.js.map +1 -0
- package/v1/model/AntileakageMapResponseBodyLeakagemap.d.ts +8 -0
- package/v1/model/AntileakageMapResponseBodyLeakagemap.d.ts.map +1 -0
- package/v1/model/AntileakageMapResponseBodyLeakagemap.js +17 -0
- package/v1/model/AntileakageMapResponseBodyLeakagemap.js.map +1 -0
- package/v1/model/AntileakageMapResponseBodyLocale.d.ts +18 -0
- package/v1/model/AntileakageMapResponseBodyLocale.d.ts.map +1 -0
- package/v1/model/AntileakageMapResponseBodyLocale.js +39 -0
- package/v1/model/AntileakageMapResponseBodyLocale.js.map +1 -0
- package/v1/model/BacthCreateWhiteBlackIpRuleRequestBody.d.ts +28 -0
- package/v1/model/BacthCreateWhiteBlackIpRuleRequestBody.d.ts.map +1 -0
- package/v1/model/BacthCreateWhiteBlackIpRuleRequestBody.js +66 -0
- package/v1/model/BacthCreateWhiteBlackIpRuleRequestBody.js.map +1 -0
- package/v1/model/BatchCreateAntiTamperRuleRequest.d.ts +17 -0
- package/v1/model/BatchCreateAntiTamperRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchCreateAntiTamperRuleRequest.js +38 -0
- package/v1/model/BatchCreateAntiTamperRuleRequest.js.map +1 -0
- package/v1/model/BatchCreateAntiTamperRuleResponse.d.ts +17 -0
- package/v1/model/BatchCreateAntiTamperRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchCreateAntiTamperRuleResponse.js +35 -0
- package/v1/model/BatchCreateAntiTamperRuleResponse.js.map +1 -0
- package/v1/model/BatchCreateAntiTamperRulesRequestBody.d.ts +14 -0
- package/v1/model/BatchCreateAntiTamperRulesRequestBody.d.ts.map +1 -0
- package/v1/model/BatchCreateAntiTamperRulesRequestBody.js +34 -0
- package/v1/model/BatchCreateAntiTamperRulesRequestBody.js.map +1 -0
- package/v1/model/BatchCreateAntileakageRuleRequest.d.ts +17 -0
- package/v1/model/BatchCreateAntileakageRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchCreateAntileakageRuleRequest.js +38 -0
- package/v1/model/BatchCreateAntileakageRuleRequest.js.map +1 -0
- package/v1/model/BatchCreateAntileakageRuleRequestBody.d.ts +27 -0
- package/v1/model/BatchCreateAntileakageRuleRequestBody.d.ts.map +1 -0
- package/v1/model/BatchCreateAntileakageRuleRequestBody.js +52 -0
- package/v1/model/BatchCreateAntileakageRuleRequestBody.js.map +1 -0
- package/v1/model/BatchCreateAntileakageRuleResponse.d.ts +24 -0
- package/v1/model/BatchCreateAntileakageRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchCreateAntileakageRuleResponse.js +47 -0
- package/v1/model/BatchCreateAntileakageRuleResponse.js.map +1 -0
- package/v1/model/BatchCreateCcRuleRequest.d.ts +17 -0
- package/v1/model/BatchCreateCcRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchCreateCcRuleRequest.js +38 -0
- package/v1/model/BatchCreateCcRuleRequest.js.map +1 -0
- package/v1/model/BatchCreateCcRuleRequestBody.d.ts +70 -0
- package/v1/model/BatchCreateCcRuleRequestBody.d.ts.map +1 -0
- package/v1/model/BatchCreateCcRuleRequestBody.js +150 -0
- package/v1/model/BatchCreateCcRuleRequestBody.js.map +1 -0
- package/v1/model/BatchCreateCcRuleResponse.d.ts +91 -0
- package/v1/model/BatchCreateCcRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchCreateCcRuleResponse.js +187 -0
- package/v1/model/BatchCreateCcRuleResponse.js.map +1 -0
- package/v1/model/BatchCreateCustomRuleRequest.d.ts +17 -0
- package/v1/model/BatchCreateCustomRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchCreateCustomRuleRequest.js +38 -0
- package/v1/model/BatchCreateCustomRuleRequest.js.map +1 -0
- package/v1/model/BatchCreateCustomRuleRequestBody.d.ts +26 -0
- package/v1/model/BatchCreateCustomRuleRequestBody.d.ts.map +1 -0
- package/v1/model/BatchCreateCustomRuleRequestBody.js +57 -0
- package/v1/model/BatchCreateCustomRuleRequestBody.js.map +1 -0
- package/v1/model/BatchCreateCustomRuleResponse.d.ts +37 -0
- package/v1/model/BatchCreateCustomRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchCreateCustomRuleResponse.js +73 -0
- package/v1/model/BatchCreateCustomRuleResponse.js.map +1 -0
- package/v1/model/BatchCreateGeoIpRuleRequest.d.ts +15 -0
- package/v1/model/BatchCreateGeoIpRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchCreateGeoIpRuleRequest.js +34 -0
- package/v1/model/BatchCreateGeoIpRuleRequest.js.map +1 -0
- package/v1/model/BatchCreateGeoIpRuleRequestBody.d.ts +20 -0
- package/v1/model/BatchCreateGeoIpRuleRequestBody.d.ts.map +1 -0
- package/v1/model/BatchCreateGeoIpRuleRequestBody.js +49 -0
- package/v1/model/BatchCreateGeoIpRuleRequestBody.js.map +1 -0
- package/v1/model/BatchCreateGeoIpRuleResponse.d.ts +25 -0
- package/v1/model/BatchCreateGeoIpRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchCreateGeoIpRuleResponse.js +53 -0
- package/v1/model/BatchCreateGeoIpRuleResponse.js.map +1 -0
- package/v1/model/BatchCreateIgnoreRuleRequest.d.ts +17 -0
- package/v1/model/BatchCreateIgnoreRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchCreateIgnoreRuleRequest.js +38 -0
- package/v1/model/BatchCreateIgnoreRuleRequest.js.map +1 -0
- package/v1/model/BatchCreateIgnoreRuleRequestBody.d.ts +22 -0
- package/v1/model/BatchCreateIgnoreRuleRequestBody.d.ts.map +1 -0
- package/v1/model/BatchCreateIgnoreRuleRequestBody.js +48 -0
- package/v1/model/BatchCreateIgnoreRuleRequestBody.js.map +1 -0
- package/v1/model/BatchCreateIgnoreRuleResponse.d.ts +31 -0
- package/v1/model/BatchCreateIgnoreRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchCreateIgnoreRuleResponse.js +59 -0
- package/v1/model/BatchCreateIgnoreRuleResponse.js.map +1 -0
- package/v1/model/BatchCreateIpReputationRuleRequest.d.ts +17 -0
- package/v1/model/BatchCreateIpReputationRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchCreateIpReputationRuleRequest.js +38 -0
- package/v1/model/BatchCreateIpReputationRuleRequest.js.map +1 -0
- package/v1/model/BatchCreateIpReputationRuleRequestBody.d.ts +19 -0
- package/v1/model/BatchCreateIpReputationRuleRequestBody.d.ts.map +1 -0
- package/v1/model/BatchCreateIpReputationRuleRequestBody.js +44 -0
- package/v1/model/BatchCreateIpReputationRuleRequestBody.js.map +1 -0
- package/v1/model/BatchCreateIpReputationRuleResponse.d.ts +26 -0
- package/v1/model/BatchCreateIpReputationRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchCreateIpReputationRuleResponse.js +51 -0
- package/v1/model/BatchCreateIpReputationRuleResponse.js.map +1 -0
- package/v1/model/BatchCreatePrivacyRuleRequest.d.ts +17 -0
- package/v1/model/BatchCreatePrivacyRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchCreatePrivacyRuleRequest.js +38 -0
- package/v1/model/BatchCreatePrivacyRuleRequest.js.map +1 -0
- package/v1/model/BatchCreatePrivacyRuleRequestBody.d.ts +26 -0
- package/v1/model/BatchCreatePrivacyRuleRequestBody.d.ts.map +1 -0
- package/v1/model/BatchCreatePrivacyRuleRequestBody.js +50 -0
- package/v1/model/BatchCreatePrivacyRuleRequestBody.js.map +1 -0
- package/v1/model/BatchCreatePrivacyRuleResponse.d.ts +31 -0
- package/v1/model/BatchCreatePrivacyRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchCreatePrivacyRuleResponse.js +54 -0
- package/v1/model/BatchCreatePrivacyRuleResponse.js.map +1 -0
- package/v1/model/BatchCreateWhiteblackipRuleRequest.d.ts +17 -0
- package/v1/model/BatchCreateWhiteblackipRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchCreateWhiteblackipRuleRequest.js +38 -0
- package/v1/model/BatchCreateWhiteblackipRuleRequest.js.map +1 -0
- package/v1/model/BatchCreateWhiteblackipRuleResponse.d.ts +34 -0
- package/v1/model/BatchCreateWhiteblackipRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchCreateWhiteblackipRuleResponse.js +71 -0
- package/v1/model/BatchCreateWhiteblackipRuleResponse.js.map +1 -0
- package/v1/model/BatchDeleteAlertNoticeConfigBody.d.ts +9 -0
- package/v1/model/BatchDeleteAlertNoticeConfigBody.d.ts.map +1 -0
- package/v1/model/BatchDeleteAlertNoticeConfigBody.js +20 -0
- package/v1/model/BatchDeleteAlertNoticeConfigBody.js.map +1 -0
- package/v1/model/BatchDeleteAlertNoticeConfigRequest.d.ts +17 -0
- package/v1/model/BatchDeleteAlertNoticeConfigRequest.d.ts.map +1 -0
- package/v1/model/BatchDeleteAlertNoticeConfigRequest.js +40 -0
- package/v1/model/BatchDeleteAlertNoticeConfigRequest.js.map +1 -0
- package/v1/model/BatchDeleteAlertNoticeConfigResponse.d.ts +10 -0
- package/v1/model/BatchDeleteAlertNoticeConfigResponse.d.ts.map +1 -0
- package/v1/model/BatchDeleteAlertNoticeConfigResponse.js +21 -0
- package/v1/model/BatchDeleteAlertNoticeConfigResponse.js.map +1 -0
- package/v1/model/CheckAgencyRequest.d.ts +8 -0
- package/v1/model/CheckAgencyRequest.d.ts.map +1 -0
- package/v1/model/CheckAgencyRequest.js +20 -0
- package/v1/model/CheckAgencyRequest.js.map +1 -0
- package/v1/model/CheckAgencyResponse.d.ts +21 -0
- package/v1/model/CheckAgencyResponse.d.ts.map +1 -0
- package/v1/model/CheckAgencyResponse.js +47 -0
- package/v1/model/CheckAgencyResponse.js.map +1 -0
- package/v1/model/ConfirmIpReputationRuleRequest.d.ts +16 -0
- package/v1/model/ConfirmIpReputationRuleRequest.d.ts.map +1 -0
- package/v1/model/ConfirmIpReputationRuleRequest.js +42 -0
- package/v1/model/ConfirmIpReputationRuleRequest.js.map +1 -0
- package/v1/model/ConfirmIpReputationRuleResponse.d.ts +24 -0
- package/v1/model/ConfirmIpReputationRuleResponse.d.ts.map +1 -0
- package/v1/model/ConfirmIpReputationRuleResponse.js +47 -0
- package/v1/model/ConfirmIpReputationRuleResponse.js.map +1 -0
- package/v1/model/ConfirmPolicyAntileakageMapRequest.d.ts +10 -0
- package/v1/model/ConfirmPolicyAntileakageMapRequest.d.ts.map +1 -0
- package/v1/model/ConfirmPolicyAntileakageMapRequest.js +25 -0
- package/v1/model/ConfirmPolicyAntileakageMapRequest.js.map +1 -0
- package/v1/model/ConfirmPolicyAntileakageMapResponse.d.ts +11 -0
- package/v1/model/ConfirmPolicyAntileakageMapResponse.d.ts.map +1 -0
- package/v1/model/ConfirmPolicyAntileakageMapResponse.js +19 -0
- package/v1/model/ConfirmPolicyAntileakageMapResponse.js.map +1 -0
- package/v1/model/ConfirmPolicyIpReputationMapRequest.d.ts +12 -0
- package/v1/model/ConfirmPolicyIpReputationMapRequest.d.ts.map +1 -0
- package/v1/model/ConfirmPolicyIpReputationMapRequest.js +30 -0
- package/v1/model/ConfirmPolicyIpReputationMapRequest.js.map +1 -0
- package/v1/model/ConfirmPolicyIpReputationMapResponse.d.ts +13 -0
- package/v1/model/ConfirmPolicyIpReputationMapResponse.d.ts.map +1 -0
- package/v1/model/ConfirmPolicyIpReputationMapResponse.js +25 -0
- package/v1/model/ConfirmPolicyIpReputationMapResponse.js.map +1 -0
- package/v1/model/ConfirmProtectionTypesRequest.d.ts +12 -0
- package/v1/model/ConfirmProtectionTypesRequest.d.ts.map +1 -0
- package/v1/model/ConfirmProtectionTypesRequest.js +28 -0
- package/v1/model/ConfirmProtectionTypesRequest.js.map +1 -0
- package/v1/model/ConfirmProtectionTypesResponse.d.ts +9 -0
- package/v1/model/ConfirmProtectionTypesResponse.d.ts.map +1 -0
- package/v1/model/ConfirmProtectionTypesResponse.js +19 -0
- package/v1/model/ConfirmProtectionTypesResponse.js.map +1 -0
- package/v1/model/CreateAgencyRequest.d.ts +11 -0
- package/v1/model/CreateAgencyRequest.d.ts.map +1 -0
- package/v1/model/CreateAgencyRequest.js +24 -0
- package/v1/model/CreateAgencyRequest.js.map +1 -0
- package/v1/model/CreateAgencyResponse.d.ts +21 -0
- package/v1/model/CreateAgencyResponse.d.ts.map +1 -0
- package/v1/model/CreateAgencyResponse.js +47 -0
- package/v1/model/CreateAgencyResponse.js.map +1 -0
- package/v1/model/CreateAlertNoticeConfigBody.d.ts +42 -0
- package/v1/model/CreateAlertNoticeConfigBody.d.ts.map +1 -0
- package/v1/model/CreateAlertNoticeConfigBody.js +104 -0
- package/v1/model/CreateAlertNoticeConfigBody.js.map +1 -0
- package/v1/model/CreateAlertNoticeConfigRequest.d.ts +17 -0
- package/v1/model/CreateAlertNoticeConfigRequest.d.ts.map +1 -0
- package/v1/model/CreateAlertNoticeConfigRequest.js +40 -0
- package/v1/model/CreateAlertNoticeConfigRequest.js.map +1 -0
- package/v1/model/CreateAlertNoticeConfigResponse.d.ts +47 -0
- package/v1/model/CreateAlertNoticeConfigResponse.d.ts.map +1 -0
- package/v1/model/CreateAlertNoticeConfigResponse.js +109 -0
- package/v1/model/CreateAlertNoticeConfigResponse.js.map +1 -0
- package/v1/model/CreateCertificateRequest.d.ts +4 -0
- package/v1/model/CreateCertificateRequest.d.ts.map +1 -1
- package/v1/model/CreateCertificateRequest.js +10 -0
- package/v1/model/CreateCertificateRequest.js.map +1 -1
- package/v1/model/CreateIpReputationRuleRequest.d.ts +19 -0
- package/v1/model/CreateIpReputationRuleRequest.d.ts.map +1 -0
- package/v1/model/CreateIpReputationRuleRequest.js +45 -0
- package/v1/model/CreateIpReputationRuleRequest.js.map +1 -0
- package/v1/model/CreateIpReputationRuleRequestBody.d.ts +19 -0
- package/v1/model/CreateIpReputationRuleRequestBody.d.ts.map +1 -0
- package/v1/model/CreateIpReputationRuleRequestBody.js +41 -0
- package/v1/model/CreateIpReputationRuleRequestBody.js.map +1 -0
- package/v1/model/CreateIpReputationRuleResponse.d.ts +26 -0
- package/v1/model/CreateIpReputationRuleResponse.d.ts.map +1 -0
- package/v1/model/CreateIpReputationRuleResponse.js +51 -0
- package/v1/model/CreateIpReputationRuleResponse.js.map +1 -0
- package/v1/model/CreateIpReputationRuleResponseBodyAction.d.ts +6 -0
- package/v1/model/CreateIpReputationRuleResponseBodyAction.d.ts.map +1 -0
- package/v1/model/CreateIpReputationRuleResponseBodyAction.js +13 -0
- package/v1/model/CreateIpReputationRuleResponseBodyAction.js.map +1 -0
- package/v1/model/CreatePremiumHostRequestBody.d.ts +1 -1
- package/v1/model/CreatePremiumHostRequestBody.d.ts.map +1 -1
- package/v1/model/CreatePremiumHostRequestBody.js +1 -2
- package/v1/model/CreatePremiumHostRequestBody.js.map +1 -1
- package/v1/model/CreateQuickAccessDomainRequest.d.ts +16 -0
- package/v1/model/CreateQuickAccessDomainRequest.d.ts.map +1 -0
- package/v1/model/CreateQuickAccessDomainRequest.js +40 -0
- package/v1/model/CreateQuickAccessDomainRequest.js.map +1 -0
- package/v1/model/CreateQuickAccessDomainResponse.d.ts +13 -0
- package/v1/model/CreateQuickAccessDomainResponse.d.ts.map +1 -0
- package/v1/model/CreateQuickAccessDomainResponse.js +29 -0
- package/v1/model/CreateQuickAccessDomainResponse.js.map +1 -0
- package/v1/model/DeleteAgencyRequest.d.ts +14 -0
- package/v1/model/DeleteAgencyRequest.d.ts.map +1 -0
- package/v1/model/DeleteAgencyRequest.js +34 -0
- package/v1/model/DeleteAgencyRequest.js.map +1 -0
- package/v1/model/DeleteAgencyResponse.d.ts +21 -0
- package/v1/model/DeleteAgencyResponse.d.ts.map +1 -0
- package/v1/model/DeleteAgencyResponse.js +47 -0
- package/v1/model/DeleteAgencyResponse.js.map +1 -0
- package/v1/model/DeleteAlertNoticeConfigBody.d.ts +6 -0
- package/v1/model/DeleteAlertNoticeConfigBody.d.ts.map +1 -0
- package/v1/model/DeleteAlertNoticeConfigBody.js +13 -0
- package/v1/model/DeleteAlertNoticeConfigBody.js.map +1 -0
- package/v1/model/IpReputationMapResponseBodyIpReputationMap.d.ts +6 -0
- package/v1/model/IpReputationMapResponseBodyIpReputationMap.d.ts.map +1 -0
- package/v1/model/IpReputationMapResponseBodyIpReputationMap.js +13 -0
- package/v1/model/IpReputationMapResponseBodyIpReputationMap.js.map +1 -0
- package/v1/model/IpReputationMapResponseBodyLocale.d.ts +40 -0
- package/v1/model/IpReputationMapResponseBodyLocale.d.ts.map +1 -0
- package/v1/model/IpReputationMapResponseBodyLocale.js +99 -0
- package/v1/model/IpReputationMapResponseBodyLocale.js.map +1 -0
- package/v1/model/ListCcRulesRequest.d.ts +10 -0
- package/v1/model/ListCcRulesRequest.d.ts.map +1 -1
- package/v1/model/ListCcRulesRequest.js +22 -0
- package/v1/model/ListCcRulesRequest.js.map +1 -1
- package/v1/model/ListSecurityReportHistoryPeriodResponseItems.d.ts +17 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseItems.d.ts.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseItems.js +42 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseItems.js.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.d.ts +12 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.d.ts.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.js +31 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.js.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodsRequest.d.ts +16 -0
- package/v1/model/ListSecurityReportHistoryPeriodsRequest.d.ts.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodsRequest.js +39 -0
- package/v1/model/ListSecurityReportHistoryPeriodsRequest.js.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodsResponse.d.ts +10 -0
- package/v1/model/ListSecurityReportHistoryPeriodsResponse.d.ts.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodsResponse.js +19 -0
- package/v1/model/ListSecurityReportHistoryPeriodsResponse.js.map +1 -0
- package/v1/model/PremiumWafAgencyRequest.d.ts +8 -0
- package/v1/model/PremiumWafAgencyRequest.d.ts.map +1 -0
- package/v1/model/PremiumWafAgencyRequest.js +19 -0
- package/v1/model/PremiumWafAgencyRequest.js.map +1 -0
- package/v1/model/ResourceResponse.d.ts +6 -0
- package/v1/model/ResourceResponse.d.ts.map +1 -1
- package/v1/model/ResourceResponse.js +12 -0
- package/v1/model/ResourceResponse.js.map +1 -1
- package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.d.ts +52 -0
- package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.d.ts.map +1 -0
- package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.js +129 -0
- package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.js.map +1 -0
- package/v1/model/SecurityReportSubscriptionResponseStatPeriod.d.ts +12 -0
- package/v1/model/SecurityReportSubscriptionResponseStatPeriod.d.ts.map +1 -0
- package/v1/model/SecurityReportSubscriptionResponseStatPeriod.js +29 -0
- package/v1/model/SecurityReportSubscriptionResponseStatPeriod.js.map +1 -0
- package/v1/model/ShowSecurityReportSubscriptionRequest.d.ts +12 -0
- package/v1/model/ShowSecurityReportSubscriptionRequest.d.ts.map +1 -0
- package/v1/model/ShowSecurityReportSubscriptionRequest.js +31 -0
- package/v1/model/ShowSecurityReportSubscriptionRequest.js.map +1 -0
- package/v1/model/ShowSecurityReportSubscriptionResponse.d.ts +47 -0
- package/v1/model/ShowSecurityReportSubscriptionResponse.d.ts.map +1 -0
- package/v1/model/ShowSecurityReportSubscriptionResponse.js +111 -0
- package/v1/model/ShowSecurityReportSubscriptionResponse.js.map +1 -0
- package/v1/model/ShowWebProtectionRuleRequest.d.ts +12 -0
- package/v1/model/ShowWebProtectionRuleRequest.d.ts.map +1 -0
- package/v1/model/ShowWebProtectionRuleRequest.js +30 -0
- package/v1/model/ShowWebProtectionRuleRequest.js.map +1 -0
- package/v1/model/ShowWebProtectionRuleResponse.d.ts +38 -0
- package/v1/model/ShowWebProtectionRuleResponse.d.ts.map +1 -0
- package/v1/model/ShowWebProtectionRuleResponse.js +79 -0
- package/v1/model/ShowWebProtectionRuleResponse.js.map +1 -0
- package/v1/model/UpdateIpReputationRuleRequest.d.ts +23 -0
- package/v1/model/UpdateIpReputationRuleRequest.d.ts.map +1 -0
- package/v1/model/UpdateIpReputationRuleRequest.js +56 -0
- package/v1/model/UpdateIpReputationRuleRequest.js.map +1 -0
- package/v1/model/UpdateIpReputationRuleRequestBody.d.ts +17 -0
- package/v1/model/UpdateIpReputationRuleRequestBody.d.ts.map +1 -0
- package/v1/model/UpdateIpReputationRuleRequestBody.js +37 -0
- package/v1/model/UpdateIpReputationRuleRequestBody.js.map +1 -0
- package/v1/model/UpdateIpReputationRuleRequestBodyAction.d.ts +6 -0
- package/v1/model/UpdateIpReputationRuleRequestBodyAction.d.ts.map +1 -0
- package/v1/model/UpdateIpReputationRuleRequestBodyAction.js +13 -0
- package/v1/model/UpdateIpReputationRuleRequestBodyAction.js.map +1 -0
- package/v1/model/UpdateIpReputationRuleResponse.d.ts +28 -0
- package/v1/model/UpdateIpReputationRuleResponse.d.ts.map +1 -0
- package/v1/model/UpdateIpReputationRuleResponse.js +55 -0
- package/v1/model/UpdateIpReputationRuleResponse.js.map +1 -0
- package/v1/model/UpdatePremiumInstanceRequest.d.ts +11 -0
- package/v1/model/UpdatePremiumInstanceRequest.d.ts.map +1 -0
- package/v1/model/UpdatePremiumInstanceRequest.js +24 -0
- package/v1/model/UpdatePremiumInstanceRequest.js.map +1 -0
- package/v1/model/UpdatePremiumInstanceRequestBody.d.ts +8 -0
- package/v1/model/UpdatePremiumInstanceRequestBody.d.ts.map +1 -0
- package/v1/model/UpdatePremiumInstanceRequestBody.js +18 -0
- package/v1/model/UpdatePremiumInstanceRequestBody.js.map +1 -0
- package/v1/model/UpdatePremiumInstanceResponse.d.ts +82 -0
- package/v1/model/UpdatePremiumInstanceResponse.d.ts.map +1 -0
- package/v1/model/UpdatePremiumInstanceResponse.js +187 -0
- package/v1/model/UpdatePremiumInstanceResponse.js.map +1 -0
- package/v1/public-api.d.ts +77 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +77 -0
- package/v1/public-api.js.map +1 -1
package/v1/WafClient.js
CHANGED
|
@@ -3,13 +3,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RequiredError = exports.ParamCreater = exports.WafClient = void 0;
|
|
4
4
|
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
|
5
5
|
const ApplyCertificateToHostRequest_1 = require("./model/ApplyCertificateToHostRequest");
|
|
6
|
+
const BatchCreateAntiTamperRuleRequest_1 = require("./model/BatchCreateAntiTamperRuleRequest");
|
|
7
|
+
const BatchCreateAntileakageRuleRequest_1 = require("./model/BatchCreateAntileakageRuleRequest");
|
|
8
|
+
const BatchCreateCcRuleRequest_1 = require("./model/BatchCreateCcRuleRequest");
|
|
9
|
+
const BatchCreateCustomRuleRequest_1 = require("./model/BatchCreateCustomRuleRequest");
|
|
10
|
+
const BatchCreateGeoIpRuleRequest_1 = require("./model/BatchCreateGeoIpRuleRequest");
|
|
11
|
+
const BatchCreateIgnoreRuleRequest_1 = require("./model/BatchCreateIgnoreRuleRequest");
|
|
12
|
+
const BatchCreateIpReputationRuleRequest_1 = require("./model/BatchCreateIpReputationRuleRequest");
|
|
13
|
+
const BatchCreatePrivacyRuleRequest_1 = require("./model/BatchCreatePrivacyRuleRequest");
|
|
14
|
+
const BatchCreateWhiteblackipRuleRequest_1 = require("./model/BatchCreateWhiteblackipRuleRequest");
|
|
15
|
+
const BatchDeleteAlertNoticeConfigRequest_1 = require("./model/BatchDeleteAlertNoticeConfigRequest");
|
|
6
16
|
const BatchDeletePoliciesRequest_1 = require("./model/BatchDeletePoliciesRequest");
|
|
7
17
|
const ChangePrepaidCloudWafRequest_1 = require("./model/ChangePrepaidCloudWafRequest");
|
|
18
|
+
const CheckAgencyRequest_1 = require("./model/CheckAgencyRequest");
|
|
8
19
|
const ConfirmApplicationTypesRequest_1 = require("./model/ConfirmApplicationTypesRequest");
|
|
9
20
|
const ConfirmAsyncJobRequest_1 = require("./model/ConfirmAsyncJobRequest");
|
|
21
|
+
const ConfirmIpReputationRuleRequest_1 = require("./model/ConfirmIpReputationRuleRequest");
|
|
22
|
+
const ConfirmPolicyAntileakageMapRequest_1 = require("./model/ConfirmPolicyAntileakageMapRequest");
|
|
23
|
+
const ConfirmPolicyIpReputationMapRequest_1 = require("./model/ConfirmPolicyIpReputationMapRequest");
|
|
24
|
+
const ConfirmProtectionTypesRequest_1 = require("./model/ConfirmProtectionTypesRequest");
|
|
10
25
|
const ConfirmThreatMapRequest_1 = require("./model/ConfirmThreatMapRequest");
|
|
11
26
|
const ConfirmTmsResourceInstancesRequest_1 = require("./model/ConfirmTmsResourceInstancesRequest");
|
|
12
27
|
const ConfirmUserBundleRequest_1 = require("./model/ConfirmUserBundleRequest");
|
|
28
|
+
const CreateAgencyRequest_1 = require("./model/CreateAgencyRequest");
|
|
29
|
+
const CreateAlertNoticeConfigRequest_1 = require("./model/CreateAlertNoticeConfigRequest");
|
|
13
30
|
const CreateAntiTamperRuleRequest_1 = require("./model/CreateAntiTamperRuleRequest");
|
|
14
31
|
const CreateAnticrawlerRuleRequest_1 = require("./model/CreateAnticrawlerRuleRequest");
|
|
15
32
|
const CreateAntileakageRuleRequest_1 = require("./model/CreateAntileakageRuleRequest");
|
|
@@ -22,13 +39,16 @@ const CreateHostRequest_1 = require("./model/CreateHostRequest");
|
|
|
22
39
|
const CreateIgnoreRuleRequest_1 = require("./model/CreateIgnoreRuleRequest");
|
|
23
40
|
const CreateInstanceRequest_1 = require("./model/CreateInstanceRequest");
|
|
24
41
|
const CreateIpGroupRequest_1 = require("./model/CreateIpGroupRequest");
|
|
42
|
+
const CreateIpReputationRuleRequest_1 = require("./model/CreateIpReputationRuleRequest");
|
|
25
43
|
const CreatePolicyRequest_1 = require("./model/CreatePolicyRequest");
|
|
26
44
|
const CreatePremiumHostRequest_1 = require("./model/CreatePremiumHostRequest");
|
|
27
45
|
const CreatePrepaidCloudWafRequest_1 = require("./model/CreatePrepaidCloudWafRequest");
|
|
28
46
|
const CreatePrivacyRuleRequest_1 = require("./model/CreatePrivacyRuleRequest");
|
|
29
47
|
const CreatePunishmentRuleRequest_1 = require("./model/CreatePunishmentRuleRequest");
|
|
48
|
+
const CreateQuickAccessDomainRequest_1 = require("./model/CreateQuickAccessDomainRequest");
|
|
30
49
|
const CreateValueListRequest_1 = require("./model/CreateValueListRequest");
|
|
31
50
|
const CreateWhiteblackipRuleRequest_1 = require("./model/CreateWhiteblackipRuleRequest");
|
|
51
|
+
const DeleteAgencyRequest_1 = require("./model/DeleteAgencyRequest");
|
|
32
52
|
const DeleteAnticrawlerRuleRequest_1 = require("./model/DeleteAnticrawlerRuleRequest");
|
|
33
53
|
const DeleteAntileakageRuleRequest_1 = require("./model/DeleteAntileakageRuleRequest");
|
|
34
54
|
const DeleteAntitamperRuleRequest_1 = require("./model/DeleteAntitamperRuleRequest");
|
|
@@ -84,6 +104,7 @@ const ListPunishmentRulesRequest_1 = require("./model/ListPunishmentRulesRequest
|
|
|
84
104
|
const ListQpsTimelineRequest_1 = require("./model/ListQpsTimelineRequest");
|
|
85
105
|
const ListRequestTimelineRequest_1 = require("./model/ListRequestTimelineRequest");
|
|
86
106
|
const ListResponseCodeTimelineRequest_1 = require("./model/ListResponseCodeTimelineRequest");
|
|
107
|
+
const ListSecurityReportHistoryPeriodsRequest_1 = require("./model/ListSecurityReportHistoryPeriodsRequest");
|
|
87
108
|
const ListSecurityReportSendingRecordsRequest_1 = require("./model/ListSecurityReportSendingRecordsRequest");
|
|
88
109
|
const ListSecurityReportSubscriptionsRequest_1 = require("./model/ListSecurityReportSubscriptionsRequest");
|
|
89
110
|
const ListStatisticsRequest_1 = require("./model/ListStatisticsRequest");
|
|
@@ -119,9 +140,11 @@ const ShowPremiumHostRequest_1 = require("./model/ShowPremiumHostRequest");
|
|
|
119
140
|
const ShowPrivacyRuleRequest_1 = require("./model/ShowPrivacyRuleRequest");
|
|
120
141
|
const ShowPunishmentRuleRequest_1 = require("./model/ShowPunishmentRuleRequest");
|
|
121
142
|
const ShowSecurityReportContentRequest_1 = require("./model/ShowSecurityReportContentRequest");
|
|
143
|
+
const ShowSecurityReportSubscriptionRequest_1 = require("./model/ShowSecurityReportSubscriptionRequest");
|
|
122
144
|
const ShowSourceIpRequest_1 = require("./model/ShowSourceIpRequest");
|
|
123
145
|
const ShowSubscriptionInfoRequest_1 = require("./model/ShowSubscriptionInfoRequest");
|
|
124
146
|
const ShowValueListRequest_1 = require("./model/ShowValueListRequest");
|
|
147
|
+
const ShowWebProtectionRuleRequest_1 = require("./model/ShowWebProtectionRuleRequest");
|
|
125
148
|
const ShowWhiteBlackIpRuleRequest_1 = require("./model/ShowWhiteBlackIpRuleRequest");
|
|
126
149
|
const UpdateAccessProgressRequest_1 = require("./model/UpdateAccessProgressRequest");
|
|
127
150
|
const UpdateAlertNoticeConfigRequest_1 = require("./model/UpdateAlertNoticeConfigRequest");
|
|
@@ -139,6 +162,7 @@ const UpdateHostRequest_1 = require("./model/UpdateHostRequest");
|
|
|
139
162
|
const UpdateIgnoreRuleRequest_1 = require("./model/UpdateIgnoreRuleRequest");
|
|
140
163
|
const UpdateInstanceRouteRequest_1 = require("./model/UpdateInstanceRouteRequest");
|
|
141
164
|
const UpdateIpGroupRequest_1 = require("./model/UpdateIpGroupRequest");
|
|
165
|
+
const UpdateIpReputationRuleRequest_1 = require("./model/UpdateIpReputationRuleRequest");
|
|
142
166
|
const UpdateLtsInfoConfigRequest_1 = require("./model/UpdateLtsInfoConfigRequest");
|
|
143
167
|
const UpdatePolicyProtectHostRequest_1 = require("./model/UpdatePolicyProtectHostRequest");
|
|
144
168
|
const UpdatePolicyRequest_1 = require("./model/UpdatePolicyRequest");
|
|
@@ -146,6 +170,7 @@ const UpdatePolicyRuleStatusRequest_1 = require("./model/UpdatePolicyRuleStatusR
|
|
|
146
170
|
const UpdatePremiumHostAccessStatusRequest_1 = require("./model/UpdatePremiumHostAccessStatusRequest");
|
|
147
171
|
const UpdatePremiumHostProtectStatusRequest_1 = require("./model/UpdatePremiumHostProtectStatusRequest");
|
|
148
172
|
const UpdatePremiumHostRequest_1 = require("./model/UpdatePremiumHostRequest");
|
|
173
|
+
const UpdatePremiumInstanceRequest_1 = require("./model/UpdatePremiumInstanceRequest");
|
|
149
174
|
const UpdatePrivacyRuleRequest_1 = require("./model/UpdatePrivacyRuleRequest");
|
|
150
175
|
const UpdatePunishmentRuleRequest_1 = require("./model/UpdatePunishmentRuleRequest");
|
|
151
176
|
const UpdateValueListRequest_1 = require("./model/UpdateValueListRequest");
|
|
@@ -180,6 +205,195 @@ class WafClient {
|
|
|
180
205
|
options['responseHeaders'] = [''];
|
|
181
206
|
return this.hcClient.sendRequest(options);
|
|
182
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* 选中多个策略为这些策略批量添加网页防篡改规则
|
|
210
|
+
*
|
|
211
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
212
|
+
*
|
|
213
|
+
* @summary 选中多个策略批量添加网页防篡改规则
|
|
214
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
215
|
+
* @param {BatchCreateAntiTamperRulesRequestBody} bacthCreateWhiteblackipRuleRequestBody 批量创建地理位置访问控制规则
|
|
216
|
+
* @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
217
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
batchCreateAntiTamperRule(batchCreateAntiTamperRuleRequest) {
|
|
222
|
+
const options = (0, exports.ParamCreater)().batchCreateAntiTamperRule(batchCreateAntiTamperRuleRequest);
|
|
223
|
+
// @ts-ignore
|
|
224
|
+
options['responseHeaders'] = [''];
|
|
225
|
+
return this.hcClient.sendRequest(options);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* 选中多个策略为这些策略批量添加防敏感信息泄漏规则
|
|
229
|
+
*
|
|
230
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
231
|
+
*
|
|
232
|
+
* @summary 选中多个策略批量添加防敏感信息泄漏规则
|
|
233
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
234
|
+
* @param {BatchCreateAntileakageRuleRequestBody} bacthCreateWhiteblackipRuleRequestBody 批量创建防敏感信息泄漏防护规则
|
|
235
|
+
* @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
236
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
*/
|
|
240
|
+
batchCreateAntileakageRule(batchCreateAntileakageRuleRequest) {
|
|
241
|
+
const options = (0, exports.ParamCreater)().batchCreateAntileakageRule(batchCreateAntileakageRuleRequest);
|
|
242
|
+
// @ts-ignore
|
|
243
|
+
options['responseHeaders'] = [''];
|
|
244
|
+
return this.hcClient.sendRequest(options);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* 选中多个策略为这些策略批量添加cc规则
|
|
248
|
+
*
|
|
249
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
250
|
+
*
|
|
251
|
+
* @summary 选中多个策略为批量添加cc规则
|
|
252
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
253
|
+
* @param {BatchCreateCcRuleRequestBody} bacthCreateCcRuleRequestBody 批量创建cc规则
|
|
254
|
+
* @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
255
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
batchCreateCcRule(batchCreateCcRuleRequest) {
|
|
260
|
+
const options = (0, exports.ParamCreater)().batchCreateCcRule(batchCreateCcRuleRequest);
|
|
261
|
+
// @ts-ignore
|
|
262
|
+
options['responseHeaders'] = [''];
|
|
263
|
+
return this.hcClient.sendRequest(options);
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* 选中多个策略为这些策略批量添加精准防护规则
|
|
267
|
+
*
|
|
268
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
269
|
+
*
|
|
270
|
+
* @summary 选中多个策略批量添加精准防护规则
|
|
271
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
272
|
+
* @param {BatchCreateCustomRuleRequestBody} bacthCreateCustomRuleRequestBody 批量创建精准防护规则
|
|
273
|
+
* @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
274
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
batchCreateCustomRule(batchCreateCustomRuleRequest) {
|
|
279
|
+
const options = (0, exports.ParamCreater)().batchCreateCustomRule(batchCreateCustomRuleRequest);
|
|
280
|
+
// @ts-ignore
|
|
281
|
+
options['responseHeaders'] = [''];
|
|
282
|
+
return this.hcClient.sendRequest(options);
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* 选中多个策略为这些策略批量添加地理位置访问控制规则
|
|
286
|
+
*
|
|
287
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
288
|
+
*
|
|
289
|
+
* @summary 选中多个策略批量添加地理位置访问控制规则
|
|
290
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
291
|
+
* @param {BatchCreateGeoIpRuleRequestBody} batchCreateGeoIpRuleRequestBody 批量创建地理位置访问控制规则
|
|
292
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
*/
|
|
296
|
+
batchCreateGeoIpRule(batchCreateGeoIpRuleRequest) {
|
|
297
|
+
const options = (0, exports.ParamCreater)().batchCreateGeoIpRule(batchCreateGeoIpRuleRequest);
|
|
298
|
+
// @ts-ignore
|
|
299
|
+
options['responseHeaders'] = [''];
|
|
300
|
+
return this.hcClient.sendRequest(options);
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* 选中多个策略为这些策略批量添加全局白名单规则
|
|
304
|
+
*
|
|
305
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
306
|
+
*
|
|
307
|
+
* @summary 选中多个策略批量添加全局白名单规则
|
|
308
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
309
|
+
* @param {BatchCreateIgnoreRuleRequestBody} batchCreateIgnoreRuleRequestBody 批量创建全局白名单防护规则
|
|
310
|
+
* @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
311
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
batchCreateIgnoreRule(batchCreateIgnoreRuleRequest) {
|
|
316
|
+
const options = (0, exports.ParamCreater)().batchCreateIgnoreRule(batchCreateIgnoreRuleRequest);
|
|
317
|
+
// @ts-ignore
|
|
318
|
+
options['responseHeaders'] = [''];
|
|
319
|
+
return this.hcClient.sendRequest(options);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* 选中多个策略为这些策略批量添加威胁情报访问控制规则
|
|
323
|
+
*
|
|
324
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
325
|
+
*
|
|
326
|
+
* @summary 为多个策略批量添加威胁情报访问控制规则
|
|
327
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
328
|
+
* @param {BatchCreateIpReputationRuleRequestBody} batchCreateIpReputationRuleRequestBody 批量创建威胁情报访问控制规则
|
|
329
|
+
* @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
330
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
*/
|
|
334
|
+
batchCreateIpReputationRule(batchCreateIpReputationRuleRequest) {
|
|
335
|
+
const options = (0, exports.ParamCreater)().batchCreateIpReputationRule(batchCreateIpReputationRuleRequest);
|
|
336
|
+
// @ts-ignore
|
|
337
|
+
options['responseHeaders'] = [''];
|
|
338
|
+
return this.hcClient.sendRequest(options);
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* 选中多个策略为这些策略批量添加隐私屏蔽防护规则
|
|
342
|
+
*
|
|
343
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
344
|
+
*
|
|
345
|
+
* @summary 选中多个策略批量添加隐私屏蔽防护防护规则
|
|
346
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
347
|
+
* @param {BatchCreatePrivacyRuleRequestBody} batchCreatePrivacyRuleRequestBody 批量创建隐私屏蔽防护规则
|
|
348
|
+
* @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
349
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
batchCreatePrivacyRule(batchCreatePrivacyRuleRequest) {
|
|
354
|
+
const options = (0, exports.ParamCreater)().batchCreatePrivacyRule(batchCreatePrivacyRuleRequest);
|
|
355
|
+
// @ts-ignore
|
|
356
|
+
options['responseHeaders'] = [''];
|
|
357
|
+
return this.hcClient.sendRequest(options);
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* 选中多个策略为这些策略批量添加黑白名单防护规则
|
|
361
|
+
*
|
|
362
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
363
|
+
*
|
|
364
|
+
* @summary 选中多个策略批量添加黑白名单防护规则
|
|
365
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
366
|
+
* @param {BacthCreateWhiteBlackIpRuleRequestBody} bacthCreateWhiteblackipRuleRequestBody 批量创建黑白名单防护规则
|
|
367
|
+
* @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
368
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
batchCreateWhiteblackipRule(batchCreateWhiteblackipRuleRequest) {
|
|
373
|
+
const options = (0, exports.ParamCreater)().batchCreateWhiteblackipRule(batchCreateWhiteblackipRuleRequest);
|
|
374
|
+
// @ts-ignore
|
|
375
|
+
options['responseHeaders'] = [''];
|
|
376
|
+
return this.hcClient.sendRequest(options);
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* 批量删除告警通知
|
|
380
|
+
*
|
|
381
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
382
|
+
*
|
|
383
|
+
* @summary 批量删除告警通知
|
|
384
|
+
* @param {string} enterpriseProjectId **参数解释:** 企业项目ID **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
385
|
+
* @param {string} xLanguage 语言,默认值为en-us。zh-cn(中文)/en-us(英文)
|
|
386
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
387
|
+
* @param {BatchDeleteAlertNoticeConfigBody} batchDeleteAlertNoticeConfigBody **参数解释:** 待删除的告警通知配置列表 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
batchDeleteAlertNoticeConfig(batchDeleteAlertNoticeConfigRequest) {
|
|
392
|
+
const options = (0, exports.ParamCreater)().batchDeleteAlertNoticeConfig(batchDeleteAlertNoticeConfigRequest);
|
|
393
|
+
// @ts-ignore
|
|
394
|
+
options['responseHeaders'] = [''];
|
|
395
|
+
return this.hcClient.sendRequest(options);
|
|
396
|
+
}
|
|
183
397
|
/**
|
|
184
398
|
* 批量删除防护策略
|
|
185
399
|
*
|
|
@@ -219,6 +433,22 @@ class WafClient {
|
|
|
219
433
|
options['responseHeaders'] = [''];
|
|
220
434
|
return this.hcClient.sendRequest(options);
|
|
221
435
|
}
|
|
436
|
+
/**
|
|
437
|
+
* 查询独享引擎的代理
|
|
438
|
+
*
|
|
439
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
440
|
+
*
|
|
441
|
+
* @summary 查询独享引擎代理
|
|
442
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
*/
|
|
446
|
+
checkAgency(checkAgencyRequest) {
|
|
447
|
+
const options = (0, exports.ParamCreater)().checkAgency(checkAgencyRequest);
|
|
448
|
+
// @ts-ignore
|
|
449
|
+
options['responseHeaders'] = [''];
|
|
450
|
+
return this.hcClient.sendRequest(options);
|
|
451
|
+
}
|
|
222
452
|
/**
|
|
223
453
|
* 按application规则类型获取内置规则类型
|
|
224
454
|
*
|
|
@@ -255,6 +485,77 @@ class WafClient {
|
|
|
255
485
|
options['responseHeaders'] = [''];
|
|
256
486
|
return this.hcClient.sendRequest(options);
|
|
257
487
|
}
|
|
488
|
+
/**
|
|
489
|
+
* 根据Id查询机房IP情报防护规则
|
|
490
|
+
*
|
|
491
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
492
|
+
*
|
|
493
|
+
* @summary 根据Id查询机房IP情报防护规则
|
|
494
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
495
|
+
* @param {string} policyId **参数解释:** 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id,响应体的id字段 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
496
|
+
* @param {string} ruleId **参数解释:** 威胁情报规则ip,从接口 “查询威胁情报规则列表”(ListIpReputationRules)获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
confirmIpReputationRule(confirmIpReputationRuleRequest) {
|
|
501
|
+
const options = (0, exports.ParamCreater)().confirmIpReputationRule(confirmIpReputationRuleRequest);
|
|
502
|
+
// @ts-ignore
|
|
503
|
+
options['responseHeaders'] = [''];
|
|
504
|
+
return this.hcClient.sendRequest(options);
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* 查询敏感信息选项的详细信息
|
|
508
|
+
*
|
|
509
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
510
|
+
*
|
|
511
|
+
* @summary 查询敏感信息选项的详细信息
|
|
512
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
513
|
+
* @param {string} lang **参数解释:** 语言的类型 - cn代表中文 - en代表英文 **约束限制:** 不涉及 **取值范围:** - cn - en **默认取值:** - cn
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @throws {RequiredError}
|
|
516
|
+
*/
|
|
517
|
+
confirmPolicyAntileakageMap(confirmPolicyAntileakageMapRequest) {
|
|
518
|
+
const options = (0, exports.ParamCreater)().confirmPolicyAntileakageMap(confirmPolicyAntileakageMapRequest);
|
|
519
|
+
// @ts-ignore
|
|
520
|
+
options['responseHeaders'] = [''];
|
|
521
|
+
return this.hcClient.sendRequest(options);
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* 查询威胁情报控制防护选项的详细信息
|
|
525
|
+
*
|
|
526
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
527
|
+
*
|
|
528
|
+
* @summary 查询威胁情报控制防护选项的详细信息
|
|
529
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
530
|
+
* @param {string} lang **参数解释:** 语言的类型 - cn代表中文 - en代表英文 **约束限制:** 不涉及 **取值范围:** - cn - en **默认取值:** - cn
|
|
531
|
+
* @param {string} type **参数解释:** 语言 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
confirmPolicyIpReputationMap(confirmPolicyIpReputationMapRequest) {
|
|
536
|
+
const options = (0, exports.ParamCreater)().confirmPolicyIpReputationMap(confirmPolicyIpReputationMapRequest);
|
|
537
|
+
// @ts-ignore
|
|
538
|
+
options['responseHeaders'] = [''];
|
|
539
|
+
return this.hcClient.sendRequest(options);
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* 按防护规则类型获取内置规则类型
|
|
543
|
+
*
|
|
544
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
545
|
+
*
|
|
546
|
+
* @summary 按防护规则类型获取内置规则类型
|
|
547
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
548
|
+
* @param {number} [offset] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从0开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 0
|
|
549
|
+
* @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
|
|
550
|
+
* @param {*} [options] Override http request option.
|
|
551
|
+
* @throws {RequiredError}
|
|
552
|
+
*/
|
|
553
|
+
confirmProtectionTypes(confirmProtectionTypesRequest) {
|
|
554
|
+
const options = (0, exports.ParamCreater)().confirmProtectionTypes(confirmProtectionTypesRequest);
|
|
555
|
+
// @ts-ignore
|
|
556
|
+
options['responseHeaders'] = [''];
|
|
557
|
+
return this.hcClient.sendRequest(options);
|
|
558
|
+
}
|
|
258
559
|
/**
|
|
259
560
|
* 查询告警可选事件类型
|
|
260
561
|
*
|
|
@@ -306,6 +607,42 @@ class WafClient {
|
|
|
306
607
|
options['responseHeaders'] = [''];
|
|
307
608
|
return this.hcClient.sendRequest(options);
|
|
308
609
|
}
|
|
610
|
+
/**
|
|
611
|
+
* 创建独享引擎的代理
|
|
612
|
+
*
|
|
613
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
614
|
+
*
|
|
615
|
+
* @summary 创建代理
|
|
616
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
617
|
+
* @param {PremiumWafAgencyRequest} [premiumWafAgencyRequest] **参数解释:** 独享引擎操作 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
*/
|
|
621
|
+
createAgency(createAgencyRequest) {
|
|
622
|
+
const options = (0, exports.ParamCreater)().createAgency(createAgencyRequest);
|
|
623
|
+
// @ts-ignore
|
|
624
|
+
options['responseHeaders'] = [''];
|
|
625
|
+
return this.hcClient.sendRequest(options);
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* 创建告警通知
|
|
629
|
+
*
|
|
630
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
631
|
+
*
|
|
632
|
+
* @summary 创建告警通知
|
|
633
|
+
* @param {string} xLanguage **参数解释:** 语言,默认值为en-us。zh-cn(中文)/en-us(英文) **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** zh-cn
|
|
634
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
635
|
+
* @param {string} enterpriseProjectId **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
636
|
+
* @param {CreateAlertNoticeConfigBody} alertNoticeConfig **参数解释:** 请求Body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
createAlertNoticeConfig(createAlertNoticeConfigRequest) {
|
|
641
|
+
const options = (0, exports.ParamCreater)().createAlertNoticeConfig(createAlertNoticeConfigRequest);
|
|
642
|
+
// @ts-ignore
|
|
643
|
+
options['responseHeaders'] = [''];
|
|
644
|
+
return this.hcClient.sendRequest(options);
|
|
645
|
+
}
|
|
309
646
|
/**
|
|
310
647
|
* 创建防篡改规则
|
|
311
648
|
*
|
|
@@ -352,7 +689,7 @@ class WafClient {
|
|
|
352
689
|
* @summary 创建防敏感信息泄露规则
|
|
353
690
|
* @param {string} contentType 内容类型
|
|
354
691
|
* @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
|
|
355
|
-
* @param {CreateAntileakageRuleRequestBody} createAntileakageRuleRequestBody
|
|
692
|
+
* @param {CreateAntileakageRuleRequestBody} createAntileakageRuleRequestBody 创建防泄露规则请求参数
|
|
356
693
|
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
357
694
|
* @param {*} [options] Override http request option.
|
|
358
695
|
* @throws {RequiredError}
|
|
@@ -391,6 +728,7 @@ class WafClient {
|
|
|
391
728
|
* @param {string} contentType 内容类型
|
|
392
729
|
* @param {CreateCertificateRequestBody} createCertificateRequestBody requestBody
|
|
393
730
|
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
731
|
+
* @param {boolean} [verifyCertKey] 是否验证证书和私钥,true为验证,false为不验证
|
|
394
732
|
* @param {*} [options] Override http request option.
|
|
395
733
|
* @throws {RequiredError}
|
|
396
734
|
*/
|
|
@@ -530,6 +868,25 @@ class WafClient {
|
|
|
530
868
|
options['responseHeaders'] = [''];
|
|
531
869
|
return this.hcClient.sendRequest(options);
|
|
532
870
|
}
|
|
871
|
+
/**
|
|
872
|
+
* 创建IP情报规则
|
|
873
|
+
*
|
|
874
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
875
|
+
*
|
|
876
|
+
* @summary 创建机房IP情报规则
|
|
877
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
878
|
+
* @param {string} policyId **参数解释:** 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
879
|
+
* @param {CreateIpReputationRuleRequestBody} createIpReputationRuleRequestBody **参数解释:** 创建地理访问控制请求体 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
880
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
createIpReputationRule(createIpReputationRuleRequest) {
|
|
885
|
+
const options = (0, exports.ParamCreater)().createIpReputationRule(createIpReputationRuleRequest);
|
|
886
|
+
// @ts-ignore
|
|
887
|
+
options['responseHeaders'] = [''];
|
|
888
|
+
return this.hcClient.sendRequest(options);
|
|
889
|
+
}
|
|
533
890
|
/**
|
|
534
891
|
* 创建防护策略,系统会在生成策略时配置一些默认的配置项,如果需要修改策略的默认配置项需要通过调用更新防护策略接口实现
|
|
535
892
|
*
|
|
@@ -549,11 +906,11 @@ class WafClient {
|
|
|
549
906
|
return this.hcClient.sendRequest(options);
|
|
550
907
|
}
|
|
551
908
|
/**
|
|
552
|
-
*
|
|
909
|
+
* 创建独享模式域名或者创建云模式ELB接入模式域名
|
|
553
910
|
*
|
|
554
911
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
555
912
|
*
|
|
556
|
-
* @summary
|
|
913
|
+
* @summary 创建独享模式域名或者创建云模式ELB接入模式域名
|
|
557
914
|
* @param {string} contentType 内容类型
|
|
558
915
|
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
559
916
|
* @param {CreatePremiumHostRequestBody} [createPremiumHostRequestBody] 创建独享模式域名的请求体
|
|
@@ -659,6 +1016,24 @@ class WafClient {
|
|
|
659
1016
|
options['responseHeaders'] = [''];
|
|
660
1017
|
return this.hcClient.sendRequest(options);
|
|
661
1018
|
}
|
|
1019
|
+
/**
|
|
1020
|
+
* 删除独享引擎的代理
|
|
1021
|
+
*
|
|
1022
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1023
|
+
*
|
|
1024
|
+
* @summary 删除代理
|
|
1025
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
1026
|
+
* @param {boolean} [purged] **参数解释:** purged取值为true时,会同步删除在IAM处创建的premium_waf_svc_trust委托,purged取值为false时,不会同步删除在IAM处创建的premium_waf_svc_trust委托 **约束限制:** 不涉及 **取值范围:** - true - false **默认取值:** 不涉及
|
|
1027
|
+
* @param {Array<string>} [roleIdList] **参数解释:** 待删除的代理id **约束限制:** 不涉及 **取值范围:** 从 “查询独享引擎代理”接口的返回结果中,选取需要删除代理的id值 **默认取值:** 不涉及
|
|
1028
|
+
* @param {*} [options] Override http request option.
|
|
1029
|
+
* @throws {RequiredError}
|
|
1030
|
+
*/
|
|
1031
|
+
deleteAgency(deleteAgencyRequest) {
|
|
1032
|
+
const options = (0, exports.ParamCreater)().deleteAgency(deleteAgencyRequest);
|
|
1033
|
+
// @ts-ignore
|
|
1034
|
+
options['responseHeaders'] = [''];
|
|
1035
|
+
return this.hcClient.sendRequest(options);
|
|
1036
|
+
}
|
|
662
1037
|
/**
|
|
663
1038
|
* 删除JS脚本反爬虫防护规则
|
|
664
1039
|
*
|
|
@@ -1036,11 +1411,11 @@ class WafClient {
|
|
|
1036
1411
|
return this.hcClient.sendRequest(options);
|
|
1037
1412
|
}
|
|
1038
1413
|
/**
|
|
1039
|
-
*
|
|
1414
|
+
* 查询所有策略防敏感信息泄露规则
|
|
1040
1415
|
*
|
|
1041
1416
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1042
1417
|
*
|
|
1043
|
-
* @summary
|
|
1418
|
+
* @summary 查询所有策略防敏感信息泄露规则
|
|
1044
1419
|
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
1045
1420
|
* @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
1046
1421
|
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
@@ -1168,6 +1543,10 @@ class WafClient {
|
|
|
1168
1543
|
* @param {number} offset 偏移量,表示查询该偏移量之后的记录。
|
|
1169
1544
|
* @param {number} limit 查询返回记录的数量限制。
|
|
1170
1545
|
* @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
|
|
1546
|
+
* @param {string} [name] 规则名称
|
|
1547
|
+
* @param {number} [status] 规则的开启状态,1表示开启,0表示关闭
|
|
1548
|
+
* @param {string} [category] **参数解释:** 防护动作 **取值范围:** - block: 拦截,表示超过“限速频率”将直接拦截。 - log:仅记录,表示超过“限速频率”将只记录不拦截。 - captcha:表示超过“限速频率”后弹出验证码,进行人机验证,完成验证后,请求将不受访问限制。人机验证目前支持英文。 - dynamic_block:上一个限速周期内,请求频率超过“限速频率”将被拦截,那么在下一个限速周期内,请求频率超过“放行频率”将被拦截。 - advanced_captcha:高阶人机验证,表示超过“限速频率”后弹出验证码,进行人机验证。 - js_challenge:要求客户端完成一段脚本的执行或验证,从而验证请求来源的合法性。
|
|
1549
|
+
* @param {string} [tagType] 限速模式: - ip:IP限速,根据IP区分单个Web访问者。 - cookie:用户限速,根据Cookie键值区分单个Web访问者。 - header:用户限速,根据Header区分单个Web访问者。 - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。 - policy: 策略限速 - domain: 域名限速 - url: url限速
|
|
1171
1550
|
* @param {*} [options] Override http request option.
|
|
1172
1551
|
* @throws {RequiredError}
|
|
1173
1552
|
*/
|
|
@@ -1276,7 +1655,7 @@ class WafClient {
|
|
|
1276
1655
|
* @param {'yesterday' | 'today' | '3days' | '1week' | '1month'} [recent] 查询日志的时间范围(不能和from、to同时使用,同时使用以recent为准),且recent参数与from、to必须使用其中一个。当同时使用recent参数与from、to时,以recent参数为准
|
|
1277
1656
|
* @param {number} [from] 起始时间(13位时间戳),需要和to同时使用,不能和recent参数同时使用
|
|
1278
1657
|
* @param {number} [to] 结束时间(13位时间戳),需要和from同时使用,不能和recent参数同时使用
|
|
1279
|
-
* @param {Array<string>} [attacks]
|
|
1658
|
+
* @param {Array<string>} [attacks] **参数解释:** 攻击类型 **约束限制:** 不涉及 **取值范围:** - sqli:sql注入攻击 - lfi:本地文件包含 - cmdi:命令注入攻击 - xss:XSS攻击 - robot:恶意爬虫 - rfi:远程文件包含 - custom_custom:精准防护 - cc: cc攻击 - webshell:网站木马 - custom_whiteblackip:黑白名单拦截 - custom_geoip:地理访问控制拦截 - antitamper:防篡改 - anticrawler:反爬虫 - leakage:网站信息防泄漏 - illegal:非法请求 - antiscan_high_freq_scan:高频扫描封禁 - antiscan_dir_traversal:目录遍历防护 - vuln:除上述攻击类型外的其他漏洞攻击 **默认取值:** 不涉及
|
|
1280
1659
|
* @param {Array<string>} [hosts] 域名id,从获取防护网站列表(ListHost)接口获取域名id
|
|
1281
1660
|
* @param {Array<string>} [sips] 源ip,Web访问者的IP地址(攻击者IP地址)
|
|
1282
1661
|
* @param {number} [page] 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
|
|
@@ -1755,21 +2134,40 @@ class WafClient {
|
|
|
1755
2134
|
return this.hcClient.sendRequest(options);
|
|
1756
2135
|
}
|
|
1757
2136
|
/**
|
|
1758
|
-
*
|
|
2137
|
+
* 查询安全报告历史统计周期列表
|
|
1759
2138
|
*
|
|
1760
2139
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1761
2140
|
*
|
|
1762
|
-
* @summary
|
|
2141
|
+
* @summary 查询安全报告历史统计周期列表
|
|
1763
2142
|
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
1764
|
-
* @param {string}
|
|
1765
|
-
* @param {string} [reportCategory] **参数解释:** 查询的报告类别 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
2143
|
+
* @param {string} subscriptionId **参数解释:** 需要查询的订阅id,从“查询安全报告订阅列表”中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
1766
2144
|
* @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
|
|
1767
|
-
* @param {number} [offset] **参数解释:**
|
|
2145
|
+
* @param {number} [offset] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从0开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 0
|
|
1768
2146
|
* @param {*} [options] Override http request option.
|
|
1769
2147
|
* @throws {RequiredError}
|
|
1770
2148
|
*/
|
|
1771
|
-
|
|
1772
|
-
const options = (0, exports.ParamCreater)().
|
|
2149
|
+
listSecurityReportHistoryPeriods(listSecurityReportHistoryPeriodsRequest) {
|
|
2150
|
+
const options = (0, exports.ParamCreater)().listSecurityReportHistoryPeriods(listSecurityReportHistoryPeriodsRequest);
|
|
2151
|
+
// @ts-ignore
|
|
2152
|
+
options['responseHeaders'] = [''];
|
|
2153
|
+
return this.hcClient.sendRequest(options);
|
|
2154
|
+
}
|
|
2155
|
+
/**
|
|
2156
|
+
* 查询安全报告发送记录
|
|
2157
|
+
*
|
|
2158
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2159
|
+
*
|
|
2160
|
+
* @summary 查询安全报告发送记录
|
|
2161
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
2162
|
+
* @param {string} [reportName] **参数解释:** 查询的报告名称 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
2163
|
+
* @param {string} [reportCategory] **参数解释:** 查询的报告类别 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
2164
|
+
* @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
|
|
2165
|
+
* @param {number} [offset] **参数解释:** 偏移量,表示查询该偏移量之后的记录。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
2166
|
+
* @param {*} [options] Override http request option.
|
|
2167
|
+
* @throws {RequiredError}
|
|
2168
|
+
*/
|
|
2169
|
+
listSecurityReportSendingRecords(listSecurityReportSendingRecordsRequest) {
|
|
2170
|
+
const options = (0, exports.ParamCreater)().listSecurityReportSendingRecords(listSecurityReportSendingRecordsRequest);
|
|
1773
2171
|
// @ts-ignore
|
|
1774
2172
|
options['responseHeaders'] = [''];
|
|
1775
2173
|
return this.hcClient.sendRequest(options);
|
|
@@ -2433,6 +2831,23 @@ class WafClient {
|
|
|
2433
2831
|
options['responseHeaders'] = [''];
|
|
2434
2832
|
return this.hcClient.sendRequest(options);
|
|
2435
2833
|
}
|
|
2834
|
+
/**
|
|
2835
|
+
* 查询安全报告订阅
|
|
2836
|
+
*
|
|
2837
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2838
|
+
*
|
|
2839
|
+
* @summary 查询安全报告订阅
|
|
2840
|
+
* @param {string} subscriptionId **参数解释:** 需要查询的订阅id,从“查询安全报告订阅列表”中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
2841
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
2842
|
+
* @param {*} [options] Override http request option.
|
|
2843
|
+
* @throws {RequiredError}
|
|
2844
|
+
*/
|
|
2845
|
+
showSecurityReportSubscription(showSecurityReportSubscriptionRequest) {
|
|
2846
|
+
const options = (0, exports.ParamCreater)().showSecurityReportSubscription(showSecurityReportSubscriptionRequest);
|
|
2847
|
+
// @ts-ignore
|
|
2848
|
+
options['responseHeaders'] = [''];
|
|
2849
|
+
return this.hcClient.sendRequest(options);
|
|
2850
|
+
}
|
|
2436
2851
|
/**
|
|
2437
2852
|
* 查询WAF回源Ip信息
|
|
2438
2853
|
*
|
|
@@ -2773,14 +3188,7 @@ class WafClient {
|
|
|
2773
3188
|
return this.hcClient.sendRequest(options);
|
|
2774
3189
|
}
|
|
2775
3190
|
/**
|
|
2776
|
-
* **参数解释:**
|
|
2777
3191
|
* 更新云模式域名路由信息
|
|
2778
|
-
* **约束限制:**
|
|
2779
|
-
* 不涉及
|
|
2780
|
-
* **取值范围:**
|
|
2781
|
-
* 不涉及
|
|
2782
|
-
* **默认取值:**
|
|
2783
|
-
* 不涉及
|
|
2784
3192
|
*
|
|
2785
3193
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2786
3194
|
*
|
|
@@ -2817,6 +3225,26 @@ class WafClient {
|
|
|
2817
3225
|
options['responseHeaders'] = [''];
|
|
2818
3226
|
return this.hcClient.sendRequest(options);
|
|
2819
3227
|
}
|
|
3228
|
+
/**
|
|
3229
|
+
* 更新IP情报防护规则
|
|
3230
|
+
*
|
|
3231
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3232
|
+
*
|
|
3233
|
+
* @summary 更新机房IP情报防护规则
|
|
3234
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
3235
|
+
* @param {string} policyId **参数解释:** 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id,响应体的id字段 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
3236
|
+
* @param {string} ruleId **参数解释:** 机房IP情报访问控制规则id,通过\"查询威胁情报规则列表\"接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
3237
|
+
* @param {UpdateIpReputationRuleRequestBody} updateIpReputationRuleRequestBody **参数解释:** body_info **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
3238
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
3239
|
+
* @param {*} [options] Override http request option.
|
|
3240
|
+
* @throws {RequiredError}
|
|
3241
|
+
*/
|
|
3242
|
+
updateIpReputationRule(updateIpReputationRuleRequest) {
|
|
3243
|
+
const options = (0, exports.ParamCreater)().updateIpReputationRule(updateIpReputationRuleRequest);
|
|
3244
|
+
// @ts-ignore
|
|
3245
|
+
options['responseHeaders'] = [''];
|
|
3246
|
+
return this.hcClient.sendRequest(options);
|
|
3247
|
+
}
|
|
2820
3248
|
/**
|
|
2821
3249
|
* 配置全量日志lts,该接口可用来开启与关闭waf全量日志以及配置日志组和日志流。日志组id和日志流id可前往云日志服务获取。配置的日志流id要属于所配置的日志组。
|
|
2822
3250
|
*
|
|
@@ -2950,6 +3378,23 @@ class WafClient {
|
|
|
2950
3378
|
options['responseHeaders'] = [''];
|
|
2951
3379
|
return this.hcClient.sendRequest(options);
|
|
2952
3380
|
}
|
|
3381
|
+
/**
|
|
3382
|
+
* 操作WAF独享引擎
|
|
3383
|
+
*
|
|
3384
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3385
|
+
*
|
|
3386
|
+
* @summary 操作WAF独享引擎
|
|
3387
|
+
* @param {string} instanceId **参数解释:** 独享引擎ID **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
3388
|
+
* @param {UpdatePremiumInstanceRequestBody} [updatePremiumInstanceRequestBody] **参数解释:** 独享引擎操作 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
3389
|
+
* @param {*} [options] Override http request option.
|
|
3390
|
+
* @throws {RequiredError}
|
|
3391
|
+
*/
|
|
3392
|
+
updatePremiumInstance(updatePremiumInstanceRequest) {
|
|
3393
|
+
const options = (0, exports.ParamCreater)().updatePremiumInstance(updatePremiumInstanceRequest);
|
|
3394
|
+
// @ts-ignore
|
|
3395
|
+
options['responseHeaders'] = [''];
|
|
3396
|
+
return this.hcClient.sendRequest(options);
|
|
3397
|
+
}
|
|
2953
3398
|
/**
|
|
2954
3399
|
* 更新隐私屏蔽防护规则
|
|
2955
3400
|
*
|
|
@@ -3029,6 +3474,42 @@ class WafClient {
|
|
|
3029
3474
|
options['responseHeaders'] = [''];
|
|
3030
3475
|
return this.hcClient.sendRequest(options);
|
|
3031
3476
|
}
|
|
3477
|
+
/**
|
|
3478
|
+
* 快速接入,直接去修改用户的DNS记录,使域名快速接入WAF
|
|
3479
|
+
*
|
|
3480
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3481
|
+
*
|
|
3482
|
+
* @summary 域名快速接入WAF
|
|
3483
|
+
* @param {string} projectid **参数解释:** 项目ID,对应控制台用户名->我的凭证->项目列表->项目ID。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及**参数解释:** 项目ID,对应控制台用户名->我的凭证->项目列表->项目ID。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
3484
|
+
* @param {string} instanceid **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
3485
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
3486
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
3487
|
+
* @param {*} [options] Override http request option.
|
|
3488
|
+
* @throws {RequiredError}
|
|
3489
|
+
*/
|
|
3490
|
+
createQuickAccessDomain(createQuickAccessDomainRequest) {
|
|
3491
|
+
const options = (0, exports.ParamCreater)().createQuickAccessDomain(createQuickAccessDomainRequest);
|
|
3492
|
+
// @ts-ignore
|
|
3493
|
+
options['responseHeaders'] = [''];
|
|
3494
|
+
return this.hcClient.sendRequest(options);
|
|
3495
|
+
}
|
|
3496
|
+
/**
|
|
3497
|
+
* 根据Id查询Web防护规则
|
|
3498
|
+
*
|
|
3499
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3500
|
+
*
|
|
3501
|
+
* @summary 根据Id查询Web防护规则
|
|
3502
|
+
* @param {string} ruleId **参数解释:** 防护规则ID **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
3503
|
+
* @param {string} [xLanguage] **参数解释:** 语言 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** zh-cn
|
|
3504
|
+
* @param {*} [options] Override http request option.
|
|
3505
|
+
* @throws {RequiredError}
|
|
3506
|
+
*/
|
|
3507
|
+
showWebProtectionRule(showWebProtectionRuleRequest) {
|
|
3508
|
+
const options = (0, exports.ParamCreater)().showWebProtectionRule(showWebProtectionRuleRequest);
|
|
3509
|
+
// @ts-ignore
|
|
3510
|
+
options['responseHeaders'] = [''];
|
|
3511
|
+
return this.hcClient.sendRequest(options);
|
|
3512
|
+
}
|
|
3032
3513
|
}
|
|
3033
3514
|
exports.WafClient = WafClient;
|
|
3034
3515
|
const ParamCreater = function () {
|
|
@@ -3085,14 +3566,14 @@ const ParamCreater = function () {
|
|
|
3085
3566
|
return options;
|
|
3086
3567
|
},
|
|
3087
3568
|
/**
|
|
3088
|
-
*
|
|
3569
|
+
* 选中多个策略为这些策略批量添加网页防篡改规则
|
|
3089
3570
|
*
|
|
3090
3571
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3091
3572
|
*/
|
|
3092
|
-
|
|
3573
|
+
batchCreateAntiTamperRule(batchCreateAntiTamperRuleRequest) {
|
|
3093
3574
|
const options = {
|
|
3094
3575
|
method: "POST",
|
|
3095
|
-
url: "/v1/{project_id}/waf/
|
|
3576
|
+
url: "/v1/{project_id}/waf/rule/antitamper",
|
|
3096
3577
|
contentType: "application/json",
|
|
3097
3578
|
queryParams: {},
|
|
3098
3579
|
pathParams: {},
|
|
@@ -3103,22 +3584,28 @@ const ParamCreater = function () {
|
|
|
3103
3584
|
const localVarQueryParameter = {};
|
|
3104
3585
|
let body;
|
|
3105
3586
|
let contentType;
|
|
3587
|
+
let policyids;
|
|
3106
3588
|
let enterpriseProjectId;
|
|
3107
|
-
if (
|
|
3108
|
-
if (
|
|
3109
|
-
contentType =
|
|
3110
|
-
body =
|
|
3111
|
-
|
|
3589
|
+
if (batchCreateAntiTamperRuleRequest !== null && batchCreateAntiTamperRuleRequest !== undefined) {
|
|
3590
|
+
if (batchCreateAntiTamperRuleRequest instanceof BatchCreateAntiTamperRuleRequest_1.BatchCreateAntiTamperRuleRequest) {
|
|
3591
|
+
contentType = batchCreateAntiTamperRuleRequest.contentType;
|
|
3592
|
+
body = batchCreateAntiTamperRuleRequest.body;
|
|
3593
|
+
policyids = batchCreateAntiTamperRuleRequest.policyids;
|
|
3594
|
+
enterpriseProjectId = batchCreateAntiTamperRuleRequest.enterpriseProjectId;
|
|
3112
3595
|
}
|
|
3113
3596
|
else {
|
|
3114
|
-
contentType =
|
|
3115
|
-
body =
|
|
3116
|
-
|
|
3597
|
+
contentType = batchCreateAntiTamperRuleRequest['Content-Type'];
|
|
3598
|
+
body = batchCreateAntiTamperRuleRequest['body'];
|
|
3599
|
+
policyids = batchCreateAntiTamperRuleRequest['policyids'];
|
|
3600
|
+
enterpriseProjectId = batchCreateAntiTamperRuleRequest['enterprise_project_id'];
|
|
3117
3601
|
}
|
|
3118
3602
|
}
|
|
3119
3603
|
if (body === null || body === undefined) {
|
|
3120
3604
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3121
3605
|
}
|
|
3606
|
+
if (policyids !== null && policyids !== undefined) {
|
|
3607
|
+
localVarQueryParameter['policyids'] = policyids;
|
|
3608
|
+
}
|
|
3122
3609
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
3123
3610
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
3124
3611
|
}
|
|
@@ -3132,17 +3619,14 @@ const ParamCreater = function () {
|
|
|
3132
3619
|
return options;
|
|
3133
3620
|
},
|
|
3134
3621
|
/**
|
|
3135
|
-
*
|
|
3136
|
-
* - 1.变更某产品规格的前提是必须已购买该产品
|
|
3137
|
-
* - 2.waf版本只支持升配,不支持降配;扩展包数量可以增加或者减少,但不支持数量减少为0
|
|
3138
|
-
* - 3.不支持同时升降配,如增加域名扩展包数量,同时减少规则扩展包数量
|
|
3622
|
+
* 选中多个策略为这些策略批量添加防敏感信息泄漏规则
|
|
3139
3623
|
*
|
|
3140
3624
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3141
3625
|
*/
|
|
3142
|
-
|
|
3626
|
+
batchCreateAntileakageRule(batchCreateAntileakageRuleRequest) {
|
|
3143
3627
|
const options = {
|
|
3144
3628
|
method: "POST",
|
|
3145
|
-
url: "/v1/{project_id}/waf/
|
|
3629
|
+
url: "/v1/{project_id}/waf/rule/antileakage",
|
|
3146
3630
|
contentType: "application/json",
|
|
3147
3631
|
queryParams: {},
|
|
3148
3632
|
pathParams: {},
|
|
@@ -3153,22 +3637,28 @@ const ParamCreater = function () {
|
|
|
3153
3637
|
const localVarQueryParameter = {};
|
|
3154
3638
|
let body;
|
|
3155
3639
|
let contentType;
|
|
3640
|
+
let policyids;
|
|
3156
3641
|
let enterpriseProjectId;
|
|
3157
|
-
if (
|
|
3158
|
-
if (
|
|
3159
|
-
contentType =
|
|
3160
|
-
body =
|
|
3161
|
-
|
|
3642
|
+
if (batchCreateAntileakageRuleRequest !== null && batchCreateAntileakageRuleRequest !== undefined) {
|
|
3643
|
+
if (batchCreateAntileakageRuleRequest instanceof BatchCreateAntileakageRuleRequest_1.BatchCreateAntileakageRuleRequest) {
|
|
3644
|
+
contentType = batchCreateAntileakageRuleRequest.contentType;
|
|
3645
|
+
body = batchCreateAntileakageRuleRequest.body;
|
|
3646
|
+
policyids = batchCreateAntileakageRuleRequest.policyids;
|
|
3647
|
+
enterpriseProjectId = batchCreateAntileakageRuleRequest.enterpriseProjectId;
|
|
3162
3648
|
}
|
|
3163
3649
|
else {
|
|
3164
|
-
contentType =
|
|
3165
|
-
body =
|
|
3166
|
-
|
|
3650
|
+
contentType = batchCreateAntileakageRuleRequest['Content-Type'];
|
|
3651
|
+
body = batchCreateAntileakageRuleRequest['body'];
|
|
3652
|
+
policyids = batchCreateAntileakageRuleRequest['policyids'];
|
|
3653
|
+
enterpriseProjectId = batchCreateAntileakageRuleRequest['enterprise_project_id'];
|
|
3167
3654
|
}
|
|
3168
3655
|
}
|
|
3169
3656
|
if (body === null || body === undefined) {
|
|
3170
3657
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3171
3658
|
}
|
|
3659
|
+
if (policyids !== null && policyids !== undefined) {
|
|
3660
|
+
localVarQueryParameter['policyids'] = policyids;
|
|
3661
|
+
}
|
|
3172
3662
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
3173
3663
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
3174
3664
|
}
|
|
@@ -3182,133 +3672,167 @@ const ParamCreater = function () {
|
|
|
3182
3672
|
return options;
|
|
3183
3673
|
},
|
|
3184
3674
|
/**
|
|
3185
|
-
*
|
|
3675
|
+
* 选中多个策略为这些策略批量添加cc规则
|
|
3186
3676
|
*
|
|
3187
3677
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3188
3678
|
*/
|
|
3189
|
-
|
|
3679
|
+
batchCreateCcRule(batchCreateCcRuleRequest) {
|
|
3190
3680
|
const options = {
|
|
3191
|
-
method: "
|
|
3192
|
-
url: "/v1/{project_id}/waf/
|
|
3681
|
+
method: "POST",
|
|
3682
|
+
url: "/v1/{project_id}/waf/rule/cc",
|
|
3193
3683
|
contentType: "application/json",
|
|
3194
3684
|
queryParams: {},
|
|
3195
3685
|
pathParams: {},
|
|
3196
|
-
headers: {}
|
|
3686
|
+
headers: {},
|
|
3687
|
+
data: {}
|
|
3197
3688
|
};
|
|
3198
3689
|
const localVarHeaderParameter = {};
|
|
3199
3690
|
const localVarQueryParameter = {};
|
|
3691
|
+
let body;
|
|
3200
3692
|
let contentType;
|
|
3201
|
-
let
|
|
3202
|
-
let
|
|
3203
|
-
if (
|
|
3204
|
-
if (
|
|
3205
|
-
contentType =
|
|
3206
|
-
|
|
3207
|
-
|
|
3693
|
+
let policyids;
|
|
3694
|
+
let enterpriseProjectId;
|
|
3695
|
+
if (batchCreateCcRuleRequest !== null && batchCreateCcRuleRequest !== undefined) {
|
|
3696
|
+
if (batchCreateCcRuleRequest instanceof BatchCreateCcRuleRequest_1.BatchCreateCcRuleRequest) {
|
|
3697
|
+
contentType = batchCreateCcRuleRequest.contentType;
|
|
3698
|
+
body = batchCreateCcRuleRequest.body;
|
|
3699
|
+
policyids = batchCreateCcRuleRequest.policyids;
|
|
3700
|
+
enterpriseProjectId = batchCreateCcRuleRequest.enterpriseProjectId;
|
|
3208
3701
|
}
|
|
3209
3702
|
else {
|
|
3210
|
-
contentType =
|
|
3211
|
-
|
|
3212
|
-
|
|
3703
|
+
contentType = batchCreateCcRuleRequest['Content-Type'];
|
|
3704
|
+
body = batchCreateCcRuleRequest['body'];
|
|
3705
|
+
policyids = batchCreateCcRuleRequest['policyids'];
|
|
3706
|
+
enterpriseProjectId = batchCreateCcRuleRequest['enterprise_project_id'];
|
|
3213
3707
|
}
|
|
3214
3708
|
}
|
|
3215
|
-
if (
|
|
3216
|
-
|
|
3709
|
+
if (body === null || body === undefined) {
|
|
3710
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3217
3711
|
}
|
|
3218
|
-
if (
|
|
3219
|
-
localVarQueryParameter['
|
|
3712
|
+
if (policyids !== null && policyids !== undefined) {
|
|
3713
|
+
localVarQueryParameter['policyids'] = policyids;
|
|
3714
|
+
}
|
|
3715
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
3716
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
3220
3717
|
}
|
|
3221
3718
|
if (contentType !== undefined && contentType !== null) {
|
|
3222
3719
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3223
3720
|
}
|
|
3721
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3722
|
+
options.data = body !== undefined ? body : {};
|
|
3224
3723
|
options.queryParams = localVarQueryParameter;
|
|
3225
3724
|
options.headers = localVarHeaderParameter;
|
|
3226
3725
|
return options;
|
|
3227
3726
|
},
|
|
3228
3727
|
/**
|
|
3229
|
-
*
|
|
3728
|
+
* 选中多个策略为这些策略批量添加精准防护规则
|
|
3230
3729
|
*
|
|
3231
3730
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3232
3731
|
*/
|
|
3233
|
-
|
|
3732
|
+
batchCreateCustomRule(batchCreateCustomRuleRequest) {
|
|
3234
3733
|
const options = {
|
|
3235
|
-
method: "
|
|
3236
|
-
url: "/v1/{project_id}/waf/
|
|
3734
|
+
method: "POST",
|
|
3735
|
+
url: "/v1/{project_id}/waf/rule/custom",
|
|
3237
3736
|
contentType: "application/json",
|
|
3238
3737
|
queryParams: {},
|
|
3239
3738
|
pathParams: {},
|
|
3240
|
-
headers: {}
|
|
3739
|
+
headers: {},
|
|
3740
|
+
data: {}
|
|
3241
3741
|
};
|
|
3242
3742
|
const localVarHeaderParameter = {};
|
|
3243
3743
|
const localVarQueryParameter = {};
|
|
3244
|
-
let
|
|
3744
|
+
let body;
|
|
3245
3745
|
let contentType;
|
|
3746
|
+
let policyids;
|
|
3246
3747
|
let enterpriseProjectId;
|
|
3247
|
-
if (
|
|
3248
|
-
if (
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3748
|
+
if (batchCreateCustomRuleRequest !== null && batchCreateCustomRuleRequest !== undefined) {
|
|
3749
|
+
if (batchCreateCustomRuleRequest instanceof BatchCreateCustomRuleRequest_1.BatchCreateCustomRuleRequest) {
|
|
3750
|
+
contentType = batchCreateCustomRuleRequest.contentType;
|
|
3751
|
+
body = batchCreateCustomRuleRequest.body;
|
|
3752
|
+
policyids = batchCreateCustomRuleRequest.policyids;
|
|
3753
|
+
enterpriseProjectId = batchCreateCustomRuleRequest.enterpriseProjectId;
|
|
3252
3754
|
}
|
|
3253
3755
|
else {
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3756
|
+
contentType = batchCreateCustomRuleRequest['Content-Type'];
|
|
3757
|
+
body = batchCreateCustomRuleRequest['body'];
|
|
3758
|
+
policyids = batchCreateCustomRuleRequest['policyids'];
|
|
3759
|
+
enterpriseProjectId = batchCreateCustomRuleRequest['enterprise_project_id'];
|
|
3257
3760
|
}
|
|
3258
3761
|
}
|
|
3259
|
-
if (
|
|
3260
|
-
throw new RequiredError('
|
|
3762
|
+
if (body === null || body === undefined) {
|
|
3763
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3764
|
+
}
|
|
3765
|
+
if (policyids !== null && policyids !== undefined) {
|
|
3766
|
+
localVarQueryParameter['policyids'] = policyids;
|
|
3261
3767
|
}
|
|
3262
3768
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
3263
|
-
localVarQueryParameter['
|
|
3769
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
3264
3770
|
}
|
|
3265
3771
|
if (contentType !== undefined && contentType !== null) {
|
|
3266
3772
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3267
3773
|
}
|
|
3774
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3775
|
+
options.data = body !== undefined ? body : {};
|
|
3268
3776
|
options.queryParams = localVarQueryParameter;
|
|
3269
|
-
options.pathParams = { 'job_id': jobId, };
|
|
3270
3777
|
options.headers = localVarHeaderParameter;
|
|
3271
3778
|
return options;
|
|
3272
3779
|
},
|
|
3273
3780
|
/**
|
|
3274
|
-
*
|
|
3781
|
+
* 选中多个策略为这些策略批量添加地理位置访问控制规则
|
|
3275
3782
|
*
|
|
3276
3783
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3277
3784
|
*/
|
|
3278
|
-
|
|
3785
|
+
batchCreateGeoIpRule(batchCreateGeoIpRuleRequest) {
|
|
3279
3786
|
const options = {
|
|
3280
|
-
method: "
|
|
3281
|
-
url: "/v1/{project_id}/waf/
|
|
3787
|
+
method: "POST",
|
|
3788
|
+
url: "/v1/{project_id}/waf/rule/geoip",
|
|
3282
3789
|
contentType: "application/json",
|
|
3283
3790
|
queryParams: {},
|
|
3284
3791
|
pathParams: {},
|
|
3285
|
-
headers: {}
|
|
3792
|
+
headers: {},
|
|
3793
|
+
data: {}
|
|
3286
3794
|
};
|
|
3287
3795
|
const localVarHeaderParameter = {};
|
|
3796
|
+
const localVarQueryParameter = {};
|
|
3797
|
+
let body;
|
|
3288
3798
|
let contentType;
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3799
|
+
let enterpriseProjectId;
|
|
3800
|
+
if (batchCreateGeoIpRuleRequest !== null && batchCreateGeoIpRuleRequest !== undefined) {
|
|
3801
|
+
if (batchCreateGeoIpRuleRequest instanceof BatchCreateGeoIpRuleRequest_1.BatchCreateGeoIpRuleRequest) {
|
|
3802
|
+
contentType = batchCreateGeoIpRuleRequest.contentType;
|
|
3803
|
+
body = batchCreateGeoIpRuleRequest.body;
|
|
3804
|
+
enterpriseProjectId = batchCreateGeoIpRuleRequest.enterpriseProjectId;
|
|
3292
3805
|
}
|
|
3293
3806
|
else {
|
|
3294
|
-
contentType =
|
|
3807
|
+
contentType = batchCreateGeoIpRuleRequest['Content-Type'];
|
|
3808
|
+
body = batchCreateGeoIpRuleRequest['body'];
|
|
3809
|
+
enterpriseProjectId = batchCreateGeoIpRuleRequest['enterprise_project_id'];
|
|
3295
3810
|
}
|
|
3296
3811
|
}
|
|
3812
|
+
if (body === null || body === undefined) {
|
|
3813
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3814
|
+
}
|
|
3815
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
3816
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
3817
|
+
}
|
|
3297
3818
|
if (contentType !== undefined && contentType !== null) {
|
|
3298
3819
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3299
3820
|
}
|
|
3821
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3822
|
+
options.data = body !== undefined ? body : {};
|
|
3823
|
+
options.queryParams = localVarQueryParameter;
|
|
3300
3824
|
options.headers = localVarHeaderParameter;
|
|
3301
3825
|
return options;
|
|
3302
3826
|
},
|
|
3303
3827
|
/**
|
|
3304
|
-
*
|
|
3828
|
+
* 选中多个策略为这些策略批量添加全局白名单规则
|
|
3305
3829
|
*
|
|
3306
3830
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3307
3831
|
*/
|
|
3308
|
-
|
|
3832
|
+
batchCreateIgnoreRule(batchCreateIgnoreRuleRequest) {
|
|
3309
3833
|
const options = {
|
|
3310
3834
|
method: "POST",
|
|
3311
|
-
url: "/v1/{project_id}/waf/
|
|
3835
|
+
url: "/v1/{project_id}/waf/rule/ignore",
|
|
3312
3836
|
contentType: "application/json",
|
|
3313
3837
|
queryParams: {},
|
|
3314
3838
|
pathParams: {},
|
|
@@ -3316,70 +3840,857 @@ const ParamCreater = function () {
|
|
|
3316
3840
|
data: {}
|
|
3317
3841
|
};
|
|
3318
3842
|
const localVarHeaderParameter = {};
|
|
3843
|
+
const localVarQueryParameter = {};
|
|
3319
3844
|
let body;
|
|
3320
3845
|
let contentType;
|
|
3321
|
-
let
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
body =
|
|
3846
|
+
let policyids;
|
|
3847
|
+
let enterpriseProjectId;
|
|
3848
|
+
if (batchCreateIgnoreRuleRequest !== null && batchCreateIgnoreRuleRequest !== undefined) {
|
|
3849
|
+
if (batchCreateIgnoreRuleRequest instanceof BatchCreateIgnoreRuleRequest_1.BatchCreateIgnoreRuleRequest) {
|
|
3850
|
+
contentType = batchCreateIgnoreRuleRequest.contentType;
|
|
3851
|
+
body = batchCreateIgnoreRuleRequest.body;
|
|
3852
|
+
policyids = batchCreateIgnoreRuleRequest.policyids;
|
|
3853
|
+
enterpriseProjectId = batchCreateIgnoreRuleRequest.enterpriseProjectId;
|
|
3327
3854
|
}
|
|
3328
3855
|
else {
|
|
3329
|
-
contentType =
|
|
3330
|
-
|
|
3331
|
-
|
|
3856
|
+
contentType = batchCreateIgnoreRuleRequest['Content-Type'];
|
|
3857
|
+
body = batchCreateIgnoreRuleRequest['body'];
|
|
3858
|
+
policyids = batchCreateIgnoreRuleRequest['policyids'];
|
|
3859
|
+
enterpriseProjectId = batchCreateIgnoreRuleRequest['enterprise_project_id'];
|
|
3332
3860
|
}
|
|
3333
3861
|
}
|
|
3334
|
-
if (resourceType === null || resourceType === undefined) {
|
|
3335
|
-
throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling confirmTmsResourceInstances.');
|
|
3336
|
-
}
|
|
3337
3862
|
if (body === null || body === undefined) {
|
|
3338
3863
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3339
3864
|
}
|
|
3865
|
+
if (policyids !== null && policyids !== undefined) {
|
|
3866
|
+
localVarQueryParameter['policyids'] = policyids;
|
|
3867
|
+
}
|
|
3868
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
3869
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
3870
|
+
}
|
|
3340
3871
|
if (contentType !== undefined && contentType !== null) {
|
|
3341
3872
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3342
3873
|
}
|
|
3343
3874
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3344
3875
|
options.data = body !== undefined ? body : {};
|
|
3345
|
-
options.
|
|
3876
|
+
options.queryParams = localVarQueryParameter;
|
|
3346
3877
|
options.headers = localVarHeaderParameter;
|
|
3347
3878
|
return options;
|
|
3348
3879
|
},
|
|
3349
3880
|
/**
|
|
3350
|
-
*
|
|
3881
|
+
* 选中多个策略为这些策略批量添加威胁情报访问控制规则
|
|
3351
3882
|
*
|
|
3352
3883
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3353
3884
|
*/
|
|
3354
|
-
|
|
3885
|
+
batchCreateIpReputationRule(batchCreateIpReputationRuleRequest) {
|
|
3355
3886
|
const options = {
|
|
3356
|
-
method: "
|
|
3357
|
-
url: "/v1/{project_id}/waf/
|
|
3887
|
+
method: "POST",
|
|
3888
|
+
url: "/v1/{project_id}/waf/rule/ip-reputation",
|
|
3358
3889
|
contentType: "application/json",
|
|
3359
3890
|
queryParams: {},
|
|
3360
3891
|
pathParams: {},
|
|
3361
|
-
headers: {}
|
|
3892
|
+
headers: {},
|
|
3893
|
+
data: {}
|
|
3362
3894
|
};
|
|
3363
3895
|
const localVarHeaderParameter = {};
|
|
3364
3896
|
const localVarQueryParameter = {};
|
|
3897
|
+
let body;
|
|
3365
3898
|
let contentType;
|
|
3899
|
+
let policyids;
|
|
3366
3900
|
let enterpriseProjectId;
|
|
3367
|
-
if (
|
|
3368
|
-
if (
|
|
3369
|
-
contentType =
|
|
3370
|
-
|
|
3901
|
+
if (batchCreateIpReputationRuleRequest !== null && batchCreateIpReputationRuleRequest !== undefined) {
|
|
3902
|
+
if (batchCreateIpReputationRuleRequest instanceof BatchCreateIpReputationRuleRequest_1.BatchCreateIpReputationRuleRequest) {
|
|
3903
|
+
contentType = batchCreateIpReputationRuleRequest.contentType;
|
|
3904
|
+
body = batchCreateIpReputationRuleRequest.body;
|
|
3905
|
+
policyids = batchCreateIpReputationRuleRequest.policyids;
|
|
3906
|
+
enterpriseProjectId = batchCreateIpReputationRuleRequest.enterpriseProjectId;
|
|
3371
3907
|
}
|
|
3372
3908
|
else {
|
|
3373
|
-
contentType =
|
|
3374
|
-
|
|
3909
|
+
contentType = batchCreateIpReputationRuleRequest['Content-Type'];
|
|
3910
|
+
body = batchCreateIpReputationRuleRequest['body'];
|
|
3911
|
+
policyids = batchCreateIpReputationRuleRequest['policyids'];
|
|
3912
|
+
enterpriseProjectId = batchCreateIpReputationRuleRequest['enterprise_project_id'];
|
|
3375
3913
|
}
|
|
3376
3914
|
}
|
|
3377
|
-
if (
|
|
3378
|
-
|
|
3915
|
+
if (body === null || body === undefined) {
|
|
3916
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3379
3917
|
}
|
|
3380
|
-
if (
|
|
3918
|
+
if (policyids !== null && policyids !== undefined) {
|
|
3919
|
+
localVarQueryParameter['policyids'] = policyids;
|
|
3920
|
+
}
|
|
3921
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
3922
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
3923
|
+
}
|
|
3924
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3925
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3926
|
+
}
|
|
3927
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3928
|
+
options.data = body !== undefined ? body : {};
|
|
3929
|
+
options.queryParams = localVarQueryParameter;
|
|
3930
|
+
options.headers = localVarHeaderParameter;
|
|
3931
|
+
return options;
|
|
3932
|
+
},
|
|
3933
|
+
/**
|
|
3934
|
+
* 选中多个策略为这些策略批量添加隐私屏蔽防护规则
|
|
3935
|
+
*
|
|
3936
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3937
|
+
*/
|
|
3938
|
+
batchCreatePrivacyRule(batchCreatePrivacyRuleRequest) {
|
|
3939
|
+
const options = {
|
|
3940
|
+
method: "POST",
|
|
3941
|
+
url: "/v1/{project_id}/waf/rule/privacy",
|
|
3942
|
+
contentType: "application/json",
|
|
3943
|
+
queryParams: {},
|
|
3944
|
+
pathParams: {},
|
|
3945
|
+
headers: {},
|
|
3946
|
+
data: {}
|
|
3947
|
+
};
|
|
3948
|
+
const localVarHeaderParameter = {};
|
|
3949
|
+
const localVarQueryParameter = {};
|
|
3950
|
+
let body;
|
|
3951
|
+
let contentType;
|
|
3952
|
+
let policyids;
|
|
3953
|
+
let enterpriseProjectId;
|
|
3954
|
+
if (batchCreatePrivacyRuleRequest !== null && batchCreatePrivacyRuleRequest !== undefined) {
|
|
3955
|
+
if (batchCreatePrivacyRuleRequest instanceof BatchCreatePrivacyRuleRequest_1.BatchCreatePrivacyRuleRequest) {
|
|
3956
|
+
contentType = batchCreatePrivacyRuleRequest.contentType;
|
|
3957
|
+
body = batchCreatePrivacyRuleRequest.body;
|
|
3958
|
+
policyids = batchCreatePrivacyRuleRequest.policyids;
|
|
3959
|
+
enterpriseProjectId = batchCreatePrivacyRuleRequest.enterpriseProjectId;
|
|
3960
|
+
}
|
|
3961
|
+
else {
|
|
3962
|
+
contentType = batchCreatePrivacyRuleRequest['Content-Type'];
|
|
3963
|
+
body = batchCreatePrivacyRuleRequest['body'];
|
|
3964
|
+
policyids = batchCreatePrivacyRuleRequest['policyids'];
|
|
3965
|
+
enterpriseProjectId = batchCreatePrivacyRuleRequest['enterprise_project_id'];
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
if (body === null || body === undefined) {
|
|
3969
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3970
|
+
}
|
|
3971
|
+
if (policyids !== null && policyids !== undefined) {
|
|
3972
|
+
localVarQueryParameter['policyids'] = policyids;
|
|
3973
|
+
}
|
|
3974
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
3975
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
3976
|
+
}
|
|
3977
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3978
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3979
|
+
}
|
|
3980
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3981
|
+
options.data = body !== undefined ? body : {};
|
|
3982
|
+
options.queryParams = localVarQueryParameter;
|
|
3983
|
+
options.headers = localVarHeaderParameter;
|
|
3984
|
+
return options;
|
|
3985
|
+
},
|
|
3986
|
+
/**
|
|
3987
|
+
* 选中多个策略为这些策略批量添加黑白名单防护规则
|
|
3988
|
+
*
|
|
3989
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3990
|
+
*/
|
|
3991
|
+
batchCreateWhiteblackipRule(batchCreateWhiteblackipRuleRequest) {
|
|
3992
|
+
const options = {
|
|
3993
|
+
method: "POST",
|
|
3994
|
+
url: "/v1/{project_id}/waf/rule/whiteblackip",
|
|
3995
|
+
contentType: "application/json",
|
|
3996
|
+
queryParams: {},
|
|
3997
|
+
pathParams: {},
|
|
3998
|
+
headers: {},
|
|
3999
|
+
data: {}
|
|
4000
|
+
};
|
|
4001
|
+
const localVarHeaderParameter = {};
|
|
4002
|
+
const localVarQueryParameter = {};
|
|
4003
|
+
let body;
|
|
4004
|
+
let contentType;
|
|
4005
|
+
let policyids;
|
|
4006
|
+
let enterpriseProjectId;
|
|
4007
|
+
if (batchCreateWhiteblackipRuleRequest !== null && batchCreateWhiteblackipRuleRequest !== undefined) {
|
|
4008
|
+
if (batchCreateWhiteblackipRuleRequest instanceof BatchCreateWhiteblackipRuleRequest_1.BatchCreateWhiteblackipRuleRequest) {
|
|
4009
|
+
contentType = batchCreateWhiteblackipRuleRequest.contentType;
|
|
4010
|
+
body = batchCreateWhiteblackipRuleRequest.body;
|
|
4011
|
+
policyids = batchCreateWhiteblackipRuleRequest.policyids;
|
|
4012
|
+
enterpriseProjectId = batchCreateWhiteblackipRuleRequest.enterpriseProjectId;
|
|
4013
|
+
}
|
|
4014
|
+
else {
|
|
4015
|
+
contentType = batchCreateWhiteblackipRuleRequest['Content-Type'];
|
|
4016
|
+
body = batchCreateWhiteblackipRuleRequest['body'];
|
|
4017
|
+
policyids = batchCreateWhiteblackipRuleRequest['policyids'];
|
|
4018
|
+
enterpriseProjectId = batchCreateWhiteblackipRuleRequest['enterprise_project_id'];
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
4021
|
+
if (body === null || body === undefined) {
|
|
4022
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4023
|
+
}
|
|
4024
|
+
if (policyids !== null && policyids !== undefined) {
|
|
4025
|
+
localVarQueryParameter['policyids'] = policyids;
|
|
4026
|
+
}
|
|
4027
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
4028
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
4029
|
+
}
|
|
4030
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4031
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4032
|
+
}
|
|
4033
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4034
|
+
options.data = body !== undefined ? body : {};
|
|
4035
|
+
options.queryParams = localVarQueryParameter;
|
|
4036
|
+
options.headers = localVarHeaderParameter;
|
|
4037
|
+
return options;
|
|
4038
|
+
},
|
|
4039
|
+
/**
|
|
4040
|
+
* 批量删除告警通知
|
|
4041
|
+
*
|
|
4042
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4043
|
+
*/
|
|
4044
|
+
batchDeleteAlertNoticeConfig(batchDeleteAlertNoticeConfigRequest) {
|
|
4045
|
+
const options = {
|
|
4046
|
+
method: "POST",
|
|
4047
|
+
url: "/v2/{project_id}/waf/alert/batch-delete",
|
|
4048
|
+
contentType: "application/json",
|
|
4049
|
+
queryParams: {},
|
|
4050
|
+
pathParams: {},
|
|
4051
|
+
headers: {},
|
|
4052
|
+
data: {}
|
|
4053
|
+
};
|
|
4054
|
+
const localVarHeaderParameter = {};
|
|
4055
|
+
const localVarQueryParameter = {};
|
|
4056
|
+
let body;
|
|
4057
|
+
let enterpriseProjectId;
|
|
4058
|
+
let xLanguage;
|
|
4059
|
+
let contentType;
|
|
4060
|
+
if (batchDeleteAlertNoticeConfigRequest !== null && batchDeleteAlertNoticeConfigRequest !== undefined) {
|
|
4061
|
+
if (batchDeleteAlertNoticeConfigRequest instanceof BatchDeleteAlertNoticeConfigRequest_1.BatchDeleteAlertNoticeConfigRequest) {
|
|
4062
|
+
enterpriseProjectId = batchDeleteAlertNoticeConfigRequest.enterpriseProjectId;
|
|
4063
|
+
xLanguage = batchDeleteAlertNoticeConfigRequest.xLanguage;
|
|
4064
|
+
contentType = batchDeleteAlertNoticeConfigRequest.contentType;
|
|
4065
|
+
body = batchDeleteAlertNoticeConfigRequest.body;
|
|
4066
|
+
}
|
|
4067
|
+
else {
|
|
4068
|
+
enterpriseProjectId = batchDeleteAlertNoticeConfigRequest['enterpriseProjectId'];
|
|
4069
|
+
xLanguage = batchDeleteAlertNoticeConfigRequest['X-Language'];
|
|
4070
|
+
contentType = batchDeleteAlertNoticeConfigRequest['Content-Type'];
|
|
4071
|
+
body = batchDeleteAlertNoticeConfigRequest['body'];
|
|
4072
|
+
}
|
|
4073
|
+
}
|
|
4074
|
+
if (enterpriseProjectId === null || enterpriseProjectId === undefined) {
|
|
4075
|
+
throw new RequiredError('enterpriseProjectId', 'Required parameter enterpriseProjectId was null or undefined when calling batchDeleteAlertNoticeConfig.');
|
|
4076
|
+
}
|
|
4077
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
4078
|
+
localVarQueryParameter['enterpriseProjectId'] = enterpriseProjectId;
|
|
4079
|
+
}
|
|
4080
|
+
if (body === null || body === undefined) {
|
|
4081
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4082
|
+
}
|
|
4083
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
4084
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
4085
|
+
}
|
|
4086
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4087
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4088
|
+
}
|
|
4089
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4090
|
+
options.data = body !== undefined ? body : {};
|
|
4091
|
+
options.queryParams = localVarQueryParameter;
|
|
4092
|
+
options.headers = localVarHeaderParameter;
|
|
4093
|
+
return options;
|
|
4094
|
+
},
|
|
4095
|
+
/**
|
|
4096
|
+
* 批量删除防护策略
|
|
4097
|
+
*
|
|
4098
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4099
|
+
*/
|
|
4100
|
+
batchDeletePolicies(batchDeletePoliciesRequest) {
|
|
4101
|
+
const options = {
|
|
4102
|
+
method: "POST",
|
|
4103
|
+
url: "/v1/{project_id}/waf/policies/batch-delete",
|
|
4104
|
+
contentType: "application/json",
|
|
4105
|
+
queryParams: {},
|
|
4106
|
+
pathParams: {},
|
|
4107
|
+
headers: {},
|
|
4108
|
+
data: {}
|
|
4109
|
+
};
|
|
4110
|
+
const localVarHeaderParameter = {};
|
|
4111
|
+
const localVarQueryParameter = {};
|
|
4112
|
+
let body;
|
|
4113
|
+
let contentType;
|
|
4114
|
+
let enterpriseProjectId;
|
|
4115
|
+
if (batchDeletePoliciesRequest !== null && batchDeletePoliciesRequest !== undefined) {
|
|
4116
|
+
if (batchDeletePoliciesRequest instanceof BatchDeletePoliciesRequest_1.BatchDeletePoliciesRequest) {
|
|
4117
|
+
contentType = batchDeletePoliciesRequest.contentType;
|
|
4118
|
+
body = batchDeletePoliciesRequest.body;
|
|
4119
|
+
enterpriseProjectId = batchDeletePoliciesRequest.enterpriseProjectId;
|
|
4120
|
+
}
|
|
4121
|
+
else {
|
|
4122
|
+
contentType = batchDeletePoliciesRequest['Content-Type'];
|
|
4123
|
+
body = batchDeletePoliciesRequest['body'];
|
|
4124
|
+
enterpriseProjectId = batchDeletePoliciesRequest['enterprise_project_id'];
|
|
4125
|
+
}
|
|
4126
|
+
}
|
|
4127
|
+
if (body === null || body === undefined) {
|
|
4128
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4129
|
+
}
|
|
4130
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
4131
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
4132
|
+
}
|
|
4133
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4134
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4135
|
+
}
|
|
4136
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4137
|
+
options.data = body !== undefined ? body : {};
|
|
4138
|
+
options.queryParams = localVarQueryParameter;
|
|
4139
|
+
options.headers = localVarHeaderParameter;
|
|
4140
|
+
return options;
|
|
4141
|
+
},
|
|
4142
|
+
/**
|
|
4143
|
+
* 变更包周期云模式waf规格。注:
|
|
4144
|
+
* - 1.变更某产品规格的前提是必须已购买该产品
|
|
4145
|
+
* - 2.waf版本只支持升配,不支持降配;扩展包数量可以增加或者减少,但不支持数量减少为0
|
|
4146
|
+
* - 3.不支持同时升降配,如增加域名扩展包数量,同时减少规则扩展包数量
|
|
4147
|
+
*
|
|
4148
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4149
|
+
*/
|
|
4150
|
+
changePrepaidCloudWaf(changePrepaidCloudWafRequest) {
|
|
4151
|
+
const options = {
|
|
4152
|
+
method: "POST",
|
|
4153
|
+
url: "/v1/{project_id}/waf/subscription/batchalter/prepaid-cloud-waf",
|
|
4154
|
+
contentType: "application/json",
|
|
4155
|
+
queryParams: {},
|
|
4156
|
+
pathParams: {},
|
|
4157
|
+
headers: {},
|
|
4158
|
+
data: {}
|
|
4159
|
+
};
|
|
4160
|
+
const localVarHeaderParameter = {};
|
|
4161
|
+
const localVarQueryParameter = {};
|
|
4162
|
+
let body;
|
|
4163
|
+
let contentType;
|
|
4164
|
+
let enterpriseProjectId;
|
|
4165
|
+
if (changePrepaidCloudWafRequest !== null && changePrepaidCloudWafRequest !== undefined) {
|
|
4166
|
+
if (changePrepaidCloudWafRequest instanceof ChangePrepaidCloudWafRequest_1.ChangePrepaidCloudWafRequest) {
|
|
4167
|
+
contentType = changePrepaidCloudWafRequest.contentType;
|
|
4168
|
+
body = changePrepaidCloudWafRequest.body;
|
|
4169
|
+
enterpriseProjectId = changePrepaidCloudWafRequest.enterpriseProjectId;
|
|
4170
|
+
}
|
|
4171
|
+
else {
|
|
4172
|
+
contentType = changePrepaidCloudWafRequest['Content-Type'];
|
|
4173
|
+
body = changePrepaidCloudWafRequest['body'];
|
|
4174
|
+
enterpriseProjectId = changePrepaidCloudWafRequest['enterprise_project_id'];
|
|
4175
|
+
}
|
|
4176
|
+
}
|
|
4177
|
+
if (body === null || body === undefined) {
|
|
4178
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4179
|
+
}
|
|
4180
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
4181
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
4182
|
+
}
|
|
4183
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4184
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4185
|
+
}
|
|
4186
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4187
|
+
options.data = body !== undefined ? body : {};
|
|
4188
|
+
options.queryParams = localVarQueryParameter;
|
|
4189
|
+
options.headers = localVarHeaderParameter;
|
|
4190
|
+
return options;
|
|
4191
|
+
},
|
|
4192
|
+
/**
|
|
4193
|
+
* 查询独享引擎的代理
|
|
4194
|
+
*
|
|
4195
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4196
|
+
*/
|
|
4197
|
+
checkAgency(checkAgencyRequest) {
|
|
4198
|
+
const options = {
|
|
4199
|
+
method: "GET",
|
|
4200
|
+
url: "/v1/{project_id}/premium-waf/agency",
|
|
4201
|
+
contentType: "application/json",
|
|
4202
|
+
queryParams: {},
|
|
4203
|
+
pathParams: {},
|
|
4204
|
+
headers: {}
|
|
4205
|
+
};
|
|
4206
|
+
const localVarHeaderParameter = {};
|
|
4207
|
+
let contentType;
|
|
4208
|
+
if (checkAgencyRequest !== null && checkAgencyRequest !== undefined) {
|
|
4209
|
+
if (checkAgencyRequest instanceof CheckAgencyRequest_1.CheckAgencyRequest) {
|
|
4210
|
+
contentType = checkAgencyRequest.contentType;
|
|
4211
|
+
}
|
|
4212
|
+
else {
|
|
4213
|
+
contentType = checkAgencyRequest['Content-Type'];
|
|
4214
|
+
}
|
|
4215
|
+
}
|
|
4216
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4217
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4218
|
+
}
|
|
4219
|
+
options.headers = localVarHeaderParameter;
|
|
4220
|
+
return options;
|
|
4221
|
+
},
|
|
4222
|
+
/**
|
|
4223
|
+
* 按application规则类型获取内置规则类型
|
|
4224
|
+
*
|
|
4225
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4226
|
+
*/
|
|
4227
|
+
confirmApplicationTypes(confirmApplicationTypesRequest) {
|
|
4228
|
+
const options = {
|
|
4229
|
+
method: "GET",
|
|
4230
|
+
url: "/v1/{project_id}/waf/rules/application-types",
|
|
4231
|
+
contentType: "application/json",
|
|
4232
|
+
queryParams: {},
|
|
4233
|
+
pathParams: {},
|
|
4234
|
+
headers: {}
|
|
4235
|
+
};
|
|
4236
|
+
const localVarHeaderParameter = {};
|
|
4237
|
+
const localVarQueryParameter = {};
|
|
4238
|
+
let contentType;
|
|
4239
|
+
let offset;
|
|
4240
|
+
let limit;
|
|
4241
|
+
if (confirmApplicationTypesRequest !== null && confirmApplicationTypesRequest !== undefined) {
|
|
4242
|
+
if (confirmApplicationTypesRequest instanceof ConfirmApplicationTypesRequest_1.ConfirmApplicationTypesRequest) {
|
|
4243
|
+
contentType = confirmApplicationTypesRequest.contentType;
|
|
4244
|
+
offset = confirmApplicationTypesRequest.offset;
|
|
4245
|
+
limit = confirmApplicationTypesRequest.limit;
|
|
4246
|
+
}
|
|
4247
|
+
else {
|
|
4248
|
+
contentType = confirmApplicationTypesRequest['Content-Type'];
|
|
4249
|
+
offset = confirmApplicationTypesRequest['offset'];
|
|
4250
|
+
limit = confirmApplicationTypesRequest['limit'];
|
|
4251
|
+
}
|
|
4252
|
+
}
|
|
4253
|
+
if (offset !== null && offset !== undefined) {
|
|
4254
|
+
localVarQueryParameter['offset'] = offset;
|
|
4255
|
+
}
|
|
4256
|
+
if (limit !== null && limit !== undefined) {
|
|
4257
|
+
localVarQueryParameter['limit'] = limit;
|
|
4258
|
+
}
|
|
4259
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4260
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4261
|
+
}
|
|
4262
|
+
options.queryParams = localVarQueryParameter;
|
|
4263
|
+
options.headers = localVarHeaderParameter;
|
|
4264
|
+
return options;
|
|
4265
|
+
},
|
|
4266
|
+
/**
|
|
4267
|
+
* 查询异步任务的执行状态详情
|
|
4268
|
+
*
|
|
4269
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4270
|
+
*/
|
|
4271
|
+
confirmAsyncJob(confirmAsyncJobRequest) {
|
|
4272
|
+
const options = {
|
|
4273
|
+
method: "GET",
|
|
4274
|
+
url: "/v1/{project_id}/waf/async-job/{job_id}",
|
|
4275
|
+
contentType: "application/json",
|
|
4276
|
+
queryParams: {},
|
|
4277
|
+
pathParams: {},
|
|
4278
|
+
headers: {}
|
|
4279
|
+
};
|
|
4280
|
+
const localVarHeaderParameter = {};
|
|
4281
|
+
const localVarQueryParameter = {};
|
|
4282
|
+
let jobId;
|
|
4283
|
+
let contentType;
|
|
4284
|
+
let enterpriseProjectId;
|
|
4285
|
+
if (confirmAsyncJobRequest !== null && confirmAsyncJobRequest !== undefined) {
|
|
4286
|
+
if (confirmAsyncJobRequest instanceof ConfirmAsyncJobRequest_1.ConfirmAsyncJobRequest) {
|
|
4287
|
+
jobId = confirmAsyncJobRequest.jobId;
|
|
4288
|
+
contentType = confirmAsyncJobRequest.contentType;
|
|
4289
|
+
enterpriseProjectId = confirmAsyncJobRequest.enterpriseProjectId;
|
|
4290
|
+
}
|
|
4291
|
+
else {
|
|
4292
|
+
jobId = confirmAsyncJobRequest['job_id'];
|
|
4293
|
+
contentType = confirmAsyncJobRequest['Content-Type'];
|
|
4294
|
+
enterpriseProjectId = confirmAsyncJobRequest['enterpriseProjectId'];
|
|
4295
|
+
}
|
|
4296
|
+
}
|
|
4297
|
+
if (jobId === null || jobId === undefined) {
|
|
4298
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling confirmAsyncJob.');
|
|
4299
|
+
}
|
|
4300
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
4301
|
+
localVarQueryParameter['enterpriseProjectId'] = enterpriseProjectId;
|
|
4302
|
+
}
|
|
4303
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4304
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4305
|
+
}
|
|
4306
|
+
options.queryParams = localVarQueryParameter;
|
|
4307
|
+
options.pathParams = { 'job_id': jobId, };
|
|
4308
|
+
options.headers = localVarHeaderParameter;
|
|
4309
|
+
return options;
|
|
4310
|
+
},
|
|
4311
|
+
/**
|
|
4312
|
+
* 根据Id查询机房IP情报防护规则
|
|
4313
|
+
*
|
|
4314
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4315
|
+
*/
|
|
4316
|
+
confirmIpReputationRule(confirmIpReputationRuleRequest) {
|
|
4317
|
+
const options = {
|
|
4318
|
+
method: "GET",
|
|
4319
|
+
url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation/{rule_id}",
|
|
4320
|
+
contentType: "application/json",
|
|
4321
|
+
queryParams: {},
|
|
4322
|
+
pathParams: {},
|
|
4323
|
+
headers: {}
|
|
4324
|
+
};
|
|
4325
|
+
const localVarHeaderParameter = {};
|
|
4326
|
+
let contentType;
|
|
4327
|
+
let policyId;
|
|
4328
|
+
let ruleId;
|
|
4329
|
+
if (confirmIpReputationRuleRequest !== null && confirmIpReputationRuleRequest !== undefined) {
|
|
4330
|
+
if (confirmIpReputationRuleRequest instanceof ConfirmIpReputationRuleRequest_1.ConfirmIpReputationRuleRequest) {
|
|
4331
|
+
contentType = confirmIpReputationRuleRequest.contentType;
|
|
4332
|
+
policyId = confirmIpReputationRuleRequest.policyId;
|
|
4333
|
+
ruleId = confirmIpReputationRuleRequest.ruleId;
|
|
4334
|
+
}
|
|
4335
|
+
else {
|
|
4336
|
+
contentType = confirmIpReputationRuleRequest['Content-Type'];
|
|
4337
|
+
policyId = confirmIpReputationRuleRequest['policy_id'];
|
|
4338
|
+
ruleId = confirmIpReputationRuleRequest['rule_id'];
|
|
4339
|
+
}
|
|
4340
|
+
}
|
|
4341
|
+
if (policyId === null || policyId === undefined) {
|
|
4342
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling confirmIpReputationRule.');
|
|
4343
|
+
}
|
|
4344
|
+
if (ruleId === null || ruleId === undefined) {
|
|
4345
|
+
throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling confirmIpReputationRule.');
|
|
4346
|
+
}
|
|
4347
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4348
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4349
|
+
}
|
|
4350
|
+
options.pathParams = { 'policy_id': policyId, 'rule_id': ruleId, };
|
|
4351
|
+
options.headers = localVarHeaderParameter;
|
|
4352
|
+
return options;
|
|
4353
|
+
},
|
|
4354
|
+
/**
|
|
4355
|
+
* 查询敏感信息选项的详细信息
|
|
4356
|
+
*
|
|
4357
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4358
|
+
*/
|
|
4359
|
+
confirmPolicyAntileakageMap(confirmPolicyAntileakageMapRequest) {
|
|
4360
|
+
const options = {
|
|
4361
|
+
method: "GET",
|
|
4362
|
+
url: "/v1/{project_id}/waf/tag/antileakage/map",
|
|
4363
|
+
contentType: "application/json",
|
|
4364
|
+
queryParams: {},
|
|
4365
|
+
pathParams: {},
|
|
4366
|
+
headers: {}
|
|
4367
|
+
};
|
|
4368
|
+
const localVarHeaderParameter = {};
|
|
4369
|
+
const localVarQueryParameter = {};
|
|
4370
|
+
let contentType;
|
|
4371
|
+
let lang;
|
|
4372
|
+
if (confirmPolicyAntileakageMapRequest !== null && confirmPolicyAntileakageMapRequest !== undefined) {
|
|
4373
|
+
if (confirmPolicyAntileakageMapRequest instanceof ConfirmPolicyAntileakageMapRequest_1.ConfirmPolicyAntileakageMapRequest) {
|
|
4374
|
+
contentType = confirmPolicyAntileakageMapRequest.contentType;
|
|
4375
|
+
lang = confirmPolicyAntileakageMapRequest.lang;
|
|
4376
|
+
}
|
|
4377
|
+
else {
|
|
4378
|
+
contentType = confirmPolicyAntileakageMapRequest['Content-Type'];
|
|
4379
|
+
lang = confirmPolicyAntileakageMapRequest['lang'];
|
|
4380
|
+
}
|
|
4381
|
+
}
|
|
4382
|
+
if (lang === null || lang === undefined) {
|
|
4383
|
+
throw new RequiredError('lang', 'Required parameter lang was null or undefined when calling confirmPolicyAntileakageMap.');
|
|
4384
|
+
}
|
|
4385
|
+
if (lang !== null && lang !== undefined) {
|
|
4386
|
+
localVarQueryParameter['lang'] = lang;
|
|
4387
|
+
}
|
|
4388
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4389
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4390
|
+
}
|
|
4391
|
+
options.queryParams = localVarQueryParameter;
|
|
4392
|
+
options.headers = localVarHeaderParameter;
|
|
4393
|
+
return options;
|
|
4394
|
+
},
|
|
4395
|
+
/**
|
|
4396
|
+
* 查询威胁情报控制防护选项的详细信息
|
|
4397
|
+
*
|
|
4398
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4399
|
+
*/
|
|
4400
|
+
confirmPolicyIpReputationMap(confirmPolicyIpReputationMapRequest) {
|
|
4401
|
+
const options = {
|
|
4402
|
+
method: "GET",
|
|
4403
|
+
url: "/v1/{project_id}/waf/tag/ip-reputation/map",
|
|
4404
|
+
contentType: "application/json",
|
|
4405
|
+
queryParams: {},
|
|
4406
|
+
pathParams: {},
|
|
4407
|
+
headers: {}
|
|
4408
|
+
};
|
|
4409
|
+
const localVarHeaderParameter = {};
|
|
4410
|
+
const localVarQueryParameter = {};
|
|
4411
|
+
let contentType;
|
|
4412
|
+
let lang;
|
|
4413
|
+
let type;
|
|
4414
|
+
if (confirmPolicyIpReputationMapRequest !== null && confirmPolicyIpReputationMapRequest !== undefined) {
|
|
4415
|
+
if (confirmPolicyIpReputationMapRequest instanceof ConfirmPolicyIpReputationMapRequest_1.ConfirmPolicyIpReputationMapRequest) {
|
|
4416
|
+
contentType = confirmPolicyIpReputationMapRequest.contentType;
|
|
4417
|
+
lang = confirmPolicyIpReputationMapRequest.lang;
|
|
4418
|
+
type = confirmPolicyIpReputationMapRequest.type;
|
|
4419
|
+
}
|
|
4420
|
+
else {
|
|
4421
|
+
contentType = confirmPolicyIpReputationMapRequest['Content-Type'];
|
|
4422
|
+
lang = confirmPolicyIpReputationMapRequest['lang'];
|
|
4423
|
+
type = confirmPolicyIpReputationMapRequest['type'];
|
|
4424
|
+
}
|
|
4425
|
+
}
|
|
4426
|
+
if (lang === null || lang === undefined) {
|
|
4427
|
+
throw new RequiredError('lang', 'Required parameter lang was null or undefined when calling confirmPolicyIpReputationMap.');
|
|
4428
|
+
}
|
|
4429
|
+
if (lang !== null && lang !== undefined) {
|
|
4430
|
+
localVarQueryParameter['lang'] = lang;
|
|
4431
|
+
}
|
|
4432
|
+
if (type === null || type === undefined) {
|
|
4433
|
+
throw new RequiredError('type', 'Required parameter type was null or undefined when calling confirmPolicyIpReputationMap.');
|
|
4434
|
+
}
|
|
4435
|
+
if (type !== null && type !== undefined) {
|
|
4436
|
+
localVarQueryParameter['type'] = type;
|
|
4437
|
+
}
|
|
4438
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4439
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4440
|
+
}
|
|
4441
|
+
options.queryParams = localVarQueryParameter;
|
|
4442
|
+
options.headers = localVarHeaderParameter;
|
|
4443
|
+
return options;
|
|
4444
|
+
},
|
|
4445
|
+
/**
|
|
4446
|
+
* 按防护规则类型获取内置规则类型
|
|
4447
|
+
*
|
|
4448
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4449
|
+
*/
|
|
4450
|
+
confirmProtectionTypes(confirmProtectionTypesRequest) {
|
|
4451
|
+
const options = {
|
|
4452
|
+
method: "GET",
|
|
4453
|
+
url: "/v1/{project_id}/waf/rules/protection-types",
|
|
4454
|
+
contentType: "application/json",
|
|
4455
|
+
queryParams: {},
|
|
4456
|
+
pathParams: {},
|
|
4457
|
+
headers: {}
|
|
4458
|
+
};
|
|
4459
|
+
const localVarHeaderParameter = {};
|
|
4460
|
+
const localVarQueryParameter = {};
|
|
4461
|
+
let contentType;
|
|
4462
|
+
let offset;
|
|
4463
|
+
let limit;
|
|
4464
|
+
if (confirmProtectionTypesRequest !== null && confirmProtectionTypesRequest !== undefined) {
|
|
4465
|
+
if (confirmProtectionTypesRequest instanceof ConfirmProtectionTypesRequest_1.ConfirmProtectionTypesRequest) {
|
|
4466
|
+
contentType = confirmProtectionTypesRequest.contentType;
|
|
4467
|
+
offset = confirmProtectionTypesRequest.offset;
|
|
4468
|
+
limit = confirmProtectionTypesRequest.limit;
|
|
4469
|
+
}
|
|
4470
|
+
else {
|
|
4471
|
+
contentType = confirmProtectionTypesRequest['Content-Type'];
|
|
4472
|
+
offset = confirmProtectionTypesRequest['offset'];
|
|
4473
|
+
limit = confirmProtectionTypesRequest['limit'];
|
|
4474
|
+
}
|
|
4475
|
+
}
|
|
4476
|
+
if (offset !== null && offset !== undefined) {
|
|
4477
|
+
localVarQueryParameter['offset'] = offset;
|
|
4478
|
+
}
|
|
4479
|
+
if (limit !== null && limit !== undefined) {
|
|
4480
|
+
localVarQueryParameter['limit'] = limit;
|
|
4481
|
+
}
|
|
4482
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4483
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4484
|
+
}
|
|
4485
|
+
options.queryParams = localVarQueryParameter;
|
|
4486
|
+
options.headers = localVarHeaderParameter;
|
|
4487
|
+
return options;
|
|
4488
|
+
},
|
|
4489
|
+
/**
|
|
4490
|
+
* 查询告警可选事件类型
|
|
4491
|
+
*
|
|
4492
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4493
|
+
*/
|
|
4494
|
+
confirmThreatMap(confirmThreatMapRequest) {
|
|
4495
|
+
const options = {
|
|
4496
|
+
method: "GET",
|
|
4497
|
+
url: "/v1/{project_id}/waf/tag/threat/map",
|
|
4498
|
+
contentType: "application/json",
|
|
4499
|
+
queryParams: {},
|
|
4500
|
+
pathParams: {},
|
|
4501
|
+
headers: {}
|
|
4502
|
+
};
|
|
4503
|
+
const localVarHeaderParameter = {};
|
|
4504
|
+
let contentType;
|
|
4505
|
+
if (confirmThreatMapRequest !== null && confirmThreatMapRequest !== undefined) {
|
|
4506
|
+
if (confirmThreatMapRequest instanceof ConfirmThreatMapRequest_1.ConfirmThreatMapRequest) {
|
|
4507
|
+
contentType = confirmThreatMapRequest.contentType;
|
|
4508
|
+
}
|
|
4509
|
+
else {
|
|
4510
|
+
contentType = confirmThreatMapRequest['Content-Type'];
|
|
4511
|
+
}
|
|
4512
|
+
}
|
|
4513
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4514
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4515
|
+
}
|
|
4516
|
+
options.headers = localVarHeaderParameter;
|
|
4517
|
+
return options;
|
|
4518
|
+
},
|
|
4519
|
+
/**
|
|
4520
|
+
* 使用标签过滤实例,标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力。
|
|
4521
|
+
*
|
|
4522
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4523
|
+
*/
|
|
4524
|
+
confirmTmsResourceInstances(confirmTmsResourceInstancesRequest) {
|
|
4525
|
+
const options = {
|
|
4526
|
+
method: "POST",
|
|
4527
|
+
url: "/v1/{project_id}/waf/{resource_type}/resource-instances/action",
|
|
4528
|
+
contentType: "application/json",
|
|
4529
|
+
queryParams: {},
|
|
4530
|
+
pathParams: {},
|
|
4531
|
+
headers: {},
|
|
4532
|
+
data: {}
|
|
4533
|
+
};
|
|
4534
|
+
const localVarHeaderParameter = {};
|
|
4535
|
+
let body;
|
|
4536
|
+
let contentType;
|
|
4537
|
+
let resourceType;
|
|
4538
|
+
if (confirmTmsResourceInstancesRequest !== null && confirmTmsResourceInstancesRequest !== undefined) {
|
|
4539
|
+
if (confirmTmsResourceInstancesRequest instanceof ConfirmTmsResourceInstancesRequest_1.ConfirmTmsResourceInstancesRequest) {
|
|
4540
|
+
contentType = confirmTmsResourceInstancesRequest.contentType;
|
|
4541
|
+
resourceType = confirmTmsResourceInstancesRequest.resourceType;
|
|
4542
|
+
body = confirmTmsResourceInstancesRequest.body;
|
|
4543
|
+
}
|
|
4544
|
+
else {
|
|
4545
|
+
contentType = confirmTmsResourceInstancesRequest['Content-Type'];
|
|
4546
|
+
resourceType = confirmTmsResourceInstancesRequest['resource_type'];
|
|
4547
|
+
body = confirmTmsResourceInstancesRequest['body'];
|
|
4548
|
+
}
|
|
4549
|
+
}
|
|
4550
|
+
if (resourceType === null || resourceType === undefined) {
|
|
4551
|
+
throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling confirmTmsResourceInstances.');
|
|
4552
|
+
}
|
|
4553
|
+
if (body === null || body === undefined) {
|
|
4554
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4555
|
+
}
|
|
4556
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4557
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4558
|
+
}
|
|
4559
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4560
|
+
options.data = body !== undefined ? body : {};
|
|
4561
|
+
options.pathParams = { 'resource_type': resourceType, };
|
|
4562
|
+
options.headers = localVarHeaderParameter;
|
|
4563
|
+
return options;
|
|
4564
|
+
},
|
|
4565
|
+
/**
|
|
4566
|
+
* 获取用户购买的WAF规格信息
|
|
4567
|
+
*
|
|
4568
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4569
|
+
*/
|
|
4570
|
+
confirmUserBundle(confirmUserBundleRequest) {
|
|
4571
|
+
const options = {
|
|
4572
|
+
method: "GET",
|
|
4573
|
+
url: "/v1/{project_id}/waf/bundle",
|
|
4574
|
+
contentType: "application/json",
|
|
4575
|
+
queryParams: {},
|
|
4576
|
+
pathParams: {},
|
|
4577
|
+
headers: {}
|
|
4578
|
+
};
|
|
4579
|
+
const localVarHeaderParameter = {};
|
|
4580
|
+
const localVarQueryParameter = {};
|
|
4581
|
+
let contentType;
|
|
4582
|
+
let enterpriseProjectId;
|
|
4583
|
+
if (confirmUserBundleRequest !== null && confirmUserBundleRequest !== undefined) {
|
|
4584
|
+
if (confirmUserBundleRequest instanceof ConfirmUserBundleRequest_1.ConfirmUserBundleRequest) {
|
|
4585
|
+
contentType = confirmUserBundleRequest.contentType;
|
|
4586
|
+
enterpriseProjectId = confirmUserBundleRequest.enterpriseProjectId;
|
|
4587
|
+
}
|
|
4588
|
+
else {
|
|
4589
|
+
contentType = confirmUserBundleRequest['Content-Type'];
|
|
4590
|
+
enterpriseProjectId = confirmUserBundleRequest['enterprise_project_id'];
|
|
4591
|
+
}
|
|
4592
|
+
}
|
|
4593
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
4594
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
4595
|
+
}
|
|
4596
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4597
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4598
|
+
}
|
|
4599
|
+
options.queryParams = localVarQueryParameter;
|
|
4600
|
+
options.headers = localVarHeaderParameter;
|
|
4601
|
+
return options;
|
|
4602
|
+
},
|
|
4603
|
+
/**
|
|
4604
|
+
* 创建独享引擎的代理
|
|
4605
|
+
*
|
|
4606
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4607
|
+
*/
|
|
4608
|
+
createAgency(createAgencyRequest) {
|
|
4609
|
+
const options = {
|
|
4610
|
+
method: "POST",
|
|
4611
|
+
url: "/v1/{project_id}/premium-waf/agency",
|
|
4612
|
+
contentType: "application/json",
|
|
4613
|
+
queryParams: {},
|
|
4614
|
+
pathParams: {},
|
|
4615
|
+
headers: {},
|
|
4616
|
+
data: {}
|
|
4617
|
+
};
|
|
4618
|
+
const localVarHeaderParameter = {};
|
|
4619
|
+
let body;
|
|
4620
|
+
let contentType;
|
|
4621
|
+
if (createAgencyRequest !== null && createAgencyRequest !== undefined) {
|
|
4622
|
+
if (createAgencyRequest instanceof CreateAgencyRequest_1.CreateAgencyRequest) {
|
|
4623
|
+
contentType = createAgencyRequest.contentType;
|
|
4624
|
+
body = createAgencyRequest.body;
|
|
4625
|
+
}
|
|
4626
|
+
else {
|
|
4627
|
+
contentType = createAgencyRequest['Content-Type'];
|
|
4628
|
+
body = createAgencyRequest['body'];
|
|
4629
|
+
}
|
|
4630
|
+
}
|
|
4631
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3381
4632
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3382
4633
|
}
|
|
4634
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4635
|
+
options.data = body !== undefined ? body : {};
|
|
4636
|
+
options.headers = localVarHeaderParameter;
|
|
4637
|
+
return options;
|
|
4638
|
+
},
|
|
4639
|
+
/**
|
|
4640
|
+
* 创建告警通知
|
|
4641
|
+
*
|
|
4642
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4643
|
+
*/
|
|
4644
|
+
createAlertNoticeConfig(createAlertNoticeConfigRequest) {
|
|
4645
|
+
const options = {
|
|
4646
|
+
method: "POST",
|
|
4647
|
+
url: "/v2/{project_id}/waf/alert",
|
|
4648
|
+
contentType: "application/json",
|
|
4649
|
+
queryParams: {},
|
|
4650
|
+
pathParams: {},
|
|
4651
|
+
headers: {},
|
|
4652
|
+
data: {}
|
|
4653
|
+
};
|
|
4654
|
+
const localVarHeaderParameter = {};
|
|
4655
|
+
const localVarQueryParameter = {};
|
|
4656
|
+
let body;
|
|
4657
|
+
let xLanguage;
|
|
4658
|
+
let contentType;
|
|
4659
|
+
let enterpriseProjectId;
|
|
4660
|
+
if (createAlertNoticeConfigRequest !== null && createAlertNoticeConfigRequest !== undefined) {
|
|
4661
|
+
if (createAlertNoticeConfigRequest instanceof CreateAlertNoticeConfigRequest_1.CreateAlertNoticeConfigRequest) {
|
|
4662
|
+
xLanguage = createAlertNoticeConfigRequest.xLanguage;
|
|
4663
|
+
contentType = createAlertNoticeConfigRequest.contentType;
|
|
4664
|
+
enterpriseProjectId = createAlertNoticeConfigRequest.enterpriseProjectId;
|
|
4665
|
+
body = createAlertNoticeConfigRequest.body;
|
|
4666
|
+
}
|
|
4667
|
+
else {
|
|
4668
|
+
xLanguage = createAlertNoticeConfigRequest['X-Language'];
|
|
4669
|
+
contentType = createAlertNoticeConfigRequest['Content-Type'];
|
|
4670
|
+
enterpriseProjectId = createAlertNoticeConfigRequest['enterpriseProjectId'];
|
|
4671
|
+
body = createAlertNoticeConfigRequest['body'];
|
|
4672
|
+
}
|
|
4673
|
+
}
|
|
4674
|
+
if (contentType === null || contentType === undefined) {
|
|
4675
|
+
throw new RequiredError('contentType', 'Required parameter contentType was null or undefined when calling createAlertNoticeConfig.');
|
|
4676
|
+
}
|
|
4677
|
+
if (contentType !== null && contentType !== undefined) {
|
|
4678
|
+
localVarQueryParameter['Content-Type'] = contentType;
|
|
4679
|
+
}
|
|
4680
|
+
if (enterpriseProjectId === null || enterpriseProjectId === undefined) {
|
|
4681
|
+
throw new RequiredError('enterpriseProjectId', 'Required parameter enterpriseProjectId was null or undefined when calling createAlertNoticeConfig.');
|
|
4682
|
+
}
|
|
4683
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
4684
|
+
localVarQueryParameter['enterpriseProjectId'] = enterpriseProjectId;
|
|
4685
|
+
}
|
|
4686
|
+
if (body === null || body === undefined) {
|
|
4687
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4688
|
+
}
|
|
4689
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
4690
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
4691
|
+
}
|
|
4692
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4693
|
+
options.data = body !== undefined ? body : {};
|
|
3383
4694
|
options.queryParams = localVarQueryParameter;
|
|
3384
4695
|
options.headers = localVarHeaderParameter;
|
|
3385
4696
|
return options;
|
|
@@ -3617,16 +4928,19 @@ const ParamCreater = function () {
|
|
|
3617
4928
|
let body;
|
|
3618
4929
|
let contentType;
|
|
3619
4930
|
let enterpriseProjectId;
|
|
4931
|
+
let verifyCertKey;
|
|
3620
4932
|
if (createCertificateRequest !== null && createCertificateRequest !== undefined) {
|
|
3621
4933
|
if (createCertificateRequest instanceof CreateCertificateRequest_1.CreateCertificateRequest) {
|
|
3622
4934
|
contentType = createCertificateRequest.contentType;
|
|
3623
4935
|
body = createCertificateRequest.body;
|
|
3624
4936
|
enterpriseProjectId = createCertificateRequest.enterpriseProjectId;
|
|
4937
|
+
verifyCertKey = createCertificateRequest.verifyCertKey;
|
|
3625
4938
|
}
|
|
3626
4939
|
else {
|
|
3627
4940
|
contentType = createCertificateRequest['Content-Type'];
|
|
3628
4941
|
body = createCertificateRequest['body'];
|
|
3629
4942
|
enterpriseProjectId = createCertificateRequest['enterprise_project_id'];
|
|
4943
|
+
verifyCertKey = createCertificateRequest['verify_cert_key'];
|
|
3630
4944
|
}
|
|
3631
4945
|
}
|
|
3632
4946
|
if (body === null || body === undefined) {
|
|
@@ -3635,6 +4949,9 @@ const ParamCreater = function () {
|
|
|
3635
4949
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
3636
4950
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
3637
4951
|
}
|
|
4952
|
+
if (verifyCertKey !== null && verifyCertKey !== undefined) {
|
|
4953
|
+
localVarQueryParameter['verify_cert_key'] = verifyCertKey;
|
|
4954
|
+
}
|
|
3638
4955
|
if (contentType !== undefined && contentType !== null) {
|
|
3639
4956
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3640
4957
|
}
|
|
@@ -3933,9 +5250,56 @@ const ParamCreater = function () {
|
|
|
3933
5250
|
enterpriseProjectId = createInstanceRequest.enterpriseProjectId;
|
|
3934
5251
|
}
|
|
3935
5252
|
else {
|
|
3936
|
-
contentType = createInstanceRequest['Content-Type'];
|
|
3937
|
-
body = createInstanceRequest['body'];
|
|
3938
|
-
enterpriseProjectId = createInstanceRequest['enterprise_project_id'];
|
|
5253
|
+
contentType = createInstanceRequest['Content-Type'];
|
|
5254
|
+
body = createInstanceRequest['body'];
|
|
5255
|
+
enterpriseProjectId = createInstanceRequest['enterprise_project_id'];
|
|
5256
|
+
}
|
|
5257
|
+
}
|
|
5258
|
+
if (body === null || body === undefined) {
|
|
5259
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
5260
|
+
}
|
|
5261
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
5262
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
5263
|
+
}
|
|
5264
|
+
if (contentType !== undefined && contentType !== null) {
|
|
5265
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
5266
|
+
}
|
|
5267
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5268
|
+
options.data = body !== undefined ? body : {};
|
|
5269
|
+
options.queryParams = localVarQueryParameter;
|
|
5270
|
+
options.headers = localVarHeaderParameter;
|
|
5271
|
+
return options;
|
|
5272
|
+
},
|
|
5273
|
+
/**
|
|
5274
|
+
* 创建ip地址组
|
|
5275
|
+
*
|
|
5276
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5277
|
+
*/
|
|
5278
|
+
createIpGroup(createIpGroupRequest) {
|
|
5279
|
+
const options = {
|
|
5280
|
+
method: "POST",
|
|
5281
|
+
url: "/v1/{project_id}/waf/ip-groups",
|
|
5282
|
+
contentType: "application/json",
|
|
5283
|
+
queryParams: {},
|
|
5284
|
+
pathParams: {},
|
|
5285
|
+
headers: {},
|
|
5286
|
+
data: {}
|
|
5287
|
+
};
|
|
5288
|
+
const localVarHeaderParameter = {};
|
|
5289
|
+
const localVarQueryParameter = {};
|
|
5290
|
+
let body;
|
|
5291
|
+
let contentType;
|
|
5292
|
+
let enterpriseProjectId;
|
|
5293
|
+
if (createIpGroupRequest !== null && createIpGroupRequest !== undefined) {
|
|
5294
|
+
if (createIpGroupRequest instanceof CreateIpGroupRequest_1.CreateIpGroupRequest) {
|
|
5295
|
+
contentType = createIpGroupRequest.contentType;
|
|
5296
|
+
body = createIpGroupRequest.body;
|
|
5297
|
+
enterpriseProjectId = createIpGroupRequest.enterpriseProjectId;
|
|
5298
|
+
}
|
|
5299
|
+
else {
|
|
5300
|
+
contentType = createIpGroupRequest['Content-Type'];
|
|
5301
|
+
body = createIpGroupRequest['body'];
|
|
5302
|
+
enterpriseProjectId = createIpGroupRequest['enterprise_project_id'];
|
|
3939
5303
|
}
|
|
3940
5304
|
}
|
|
3941
5305
|
if (body === null || body === undefined) {
|
|
@@ -3954,14 +5318,14 @@ const ParamCreater = function () {
|
|
|
3954
5318
|
return options;
|
|
3955
5319
|
},
|
|
3956
5320
|
/**
|
|
3957
|
-
* 创建
|
|
5321
|
+
* 创建IP情报规则
|
|
3958
5322
|
*
|
|
3959
5323
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3960
5324
|
*/
|
|
3961
|
-
|
|
5325
|
+
createIpReputationRule(createIpReputationRuleRequest) {
|
|
3962
5326
|
const options = {
|
|
3963
5327
|
method: "POST",
|
|
3964
|
-
url: "/v1/{project_id}/waf/ip-
|
|
5328
|
+
url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation",
|
|
3965
5329
|
contentType: "application/json",
|
|
3966
5330
|
queryParams: {},
|
|
3967
5331
|
pathParams: {},
|
|
@@ -3972,19 +5336,25 @@ const ParamCreater = function () {
|
|
|
3972
5336
|
const localVarQueryParameter = {};
|
|
3973
5337
|
let body;
|
|
3974
5338
|
let contentType;
|
|
5339
|
+
let policyId;
|
|
3975
5340
|
let enterpriseProjectId;
|
|
3976
|
-
if (
|
|
3977
|
-
if (
|
|
3978
|
-
contentType =
|
|
3979
|
-
|
|
3980
|
-
|
|
5341
|
+
if (createIpReputationRuleRequest !== null && createIpReputationRuleRequest !== undefined) {
|
|
5342
|
+
if (createIpReputationRuleRequest instanceof CreateIpReputationRuleRequest_1.CreateIpReputationRuleRequest) {
|
|
5343
|
+
contentType = createIpReputationRuleRequest.contentType;
|
|
5344
|
+
policyId = createIpReputationRuleRequest.policyId;
|
|
5345
|
+
body = createIpReputationRuleRequest.body;
|
|
5346
|
+
enterpriseProjectId = createIpReputationRuleRequest.enterpriseProjectId;
|
|
3981
5347
|
}
|
|
3982
5348
|
else {
|
|
3983
|
-
contentType =
|
|
3984
|
-
|
|
3985
|
-
|
|
5349
|
+
contentType = createIpReputationRuleRequest['Content-Type'];
|
|
5350
|
+
policyId = createIpReputationRuleRequest['policy_id'];
|
|
5351
|
+
body = createIpReputationRuleRequest['body'];
|
|
5352
|
+
enterpriseProjectId = createIpReputationRuleRequest['enterprise_project_id'];
|
|
3986
5353
|
}
|
|
3987
5354
|
}
|
|
5355
|
+
if (policyId === null || policyId === undefined) {
|
|
5356
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling createIpReputationRule.');
|
|
5357
|
+
}
|
|
3988
5358
|
if (body === null || body === undefined) {
|
|
3989
5359
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3990
5360
|
}
|
|
@@ -3997,6 +5367,7 @@ const ParamCreater = function () {
|
|
|
3997
5367
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3998
5368
|
options.data = body !== undefined ? body : {};
|
|
3999
5369
|
options.queryParams = localVarQueryParameter;
|
|
5370
|
+
options.pathParams = { 'policy_id': policyId, };
|
|
4000
5371
|
options.headers = localVarHeaderParameter;
|
|
4001
5372
|
return options;
|
|
4002
5373
|
},
|
|
@@ -4048,7 +5419,7 @@ const ParamCreater = function () {
|
|
|
4048
5419
|
return options;
|
|
4049
5420
|
},
|
|
4050
5421
|
/**
|
|
4051
|
-
*
|
|
5422
|
+
* 创建独享模式域名或者创建云模式ELB接入模式域名
|
|
4052
5423
|
*
|
|
4053
5424
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4054
5425
|
*/
|
|
@@ -4347,6 +5718,50 @@ const ParamCreater = function () {
|
|
|
4347
5718
|
options.headers = localVarHeaderParameter;
|
|
4348
5719
|
return options;
|
|
4349
5720
|
},
|
|
5721
|
+
/**
|
|
5722
|
+
* 删除独享引擎的代理
|
|
5723
|
+
*
|
|
5724
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5725
|
+
*/
|
|
5726
|
+
deleteAgency(deleteAgencyRequest) {
|
|
5727
|
+
const options = {
|
|
5728
|
+
method: "DELETE",
|
|
5729
|
+
url: "/v1/{project_id}/premium-waf/agency",
|
|
5730
|
+
contentType: "application/json",
|
|
5731
|
+
queryParams: {},
|
|
5732
|
+
pathParams: {},
|
|
5733
|
+
headers: {}
|
|
5734
|
+
};
|
|
5735
|
+
const localVarHeaderParameter = {};
|
|
5736
|
+
const localVarQueryParameter = {};
|
|
5737
|
+
let contentType;
|
|
5738
|
+
let purged;
|
|
5739
|
+
let roleIdList;
|
|
5740
|
+
if (deleteAgencyRequest !== null && deleteAgencyRequest !== undefined) {
|
|
5741
|
+
if (deleteAgencyRequest instanceof DeleteAgencyRequest_1.DeleteAgencyRequest) {
|
|
5742
|
+
contentType = deleteAgencyRequest.contentType;
|
|
5743
|
+
purged = deleteAgencyRequest.purged;
|
|
5744
|
+
roleIdList = deleteAgencyRequest.roleIdList;
|
|
5745
|
+
}
|
|
5746
|
+
else {
|
|
5747
|
+
contentType = deleteAgencyRequest['Content-Type'];
|
|
5748
|
+
purged = deleteAgencyRequest['purged'];
|
|
5749
|
+
roleIdList = deleteAgencyRequest['role_id_list'];
|
|
5750
|
+
}
|
|
5751
|
+
}
|
|
5752
|
+
if (purged !== null && purged !== undefined) {
|
|
5753
|
+
localVarQueryParameter['purged'] = purged;
|
|
5754
|
+
}
|
|
5755
|
+
if (roleIdList !== null && roleIdList !== undefined) {
|
|
5756
|
+
localVarQueryParameter['role_id_list'] = roleIdList;
|
|
5757
|
+
}
|
|
5758
|
+
if (contentType !== undefined && contentType !== null) {
|
|
5759
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
5760
|
+
}
|
|
5761
|
+
options.queryParams = localVarQueryParameter;
|
|
5762
|
+
options.headers = localVarHeaderParameter;
|
|
5763
|
+
return options;
|
|
5764
|
+
},
|
|
4350
5765
|
/**
|
|
4351
5766
|
* 删除JS脚本反爬虫防护规则
|
|
4352
5767
|
*
|
|
@@ -5348,7 +6763,7 @@ const ParamCreater = function () {
|
|
|
5348
6763
|
return options;
|
|
5349
6764
|
},
|
|
5350
6765
|
/**
|
|
5351
|
-
*
|
|
6766
|
+
* 查询所有策略防敏感信息泄露规则
|
|
5352
6767
|
*
|
|
5353
6768
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5354
6769
|
*/
|
|
@@ -5736,6 +7151,10 @@ const ParamCreater = function () {
|
|
|
5736
7151
|
let offset;
|
|
5737
7152
|
let limit;
|
|
5738
7153
|
let enterpriseProjectId;
|
|
7154
|
+
let name;
|
|
7155
|
+
let status;
|
|
7156
|
+
let category;
|
|
7157
|
+
let tagType;
|
|
5739
7158
|
if (listCcRulesRequest !== null && listCcRulesRequest !== undefined) {
|
|
5740
7159
|
if (listCcRulesRequest instanceof ListCcRulesRequest_1.ListCcRulesRequest) {
|
|
5741
7160
|
contentType = listCcRulesRequest.contentType;
|
|
@@ -5743,6 +7162,10 @@ const ParamCreater = function () {
|
|
|
5743
7162
|
offset = listCcRulesRequest.offset;
|
|
5744
7163
|
limit = listCcRulesRequest.limit;
|
|
5745
7164
|
enterpriseProjectId = listCcRulesRequest.enterpriseProjectId;
|
|
7165
|
+
name = listCcRulesRequest.name;
|
|
7166
|
+
status = listCcRulesRequest.status;
|
|
7167
|
+
category = listCcRulesRequest.category;
|
|
7168
|
+
tagType = listCcRulesRequest.tagType;
|
|
5746
7169
|
}
|
|
5747
7170
|
else {
|
|
5748
7171
|
contentType = listCcRulesRequest['Content-Type'];
|
|
@@ -5750,6 +7173,10 @@ const ParamCreater = function () {
|
|
|
5750
7173
|
offset = listCcRulesRequest['offset'];
|
|
5751
7174
|
limit = listCcRulesRequest['limit'];
|
|
5752
7175
|
enterpriseProjectId = listCcRulesRequest['enterprise_project_id'];
|
|
7176
|
+
name = listCcRulesRequest['name'];
|
|
7177
|
+
status = listCcRulesRequest['status'];
|
|
7178
|
+
category = listCcRulesRequest['category'];
|
|
7179
|
+
tagType = listCcRulesRequest['tag_type'];
|
|
5753
7180
|
}
|
|
5754
7181
|
}
|
|
5755
7182
|
if (policyId === null || policyId === undefined) {
|
|
@@ -5770,6 +7197,18 @@ const ParamCreater = function () {
|
|
|
5770
7197
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
5771
7198
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
5772
7199
|
}
|
|
7200
|
+
if (name !== null && name !== undefined) {
|
|
7201
|
+
localVarQueryParameter['name'] = name;
|
|
7202
|
+
}
|
|
7203
|
+
if (status !== null && status !== undefined) {
|
|
7204
|
+
localVarQueryParameter['status'] = status;
|
|
7205
|
+
}
|
|
7206
|
+
if (category !== null && category !== undefined) {
|
|
7207
|
+
localVarQueryParameter['category'] = category;
|
|
7208
|
+
}
|
|
7209
|
+
if (tagType !== null && tagType !== undefined) {
|
|
7210
|
+
localVarQueryParameter['tag_type'] = tagType;
|
|
7211
|
+
}
|
|
5773
7212
|
if (contentType !== undefined && contentType !== null) {
|
|
5774
7213
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
5775
7214
|
}
|
|
@@ -7499,6 +8938,59 @@ const ParamCreater = function () {
|
|
|
7499
8938
|
options.headers = localVarHeaderParameter;
|
|
7500
8939
|
return options;
|
|
7501
8940
|
},
|
|
8941
|
+
/**
|
|
8942
|
+
* 查询安全报告历史统计周期列表
|
|
8943
|
+
*
|
|
8944
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8945
|
+
*/
|
|
8946
|
+
listSecurityReportHistoryPeriods(listSecurityReportHistoryPeriodsRequest) {
|
|
8947
|
+
const options = {
|
|
8948
|
+
method: "GET",
|
|
8949
|
+
url: "/v1/{project_id}/waf/security-report/history-periods",
|
|
8950
|
+
contentType: "application/json",
|
|
8951
|
+
queryParams: {},
|
|
8952
|
+
pathParams: {},
|
|
8953
|
+
headers: {}
|
|
8954
|
+
};
|
|
8955
|
+
const localVarHeaderParameter = {};
|
|
8956
|
+
const localVarQueryParameter = {};
|
|
8957
|
+
let contentType;
|
|
8958
|
+
let subscriptionId;
|
|
8959
|
+
let limit;
|
|
8960
|
+
let offset;
|
|
8961
|
+
if (listSecurityReportHistoryPeriodsRequest !== null && listSecurityReportHistoryPeriodsRequest !== undefined) {
|
|
8962
|
+
if (listSecurityReportHistoryPeriodsRequest instanceof ListSecurityReportHistoryPeriodsRequest_1.ListSecurityReportHistoryPeriodsRequest) {
|
|
8963
|
+
contentType = listSecurityReportHistoryPeriodsRequest.contentType;
|
|
8964
|
+
subscriptionId = listSecurityReportHistoryPeriodsRequest.subscriptionId;
|
|
8965
|
+
limit = listSecurityReportHistoryPeriodsRequest.limit;
|
|
8966
|
+
offset = listSecurityReportHistoryPeriodsRequest.offset;
|
|
8967
|
+
}
|
|
8968
|
+
else {
|
|
8969
|
+
contentType = listSecurityReportHistoryPeriodsRequest['Content-Type'];
|
|
8970
|
+
subscriptionId = listSecurityReportHistoryPeriodsRequest['subscription_id'];
|
|
8971
|
+
limit = listSecurityReportHistoryPeriodsRequest['limit'];
|
|
8972
|
+
offset = listSecurityReportHistoryPeriodsRequest['offset'];
|
|
8973
|
+
}
|
|
8974
|
+
}
|
|
8975
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
8976
|
+
throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling listSecurityReportHistoryPeriods.');
|
|
8977
|
+
}
|
|
8978
|
+
if (subscriptionId !== null && subscriptionId !== undefined) {
|
|
8979
|
+
localVarQueryParameter['subscription_id'] = subscriptionId;
|
|
8980
|
+
}
|
|
8981
|
+
if (limit !== null && limit !== undefined) {
|
|
8982
|
+
localVarQueryParameter['limit'] = limit;
|
|
8983
|
+
}
|
|
8984
|
+
if (offset !== null && offset !== undefined) {
|
|
8985
|
+
localVarQueryParameter['offset'] = offset;
|
|
8986
|
+
}
|
|
8987
|
+
if (contentType !== undefined && contentType !== null) {
|
|
8988
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
8989
|
+
}
|
|
8990
|
+
options.queryParams = localVarQueryParameter;
|
|
8991
|
+
options.headers = localVarHeaderParameter;
|
|
8992
|
+
return options;
|
|
8993
|
+
},
|
|
7502
8994
|
/**
|
|
7503
8995
|
* 查询安全报告发送记录
|
|
7504
8996
|
*
|
|
@@ -9392,6 +10884,43 @@ const ParamCreater = function () {
|
|
|
9392
10884
|
options.headers = localVarHeaderParameter;
|
|
9393
10885
|
return options;
|
|
9394
10886
|
},
|
|
10887
|
+
/**
|
|
10888
|
+
* 查询安全报告订阅
|
|
10889
|
+
*
|
|
10890
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
10891
|
+
*/
|
|
10892
|
+
showSecurityReportSubscription(showSecurityReportSubscriptionRequest) {
|
|
10893
|
+
const options = {
|
|
10894
|
+
method: "GET",
|
|
10895
|
+
url: "/v1/{project_id}/waf/security-report/subscriptions/{subscription_id}",
|
|
10896
|
+
contentType: "application/json",
|
|
10897
|
+
queryParams: {},
|
|
10898
|
+
pathParams: {},
|
|
10899
|
+
headers: {}
|
|
10900
|
+
};
|
|
10901
|
+
const localVarHeaderParameter = {};
|
|
10902
|
+
let subscriptionId;
|
|
10903
|
+
let contentType;
|
|
10904
|
+
if (showSecurityReportSubscriptionRequest !== null && showSecurityReportSubscriptionRequest !== undefined) {
|
|
10905
|
+
if (showSecurityReportSubscriptionRequest instanceof ShowSecurityReportSubscriptionRequest_1.ShowSecurityReportSubscriptionRequest) {
|
|
10906
|
+
subscriptionId = showSecurityReportSubscriptionRequest.subscriptionId;
|
|
10907
|
+
contentType = showSecurityReportSubscriptionRequest.contentType;
|
|
10908
|
+
}
|
|
10909
|
+
else {
|
|
10910
|
+
subscriptionId = showSecurityReportSubscriptionRequest['subscription_id'];
|
|
10911
|
+
contentType = showSecurityReportSubscriptionRequest['Content-Type'];
|
|
10912
|
+
}
|
|
10913
|
+
}
|
|
10914
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
10915
|
+
throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling showSecurityReportSubscription.');
|
|
10916
|
+
}
|
|
10917
|
+
if (contentType !== undefined && contentType !== null) {
|
|
10918
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
10919
|
+
}
|
|
10920
|
+
options.pathParams = { 'subscription_id': subscriptionId, };
|
|
10921
|
+
options.headers = localVarHeaderParameter;
|
|
10922
|
+
return options;
|
|
10923
|
+
},
|
|
9395
10924
|
/**
|
|
9396
10925
|
* 查询WAF回源Ip信息
|
|
9397
10926
|
*
|
|
@@ -10308,14 +11837,7 @@ const ParamCreater = function () {
|
|
|
10308
11837
|
return options;
|
|
10309
11838
|
},
|
|
10310
11839
|
/**
|
|
10311
|
-
* **参数解释:**
|
|
10312
11840
|
* 更新云模式域名路由信息
|
|
10313
|
-
* **约束限制:**
|
|
10314
|
-
* 不涉及
|
|
10315
|
-
* **取值范围:**
|
|
10316
|
-
* 不涉及
|
|
10317
|
-
* **默认取值:**
|
|
10318
|
-
* 不涉及
|
|
10319
11841
|
*
|
|
10320
11842
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
10321
11843
|
*/
|
|
@@ -10420,6 +11942,66 @@ const ParamCreater = function () {
|
|
|
10420
11942
|
options.headers = localVarHeaderParameter;
|
|
10421
11943
|
return options;
|
|
10422
11944
|
},
|
|
11945
|
+
/**
|
|
11946
|
+
* 更新IP情报防护规则
|
|
11947
|
+
*
|
|
11948
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
11949
|
+
*/
|
|
11950
|
+
updateIpReputationRule(updateIpReputationRuleRequest) {
|
|
11951
|
+
const options = {
|
|
11952
|
+
method: "PUT",
|
|
11953
|
+
url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation/{rule_id}",
|
|
11954
|
+
contentType: "application/json",
|
|
11955
|
+
queryParams: {},
|
|
11956
|
+
pathParams: {},
|
|
11957
|
+
headers: {},
|
|
11958
|
+
data: {}
|
|
11959
|
+
};
|
|
11960
|
+
const localVarHeaderParameter = {};
|
|
11961
|
+
const localVarQueryParameter = {};
|
|
11962
|
+
let body;
|
|
11963
|
+
let contentType;
|
|
11964
|
+
let policyId;
|
|
11965
|
+
let ruleId;
|
|
11966
|
+
let enterpriseProjectId;
|
|
11967
|
+
if (updateIpReputationRuleRequest !== null && updateIpReputationRuleRequest !== undefined) {
|
|
11968
|
+
if (updateIpReputationRuleRequest instanceof UpdateIpReputationRuleRequest_1.UpdateIpReputationRuleRequest) {
|
|
11969
|
+
contentType = updateIpReputationRuleRequest.contentType;
|
|
11970
|
+
policyId = updateIpReputationRuleRequest.policyId;
|
|
11971
|
+
ruleId = updateIpReputationRuleRequest.ruleId;
|
|
11972
|
+
body = updateIpReputationRuleRequest.body;
|
|
11973
|
+
enterpriseProjectId = updateIpReputationRuleRequest.enterpriseProjectId;
|
|
11974
|
+
}
|
|
11975
|
+
else {
|
|
11976
|
+
contentType = updateIpReputationRuleRequest['Content-Type'];
|
|
11977
|
+
policyId = updateIpReputationRuleRequest['policy_id'];
|
|
11978
|
+
ruleId = updateIpReputationRuleRequest['rule_id'];
|
|
11979
|
+
body = updateIpReputationRuleRequest['body'];
|
|
11980
|
+
enterpriseProjectId = updateIpReputationRuleRequest['enterprise_project_id'];
|
|
11981
|
+
}
|
|
11982
|
+
}
|
|
11983
|
+
if (policyId === null || policyId === undefined) {
|
|
11984
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling updateIpReputationRule.');
|
|
11985
|
+
}
|
|
11986
|
+
if (ruleId === null || ruleId === undefined) {
|
|
11987
|
+
throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling updateIpReputationRule.');
|
|
11988
|
+
}
|
|
11989
|
+
if (body === null || body === undefined) {
|
|
11990
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
11991
|
+
}
|
|
11992
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
11993
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
11994
|
+
}
|
|
11995
|
+
if (contentType !== undefined && contentType !== null) {
|
|
11996
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
11997
|
+
}
|
|
11998
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11999
|
+
options.data = body !== undefined ? body : {};
|
|
12000
|
+
options.queryParams = localVarQueryParameter;
|
|
12001
|
+
options.pathParams = { 'policy_id': policyId, 'rule_id': ruleId, };
|
|
12002
|
+
options.headers = localVarHeaderParameter;
|
|
12003
|
+
return options;
|
|
12004
|
+
},
|
|
10423
12005
|
/**
|
|
10424
12006
|
* 配置全量日志lts,该接口可用来开启与关闭waf全量日志以及配置日志组和日志流。日志组id和日志流id可前往云日志服务获取。配置的日志流id要属于所配置的日志组。
|
|
10425
12007
|
*
|
|
@@ -10787,6 +12369,43 @@ const ParamCreater = function () {
|
|
|
10787
12369
|
options.headers = localVarHeaderParameter;
|
|
10788
12370
|
return options;
|
|
10789
12371
|
},
|
|
12372
|
+
/**
|
|
12373
|
+
* 操作WAF独享引擎
|
|
12374
|
+
*
|
|
12375
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12376
|
+
*/
|
|
12377
|
+
updatePremiumInstance(updatePremiumInstanceRequest) {
|
|
12378
|
+
const options = {
|
|
12379
|
+
method: "POST",
|
|
12380
|
+
url: "/v1/{project_id}/premium-waf/instance/{instance_id}/action",
|
|
12381
|
+
contentType: "application/json",
|
|
12382
|
+
queryParams: {},
|
|
12383
|
+
pathParams: {},
|
|
12384
|
+
headers: {},
|
|
12385
|
+
data: {}
|
|
12386
|
+
};
|
|
12387
|
+
const localVarHeaderParameter = {};
|
|
12388
|
+
let body;
|
|
12389
|
+
let instanceId;
|
|
12390
|
+
if (updatePremiumInstanceRequest !== null && updatePremiumInstanceRequest !== undefined) {
|
|
12391
|
+
if (updatePremiumInstanceRequest instanceof UpdatePremiumInstanceRequest_1.UpdatePremiumInstanceRequest) {
|
|
12392
|
+
instanceId = updatePremiumInstanceRequest.instanceId;
|
|
12393
|
+
body = updatePremiumInstanceRequest.body;
|
|
12394
|
+
}
|
|
12395
|
+
else {
|
|
12396
|
+
instanceId = updatePremiumInstanceRequest['instance_id'];
|
|
12397
|
+
body = updatePremiumInstanceRequest['body'];
|
|
12398
|
+
}
|
|
12399
|
+
}
|
|
12400
|
+
if (instanceId === null || instanceId === undefined) {
|
|
12401
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling updatePremiumInstance.');
|
|
12402
|
+
}
|
|
12403
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12404
|
+
options.data = body !== undefined ? body : {};
|
|
12405
|
+
options.pathParams = { 'instance_id': instanceId, };
|
|
12406
|
+
options.headers = localVarHeaderParameter;
|
|
12407
|
+
return options;
|
|
12408
|
+
},
|
|
10790
12409
|
/**
|
|
10791
12410
|
* 更新隐私屏蔽防护规则
|
|
10792
12411
|
*
|
|
@@ -11018,6 +12637,94 @@ const ParamCreater = function () {
|
|
|
11018
12637
|
options.headers = localVarHeaderParameter;
|
|
11019
12638
|
return options;
|
|
11020
12639
|
},
|
|
12640
|
+
/**
|
|
12641
|
+
* 快速接入,直接去修改用户的DNS记录,使域名快速接入WAF
|
|
12642
|
+
*
|
|
12643
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12644
|
+
*/
|
|
12645
|
+
createQuickAccessDomain(createQuickAccessDomainRequest) {
|
|
12646
|
+
const options = {
|
|
12647
|
+
method: "POST",
|
|
12648
|
+
url: "/v1/{projectid}/waf/dns-domain/{instanceid}/access",
|
|
12649
|
+
contentType: "application/json",
|
|
12650
|
+
queryParams: {},
|
|
12651
|
+
pathParams: {},
|
|
12652
|
+
headers: {}
|
|
12653
|
+
};
|
|
12654
|
+
const localVarHeaderParameter = {};
|
|
12655
|
+
const localVarQueryParameter = {};
|
|
12656
|
+
let projectid;
|
|
12657
|
+
let instanceid;
|
|
12658
|
+
let contentType;
|
|
12659
|
+
let enterpriseProjectId;
|
|
12660
|
+
if (createQuickAccessDomainRequest !== null && createQuickAccessDomainRequest !== undefined) {
|
|
12661
|
+
if (createQuickAccessDomainRequest instanceof CreateQuickAccessDomainRequest_1.CreateQuickAccessDomainRequest) {
|
|
12662
|
+
projectid = createQuickAccessDomainRequest.projectid;
|
|
12663
|
+
instanceid = createQuickAccessDomainRequest.instanceid;
|
|
12664
|
+
contentType = createQuickAccessDomainRequest.contentType;
|
|
12665
|
+
enterpriseProjectId = createQuickAccessDomainRequest.enterpriseProjectId;
|
|
12666
|
+
}
|
|
12667
|
+
else {
|
|
12668
|
+
projectid = createQuickAccessDomainRequest['projectid'];
|
|
12669
|
+
instanceid = createQuickAccessDomainRequest['instanceid'];
|
|
12670
|
+
contentType = createQuickAccessDomainRequest['Content-Type'];
|
|
12671
|
+
enterpriseProjectId = createQuickAccessDomainRequest['enterprise_project_id'];
|
|
12672
|
+
}
|
|
12673
|
+
}
|
|
12674
|
+
if (projectid === null || projectid === undefined) {
|
|
12675
|
+
throw new RequiredError('projectid', 'Required parameter projectid was null or undefined when calling createQuickAccessDomain.');
|
|
12676
|
+
}
|
|
12677
|
+
if (instanceid === null || instanceid === undefined) {
|
|
12678
|
+
throw new RequiredError('instanceid', 'Required parameter instanceid was null or undefined when calling createQuickAccessDomain.');
|
|
12679
|
+
}
|
|
12680
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
12681
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
12682
|
+
}
|
|
12683
|
+
if (contentType !== undefined && contentType !== null) {
|
|
12684
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
12685
|
+
}
|
|
12686
|
+
options.queryParams = localVarQueryParameter;
|
|
12687
|
+
options.pathParams = { 'projectid': projectid, 'instanceid': instanceid, };
|
|
12688
|
+
options.headers = localVarHeaderParameter;
|
|
12689
|
+
return options;
|
|
12690
|
+
},
|
|
12691
|
+
/**
|
|
12692
|
+
* 根据Id查询Web防护规则
|
|
12693
|
+
*
|
|
12694
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12695
|
+
*/
|
|
12696
|
+
showWebProtectionRule(showWebProtectionRuleRequest) {
|
|
12697
|
+
const options = {
|
|
12698
|
+
method: "GET",
|
|
12699
|
+
url: "/v1/{project_id}/waf/web-protection-rules/{rule_id}",
|
|
12700
|
+
contentType: "application/json",
|
|
12701
|
+
queryParams: {},
|
|
12702
|
+
pathParams: {},
|
|
12703
|
+
headers: {}
|
|
12704
|
+
};
|
|
12705
|
+
const localVarHeaderParameter = {};
|
|
12706
|
+
let ruleId;
|
|
12707
|
+
let xLanguage;
|
|
12708
|
+
if (showWebProtectionRuleRequest !== null && showWebProtectionRuleRequest !== undefined) {
|
|
12709
|
+
if (showWebProtectionRuleRequest instanceof ShowWebProtectionRuleRequest_1.ShowWebProtectionRuleRequest) {
|
|
12710
|
+
ruleId = showWebProtectionRuleRequest.ruleId;
|
|
12711
|
+
xLanguage = showWebProtectionRuleRequest.xLanguage;
|
|
12712
|
+
}
|
|
12713
|
+
else {
|
|
12714
|
+
ruleId = showWebProtectionRuleRequest['rule_id'];
|
|
12715
|
+
xLanguage = showWebProtectionRuleRequest['X-Language'];
|
|
12716
|
+
}
|
|
12717
|
+
}
|
|
12718
|
+
if (ruleId === null || ruleId === undefined) {
|
|
12719
|
+
throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling showWebProtectionRule.');
|
|
12720
|
+
}
|
|
12721
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
12722
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
12723
|
+
}
|
|
12724
|
+
options.pathParams = { 'rule_id': ruleId, };
|
|
12725
|
+
options.headers = localVarHeaderParameter;
|
|
12726
|
+
return options;
|
|
12727
|
+
},
|
|
11021
12728
|
};
|
|
11022
12729
|
};
|
|
11023
12730
|
exports.ParamCreater = ParamCreater;
|