@alicloud/ddoscoo20200101 2.4.3 → 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 +284 -45
- package/dist/client.js +22 -17
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +288 -53
package/src/client.ts
CHANGED
|
@@ -236,14 +236,6 @@ export class AssociateWebCertRequest extends $tea.Model {
|
|
|
236
236
|
*/
|
|
237
237
|
domain?: string;
|
|
238
238
|
key?: string;
|
|
239
|
-
/**
|
|
240
|
-
* @remarks
|
|
241
|
-
* The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.
|
|
242
|
-
*
|
|
243
|
-
* @example
|
|
244
|
-
* default
|
|
245
|
-
*/
|
|
246
|
-
resourceGroupId?: string;
|
|
247
239
|
static names(): { [key: string]: string } {
|
|
248
240
|
return {
|
|
249
241
|
cert: 'Cert',
|
|
@@ -253,7 +245,6 @@ export class AssociateWebCertRequest extends $tea.Model {
|
|
|
253
245
|
certRegion: 'CertRegion',
|
|
254
246
|
domain: 'Domain',
|
|
255
247
|
key: 'Key',
|
|
256
|
-
resourceGroupId: 'ResourceGroupId',
|
|
257
248
|
};
|
|
258
249
|
}
|
|
259
250
|
|
|
@@ -266,7 +257,6 @@ export class AssociateWebCertRequest extends $tea.Model {
|
|
|
266
257
|
certRegion: 'string',
|
|
267
258
|
domain: 'string',
|
|
268
259
|
key: 'string',
|
|
269
|
-
resourceGroupId: 'string',
|
|
270
260
|
};
|
|
271
261
|
}
|
|
272
262
|
|
|
@@ -2050,11 +2040,11 @@ export class CreateDomainResourceRequest extends $tea.Model {
|
|
|
2050
2040
|
* @remarks
|
|
2051
2041
|
* The address type of the origin server. Valid values:
|
|
2052
2042
|
*
|
|
2053
|
-
* * **0**: IP address
|
|
2043
|
+
* * **0**: IP address.
|
|
2054
2044
|
*
|
|
2055
|
-
* * **1**: domain name
|
|
2045
|
+
* * **1**: domain name.
|
|
2056
2046
|
*
|
|
2057
|
-
* This parameter is suitable for scenarios
|
|
2047
|
+
* This parameter is suitable for scenarios in which another proxy service, such as Web Application Firewall (WAF), is deployed between the origin server and Anti-DDoS Proxy. The address is the redirection address of the proxy service, such as the CNAME of WAF.
|
|
2058
2048
|
*
|
|
2059
2049
|
* This parameter is required.
|
|
2060
2050
|
*
|
|
@@ -2246,7 +2236,7 @@ export class CreatePortRequest extends $tea.Model {
|
|
|
2246
2236
|
frontendPort?: string;
|
|
2247
2237
|
/**
|
|
2248
2238
|
* @remarks
|
|
2249
|
-
* The type of the protocol. Valid values:
|
|
2239
|
+
* The type of the forwarding protocol. Valid values:
|
|
2250
2240
|
*
|
|
2251
2241
|
* * **tcp**
|
|
2252
2242
|
* * **udp**
|
|
@@ -3744,7 +3734,7 @@ export class DeleteSceneDefensePolicyRequest extends $tea.Model {
|
|
|
3744
3734
|
export class DeleteSceneDefensePolicyResponseBody extends $tea.Model {
|
|
3745
3735
|
/**
|
|
3746
3736
|
* @remarks
|
|
3747
|
-
* The ID
|
|
3737
|
+
* The request ID.
|
|
3748
3738
|
*
|
|
3749
3739
|
* @example
|
|
3750
3740
|
* F65DF043-E0EB-4796-9467-23DDCDF92C1D
|
|
@@ -3754,8 +3744,8 @@ export class DeleteSceneDefensePolicyResponseBody extends $tea.Model {
|
|
|
3754
3744
|
* @remarks
|
|
3755
3745
|
* Indicates whether the request was successful. Valid values:
|
|
3756
3746
|
*
|
|
3757
|
-
* * **true
|
|
3758
|
-
* * **false
|
|
3747
|
+
* * **true**
|
|
3748
|
+
* * **false**
|
|
3759
3749
|
*
|
|
3760
3750
|
* @example
|
|
3761
3751
|
* true
|
|
@@ -7359,7 +7349,7 @@ export class DescribeDomainResourceRequest extends $tea.Model {
|
|
|
7359
7349
|
instanceIds?: string[];
|
|
7360
7350
|
/**
|
|
7361
7351
|
* @remarks
|
|
7362
|
-
* The
|
|
7352
|
+
* The page number. Default value: **1**.
|
|
7363
7353
|
*
|
|
7364
7354
|
* @example
|
|
7365
7355
|
* 1
|
|
@@ -7367,9 +7357,7 @@ export class DescribeDomainResourceRequest extends $tea.Model {
|
|
|
7367
7357
|
pageNumber?: number;
|
|
7368
7358
|
/**
|
|
7369
7359
|
* @remarks
|
|
7370
|
-
* The number of entries
|
|
7371
|
-
*
|
|
7372
|
-
* This parameter is required.
|
|
7360
|
+
* The number of entries per page.
|
|
7373
7361
|
*
|
|
7374
7362
|
* @example
|
|
7375
7363
|
* 10
|
|
@@ -9153,7 +9141,7 @@ export class DescribeHealthCheckListResponseBody extends $tea.Model {
|
|
|
9153
9141
|
healthCheckList?: DescribeHealthCheckListResponseBodyHealthCheckList[];
|
|
9154
9142
|
/**
|
|
9155
9143
|
* @remarks
|
|
9156
|
-
* The ID
|
|
9144
|
+
* The request ID.
|
|
9157
9145
|
*
|
|
9158
9146
|
* @example
|
|
9159
9147
|
* 83B4AF42-E8EE-4DC9-BD73-87B7733A36F9
|
|
@@ -10175,6 +10163,7 @@ export class DescribeL7RsPolicyResponseBody extends $tea.Model {
|
|
|
10175
10163
|
* 9E7F6B2C-03F2-462F-9076-B782CF0DD502
|
|
10176
10164
|
*/
|
|
10177
10165
|
requestId?: string;
|
|
10166
|
+
rsAttrRwTimeoutMax?: number;
|
|
10178
10167
|
/**
|
|
10179
10168
|
* @remarks
|
|
10180
10169
|
* The back-to-origin retry switch. Valid values:
|
|
@@ -10191,6 +10180,7 @@ export class DescribeL7RsPolicyResponseBody extends $tea.Model {
|
|
|
10191
10180
|
attributes: 'Attributes',
|
|
10192
10181
|
proxyMode: 'ProxyMode',
|
|
10193
10182
|
requestId: 'RequestId',
|
|
10183
|
+
rsAttrRwTimeoutMax: 'RsAttrRwTimeoutMax',
|
|
10194
10184
|
upstreamRetry: 'UpstreamRetry',
|
|
10195
10185
|
};
|
|
10196
10186
|
}
|
|
@@ -10200,6 +10190,7 @@ export class DescribeL7RsPolicyResponseBody extends $tea.Model {
|
|
|
10200
10190
|
attributes: { 'type': 'array', 'itemType': DescribeL7RsPolicyResponseBodyAttributes },
|
|
10201
10191
|
proxyMode: 'string',
|
|
10202
10192
|
requestId: 'string',
|
|
10193
|
+
rsAttrRwTimeoutMax: 'number',
|
|
10203
10194
|
upstreamRetry: 'number',
|
|
10204
10195
|
};
|
|
10205
10196
|
}
|
|
@@ -10837,7 +10828,7 @@ export class DescribeNetworkRulesRequest extends $tea.Model {
|
|
|
10837
10828
|
export class DescribeNetworkRulesResponseBody extends $tea.Model {
|
|
10838
10829
|
/**
|
|
10839
10830
|
* @remarks
|
|
10840
|
-
* The details of
|
|
10831
|
+
* The details of the port forwarding rule.
|
|
10841
10832
|
*/
|
|
10842
10833
|
networkRules?: DescribeNetworkRulesResponseBodyNetworkRules[];
|
|
10843
10834
|
/**
|
|
@@ -11107,9 +11098,7 @@ export class DescribePortRequest extends $tea.Model {
|
|
|
11107
11098
|
instanceId?: string;
|
|
11108
11099
|
/**
|
|
11109
11100
|
* @remarks
|
|
11110
|
-
* The
|
|
11111
|
-
*
|
|
11112
|
-
* This parameter is required.
|
|
11101
|
+
* The page number. For example, if you want to obtain results on the first page, set the value to **1**.
|
|
11113
11102
|
*
|
|
11114
11103
|
* @example
|
|
11115
11104
|
* 1
|
|
@@ -11117,9 +11106,7 @@ export class DescribePortRequest extends $tea.Model {
|
|
|
11117
11106
|
pageNumber?: number;
|
|
11118
11107
|
/**
|
|
11119
11108
|
* @remarks
|
|
11120
|
-
* The number of entries
|
|
11121
|
-
*
|
|
11122
|
-
* This parameter is required.
|
|
11109
|
+
* The number of entries per page.
|
|
11123
11110
|
*
|
|
11124
11111
|
* @example
|
|
11125
11112
|
* 10
|
|
@@ -15751,39 +15738,63 @@ export class DescribeWebReportTopIpResponse extends $tea.Model {
|
|
|
15751
15738
|
|
|
15752
15739
|
export class DescribeWebRulesRequest extends $tea.Model {
|
|
15753
15740
|
/**
|
|
15741
|
+
* @remarks
|
|
15742
|
+
* The CNAME address to query.
|
|
15743
|
+
*
|
|
15754
15744
|
* @example
|
|
15755
15745
|
* kzmk7b8tt351****.aliyunddos1014****
|
|
15756
15746
|
*/
|
|
15757
15747
|
cname?: string;
|
|
15758
15748
|
/**
|
|
15749
|
+
* @remarks
|
|
15750
|
+
* The domain name of the website to query.
|
|
15751
|
+
*
|
|
15752
|
+
* > The domain must have been configured with website business forwarding rules. You can call [DescribeDomains](~~DescribeDomains~~) to query all domains that have been configured with website business forwarding rules.
|
|
15753
|
+
*
|
|
15759
15754
|
* @example
|
|
15760
15755
|
* example.com
|
|
15761
15756
|
*/
|
|
15762
15757
|
domain?: string;
|
|
15763
15758
|
/**
|
|
15759
|
+
* @remarks
|
|
15760
|
+
* The list of DDoS protection instance IDs to query.
|
|
15761
|
+
*
|
|
15764
15762
|
* @example
|
|
15765
15763
|
* ddoscoo-cn-mp91j1ao****
|
|
15766
15764
|
*/
|
|
15767
15765
|
instanceIds?: string[];
|
|
15768
15766
|
/**
|
|
15767
|
+
* @remarks
|
|
15768
|
+
* When paginating, set the page number of the current page. The default value is 1.
|
|
15769
|
+
*
|
|
15769
15770
|
* @example
|
|
15770
15771
|
* 1
|
|
15771
15772
|
*/
|
|
15772
15773
|
pageNumber?: number;
|
|
15773
15774
|
/**
|
|
15774
15775
|
* @remarks
|
|
15775
|
-
*
|
|
15776
|
+
* When paginating, set the number of forwarding rules per page. The range of values is: 1~10.
|
|
15776
15777
|
*
|
|
15777
15778
|
* @example
|
|
15778
15779
|
* 10
|
|
15779
15780
|
*/
|
|
15780
15781
|
pageSize?: number;
|
|
15781
15782
|
/**
|
|
15783
|
+
* @remarks
|
|
15784
|
+
* The query matching pattern. Values:
|
|
15785
|
+
* - **fuzzy** (default): Indicates fuzzy query.
|
|
15786
|
+
* - **exact**: Indicates exact query.
|
|
15787
|
+
*
|
|
15782
15788
|
* @example
|
|
15783
15789
|
* exact
|
|
15784
15790
|
*/
|
|
15785
15791
|
queryDomainPattern?: string;
|
|
15786
15792
|
/**
|
|
15793
|
+
* @remarks
|
|
15794
|
+
* The resource group ID of the DDoS protection instance in the resource management service.
|
|
15795
|
+
*
|
|
15796
|
+
* Not setting this parameter indicates the default resource group.
|
|
15797
|
+
*
|
|
15787
15798
|
* @example
|
|
15788
15799
|
* rg-acfm2pz25js****
|
|
15789
15800
|
*/
|
|
@@ -15819,15 +15830,25 @@ export class DescribeWebRulesRequest extends $tea.Model {
|
|
|
15819
15830
|
|
|
15820
15831
|
export class DescribeWebRulesResponseBody extends $tea.Model {
|
|
15821
15832
|
/**
|
|
15833
|
+
* @remarks
|
|
15834
|
+
* The ID of the request.
|
|
15835
|
+
*
|
|
15822
15836
|
* @example
|
|
15823
15837
|
* 0F5B72DD-96F4-423A-B12B-A5151DD746B8
|
|
15824
15838
|
*/
|
|
15825
15839
|
requestId?: string;
|
|
15826
15840
|
/**
|
|
15841
|
+
* @remarks
|
|
15842
|
+
* The total number of queried website business forwarding rules.
|
|
15843
|
+
*
|
|
15827
15844
|
* @example
|
|
15828
15845
|
* 1
|
|
15829
15846
|
*/
|
|
15830
15847
|
totalCount?: number;
|
|
15848
|
+
/**
|
|
15849
|
+
* @remarks
|
|
15850
|
+
* The configurations of the forwarding rule.
|
|
15851
|
+
*/
|
|
15831
15852
|
webRules?: DescribeWebRulesResponseBodyWebRules[];
|
|
15832
15853
|
static names(): { [key: string]: string } {
|
|
15833
15854
|
return {
|
|
@@ -18397,9 +18418,34 @@ export class ModifyInstanceRemarkResponse extends $tea.Model {
|
|
|
18397
18418
|
export class ModifyNetworkRuleAttributeRequest extends $tea.Model {
|
|
18398
18419
|
/**
|
|
18399
18420
|
* @remarks
|
|
18400
|
-
* The
|
|
18421
|
+
* The detailed settings of the port forwarding rule. This parameter is a JSON string and contains the following fields. The detailed settings of a TCP port forwarding rule contain the following fields.
|
|
18422
|
+
*
|
|
18423
|
+
* * **PersistenceTimeout**: the timeout period of session persistence. This field is required and of the integer type. Valid values: **30** to **3600**. Unit: seconds. Default value: **0**, which indicates that session persistence is disabled.
|
|
18424
|
+
* * **Synproxy**: specifies whether to enable the false source feature in the DDoS mitigation policy. This field is required and of the string type. Valid values: off and on.
|
|
18425
|
+
* * **NodataConn**: specifies whether to enable the empty connection feature in the DDoS mitigation policy. This field is required and of the string type. Valid values: off and on.
|
|
18426
|
+
* * **Sla**: the settings of the speed limit for destination feature. This field is required and of the struct type. For more information, see the following description about Sla.
|
|
18427
|
+
* * **Slimit**: the settings of the rate limit for source feature. This field is required and of the struct type. For more information, see the following description about Slimit.
|
|
18428
|
+
* * **PayloadLen**: the settings of the packet length limit feature. This field is required and of the struct type. For more information, see the following description about PayloadLen.
|
|
18429
|
+
*
|
|
18430
|
+
* Sla contains the following fields:
|
|
18431
|
+
*
|
|
18432
|
+
* * **Cps**: the destination rate limit on new connections in the DDoS mitigation policy. This field is required and of the integer type. Valid values: 100 to 100000.
|
|
18433
|
+
* * **Maxconn**: the destination rate limit on concurrent connections in the DDoS mitigation policy. This field is required and of the integer type. Valid values: 1000 to 1000000.
|
|
18434
|
+
* * **CpsEnable**: specifies whether to enable Cps. This field is required and of the integer type. Valid values: 0 and 1. Default value: 1. The value 0 indicates that Cps is disabled, and the value 1 indicates that Cps is enabled.
|
|
18435
|
+
* * **MaxconnEnable**: specifies whether to enable Maxconn. This field is required and of the integer type. Valid values: 0 and 1. Default value: 1. The value 0 indicates that Maxconn is disabled, and the value 1 indicates that Maxconn is enabled.
|
|
18436
|
+
*
|
|
18437
|
+
* Slimit contains the following fields:
|
|
18401
18438
|
*
|
|
18402
|
-
* * **
|
|
18439
|
+
* * **Cps**: the source rate limit on new connections in the DDoS mitigation policy. This field is required and of the integer type. Valid values: 1 to 50000.
|
|
18440
|
+
* * **Maxconn**: the source rate limit on concurrent connections in the DDoS mitigation policy. This field is required and of the integer type. Valid values: 1 to 50000.
|
|
18441
|
+
* * **CpsEnable**: specifies whether to enable Cps. This field is required and of the integer type. Valid values: 0 and 1. Default value: 1. The value 0 indicates that Cps is disabled, and the value 1 indicates that Cps is enabled.
|
|
18442
|
+
* * **MaxconnEnable**: specifies whether to enable Maxconn. This field is required and of the integer type. Valid values: 0 and 1. Default value: 1. The value 0 indicates that Maxconn is disabled, and the value 1 indicates that Maxconn is enabled.
|
|
18443
|
+
* * **CpsMode**: specifies whether to enable the source rate limit on new connections. This field is required and of the integer type. Valid values: 1 and 2. The value 1 indicates the source rate limit is enabled. The value 2 indicates that the system determines whether to enable the source rate limit.
|
|
18444
|
+
*
|
|
18445
|
+
* PayloadLen contains the following fields:
|
|
18446
|
+
*
|
|
18447
|
+
* * **Min**: the minimum packet length in the DDoS mitigation policy. This field is required and of the integer type. Valid values: 0 to 2000.
|
|
18448
|
+
* * **Max**: the maximum packet length in the DDoS mitigation policy. This field is required and of the integer type. Valid values: 0 to 6000.
|
|
18403
18449
|
*
|
|
18404
18450
|
* This parameter is required.
|
|
18405
18451
|
*
|
|
@@ -18468,7 +18514,7 @@ export class ModifyNetworkRuleAttributeRequest extends $tea.Model {
|
|
|
18468
18514
|
export class ModifyNetworkRuleAttributeResponseBody extends $tea.Model {
|
|
18469
18515
|
/**
|
|
18470
18516
|
* @remarks
|
|
18471
|
-
* The ID
|
|
18517
|
+
* The request ID.
|
|
18472
18518
|
*
|
|
18473
18519
|
* @example
|
|
18474
18520
|
* 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc
|
|
@@ -18632,7 +18678,7 @@ export class ModifyPortRequest extends $tea.Model {
|
|
|
18632
18678
|
frontendPort?: string;
|
|
18633
18679
|
/**
|
|
18634
18680
|
* @remarks
|
|
18635
|
-
* The type of the protocol. Valid values:
|
|
18681
|
+
* The type of the forwarding protocol. Valid values:
|
|
18636
18682
|
*
|
|
18637
18683
|
* * **tcp**
|
|
18638
18684
|
* * **udp**
|
|
@@ -18805,7 +18851,7 @@ export class ModifyPortAutoCcStatusRequest extends $tea.Model {
|
|
|
18805
18851
|
export class ModifyPortAutoCcStatusResponseBody extends $tea.Model {
|
|
18806
18852
|
/**
|
|
18807
18853
|
* @remarks
|
|
18808
|
-
* The ID
|
|
18854
|
+
* The request ID.
|
|
18809
18855
|
*
|
|
18810
18856
|
* @example
|
|
18811
18857
|
* 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc
|
|
@@ -23586,7 +23632,7 @@ export class DescribeHealthCheckListResponseBodyHealthCheckListHealthCheck exten
|
|
|
23586
23632
|
* @remarks
|
|
23587
23633
|
* The domain name.
|
|
23588
23634
|
*
|
|
23589
|
-
* >
|
|
23635
|
+
* > This parameter is returned only when the Layer 7 health check configuration is queried.
|
|
23590
23636
|
*
|
|
23591
23637
|
* @example
|
|
23592
23638
|
* www.aliyun.com
|
|
@@ -23647,7 +23693,7 @@ export class DescribeHealthCheckListResponseBodyHealthCheckListHealthCheck exten
|
|
|
23647
23693
|
* @remarks
|
|
23648
23694
|
* The check path.
|
|
23649
23695
|
*
|
|
23650
|
-
* >
|
|
23696
|
+
* > This parameter is returned only when the Layer 7 health check configuration is queried.
|
|
23651
23697
|
*
|
|
23652
23698
|
* @example
|
|
23653
23699
|
* /abc
|
|
@@ -27236,6 +27282,13 @@ export class DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailCondition exten
|
|
|
27236
27282
|
* 192.0.XX.XX
|
|
27237
27283
|
*/
|
|
27238
27284
|
content?: string;
|
|
27285
|
+
/**
|
|
27286
|
+
* @remarks
|
|
27287
|
+
* The match content when the match method is Equals to One of Multiple Values.
|
|
27288
|
+
*
|
|
27289
|
+
* @example
|
|
27290
|
+
* ["2","3","ad"]
|
|
27291
|
+
*/
|
|
27239
27292
|
contentList?: string;
|
|
27240
27293
|
/**
|
|
27241
27294
|
* @remarks
|
|
@@ -28279,16 +28332,31 @@ export class DescribeWebReportTopIpResponseBodyDataList extends $tea.Model {
|
|
|
28279
28332
|
|
|
28280
28333
|
export class DescribeWebRulesResponseBodyWebRulesGmCert extends $tea.Model {
|
|
28281
28334
|
/**
|
|
28335
|
+
* @remarks
|
|
28336
|
+
* The ID of the SM certificate.
|
|
28337
|
+
*
|
|
28282
28338
|
* @example
|
|
28283
28339
|
* 725****
|
|
28284
28340
|
*/
|
|
28285
28341
|
certId?: string;
|
|
28286
28342
|
/**
|
|
28343
|
+
* @remarks
|
|
28344
|
+
* Indicates whether Enable SM Certificate-based Verification is turned on.
|
|
28345
|
+
*
|
|
28346
|
+
* * 0: no
|
|
28347
|
+
* * 1: yes
|
|
28348
|
+
*
|
|
28287
28349
|
* @example
|
|
28288
28350
|
* 1
|
|
28289
28351
|
*/
|
|
28290
28352
|
gmEnable?: number;
|
|
28291
28353
|
/**
|
|
28354
|
+
* @remarks
|
|
28355
|
+
* Indicates whether Allow Access Only from SM Certificates-based Clients is turned on.
|
|
28356
|
+
*
|
|
28357
|
+
* * 0: no
|
|
28358
|
+
* * 1: yes
|
|
28359
|
+
*
|
|
28292
28360
|
* @example
|
|
28293
28361
|
* 1
|
|
28294
28362
|
*/
|
|
@@ -28315,8 +28383,20 @@ export class DescribeWebRulesResponseBodyWebRulesGmCert extends $tea.Model {
|
|
|
28315
28383
|
}
|
|
28316
28384
|
|
|
28317
28385
|
export class DescribeWebRulesResponseBodyWebRulesProxyTypes extends $tea.Model {
|
|
28386
|
+
/**
|
|
28387
|
+
* @remarks
|
|
28388
|
+
* The ports.
|
|
28389
|
+
*/
|
|
28318
28390
|
proxyPorts?: string[];
|
|
28319
28391
|
/**
|
|
28392
|
+
* @remarks
|
|
28393
|
+
* The type of the protocol. Valid values:
|
|
28394
|
+
*
|
|
28395
|
+
* * **http**
|
|
28396
|
+
* * **https**
|
|
28397
|
+
* * **websocket**
|
|
28398
|
+
* * **websockets**
|
|
28399
|
+
*
|
|
28320
28400
|
* @example
|
|
28321
28401
|
* https
|
|
28322
28402
|
*/
|
|
@@ -28342,11 +28422,20 @@ export class DescribeWebRulesResponseBodyWebRulesProxyTypes extends $tea.Model {
|
|
|
28342
28422
|
|
|
28343
28423
|
export class DescribeWebRulesResponseBodyWebRulesRealServers extends $tea.Model {
|
|
28344
28424
|
/**
|
|
28425
|
+
* @remarks
|
|
28426
|
+
* The address of the origin server.
|
|
28427
|
+
*
|
|
28345
28428
|
* @example
|
|
28346
28429
|
* 192.0.XX.XX
|
|
28347
28430
|
*/
|
|
28348
28431
|
realServer?: string;
|
|
28349
28432
|
/**
|
|
28433
|
+
* @remarks
|
|
28434
|
+
* The type of the origin server address. Valid values:
|
|
28435
|
+
*
|
|
28436
|
+
* * **0**: IP address
|
|
28437
|
+
* * **1**: domain name The domain name of the origin server is returned if you deploy proxies, such as Web Application Firewall (WAF), between the origin server and the instance. In this case, the address of the proxy, such as the CNAME provided by WAF, is returned.
|
|
28438
|
+
*
|
|
28350
28439
|
* @example
|
|
28351
28440
|
* 0
|
|
28352
28441
|
*/
|
|
@@ -28371,97 +28460,239 @@ export class DescribeWebRulesResponseBodyWebRulesRealServers extends $tea.Model
|
|
|
28371
28460
|
}
|
|
28372
28461
|
|
|
28373
28462
|
export class DescribeWebRulesResponseBodyWebRules extends $tea.Model {
|
|
28463
|
+
/**
|
|
28464
|
+
* @remarks
|
|
28465
|
+
* The IP addresses in the blacklist for the domain name.
|
|
28466
|
+
*/
|
|
28374
28467
|
blackList?: string[];
|
|
28375
28468
|
/**
|
|
28469
|
+
* @remarks
|
|
28470
|
+
* Indicates whether the Frequency Control policy is enabled. Valid values:
|
|
28471
|
+
*
|
|
28472
|
+
* * **true**
|
|
28473
|
+
* * **false**
|
|
28474
|
+
*
|
|
28376
28475
|
* @example
|
|
28377
28476
|
* true
|
|
28378
28477
|
*/
|
|
28379
28478
|
ccEnabled?: boolean;
|
|
28380
28479
|
/**
|
|
28480
|
+
* @remarks
|
|
28481
|
+
* Indicates whether the Custom Rule switch of the Frequency Control policy is turned on. Valid values:
|
|
28482
|
+
*
|
|
28483
|
+
* * **true**
|
|
28484
|
+
* * **false**
|
|
28485
|
+
*
|
|
28381
28486
|
* @example
|
|
28382
28487
|
* false
|
|
28383
28488
|
*/
|
|
28384
28489
|
ccRuleEnabled?: boolean;
|
|
28385
28490
|
/**
|
|
28491
|
+
* @remarks
|
|
28492
|
+
* The mode of the Frequency Control policy. Valid values:
|
|
28493
|
+
*
|
|
28494
|
+
* * **default**: the Normal mode
|
|
28495
|
+
* * **gf_under_attack**: the Emergency mode
|
|
28496
|
+
* * **gf_sos_verify**: the Strict mode
|
|
28497
|
+
* * **gf_sos_verify**: the Super Strict mode
|
|
28498
|
+
*
|
|
28386
28499
|
* @example
|
|
28387
28500
|
* default
|
|
28388
28501
|
*/
|
|
28389
28502
|
ccTemplate?: string;
|
|
28390
28503
|
/**
|
|
28504
|
+
* @remarks
|
|
28505
|
+
* The name of the SSL certificate.
|
|
28506
|
+
*
|
|
28391
28507
|
* @example
|
|
28392
28508
|
* testcert
|
|
28393
28509
|
*/
|
|
28394
28510
|
certName?: string;
|
|
28511
|
+
/**
|
|
28512
|
+
* @remarks
|
|
28513
|
+
* The region where the certificate is used. Valid values:
|
|
28514
|
+
*
|
|
28515
|
+
* * cn-hangzhou (default): the Chinese mainland
|
|
28516
|
+
* * ap-southeast-1: outside the Chinese mainland
|
|
28517
|
+
*
|
|
28518
|
+
* @example
|
|
28519
|
+
* cn-hangzhou
|
|
28520
|
+
*/
|
|
28395
28521
|
certRegion?: string;
|
|
28396
28522
|
/**
|
|
28523
|
+
* @remarks
|
|
28524
|
+
* The CNAME provided by the Anti-DDoS Pro or Anti-DDoS Premium instance to which the domain name is added.
|
|
28525
|
+
*
|
|
28397
28526
|
* @example
|
|
28398
28527
|
* kzmk7b8tt351****.aliyunddos1014****
|
|
28399
28528
|
*/
|
|
28400
28529
|
cname?: string;
|
|
28530
|
+
/**
|
|
28531
|
+
* @remarks
|
|
28532
|
+
* The custom cipher suites.
|
|
28533
|
+
*/
|
|
28401
28534
|
customCiphers?: string[];
|
|
28402
28535
|
/**
|
|
28536
|
+
* @remarks
|
|
28537
|
+
* The domain name of the website.
|
|
28538
|
+
*
|
|
28403
28539
|
* @example
|
|
28404
28540
|
* example.com
|
|
28405
28541
|
*/
|
|
28406
28542
|
domain?: string;
|
|
28543
|
+
/**
|
|
28544
|
+
* @remarks
|
|
28545
|
+
* The SM certificate settings.
|
|
28546
|
+
*/
|
|
28407
28547
|
gmCert?: DescribeWebRulesResponseBodyWebRulesGmCert;
|
|
28408
28548
|
/**
|
|
28549
|
+
* @remarks
|
|
28550
|
+
* Indicates whether Enable HTTP/2 is turned on. Valid values:
|
|
28551
|
+
*
|
|
28552
|
+
* * **true**
|
|
28553
|
+
* * **false**
|
|
28554
|
+
*
|
|
28409
28555
|
* @example
|
|
28410
28556
|
* true
|
|
28411
28557
|
*/
|
|
28412
28558
|
http2Enable?: boolean;
|
|
28413
28559
|
/**
|
|
28560
|
+
* @remarks
|
|
28561
|
+
* Indicates whether Enable HTTPS Redirection was turned on. Valid values:
|
|
28562
|
+
*
|
|
28563
|
+
* * **true**
|
|
28564
|
+
* * **false**
|
|
28565
|
+
*
|
|
28414
28566
|
* @example
|
|
28415
28567
|
* true
|
|
28416
28568
|
*/
|
|
28417
28569
|
http2HttpsEnable?: boolean;
|
|
28418
28570
|
/**
|
|
28571
|
+
* @remarks
|
|
28572
|
+
* Indicates whether Enable HTTP Redirection of Back-to-origin Requests is turned on. Valid values:
|
|
28573
|
+
*
|
|
28574
|
+
* * **true**
|
|
28575
|
+
* * **false**
|
|
28576
|
+
*
|
|
28419
28577
|
* @example
|
|
28420
28578
|
* true
|
|
28421
28579
|
*/
|
|
28422
28580
|
https2HttpEnable?: boolean;
|
|
28423
28581
|
/**
|
|
28582
|
+
* @remarks
|
|
28583
|
+
* Indicates whether the Online Certificate Status Protocol (OCSP) feature is enabled. Valid values:
|
|
28584
|
+
*
|
|
28585
|
+
* * **true**
|
|
28586
|
+
* * **false**
|
|
28587
|
+
*
|
|
28424
28588
|
* @example
|
|
28425
28589
|
* false
|
|
28426
28590
|
*/
|
|
28427
28591
|
ocspEnabled?: boolean;
|
|
28428
28592
|
/**
|
|
28593
|
+
* @remarks
|
|
28594
|
+
* The load balancing algorithm for back-to-origin traffic. Valid values:
|
|
28595
|
+
*
|
|
28596
|
+
* * **ip_hash**: the IP hash algorithm. This algorithm is used to redirect the requests from the same IP address to the same origin server.
|
|
28597
|
+
* * **rr**: the round-robin algorithm. This algorithm is used to redirect requests to origin servers in turn.
|
|
28598
|
+
* * **least_time**: the least response time algorithm. This algorithm is used to minimize the latency when requests are forwarded from Anti-DDoS Pro or Anti-DDoS Premium instances to origin servers based on the intelligent DNS resolution feature.
|
|
28599
|
+
*
|
|
28429
28600
|
* @example
|
|
28430
28601
|
* ip_hash
|
|
28431
28602
|
*/
|
|
28432
28603
|
policyMode?: string;
|
|
28433
28604
|
/**
|
|
28605
|
+
* @remarks
|
|
28606
|
+
* Indicates whether the forwarding rule is enabled. Valid values:
|
|
28607
|
+
*
|
|
28608
|
+
* * **true**
|
|
28609
|
+
* * **false**
|
|
28610
|
+
*
|
|
28434
28611
|
* @example
|
|
28435
28612
|
* true
|
|
28436
28613
|
*/
|
|
28437
28614
|
proxyEnabled?: boolean;
|
|
28615
|
+
/**
|
|
28616
|
+
* @remarks
|
|
28617
|
+
* The details of the protocol type and port number.
|
|
28618
|
+
*/
|
|
28438
28619
|
proxyTypes?: DescribeWebRulesResponseBodyWebRulesProxyTypes[];
|
|
28439
28620
|
/**
|
|
28621
|
+
* @remarks
|
|
28622
|
+
* The reason why the domain name is invalid. Valid values:
|
|
28623
|
+
*
|
|
28624
|
+
* * **1**: No Content Provider (ICP) filing is completed for the domain name.
|
|
28625
|
+
* * **2**: The business for which you registered the domain name does not meet regulatory requirements.
|
|
28626
|
+
*
|
|
28627
|
+
* If the two reasons are both involved, the value **2** is returned.
|
|
28628
|
+
*
|
|
28440
28629
|
* @example
|
|
28441
28630
|
* 1
|
|
28442
28631
|
*/
|
|
28443
28632
|
punishReason?: number;
|
|
28444
28633
|
/**
|
|
28634
|
+
* @remarks
|
|
28635
|
+
* Indicates whether the domain name is invalid. Valid values:
|
|
28636
|
+
*
|
|
28637
|
+
* * **true**: You can view the specific reasons from the **PunishReason** parameter.
|
|
28638
|
+
* * **false**
|
|
28639
|
+
*
|
|
28445
28640
|
* @example
|
|
28446
28641
|
* true
|
|
28447
28642
|
*/
|
|
28448
28643
|
punishStatus?: boolean;
|
|
28644
|
+
/**
|
|
28645
|
+
* @remarks
|
|
28646
|
+
* The details of the origin server address.
|
|
28647
|
+
*/
|
|
28449
28648
|
realServers?: DescribeWebRulesResponseBodyWebRulesRealServers[];
|
|
28450
28649
|
/**
|
|
28650
|
+
* @remarks
|
|
28651
|
+
* Indicates whether TLS 1.3 is supported. Valid values:
|
|
28652
|
+
*
|
|
28653
|
+
* * **true**
|
|
28654
|
+
* * **false**
|
|
28655
|
+
*
|
|
28451
28656
|
* @example
|
|
28452
28657
|
* false
|
|
28453
28658
|
*/
|
|
28454
28659
|
ssl13Enabled?: boolean;
|
|
28455
28660
|
/**
|
|
28661
|
+
* @remarks
|
|
28662
|
+
* The type of the cipher suite. Valid values:
|
|
28663
|
+
*
|
|
28664
|
+
* * **default**: custom cipher suites
|
|
28665
|
+
* * **all**: all cipher suites, which contain strong and weak cipher suites
|
|
28666
|
+
* * **strong**: strong cipher suites
|
|
28667
|
+
*
|
|
28456
28668
|
* @example
|
|
28457
28669
|
* default
|
|
28458
28670
|
*/
|
|
28459
28671
|
sslCiphers?: string;
|
|
28460
28672
|
/**
|
|
28673
|
+
* @remarks
|
|
28674
|
+
* The version of the Transport Layer Security (TLS) protocol. Valid values:
|
|
28675
|
+
*
|
|
28676
|
+
* * **tls1.0**: TLS 1.0 or later
|
|
28677
|
+
* * **tls1.1**: TLS 1.1 or later
|
|
28678
|
+
* * **tls1.2**: TLS 1.2 or later
|
|
28679
|
+
*
|
|
28461
28680
|
* @example
|
|
28462
28681
|
* tls1.1
|
|
28463
28682
|
*/
|
|
28464
28683
|
sslProtocols?: string;
|
|
28684
|
+
/**
|
|
28685
|
+
* @remarks
|
|
28686
|
+
* The name of the certificate uploaded by the user to the certificate center.
|
|
28687
|
+
*
|
|
28688
|
+
* @example
|
|
28689
|
+
* test
|
|
28690
|
+
*/
|
|
28691
|
+
userCertName?: string;
|
|
28692
|
+
/**
|
|
28693
|
+
* @remarks
|
|
28694
|
+
* The IP addresses in the whitelist for the domain name.
|
|
28695
|
+
*/
|
|
28465
28696
|
whiteList?: string[];
|
|
28466
28697
|
static names(): { [key: string]: string } {
|
|
28467
28698
|
return {
|
|
@@ -28488,6 +28719,7 @@ export class DescribeWebRulesResponseBodyWebRules extends $tea.Model {
|
|
|
28488
28719
|
ssl13Enabled: 'Ssl13Enabled',
|
|
28489
28720
|
sslCiphers: 'SslCiphers',
|
|
28490
28721
|
sslProtocols: 'SslProtocols',
|
|
28722
|
+
userCertName: 'UserCertName',
|
|
28491
28723
|
whiteList: 'WhiteList',
|
|
28492
28724
|
};
|
|
28493
28725
|
}
|
|
@@ -28517,6 +28749,7 @@ export class DescribeWebRulesResponseBodyWebRules extends $tea.Model {
|
|
|
28517
28749
|
ssl13Enabled: 'boolean',
|
|
28518
28750
|
sslCiphers: 'string',
|
|
28519
28751
|
sslProtocols: 'string',
|
|
28752
|
+
userCertName: 'string',
|
|
28520
28753
|
whiteList: { 'type': 'array', 'itemType': 'string' },
|
|
28521
28754
|
};
|
|
28522
28755
|
}
|
|
@@ -28706,11 +28939,6 @@ export default class Client extends OpenApi {
|
|
|
28706
28939
|
*/
|
|
28707
28940
|
async associateWebCertWithOptions(request: AssociateWebCertRequest, runtime: $Util.RuntimeOptions): Promise<AssociateWebCertResponse> {
|
|
28708
28941
|
Util.validateModel(request);
|
|
28709
|
-
let query = { };
|
|
28710
|
-
if (!Util.isUnset(request.resourceGroupId)) {
|
|
28711
|
-
query["ResourceGroupId"] = request.resourceGroupId;
|
|
28712
|
-
}
|
|
28713
|
-
|
|
28714
28942
|
let body : {[key: string ]: any} = { };
|
|
28715
28943
|
if (!Util.isUnset(request.cert)) {
|
|
28716
28944
|
body["Cert"] = request.cert;
|
|
@@ -28741,7 +28969,6 @@ export default class Client extends OpenApi {
|
|
|
28741
28969
|
}
|
|
28742
28970
|
|
|
28743
28971
|
let req = new $OpenApi.OpenApiRequest({
|
|
28744
|
-
query: OpenApiUtil.query(query),
|
|
28745
28972
|
body: OpenApiUtil.parseToMap(body),
|
|
28746
28973
|
});
|
|
28747
28974
|
let params = new $OpenApi.Params({
|
|
@@ -35684,9 +35911,13 @@ export default class Client extends OpenApi {
|
|
|
35684
35911
|
}
|
|
35685
35912
|
|
|
35686
35913
|
/**
|
|
35687
|
-
*
|
|
35688
|
-
*
|
|
35689
|
-
*
|
|
35914
|
+
* Query Configuration of Website Business Forwarding Rules.
|
|
35915
|
+
*
|
|
35916
|
+
* @remarks
|
|
35917
|
+
* 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.
|
|
35918
|
+
* Before calling this interface, you must have already called [CreateWebRule](~~CreateWebRule~~) to create website business forwarding rules.
|
|
35919
|
+
* ### QPS Limit
|
|
35920
|
+
* 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.
|
|
35690
35921
|
*
|
|
35691
35922
|
* @param request - DescribeWebRulesRequest
|
|
35692
35923
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -35741,9 +35972,13 @@ export default class Client extends OpenApi {
|
|
|
35741
35972
|
}
|
|
35742
35973
|
|
|
35743
35974
|
/**
|
|
35744
|
-
*
|
|
35745
|
-
*
|
|
35746
|
-
*
|
|
35975
|
+
* Query Configuration of Website Business Forwarding Rules.
|
|
35976
|
+
*
|
|
35977
|
+
* @remarks
|
|
35978
|
+
* 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.
|
|
35979
|
+
* Before calling this interface, you must have already called [CreateWebRule](~~CreateWebRule~~) to create website business forwarding rules.
|
|
35980
|
+
* ### QPS Limit
|
|
35981
|
+
* 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.
|
|
35747
35982
|
*
|
|
35748
35983
|
* @param request - DescribeWebRulesRequest
|
|
35749
35984
|
* @returns DescribeWebRulesResponse
|
|
@@ -36986,7 +37221,7 @@ export default class Client extends OpenApi {
|
|
|
36986
37221
|
}
|
|
36987
37222
|
|
|
36988
37223
|
/**
|
|
36989
|
-
* Modifies the session persistence settings of a port forwarding rule.
|
|
37224
|
+
* Modifies the session persistence and DDoS mitigation policy settings of a port forwarding rule.
|
|
36990
37225
|
*
|
|
36991
37226
|
* @param request - ModifyNetworkRuleAttributeRequest
|
|
36992
37227
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -37029,7 +37264,7 @@ export default class Client extends OpenApi {
|
|
|
37029
37264
|
}
|
|
37030
37265
|
|
|
37031
37266
|
/**
|
|
37032
|
-
* Modifies the session persistence settings of a port forwarding rule.
|
|
37267
|
+
* Modifies the session persistence and DDoS mitigation policy settings of a port forwarding rule.
|
|
37033
37268
|
*
|
|
37034
37269
|
* @param request - ModifyNetworkRuleAttributeRequest
|
|
37035
37270
|
* @returns ModifyNetworkRuleAttributeResponse
|
|
@@ -38014,7 +38249,7 @@ export default class Client extends OpenApi {
|
|
|
38014
38249
|
}
|
|
38015
38250
|
|
|
38016
38251
|
/**
|
|
38017
|
-
*
|
|
38252
|
+
* Creates or modifies an accurate access control rule of a website.
|
|
38018
38253
|
*
|
|
38019
38254
|
* @param request - ModifyWebPreciseAccessRuleRequest
|
|
38020
38255
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -38057,7 +38292,7 @@ export default class Client extends OpenApi {
|
|
|
38057
38292
|
}
|
|
38058
38293
|
|
|
38059
38294
|
/**
|
|
38060
|
-
*
|
|
38295
|
+
* Creates or modifies an accurate access control rule of a website.
|
|
38061
38296
|
*
|
|
38062
38297
|
* @param request - ModifyWebPreciseAccessRuleRequest
|
|
38063
38298
|
* @returns ModifyWebPreciseAccessRuleResponse
|