@alicloud/ddoscoo20200101 2.4.2 → 2.4.4
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/dist/client.d.ts +370 -82
- package/dist/client.js +52 -31
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +392 -90
package/dist/client.js
CHANGED
|
@@ -170,7 +170,6 @@ class AssociateWebCertRequest extends $tea.Model {
|
|
|
170
170
|
certRegion: 'CertRegion',
|
|
171
171
|
domain: 'Domain',
|
|
172
172
|
key: 'Key',
|
|
173
|
-
resourceGroupId: 'ResourceGroupId',
|
|
174
173
|
};
|
|
175
174
|
}
|
|
176
175
|
static types() {
|
|
@@ -182,7 +181,6 @@ class AssociateWebCertRequest extends $tea.Model {
|
|
|
182
181
|
certRegion: 'string',
|
|
183
182
|
domain: 'string',
|
|
184
183
|
key: 'string',
|
|
185
|
-
resourceGroupId: 'string',
|
|
186
184
|
};
|
|
187
185
|
}
|
|
188
186
|
constructor(map) {
|
|
@@ -1173,6 +1171,7 @@ class CreatePortRequest extends $tea.Model {
|
|
|
1173
1171
|
frontendPort: 'FrontendPort',
|
|
1174
1172
|
frontendProtocol: 'FrontendProtocol',
|
|
1175
1173
|
instanceId: 'InstanceId',
|
|
1174
|
+
proxyEnable: 'ProxyEnable',
|
|
1176
1175
|
realServers: 'RealServers',
|
|
1177
1176
|
};
|
|
1178
1177
|
}
|
|
@@ -1182,6 +1181,7 @@ class CreatePortRequest extends $tea.Model {
|
|
|
1182
1181
|
frontendPort: 'string',
|
|
1183
1182
|
frontendProtocol: 'string',
|
|
1184
1183
|
instanceId: 'string',
|
|
1184
|
+
proxyEnable: 'number',
|
|
1185
1185
|
realServers: { 'type': 'array', 'itemType': 'string' },
|
|
1186
1186
|
};
|
|
1187
1187
|
}
|
|
@@ -5096,6 +5096,7 @@ class DescribeL7RsPolicyResponseBody extends $tea.Model {
|
|
|
5096
5096
|
attributes: 'Attributes',
|
|
5097
5097
|
proxyMode: 'ProxyMode',
|
|
5098
5098
|
requestId: 'RequestId',
|
|
5099
|
+
rsAttrRwTimeoutMax: 'RsAttrRwTimeoutMax',
|
|
5099
5100
|
upstreamRetry: 'UpstreamRetry',
|
|
5100
5101
|
};
|
|
5101
5102
|
}
|
|
@@ -5104,6 +5105,7 @@ class DescribeL7RsPolicyResponseBody extends $tea.Model {
|
|
|
5104
5105
|
attributes: { 'type': 'array', 'itemType': DescribeL7RsPolicyResponseBodyAttributes },
|
|
5105
5106
|
proxyMode: 'string',
|
|
5106
5107
|
requestId: 'string',
|
|
5108
|
+
rsAttrRwTimeoutMax: 'number',
|
|
5107
5109
|
upstreamRetry: 'number',
|
|
5108
5110
|
};
|
|
5109
5111
|
}
|
|
@@ -9439,6 +9441,7 @@ class ModifyPortRequest extends $tea.Model {
|
|
|
9439
9441
|
frontendPort: 'FrontendPort',
|
|
9440
9442
|
frontendProtocol: 'FrontendProtocol',
|
|
9441
9443
|
instanceId: 'InstanceId',
|
|
9444
|
+
proxyEnable: 'ProxyEnable',
|
|
9442
9445
|
realServers: 'RealServers',
|
|
9443
9446
|
};
|
|
9444
9447
|
}
|
|
@@ -9448,6 +9451,7 @@ class ModifyPortRequest extends $tea.Model {
|
|
|
9448
9451
|
frontendPort: 'string',
|
|
9449
9452
|
frontendProtocol: 'string',
|
|
9450
9453
|
instanceId: 'string',
|
|
9454
|
+
proxyEnable: 'number',
|
|
9451
9455
|
realServers: { 'type': 'array', 'itemType': 'string' },
|
|
9452
9456
|
};
|
|
9453
9457
|
}
|
|
@@ -12113,7 +12117,10 @@ class DescribeNetworkRulesResponseBodyNetworkRules extends $tea.Model {
|
|
|
12113
12117
|
frontendPort: 'FrontendPort',
|
|
12114
12118
|
instanceId: 'InstanceId',
|
|
12115
12119
|
isAutoCreate: 'IsAutoCreate',
|
|
12120
|
+
payloadRuleEnable: 'PayloadRuleEnable',
|
|
12116
12121
|
protocol: 'Protocol',
|
|
12122
|
+
proxyEnable: 'ProxyEnable',
|
|
12123
|
+
proxyStatus: 'ProxyStatus',
|
|
12117
12124
|
realServers: 'RealServers',
|
|
12118
12125
|
remark: 'Remark',
|
|
12119
12126
|
};
|
|
@@ -12124,7 +12131,10 @@ class DescribeNetworkRulesResponseBodyNetworkRules extends $tea.Model {
|
|
|
12124
12131
|
frontendPort: 'number',
|
|
12125
12132
|
instanceId: 'string',
|
|
12126
12133
|
isAutoCreate: 'boolean',
|
|
12134
|
+
payloadRuleEnable: 'number',
|
|
12127
12135
|
protocol: 'string',
|
|
12136
|
+
proxyEnable: 'number',
|
|
12137
|
+
proxyStatus: 'string',
|
|
12128
12138
|
realServers: { 'type': 'array', 'itemType': 'string' },
|
|
12129
12139
|
remark: 'string',
|
|
12130
12140
|
};
|
|
@@ -13234,6 +13244,7 @@ class DescribeWebRulesResponseBodyWebRules extends $tea.Model {
|
|
|
13234
13244
|
ssl13Enabled: 'Ssl13Enabled',
|
|
13235
13245
|
sslCiphers: 'SslCiphers',
|
|
13236
13246
|
sslProtocols: 'SslProtocols',
|
|
13247
|
+
userCertName: 'UserCertName',
|
|
13237
13248
|
whiteList: 'WhiteList',
|
|
13238
13249
|
};
|
|
13239
13250
|
}
|
|
@@ -13262,6 +13273,7 @@ class DescribeWebRulesResponseBodyWebRules extends $tea.Model {
|
|
|
13262
13273
|
ssl13Enabled: 'boolean',
|
|
13263
13274
|
sslCiphers: 'string',
|
|
13264
13275
|
sslProtocols: 'string',
|
|
13276
|
+
userCertName: 'string',
|
|
13265
13277
|
whiteList: { 'type': 'array', 'itemType': 'string' },
|
|
13266
13278
|
};
|
|
13267
13279
|
}
|
|
@@ -13411,10 +13423,6 @@ class Client extends openapi_client_1.default {
|
|
|
13411
13423
|
*/
|
|
13412
13424
|
async associateWebCertWithOptions(request, runtime) {
|
|
13413
13425
|
tea_util_1.default.validateModel(request);
|
|
13414
|
-
let query = {};
|
|
13415
|
-
if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
|
|
13416
|
-
query["ResourceGroupId"] = request.resourceGroupId;
|
|
13417
|
-
}
|
|
13418
13426
|
let body = {};
|
|
13419
13427
|
if (!tea_util_1.default.isUnset(request.cert)) {
|
|
13420
13428
|
body["Cert"] = request.cert;
|
|
@@ -13438,7 +13446,6 @@ class Client extends openapi_client_1.default {
|
|
|
13438
13446
|
body["Key"] = request.key;
|
|
13439
13447
|
}
|
|
13440
13448
|
let req = new $OpenApi.OpenApiRequest({
|
|
13441
|
-
query: openapi_util_1.default.query(query),
|
|
13442
13449
|
body: openapi_util_1.default.parseToMap(body),
|
|
13443
13450
|
});
|
|
13444
13451
|
let params = new $OpenApi.Params({
|
|
@@ -14249,6 +14256,9 @@ class Client extends openapi_client_1.default {
|
|
|
14249
14256
|
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
14250
14257
|
query["InstanceId"] = request.instanceId;
|
|
14251
14258
|
}
|
|
14259
|
+
if (!tea_util_1.default.isUnset(request.proxyEnable)) {
|
|
14260
|
+
query["ProxyEnable"] = request.proxyEnable;
|
|
14261
|
+
}
|
|
14252
14262
|
if (!tea_util_1.default.isUnset(request.realServers)) {
|
|
14253
14263
|
query["RealServers"] = request.realServers;
|
|
14254
14264
|
}
|
|
@@ -14980,7 +14990,7 @@ class Client extends openapi_client_1.default {
|
|
|
14980
14990
|
return await this.deleteTagResourcesWithOptions(request, runtime);
|
|
14981
14991
|
}
|
|
14982
14992
|
/**
|
|
14983
|
-
* Deletes custom frequency control
|
|
14993
|
+
* Deletes a custom frequency control rule of a website.
|
|
14984
14994
|
*
|
|
14985
14995
|
* @deprecated OpenAPI DeleteWebCCRule is deprecated, please use ddoscoo::2020-01-01::DeleteWebCCRuleV2 instead.
|
|
14986
14996
|
*
|
|
@@ -15018,7 +15028,7 @@ class Client extends openapi_client_1.default {
|
|
|
15018
15028
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteWebCCRuleResponse({}));
|
|
15019
15029
|
}
|
|
15020
15030
|
/**
|
|
15021
|
-
* Deletes custom frequency control
|
|
15031
|
+
* Deletes a custom frequency control rule of a website.
|
|
15022
15032
|
*
|
|
15023
15033
|
* @deprecated OpenAPI DeleteWebCCRule is deprecated, please use ddoscoo::2020-01-01::DeleteWebCCRuleV2 instead.
|
|
15024
15034
|
*
|
|
@@ -15453,7 +15463,7 @@ class Client extends openapi_client_1.default {
|
|
|
15453
15463
|
return await this.describeAutoCcWhitelistWithOptions(request, runtime);
|
|
15454
15464
|
}
|
|
15455
15465
|
/**
|
|
15456
|
-
* Queries the back-to-origin CIDR blocks of Anti-DDoS
|
|
15466
|
+
* Queries the back-to-origin CIDR blocks of Anti-DDoS Proxy.
|
|
15457
15467
|
*
|
|
15458
15468
|
* @param request - DescribeBackSourceCidrRequest
|
|
15459
15469
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -15488,7 +15498,7 @@ class Client extends openapi_client_1.default {
|
|
|
15488
15498
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeBackSourceCidrResponse({}));
|
|
15489
15499
|
}
|
|
15490
15500
|
/**
|
|
15491
|
-
* Queries the back-to-origin CIDR blocks of Anti-DDoS
|
|
15501
|
+
* Queries the back-to-origin CIDR blocks of Anti-DDoS Proxy.
|
|
15492
15502
|
*
|
|
15493
15503
|
* @param request - DescribeBackSourceCidrRequest
|
|
15494
15504
|
* @returns DescribeBackSourceCidrResponse
|
|
@@ -19702,9 +19712,13 @@ class Client extends openapi_client_1.default {
|
|
|
19702
19712
|
return await this.describeWebReportTopIpWithOptions(request, runtime);
|
|
19703
19713
|
}
|
|
19704
19714
|
/**
|
|
19705
|
-
*
|
|
19706
|
-
*
|
|
19707
|
-
*
|
|
19715
|
+
* Query Configuration of Website Business Forwarding Rules.
|
|
19716
|
+
*
|
|
19717
|
+
* @remarks
|
|
19718
|
+
* This interface is used for paginated querying of the configurations of website business forwarding rules you have created, such as forwarding protocol types, source server addresses, HTTPS configurations, IP blacklist configurations, and more.
|
|
19719
|
+
* Before calling this interface, you must have already called [CreateWebRule](~~CreateWebRule~~) to create website business forwarding rules.
|
|
19720
|
+
* ### QPS Limit
|
|
19721
|
+
* The per-user QPS limit for this interface is 50 times/second. Exceeding this limit will result in API calls being throttled, which may impact your business; please use it reasonably.
|
|
19708
19722
|
*
|
|
19709
19723
|
* @param request - DescribeWebRulesRequest
|
|
19710
19724
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -19751,9 +19765,13 @@ class Client extends openapi_client_1.default {
|
|
|
19751
19765
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeWebRulesResponse({}));
|
|
19752
19766
|
}
|
|
19753
19767
|
/**
|
|
19754
|
-
*
|
|
19755
|
-
*
|
|
19756
|
-
*
|
|
19768
|
+
* Query Configuration of Website Business Forwarding Rules.
|
|
19769
|
+
*
|
|
19770
|
+
* @remarks
|
|
19771
|
+
* This interface is used for paginated querying of the configurations of website business forwarding rules you have created, such as forwarding protocol types, source server addresses, HTTPS configurations, IP blacklist configurations, and more.
|
|
19772
|
+
* Before calling this interface, you must have already called [CreateWebRule](~~CreateWebRule~~) to create website business forwarding rules.
|
|
19773
|
+
* ### QPS Limit
|
|
19774
|
+
* The per-user QPS limit for this interface is 50 times/second. Exceeding this limit will result in API calls being throttled, which may impact your business; please use it reasonably.
|
|
19757
19775
|
*
|
|
19758
19776
|
* @param request - DescribeWebRulesRequest
|
|
19759
19777
|
* @returns DescribeWebRulesResponse
|
|
@@ -19889,7 +19907,7 @@ class Client extends openapi_client_1.default {
|
|
|
19889
19907
|
return await this.disableWebAccessLogConfigWithOptions(request, runtime);
|
|
19890
19908
|
}
|
|
19891
19909
|
/**
|
|
19892
|
-
* Disables
|
|
19910
|
+
* Disables frequency control for a website.
|
|
19893
19911
|
*
|
|
19894
19912
|
* @param request - DisableWebCCRequest
|
|
19895
19913
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -19921,7 +19939,7 @@ class Client extends openapi_client_1.default {
|
|
|
19921
19939
|
return $tea.cast(await this.callApi(params, req, runtime), new DisableWebCCResponse({}));
|
|
19922
19940
|
}
|
|
19923
19941
|
/**
|
|
19924
|
-
* Disables
|
|
19942
|
+
* Disables frequency control for a website.
|
|
19925
19943
|
*
|
|
19926
19944
|
* @param request - DisableWebCCRequest
|
|
19927
19945
|
* @returns DisableWebCCResponse
|
|
@@ -19931,7 +19949,7 @@ class Client extends openapi_client_1.default {
|
|
|
19931
19949
|
return await this.disableWebCCWithOptions(request, runtime);
|
|
19932
19950
|
}
|
|
19933
19951
|
/**
|
|
19934
|
-
*
|
|
19952
|
+
* Disables custom frequency control rules for a website.
|
|
19935
19953
|
*
|
|
19936
19954
|
* @param request - DisableWebCCRuleRequest
|
|
19937
19955
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -19963,7 +19981,7 @@ class Client extends openapi_client_1.default {
|
|
|
19963
19981
|
return $tea.cast(await this.callApi(params, req, runtime), new DisableWebCCRuleResponse({}));
|
|
19964
19982
|
}
|
|
19965
19983
|
/**
|
|
19966
|
-
*
|
|
19984
|
+
* Disables custom frequency control rules for a website.
|
|
19967
19985
|
*
|
|
19968
19986
|
* @param request - DisableWebCCRuleRequest
|
|
19969
19987
|
* @returns DisableWebCCRuleResponse
|
|
@@ -20213,7 +20231,7 @@ class Client extends openapi_client_1.default {
|
|
|
20213
20231
|
return await this.enableWebCCWithOptions(request, runtime);
|
|
20214
20232
|
}
|
|
20215
20233
|
/**
|
|
20216
|
-
*
|
|
20234
|
+
* Enables custom frequency control rules for a website.
|
|
20217
20235
|
*
|
|
20218
20236
|
* @param request - EnableWebCCRuleRequest
|
|
20219
20237
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -20245,7 +20263,7 @@ class Client extends openapi_client_1.default {
|
|
|
20245
20263
|
return $tea.cast(await this.callApi(params, req, runtime), new EnableWebCCRuleResponse({}));
|
|
20246
20264
|
}
|
|
20247
20265
|
/**
|
|
20248
|
-
*
|
|
20266
|
+
* Enables custom frequency control rules for a website.
|
|
20249
20267
|
*
|
|
20250
20268
|
* @param request - EnableWebCCRuleRequest
|
|
20251
20269
|
* @returns EnableWebCCRuleResponse
|
|
@@ -20885,7 +20903,7 @@ class Client extends openapi_client_1.default {
|
|
|
20885
20903
|
return await this.modifyInstanceRemarkWithOptions(request, runtime);
|
|
20886
20904
|
}
|
|
20887
20905
|
/**
|
|
20888
|
-
* Modifies the session persistence settings of a port forwarding rule.
|
|
20906
|
+
* Modifies the session persistence and DDoS mitigation policy settings of a port forwarding rule.
|
|
20889
20907
|
*
|
|
20890
20908
|
* @param request - ModifyNetworkRuleAttributeRequest
|
|
20891
20909
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -20923,7 +20941,7 @@ class Client extends openapi_client_1.default {
|
|
|
20923
20941
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyNetworkRuleAttributeResponse({}));
|
|
20924
20942
|
}
|
|
20925
20943
|
/**
|
|
20926
|
-
* Modifies the session persistence settings of a port forwarding rule.
|
|
20944
|
+
* Modifies the session persistence and DDoS mitigation policy settings of a port forwarding rule.
|
|
20927
20945
|
*
|
|
20928
20946
|
* @param request - ModifyNetworkRuleAttributeRequest
|
|
20929
20947
|
* @returns ModifyNetworkRuleAttributeResponse
|
|
@@ -21005,6 +21023,9 @@ class Client extends openapi_client_1.default {
|
|
|
21005
21023
|
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
21006
21024
|
query["InstanceId"] = request.instanceId;
|
|
21007
21025
|
}
|
|
21026
|
+
if (!tea_util_1.default.isUnset(request.proxyEnable)) {
|
|
21027
|
+
query["ProxyEnable"] = request.proxyEnable;
|
|
21028
|
+
}
|
|
21008
21029
|
if (!tea_util_1.default.isUnset(request.realServers)) {
|
|
21009
21030
|
query["RealServers"] = request.realServers;
|
|
21010
21031
|
}
|
|
@@ -21272,7 +21293,7 @@ class Client extends openapi_client_1.default {
|
|
|
21272
21293
|
return await this.modifyTlsConfigWithOptions(request, runtime);
|
|
21273
21294
|
}
|
|
21274
21295
|
/**
|
|
21275
|
-
* Changes the mode of the
|
|
21296
|
+
* Changes the mode of the intelligent protection feature for a website.
|
|
21276
21297
|
*
|
|
21277
21298
|
* @param request - ModifyWebAIProtectModeRequest
|
|
21278
21299
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -21307,7 +21328,7 @@ class Client extends openapi_client_1.default {
|
|
|
21307
21328
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyWebAIProtectModeResponse({}));
|
|
21308
21329
|
}
|
|
21309
21330
|
/**
|
|
21310
|
-
* Changes the mode of the
|
|
21331
|
+
* Changes the mode of the intelligent protection feature for a website.
|
|
21311
21332
|
*
|
|
21312
21333
|
* @param request - ModifyWebAIProtectModeRequest
|
|
21313
21334
|
* @returns ModifyWebAIProtectModeResponse
|
|
@@ -21805,7 +21826,7 @@ class Client extends openapi_client_1.default {
|
|
|
21805
21826
|
return await this.modifyWebIpSetSwitchWithOptions(request, runtime);
|
|
21806
21827
|
}
|
|
21807
21828
|
/**
|
|
21808
|
-
*
|
|
21829
|
+
* Creates or modifies an accurate access control rule of a website.
|
|
21809
21830
|
*
|
|
21810
21831
|
* @param request - ModifyWebPreciseAccessRuleRequest
|
|
21811
21832
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -21843,7 +21864,7 @@ class Client extends openapi_client_1.default {
|
|
|
21843
21864
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyWebPreciseAccessRuleResponse({}));
|
|
21844
21865
|
}
|
|
21845
21866
|
/**
|
|
21846
|
-
*
|
|
21867
|
+
* Creates or modifies an accurate access control rule of a website.
|
|
21847
21868
|
*
|
|
21848
21869
|
* @param request - ModifyWebPreciseAccessRuleRequest
|
|
21849
21870
|
* @returns ModifyWebPreciseAccessRuleResponse
|
|
@@ -21853,7 +21874,7 @@ class Client extends openapi_client_1.default {
|
|
|
21853
21874
|
return await this.modifyWebPreciseAccessRuleWithOptions(request, runtime);
|
|
21854
21875
|
}
|
|
21855
21876
|
/**
|
|
21856
|
-
* Enables or disables
|
|
21877
|
+
* Enables or disables accurate access control for a website.
|
|
21857
21878
|
*
|
|
21858
21879
|
* @param request - ModifyWebPreciseAccessSwitchRequest
|
|
21859
21880
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -21888,7 +21909,7 @@ class Client extends openapi_client_1.default {
|
|
|
21888
21909
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyWebPreciseAccessSwitchResponse({}));
|
|
21889
21910
|
}
|
|
21890
21911
|
/**
|
|
21891
|
-
* Enables or disables
|
|
21912
|
+
* Enables or disables accurate access control for a website.
|
|
21892
21913
|
*
|
|
21893
21914
|
* @param request - ModifyWebPreciseAccessSwitchRequest
|
|
21894
21915
|
* @returns ModifyWebPreciseAccessSwitchResponse
|