@alicloud/waf-openapi20211001 3.0.0 → 3.2.0
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 +260 -10
- package/dist/client.js +476 -18
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +559 -10
package/dist/client.d.ts
CHANGED
|
@@ -429,6 +429,54 @@ export declare class CreatePostpaidInstanceResponse extends $tea.Model {
|
|
|
429
429
|
[key: string]: any;
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
|
+
export declare class CreateSM2CertRequest extends $tea.Model {
|
|
433
|
+
certName?: string;
|
|
434
|
+
encryptCertificate?: string;
|
|
435
|
+
encryptPrivateKey?: string;
|
|
436
|
+
instanceId?: string;
|
|
437
|
+
regionId?: string;
|
|
438
|
+
resourceManagerResourceGroupId?: string;
|
|
439
|
+
signCertificate?: string;
|
|
440
|
+
signPrivateKey?: string;
|
|
441
|
+
static names(): {
|
|
442
|
+
[key: string]: string;
|
|
443
|
+
};
|
|
444
|
+
static types(): {
|
|
445
|
+
[key: string]: any;
|
|
446
|
+
};
|
|
447
|
+
constructor(map?: {
|
|
448
|
+
[key: string]: any;
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
export declare class CreateSM2CertResponseBody extends $tea.Model {
|
|
452
|
+
certIdentifier?: string;
|
|
453
|
+
requestId?: string;
|
|
454
|
+
static names(): {
|
|
455
|
+
[key: string]: string;
|
|
456
|
+
};
|
|
457
|
+
static types(): {
|
|
458
|
+
[key: string]: any;
|
|
459
|
+
};
|
|
460
|
+
constructor(map?: {
|
|
461
|
+
[key: string]: any;
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
export declare class CreateSM2CertResponse extends $tea.Model {
|
|
465
|
+
headers?: {
|
|
466
|
+
[key: string]: string;
|
|
467
|
+
};
|
|
468
|
+
statusCode?: number;
|
|
469
|
+
body?: CreateSM2CertResponseBody;
|
|
470
|
+
static names(): {
|
|
471
|
+
[key: string]: string;
|
|
472
|
+
};
|
|
473
|
+
static types(): {
|
|
474
|
+
[key: string]: any;
|
|
475
|
+
};
|
|
476
|
+
constructor(map?: {
|
|
477
|
+
[key: string]: any;
|
|
478
|
+
});
|
|
479
|
+
}
|
|
432
480
|
export declare class DeleteApisecAbnormalRequest extends $tea.Model {
|
|
433
481
|
abnormalId?: string;
|
|
434
482
|
clusterId?: string;
|
|
@@ -1308,6 +1356,49 @@ export declare class DescribeCloudResourcesResponse extends $tea.Model {
|
|
|
1308
1356
|
[key: string]: any;
|
|
1309
1357
|
});
|
|
1310
1358
|
}
|
|
1359
|
+
export declare class DescribeDDoSStatusRequest extends $tea.Model {
|
|
1360
|
+
instanceId?: string;
|
|
1361
|
+
regionId?: string;
|
|
1362
|
+
resourceManagerResourceGroupId?: string;
|
|
1363
|
+
static names(): {
|
|
1364
|
+
[key: string]: string;
|
|
1365
|
+
};
|
|
1366
|
+
static types(): {
|
|
1367
|
+
[key: string]: any;
|
|
1368
|
+
};
|
|
1369
|
+
constructor(map?: {
|
|
1370
|
+
[key: string]: any;
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
export declare class DescribeDDoSStatusResponseBody extends $tea.Model {
|
|
1374
|
+
DDoSStatus?: DescribeDDoSStatusResponseBodyDDoSStatus[];
|
|
1375
|
+
requestId?: string;
|
|
1376
|
+
static names(): {
|
|
1377
|
+
[key: string]: string;
|
|
1378
|
+
};
|
|
1379
|
+
static types(): {
|
|
1380
|
+
[key: string]: any;
|
|
1381
|
+
};
|
|
1382
|
+
constructor(map?: {
|
|
1383
|
+
[key: string]: any;
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
export declare class DescribeDDoSStatusResponse extends $tea.Model {
|
|
1387
|
+
headers?: {
|
|
1388
|
+
[key: string]: string;
|
|
1389
|
+
};
|
|
1390
|
+
statusCode?: number;
|
|
1391
|
+
body?: DescribeDDoSStatusResponseBody;
|
|
1392
|
+
static names(): {
|
|
1393
|
+
[key: string]: string;
|
|
1394
|
+
};
|
|
1395
|
+
static types(): {
|
|
1396
|
+
[key: string]: any;
|
|
1397
|
+
};
|
|
1398
|
+
constructor(map?: {
|
|
1399
|
+
[key: string]: any;
|
|
1400
|
+
});
|
|
1401
|
+
}
|
|
1311
1402
|
export declare class DescribeDefenseResourceRequest extends $tea.Model {
|
|
1312
1403
|
instanceId?: string;
|
|
1313
1404
|
regionId?: string;
|
|
@@ -2439,6 +2530,49 @@ export declare class DescribeMemberAccountsResponse extends $tea.Model {
|
|
|
2439
2530
|
[key: string]: any;
|
|
2440
2531
|
});
|
|
2441
2532
|
}
|
|
2533
|
+
export declare class DescribePauseProtectionStatusRequest extends $tea.Model {
|
|
2534
|
+
instanceId?: string;
|
|
2535
|
+
regionId?: string;
|
|
2536
|
+
resourceManagerResourceGroupId?: string;
|
|
2537
|
+
static names(): {
|
|
2538
|
+
[key: string]: string;
|
|
2539
|
+
};
|
|
2540
|
+
static types(): {
|
|
2541
|
+
[key: string]: any;
|
|
2542
|
+
};
|
|
2543
|
+
constructor(map?: {
|
|
2544
|
+
[key: string]: any;
|
|
2545
|
+
});
|
|
2546
|
+
}
|
|
2547
|
+
export declare class DescribePauseProtectionStatusResponseBody extends $tea.Model {
|
|
2548
|
+
pauseStatus?: number;
|
|
2549
|
+
requestId?: string;
|
|
2550
|
+
static names(): {
|
|
2551
|
+
[key: string]: string;
|
|
2552
|
+
};
|
|
2553
|
+
static types(): {
|
|
2554
|
+
[key: string]: any;
|
|
2555
|
+
};
|
|
2556
|
+
constructor(map?: {
|
|
2557
|
+
[key: string]: any;
|
|
2558
|
+
});
|
|
2559
|
+
}
|
|
2560
|
+
export declare class DescribePauseProtectionStatusResponse extends $tea.Model {
|
|
2561
|
+
headers?: {
|
|
2562
|
+
[key: string]: string;
|
|
2563
|
+
};
|
|
2564
|
+
statusCode?: number;
|
|
2565
|
+
body?: DescribePauseProtectionStatusResponseBody;
|
|
2566
|
+
static names(): {
|
|
2567
|
+
[key: string]: string;
|
|
2568
|
+
};
|
|
2569
|
+
static types(): {
|
|
2570
|
+
[key: string]: any;
|
|
2571
|
+
};
|
|
2572
|
+
constructor(map?: {
|
|
2573
|
+
[key: string]: any;
|
|
2574
|
+
});
|
|
2575
|
+
}
|
|
2442
2576
|
export declare class DescribePeakTrendRequest extends $tea.Model {
|
|
2443
2577
|
endTimestamp?: string;
|
|
2444
2578
|
instanceId?: string;
|
|
@@ -4405,6 +4539,49 @@ export declare class ModifyMemberAccountResponse extends $tea.Model {
|
|
|
4405
4539
|
[key: string]: any;
|
|
4406
4540
|
});
|
|
4407
4541
|
}
|
|
4542
|
+
export declare class ModifyPauseProtectionStatusRequest extends $tea.Model {
|
|
4543
|
+
instanceId?: string;
|
|
4544
|
+
pauseStatus?: number;
|
|
4545
|
+
regionId?: string;
|
|
4546
|
+
resourceManagerResourceGroupId?: string;
|
|
4547
|
+
static names(): {
|
|
4548
|
+
[key: string]: string;
|
|
4549
|
+
};
|
|
4550
|
+
static types(): {
|
|
4551
|
+
[key: string]: any;
|
|
4552
|
+
};
|
|
4553
|
+
constructor(map?: {
|
|
4554
|
+
[key: string]: any;
|
|
4555
|
+
});
|
|
4556
|
+
}
|
|
4557
|
+
export declare class ModifyPauseProtectionStatusResponseBody extends $tea.Model {
|
|
4558
|
+
requestId?: string;
|
|
4559
|
+
static names(): {
|
|
4560
|
+
[key: string]: string;
|
|
4561
|
+
};
|
|
4562
|
+
static types(): {
|
|
4563
|
+
[key: string]: any;
|
|
4564
|
+
};
|
|
4565
|
+
constructor(map?: {
|
|
4566
|
+
[key: string]: any;
|
|
4567
|
+
});
|
|
4568
|
+
}
|
|
4569
|
+
export declare class ModifyPauseProtectionStatusResponse extends $tea.Model {
|
|
4570
|
+
headers?: {
|
|
4571
|
+
[key: string]: string;
|
|
4572
|
+
};
|
|
4573
|
+
statusCode?: number;
|
|
4574
|
+
body?: ModifyPauseProtectionStatusResponseBody;
|
|
4575
|
+
static names(): {
|
|
4576
|
+
[key: string]: string;
|
|
4577
|
+
};
|
|
4578
|
+
static types(): {
|
|
4579
|
+
[key: string]: any;
|
|
4580
|
+
};
|
|
4581
|
+
constructor(map?: {
|
|
4582
|
+
[key: string]: any;
|
|
4583
|
+
});
|
|
4584
|
+
}
|
|
4408
4585
|
export declare class ModifyResourceLogStatusRequest extends $tea.Model {
|
|
4409
4586
|
instanceId?: string;
|
|
4410
4587
|
regionId?: string;
|
|
@@ -4842,6 +5019,19 @@ export declare class DescribeCloudResourcesResponseBodyCloudResources extends $t
|
|
|
4842
5019
|
[key: string]: any;
|
|
4843
5020
|
});
|
|
4844
5021
|
}
|
|
5022
|
+
export declare class DescribeDDoSStatusResponseBodyDDoSStatus extends $tea.Model {
|
|
5023
|
+
eventType?: string;
|
|
5024
|
+
status?: string;
|
|
5025
|
+
static names(): {
|
|
5026
|
+
[key: string]: string;
|
|
5027
|
+
};
|
|
5028
|
+
static types(): {
|
|
5029
|
+
[key: string]: any;
|
|
5030
|
+
};
|
|
5031
|
+
constructor(map?: {
|
|
5032
|
+
[key: string]: any;
|
|
5033
|
+
});
|
|
5034
|
+
}
|
|
4845
5035
|
export declare class DescribeDefenseResourceResponseBodyResource extends $tea.Model {
|
|
4846
5036
|
acwCookieStatus?: number;
|
|
4847
5037
|
acwSecureStatus?: number;
|
|
@@ -6050,6 +6240,21 @@ export default class Client extends OpenApi {
|
|
|
6050
6240
|
* @return CreatePostpaidInstanceResponse
|
|
6051
6241
|
*/
|
|
6052
6242
|
createPostpaidInstance(request: CreatePostpaidInstanceRequest): Promise<CreatePostpaidInstanceResponse>;
|
|
6243
|
+
/**
|
|
6244
|
+
* @summary 上传国密证书
|
|
6245
|
+
*
|
|
6246
|
+
* @param request CreateSM2CertRequest
|
|
6247
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
6248
|
+
* @return CreateSM2CertResponse
|
|
6249
|
+
*/
|
|
6250
|
+
createSM2CertWithOptions(request: CreateSM2CertRequest, runtime: $Util.RuntimeOptions): Promise<CreateSM2CertResponse>;
|
|
6251
|
+
/**
|
|
6252
|
+
* @summary 上传国密证书
|
|
6253
|
+
*
|
|
6254
|
+
* @param request CreateSM2CertRequest
|
|
6255
|
+
* @return CreateSM2CertResponse
|
|
6256
|
+
*/
|
|
6257
|
+
createSM2Cert(request: CreateSM2CertRequest): Promise<CreateSM2CertResponse>;
|
|
6053
6258
|
/**
|
|
6054
6259
|
* @summary 删除API安全风险
|
|
6055
6260
|
*
|
|
@@ -6231,7 +6436,7 @@ export default class Client extends OpenApi {
|
|
|
6231
6436
|
*/
|
|
6232
6437
|
describeApisecEventDomainStatistic(request: DescribeApisecEventDomainStatisticRequest): Promise<DescribeApisecEventDomainStatisticResponse>;
|
|
6233
6438
|
/**
|
|
6234
|
-
* @summary
|
|
6439
|
+
* @summary Queries the configurations of API security log subscription.
|
|
6235
6440
|
*
|
|
6236
6441
|
* @param request DescribeApisecLogDeliveriesRequest
|
|
6237
6442
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -6239,7 +6444,7 @@ export default class Client extends OpenApi {
|
|
|
6239
6444
|
*/
|
|
6240
6445
|
describeApisecLogDeliveriesWithOptions(request: DescribeApisecLogDeliveriesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeApisecLogDeliveriesResponse>;
|
|
6241
6446
|
/**
|
|
6242
|
-
* @summary
|
|
6447
|
+
* @summary Queries the configurations of API security log subscription.
|
|
6243
6448
|
*
|
|
6244
6449
|
* @param request DescribeApisecLogDeliveriesRequest
|
|
6245
6450
|
* @return DescribeApisecLogDeliveriesResponse
|
|
@@ -6261,7 +6466,7 @@ export default class Client extends OpenApi {
|
|
|
6261
6466
|
*/
|
|
6262
6467
|
describeApisecSensitiveDomainStatistic(request: DescribeApisecSensitiveDomainStatisticRequest): Promise<DescribeApisecSensitiveDomainStatisticResponse>;
|
|
6263
6468
|
/**
|
|
6264
|
-
* @summary
|
|
6469
|
+
* @summary Queries the Logstores whose names start with apisec- in Simple Log Service.
|
|
6265
6470
|
*
|
|
6266
6471
|
* @param request DescribeApisecSlsLogStoresRequest
|
|
6267
6472
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -6269,14 +6474,14 @@ export default class Client extends OpenApi {
|
|
|
6269
6474
|
*/
|
|
6270
6475
|
describeApisecSlsLogStoresWithOptions(request: DescribeApisecSlsLogStoresRequest, runtime: $Util.RuntimeOptions): Promise<DescribeApisecSlsLogStoresResponse>;
|
|
6271
6476
|
/**
|
|
6272
|
-
* @summary
|
|
6477
|
+
* @summary Queries the Logstores whose names start with apisec- in Simple Log Service.
|
|
6273
6478
|
*
|
|
6274
6479
|
* @param request DescribeApisecSlsLogStoresRequest
|
|
6275
6480
|
* @return DescribeApisecSlsLogStoresResponse
|
|
6276
6481
|
*/
|
|
6277
6482
|
describeApisecSlsLogStores(request: DescribeApisecSlsLogStoresRequest): Promise<DescribeApisecSlsLogStoresResponse>;
|
|
6278
6483
|
/**
|
|
6279
|
-
* @summary
|
|
6484
|
+
* @summary Queries the projects whose names start with apisec- in Simple Log Service.
|
|
6280
6485
|
*
|
|
6281
6486
|
* @param request DescribeApisecSlsProjectsRequest
|
|
6282
6487
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -6284,7 +6489,7 @@ export default class Client extends OpenApi {
|
|
|
6284
6489
|
*/
|
|
6285
6490
|
describeApisecSlsProjectsWithOptions(request: DescribeApisecSlsProjectsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeApisecSlsProjectsResponse>;
|
|
6286
6491
|
/**
|
|
6287
|
-
* @summary
|
|
6492
|
+
* @summary Queries the projects whose names start with apisec- in Simple Log Service.
|
|
6288
6493
|
*
|
|
6289
6494
|
* @param request DescribeApisecSlsProjectsRequest
|
|
6290
6495
|
* @return DescribeApisecSlsProjectsResponse
|
|
@@ -6335,6 +6540,21 @@ export default class Client extends OpenApi {
|
|
|
6335
6540
|
* @return DescribeCloudResourcesResponse
|
|
6336
6541
|
*/
|
|
6337
6542
|
describeCloudResources(request: DescribeCloudResourcesRequest): Promise<DescribeCloudResourcesResponse>;
|
|
6543
|
+
/**
|
|
6544
|
+
* @summary Checks whether DDoS attacks occur on specific domain names protected by a Web Application Firewall (WAF) instance.
|
|
6545
|
+
*
|
|
6546
|
+
* @param request DescribeDDoSStatusRequest
|
|
6547
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
6548
|
+
* @return DescribeDDoSStatusResponse
|
|
6549
|
+
*/
|
|
6550
|
+
describeDDoSStatusWithOptions(request: DescribeDDoSStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDDoSStatusResponse>;
|
|
6551
|
+
/**
|
|
6552
|
+
* @summary Checks whether DDoS attacks occur on specific domain names protected by a Web Application Firewall (WAF) instance.
|
|
6553
|
+
*
|
|
6554
|
+
* @param request DescribeDDoSStatusRequest
|
|
6555
|
+
* @return DescribeDDoSStatusResponse
|
|
6556
|
+
*/
|
|
6557
|
+
describeDDoSStatus(request: DescribeDDoSStatusRequest): Promise<DescribeDDoSStatusResponse>;
|
|
6338
6558
|
/**
|
|
6339
6559
|
* @summary Queries the information about a protected object.
|
|
6340
6560
|
*
|
|
@@ -6695,6 +6915,21 @@ export default class Client extends OpenApi {
|
|
|
6695
6915
|
* @return DescribeMemberAccountsResponse
|
|
6696
6916
|
*/
|
|
6697
6917
|
describeMemberAccounts(request: DescribeMemberAccountsRequest): Promise<DescribeMemberAccountsResponse>;
|
|
6918
|
+
/**
|
|
6919
|
+
* @summary 获取用户暂停防护状态
|
|
6920
|
+
*
|
|
6921
|
+
* @param request DescribePauseProtectionStatusRequest
|
|
6922
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
6923
|
+
* @return DescribePauseProtectionStatusResponse
|
|
6924
|
+
*/
|
|
6925
|
+
describePauseProtectionStatusWithOptions(request: DescribePauseProtectionStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribePauseProtectionStatusResponse>;
|
|
6926
|
+
/**
|
|
6927
|
+
* @summary 获取用户暂停防护状态
|
|
6928
|
+
*
|
|
6929
|
+
* @param request DescribePauseProtectionStatusRequest
|
|
6930
|
+
* @return DescribePauseProtectionStatusResponse
|
|
6931
|
+
*/
|
|
6932
|
+
describePauseProtectionStatus(request: DescribePauseProtectionStatusRequest): Promise<DescribePauseProtectionStatusResponse>;
|
|
6698
6933
|
/**
|
|
6699
6934
|
* @summary Queries the queries per second (QPS) statistics of a WAF instance.
|
|
6700
6935
|
*
|
|
@@ -7131,7 +7366,7 @@ export default class Client extends OpenApi {
|
|
|
7131
7366
|
*/
|
|
7132
7367
|
listTagValues(request: ListTagValuesRequest): Promise<ListTagValuesResponse>;
|
|
7133
7368
|
/**
|
|
7134
|
-
* @summary
|
|
7369
|
+
* @summary Modifies the configurations of API security log subscription.
|
|
7135
7370
|
*
|
|
7136
7371
|
* @param request ModifyApisecLogDeliveryRequest
|
|
7137
7372
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7139,14 +7374,14 @@ export default class Client extends OpenApi {
|
|
|
7139
7374
|
*/
|
|
7140
7375
|
modifyApisecLogDeliveryWithOptions(request: ModifyApisecLogDeliveryRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApisecLogDeliveryResponse>;
|
|
7141
7376
|
/**
|
|
7142
|
-
* @summary
|
|
7377
|
+
* @summary Modifies the configurations of API security log subscription.
|
|
7143
7378
|
*
|
|
7144
7379
|
* @param request ModifyApisecLogDeliveryRequest
|
|
7145
7380
|
* @return ModifyApisecLogDeliveryResponse
|
|
7146
7381
|
*/
|
|
7147
7382
|
modifyApisecLogDelivery(request: ModifyApisecLogDeliveryRequest): Promise<ModifyApisecLogDeliveryResponse>;
|
|
7148
7383
|
/**
|
|
7149
|
-
* @summary
|
|
7384
|
+
* @summary Modifies the status of API security log subscription.
|
|
7150
7385
|
*
|
|
7151
7386
|
* @param request ModifyApisecLogDeliveryStatusRequest
|
|
7152
7387
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7154,7 +7389,7 @@ export default class Client extends OpenApi {
|
|
|
7154
7389
|
*/
|
|
7155
7390
|
modifyApisecLogDeliveryStatusWithOptions(request: ModifyApisecLogDeliveryStatusRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApisecLogDeliveryStatusResponse>;
|
|
7156
7391
|
/**
|
|
7157
|
-
* @summary
|
|
7392
|
+
* @summary Modifies the status of API security log subscription.
|
|
7158
7393
|
*
|
|
7159
7394
|
* @param request ModifyApisecLogDeliveryStatusRequest
|
|
7160
7395
|
* @return ModifyApisecLogDeliveryStatusResponse
|
|
@@ -7340,6 +7575,21 @@ export default class Client extends OpenApi {
|
|
|
7340
7575
|
* @return ModifyMemberAccountResponse
|
|
7341
7576
|
*/
|
|
7342
7577
|
modifyMemberAccount(request: ModifyMemberAccountRequest): Promise<ModifyMemberAccountResponse>;
|
|
7578
|
+
/**
|
|
7579
|
+
* @summary 修改用户暂停防护状态
|
|
7580
|
+
*
|
|
7581
|
+
* @param request ModifyPauseProtectionStatusRequest
|
|
7582
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7583
|
+
* @return ModifyPauseProtectionStatusResponse
|
|
7584
|
+
*/
|
|
7585
|
+
modifyPauseProtectionStatusWithOptions(request: ModifyPauseProtectionStatusRequest, runtime: $Util.RuntimeOptions): Promise<ModifyPauseProtectionStatusResponse>;
|
|
7586
|
+
/**
|
|
7587
|
+
* @summary 修改用户暂停防护状态
|
|
7588
|
+
*
|
|
7589
|
+
* @param request ModifyPauseProtectionStatusRequest
|
|
7590
|
+
* @return ModifyPauseProtectionStatusResponse
|
|
7591
|
+
*/
|
|
7592
|
+
modifyPauseProtectionStatus(request: ModifyPauseProtectionStatusRequest): Promise<ModifyPauseProtectionStatusResponse>;
|
|
7343
7593
|
/**
|
|
7344
7594
|
* @summary Enables or disables the log collection feature for a protected object.
|
|
7345
7595
|
*
|