@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/waf-openapi20211001",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.8",
|
|
24
|
-
"@alicloud/openapi-client": "^0.4.
|
|
24
|
+
"@alicloud/openapi-client": "^0.4.10",
|
|
25
25
|
"@alicloud/openapi-util": "^0.3.2",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
package/src/client.ts
CHANGED
|
@@ -753,6 +753,93 @@ export class CreatePostpaidInstanceResponse extends $tea.Model {
|
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
+
export class CreateSM2CertRequest extends $tea.Model {
|
|
757
|
+
certName?: string;
|
|
758
|
+
encryptCertificate?: string;
|
|
759
|
+
encryptPrivateKey?: string;
|
|
760
|
+
instanceId?: string;
|
|
761
|
+
regionId?: string;
|
|
762
|
+
resourceManagerResourceGroupId?: string;
|
|
763
|
+
signCertificate?: string;
|
|
764
|
+
signPrivateKey?: string;
|
|
765
|
+
static names(): { [key: string]: string } {
|
|
766
|
+
return {
|
|
767
|
+
certName: 'CertName',
|
|
768
|
+
encryptCertificate: 'EncryptCertificate',
|
|
769
|
+
encryptPrivateKey: 'EncryptPrivateKey',
|
|
770
|
+
instanceId: 'InstanceId',
|
|
771
|
+
regionId: 'RegionId',
|
|
772
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
773
|
+
signCertificate: 'SignCertificate',
|
|
774
|
+
signPrivateKey: 'SignPrivateKey',
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
static types(): { [key: string]: any } {
|
|
779
|
+
return {
|
|
780
|
+
certName: 'string',
|
|
781
|
+
encryptCertificate: 'string',
|
|
782
|
+
encryptPrivateKey: 'string',
|
|
783
|
+
instanceId: 'string',
|
|
784
|
+
regionId: 'string',
|
|
785
|
+
resourceManagerResourceGroupId: 'string',
|
|
786
|
+
signCertificate: 'string',
|
|
787
|
+
signPrivateKey: 'string',
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
constructor(map?: { [key: string]: any }) {
|
|
792
|
+
super(map);
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
export class CreateSM2CertResponseBody extends $tea.Model {
|
|
797
|
+
certIdentifier?: string;
|
|
798
|
+
requestId?: string;
|
|
799
|
+
static names(): { [key: string]: string } {
|
|
800
|
+
return {
|
|
801
|
+
certIdentifier: 'CertIdentifier',
|
|
802
|
+
requestId: 'RequestId',
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
static types(): { [key: string]: any } {
|
|
807
|
+
return {
|
|
808
|
+
certIdentifier: 'string',
|
|
809
|
+
requestId: 'string',
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
constructor(map?: { [key: string]: any }) {
|
|
814
|
+
super(map);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
export class CreateSM2CertResponse extends $tea.Model {
|
|
819
|
+
headers?: { [key: string]: string };
|
|
820
|
+
statusCode?: number;
|
|
821
|
+
body?: CreateSM2CertResponseBody;
|
|
822
|
+
static names(): { [key: string]: string } {
|
|
823
|
+
return {
|
|
824
|
+
headers: 'headers',
|
|
825
|
+
statusCode: 'statusCode',
|
|
826
|
+
body: 'body',
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
static types(): { [key: string]: any } {
|
|
831
|
+
return {
|
|
832
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
833
|
+
statusCode: 'number',
|
|
834
|
+
body: CreateSM2CertResponseBody,
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
constructor(map?: { [key: string]: any }) {
|
|
839
|
+
super(map);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
|
|
756
843
|
export class DeleteApisecAbnormalRequest extends $tea.Model {
|
|
757
844
|
abnormalId?: string;
|
|
758
845
|
clusterId?: string;
|
|
@@ -2307,6 +2394,78 @@ export class DescribeCloudResourcesResponse extends $tea.Model {
|
|
|
2307
2394
|
}
|
|
2308
2395
|
}
|
|
2309
2396
|
|
|
2397
|
+
export class DescribeDDoSStatusRequest extends $tea.Model {
|
|
2398
|
+
instanceId?: string;
|
|
2399
|
+
regionId?: string;
|
|
2400
|
+
resourceManagerResourceGroupId?: string;
|
|
2401
|
+
static names(): { [key: string]: string } {
|
|
2402
|
+
return {
|
|
2403
|
+
instanceId: 'InstanceId',
|
|
2404
|
+
regionId: 'RegionId',
|
|
2405
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
2406
|
+
};
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
static types(): { [key: string]: any } {
|
|
2410
|
+
return {
|
|
2411
|
+
instanceId: 'string',
|
|
2412
|
+
regionId: 'string',
|
|
2413
|
+
resourceManagerResourceGroupId: 'string',
|
|
2414
|
+
};
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
constructor(map?: { [key: string]: any }) {
|
|
2418
|
+
super(map);
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
export class DescribeDDoSStatusResponseBody extends $tea.Model {
|
|
2423
|
+
DDoSStatus?: DescribeDDoSStatusResponseBodyDDoSStatus[];
|
|
2424
|
+
requestId?: string;
|
|
2425
|
+
static names(): { [key: string]: string } {
|
|
2426
|
+
return {
|
|
2427
|
+
DDoSStatus: 'DDoSStatus',
|
|
2428
|
+
requestId: 'RequestId',
|
|
2429
|
+
};
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
static types(): { [key: string]: any } {
|
|
2433
|
+
return {
|
|
2434
|
+
DDoSStatus: { 'type': 'array', 'itemType': DescribeDDoSStatusResponseBodyDDoSStatus },
|
|
2435
|
+
requestId: 'string',
|
|
2436
|
+
};
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
constructor(map?: { [key: string]: any }) {
|
|
2440
|
+
super(map);
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
export class DescribeDDoSStatusResponse extends $tea.Model {
|
|
2445
|
+
headers?: { [key: string]: string };
|
|
2446
|
+
statusCode?: number;
|
|
2447
|
+
body?: DescribeDDoSStatusResponseBody;
|
|
2448
|
+
static names(): { [key: string]: string } {
|
|
2449
|
+
return {
|
|
2450
|
+
headers: 'headers',
|
|
2451
|
+
statusCode: 'statusCode',
|
|
2452
|
+
body: 'body',
|
|
2453
|
+
};
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
static types(): { [key: string]: any } {
|
|
2457
|
+
return {
|
|
2458
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2459
|
+
statusCode: 'number',
|
|
2460
|
+
body: DescribeDDoSStatusResponseBody,
|
|
2461
|
+
};
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
constructor(map?: { [key: string]: any }) {
|
|
2465
|
+
super(map);
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2310
2469
|
export class DescribeDefenseResourceRequest extends $tea.Model {
|
|
2311
2470
|
instanceId?: string;
|
|
2312
2471
|
regionId?: string;
|
|
@@ -4332,6 +4491,78 @@ export class DescribeMemberAccountsResponse extends $tea.Model {
|
|
|
4332
4491
|
}
|
|
4333
4492
|
}
|
|
4334
4493
|
|
|
4494
|
+
export class DescribePauseProtectionStatusRequest extends $tea.Model {
|
|
4495
|
+
instanceId?: string;
|
|
4496
|
+
regionId?: string;
|
|
4497
|
+
resourceManagerResourceGroupId?: string;
|
|
4498
|
+
static names(): { [key: string]: string } {
|
|
4499
|
+
return {
|
|
4500
|
+
instanceId: 'InstanceId',
|
|
4501
|
+
regionId: 'RegionId',
|
|
4502
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
4503
|
+
};
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4506
|
+
static types(): { [key: string]: any } {
|
|
4507
|
+
return {
|
|
4508
|
+
instanceId: 'string',
|
|
4509
|
+
regionId: 'string',
|
|
4510
|
+
resourceManagerResourceGroupId: 'string',
|
|
4511
|
+
};
|
|
4512
|
+
}
|
|
4513
|
+
|
|
4514
|
+
constructor(map?: { [key: string]: any }) {
|
|
4515
|
+
super(map);
|
|
4516
|
+
}
|
|
4517
|
+
}
|
|
4518
|
+
|
|
4519
|
+
export class DescribePauseProtectionStatusResponseBody extends $tea.Model {
|
|
4520
|
+
pauseStatus?: number;
|
|
4521
|
+
requestId?: string;
|
|
4522
|
+
static names(): { [key: string]: string } {
|
|
4523
|
+
return {
|
|
4524
|
+
pauseStatus: 'PauseStatus',
|
|
4525
|
+
requestId: 'RequestId',
|
|
4526
|
+
};
|
|
4527
|
+
}
|
|
4528
|
+
|
|
4529
|
+
static types(): { [key: string]: any } {
|
|
4530
|
+
return {
|
|
4531
|
+
pauseStatus: 'number',
|
|
4532
|
+
requestId: 'string',
|
|
4533
|
+
};
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4536
|
+
constructor(map?: { [key: string]: any }) {
|
|
4537
|
+
super(map);
|
|
4538
|
+
}
|
|
4539
|
+
}
|
|
4540
|
+
|
|
4541
|
+
export class DescribePauseProtectionStatusResponse extends $tea.Model {
|
|
4542
|
+
headers?: { [key: string]: string };
|
|
4543
|
+
statusCode?: number;
|
|
4544
|
+
body?: DescribePauseProtectionStatusResponseBody;
|
|
4545
|
+
static names(): { [key: string]: string } {
|
|
4546
|
+
return {
|
|
4547
|
+
headers: 'headers',
|
|
4548
|
+
statusCode: 'statusCode',
|
|
4549
|
+
body: 'body',
|
|
4550
|
+
};
|
|
4551
|
+
}
|
|
4552
|
+
|
|
4553
|
+
static types(): { [key: string]: any } {
|
|
4554
|
+
return {
|
|
4555
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4556
|
+
statusCode: 'number',
|
|
4557
|
+
body: DescribePauseProtectionStatusResponseBody,
|
|
4558
|
+
};
|
|
4559
|
+
}
|
|
4560
|
+
|
|
4561
|
+
constructor(map?: { [key: string]: any }) {
|
|
4562
|
+
super(map);
|
|
4563
|
+
}
|
|
4564
|
+
}
|
|
4565
|
+
|
|
4335
4566
|
export class DescribePeakTrendRequest extends $tea.Model {
|
|
4336
4567
|
endTimestamp?: string;
|
|
4337
4568
|
instanceId?: string;
|
|
@@ -7762,6 +7993,78 @@ export class ModifyMemberAccountResponse extends $tea.Model {
|
|
|
7762
7993
|
}
|
|
7763
7994
|
}
|
|
7764
7995
|
|
|
7996
|
+
export class ModifyPauseProtectionStatusRequest extends $tea.Model {
|
|
7997
|
+
instanceId?: string;
|
|
7998
|
+
pauseStatus?: number;
|
|
7999
|
+
regionId?: string;
|
|
8000
|
+
resourceManagerResourceGroupId?: string;
|
|
8001
|
+
static names(): { [key: string]: string } {
|
|
8002
|
+
return {
|
|
8003
|
+
instanceId: 'InstanceId',
|
|
8004
|
+
pauseStatus: 'PauseStatus',
|
|
8005
|
+
regionId: 'RegionId',
|
|
8006
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
8007
|
+
};
|
|
8008
|
+
}
|
|
8009
|
+
|
|
8010
|
+
static types(): { [key: string]: any } {
|
|
8011
|
+
return {
|
|
8012
|
+
instanceId: 'string',
|
|
8013
|
+
pauseStatus: 'number',
|
|
8014
|
+
regionId: 'string',
|
|
8015
|
+
resourceManagerResourceGroupId: 'string',
|
|
8016
|
+
};
|
|
8017
|
+
}
|
|
8018
|
+
|
|
8019
|
+
constructor(map?: { [key: string]: any }) {
|
|
8020
|
+
super(map);
|
|
8021
|
+
}
|
|
8022
|
+
}
|
|
8023
|
+
|
|
8024
|
+
export class ModifyPauseProtectionStatusResponseBody extends $tea.Model {
|
|
8025
|
+
requestId?: string;
|
|
8026
|
+
static names(): { [key: string]: string } {
|
|
8027
|
+
return {
|
|
8028
|
+
requestId: 'RequestId',
|
|
8029
|
+
};
|
|
8030
|
+
}
|
|
8031
|
+
|
|
8032
|
+
static types(): { [key: string]: any } {
|
|
8033
|
+
return {
|
|
8034
|
+
requestId: 'string',
|
|
8035
|
+
};
|
|
8036
|
+
}
|
|
8037
|
+
|
|
8038
|
+
constructor(map?: { [key: string]: any }) {
|
|
8039
|
+
super(map);
|
|
8040
|
+
}
|
|
8041
|
+
}
|
|
8042
|
+
|
|
8043
|
+
export class ModifyPauseProtectionStatusResponse extends $tea.Model {
|
|
8044
|
+
headers?: { [key: string]: string };
|
|
8045
|
+
statusCode?: number;
|
|
8046
|
+
body?: ModifyPauseProtectionStatusResponseBody;
|
|
8047
|
+
static names(): { [key: string]: string } {
|
|
8048
|
+
return {
|
|
8049
|
+
headers: 'headers',
|
|
8050
|
+
statusCode: 'statusCode',
|
|
8051
|
+
body: 'body',
|
|
8052
|
+
};
|
|
8053
|
+
}
|
|
8054
|
+
|
|
8055
|
+
static types(): { [key: string]: any } {
|
|
8056
|
+
return {
|
|
8057
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8058
|
+
statusCode: 'number',
|
|
8059
|
+
body: ModifyPauseProtectionStatusResponseBody,
|
|
8060
|
+
};
|
|
8061
|
+
}
|
|
8062
|
+
|
|
8063
|
+
constructor(map?: { [key: string]: any }) {
|
|
8064
|
+
super(map);
|
|
8065
|
+
}
|
|
8066
|
+
}
|
|
8067
|
+
|
|
7765
8068
|
export class ModifyResourceLogStatusRequest extends $tea.Model {
|
|
7766
8069
|
instanceId?: string;
|
|
7767
8070
|
regionId?: string;
|
|
@@ -8584,6 +8887,28 @@ export class DescribeCloudResourcesResponseBodyCloudResources extends $tea.Model
|
|
|
8584
8887
|
}
|
|
8585
8888
|
}
|
|
8586
8889
|
|
|
8890
|
+
export class DescribeDDoSStatusResponseBodyDDoSStatus extends $tea.Model {
|
|
8891
|
+
eventType?: string;
|
|
8892
|
+
status?: string;
|
|
8893
|
+
static names(): { [key: string]: string } {
|
|
8894
|
+
return {
|
|
8895
|
+
eventType: 'EventType',
|
|
8896
|
+
status: 'Status',
|
|
8897
|
+
};
|
|
8898
|
+
}
|
|
8899
|
+
|
|
8900
|
+
static types(): { [key: string]: any } {
|
|
8901
|
+
return {
|
|
8902
|
+
eventType: 'string',
|
|
8903
|
+
status: 'string',
|
|
8904
|
+
};
|
|
8905
|
+
}
|
|
8906
|
+
|
|
8907
|
+
constructor(map?: { [key: string]: any }) {
|
|
8908
|
+
super(map);
|
|
8909
|
+
}
|
|
8910
|
+
}
|
|
8911
|
+
|
|
8587
8912
|
export class DescribeDefenseResourceResponseBodyResource extends $tea.Model {
|
|
8588
8913
|
acwCookieStatus?: number;
|
|
8589
8914
|
acwSecureStatus?: number;
|
|
@@ -11357,6 +11682,76 @@ export default class Client extends OpenApi {
|
|
|
11357
11682
|
return await this.createPostpaidInstanceWithOptions(request, runtime);
|
|
11358
11683
|
}
|
|
11359
11684
|
|
|
11685
|
+
/**
|
|
11686
|
+
* @summary 上传国密证书
|
|
11687
|
+
*
|
|
11688
|
+
* @param request CreateSM2CertRequest
|
|
11689
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
11690
|
+
* @return CreateSM2CertResponse
|
|
11691
|
+
*/
|
|
11692
|
+
async createSM2CertWithOptions(request: CreateSM2CertRequest, runtime: $Util.RuntimeOptions): Promise<CreateSM2CertResponse> {
|
|
11693
|
+
Util.validateModel(request);
|
|
11694
|
+
let query = { };
|
|
11695
|
+
if (!Util.isUnset(request.certName)) {
|
|
11696
|
+
query["CertName"] = request.certName;
|
|
11697
|
+
}
|
|
11698
|
+
|
|
11699
|
+
if (!Util.isUnset(request.encryptCertificate)) {
|
|
11700
|
+
query["EncryptCertificate"] = request.encryptCertificate;
|
|
11701
|
+
}
|
|
11702
|
+
|
|
11703
|
+
if (!Util.isUnset(request.encryptPrivateKey)) {
|
|
11704
|
+
query["EncryptPrivateKey"] = request.encryptPrivateKey;
|
|
11705
|
+
}
|
|
11706
|
+
|
|
11707
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
11708
|
+
query["InstanceId"] = request.instanceId;
|
|
11709
|
+
}
|
|
11710
|
+
|
|
11711
|
+
if (!Util.isUnset(request.regionId)) {
|
|
11712
|
+
query["RegionId"] = request.regionId;
|
|
11713
|
+
}
|
|
11714
|
+
|
|
11715
|
+
if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
|
|
11716
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
11717
|
+
}
|
|
11718
|
+
|
|
11719
|
+
if (!Util.isUnset(request.signCertificate)) {
|
|
11720
|
+
query["SignCertificate"] = request.signCertificate;
|
|
11721
|
+
}
|
|
11722
|
+
|
|
11723
|
+
if (!Util.isUnset(request.signPrivateKey)) {
|
|
11724
|
+
query["SignPrivateKey"] = request.signPrivateKey;
|
|
11725
|
+
}
|
|
11726
|
+
|
|
11727
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11728
|
+
query: OpenApiUtil.query(query),
|
|
11729
|
+
});
|
|
11730
|
+
let params = new $OpenApi.Params({
|
|
11731
|
+
action: "CreateSM2Cert",
|
|
11732
|
+
version: "2021-10-01",
|
|
11733
|
+
protocol: "HTTPS",
|
|
11734
|
+
pathname: "/",
|
|
11735
|
+
method: "POST",
|
|
11736
|
+
authType: "AK",
|
|
11737
|
+
style: "RPC",
|
|
11738
|
+
reqBodyType: "formData",
|
|
11739
|
+
bodyType: "json",
|
|
11740
|
+
});
|
|
11741
|
+
return $tea.cast<CreateSM2CertResponse>(await this.callApi(params, req, runtime), new CreateSM2CertResponse({}));
|
|
11742
|
+
}
|
|
11743
|
+
|
|
11744
|
+
/**
|
|
11745
|
+
* @summary 上传国密证书
|
|
11746
|
+
*
|
|
11747
|
+
* @param request CreateSM2CertRequest
|
|
11748
|
+
* @return CreateSM2CertResponse
|
|
11749
|
+
*/
|
|
11750
|
+
async createSM2Cert(request: CreateSM2CertRequest): Promise<CreateSM2CertResponse> {
|
|
11751
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11752
|
+
return await this.createSM2CertWithOptions(request, runtime);
|
|
11753
|
+
}
|
|
11754
|
+
|
|
11360
11755
|
/**
|
|
11361
11756
|
* @summary 删除API安全风险
|
|
11362
11757
|
*
|
|
@@ -12098,7 +12493,7 @@ export default class Client extends OpenApi {
|
|
|
12098
12493
|
}
|
|
12099
12494
|
|
|
12100
12495
|
/**
|
|
12101
|
-
* @summary
|
|
12496
|
+
* @summary Queries the configurations of API security log subscription.
|
|
12102
12497
|
*
|
|
12103
12498
|
* @param request DescribeApisecLogDeliveriesRequest
|
|
12104
12499
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -12137,7 +12532,7 @@ export default class Client extends OpenApi {
|
|
|
12137
12532
|
}
|
|
12138
12533
|
|
|
12139
12534
|
/**
|
|
12140
|
-
* @summary
|
|
12535
|
+
* @summary Queries the configurations of API security log subscription.
|
|
12141
12536
|
*
|
|
12142
12537
|
* @param request DescribeApisecLogDeliveriesRequest
|
|
12143
12538
|
* @return DescribeApisecLogDeliveriesResponse
|
|
@@ -12230,7 +12625,7 @@ export default class Client extends OpenApi {
|
|
|
12230
12625
|
}
|
|
12231
12626
|
|
|
12232
12627
|
/**
|
|
12233
|
-
* @summary
|
|
12628
|
+
* @summary Queries the Logstores whose names start with apisec- in Simple Log Service.
|
|
12234
12629
|
*
|
|
12235
12630
|
* @param request DescribeApisecSlsLogStoresRequest
|
|
12236
12631
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -12277,7 +12672,7 @@ export default class Client extends OpenApi {
|
|
|
12277
12672
|
}
|
|
12278
12673
|
|
|
12279
12674
|
/**
|
|
12280
|
-
* @summary
|
|
12675
|
+
* @summary Queries the Logstores whose names start with apisec- in Simple Log Service.
|
|
12281
12676
|
*
|
|
12282
12677
|
* @param request DescribeApisecSlsLogStoresRequest
|
|
12283
12678
|
* @return DescribeApisecSlsLogStoresResponse
|
|
@@ -12288,7 +12683,7 @@ export default class Client extends OpenApi {
|
|
|
12288
12683
|
}
|
|
12289
12684
|
|
|
12290
12685
|
/**
|
|
12291
|
-
* @summary
|
|
12686
|
+
* @summary Queries the projects whose names start with apisec- in Simple Log Service.
|
|
12292
12687
|
*
|
|
12293
12688
|
* @param request DescribeApisecSlsProjectsRequest
|
|
12294
12689
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -12331,7 +12726,7 @@ export default class Client extends OpenApi {
|
|
|
12331
12726
|
}
|
|
12332
12727
|
|
|
12333
12728
|
/**
|
|
12334
|
-
* @summary
|
|
12729
|
+
* @summary Queries the projects whose names start with apisec- in Simple Log Service.
|
|
12335
12730
|
*
|
|
12336
12731
|
* @param request DescribeApisecSlsProjectsRequest
|
|
12337
12732
|
* @return DescribeApisecSlsProjectsResponse
|
|
@@ -12551,6 +12946,56 @@ export default class Client extends OpenApi {
|
|
|
12551
12946
|
return await this.describeCloudResourcesWithOptions(request, runtime);
|
|
12552
12947
|
}
|
|
12553
12948
|
|
|
12949
|
+
/**
|
|
12950
|
+
* @summary Checks whether DDoS attacks occur on specific domain names protected by a Web Application Firewall (WAF) instance.
|
|
12951
|
+
*
|
|
12952
|
+
* @param request DescribeDDoSStatusRequest
|
|
12953
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
12954
|
+
* @return DescribeDDoSStatusResponse
|
|
12955
|
+
*/
|
|
12956
|
+
async describeDDoSStatusWithOptions(request: DescribeDDoSStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDDoSStatusResponse> {
|
|
12957
|
+
Util.validateModel(request);
|
|
12958
|
+
let query = { };
|
|
12959
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
12960
|
+
query["InstanceId"] = request.instanceId;
|
|
12961
|
+
}
|
|
12962
|
+
|
|
12963
|
+
if (!Util.isUnset(request.regionId)) {
|
|
12964
|
+
query["RegionId"] = request.regionId;
|
|
12965
|
+
}
|
|
12966
|
+
|
|
12967
|
+
if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
|
|
12968
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
12969
|
+
}
|
|
12970
|
+
|
|
12971
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12972
|
+
query: OpenApiUtil.query(query),
|
|
12973
|
+
});
|
|
12974
|
+
let params = new $OpenApi.Params({
|
|
12975
|
+
action: "DescribeDDoSStatus",
|
|
12976
|
+
version: "2021-10-01",
|
|
12977
|
+
protocol: "HTTPS",
|
|
12978
|
+
pathname: "/",
|
|
12979
|
+
method: "POST",
|
|
12980
|
+
authType: "AK",
|
|
12981
|
+
style: "RPC",
|
|
12982
|
+
reqBodyType: "formData",
|
|
12983
|
+
bodyType: "json",
|
|
12984
|
+
});
|
|
12985
|
+
return $tea.cast<DescribeDDoSStatusResponse>(await this.callApi(params, req, runtime), new DescribeDDoSStatusResponse({}));
|
|
12986
|
+
}
|
|
12987
|
+
|
|
12988
|
+
/**
|
|
12989
|
+
* @summary Checks whether DDoS attacks occur on specific domain names protected by a Web Application Firewall (WAF) instance.
|
|
12990
|
+
*
|
|
12991
|
+
* @param request DescribeDDoSStatusRequest
|
|
12992
|
+
* @return DescribeDDoSStatusResponse
|
|
12993
|
+
*/
|
|
12994
|
+
async describeDDoSStatus(request: DescribeDDoSStatusRequest): Promise<DescribeDDoSStatusResponse> {
|
|
12995
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
12996
|
+
return await this.describeDDoSStatusWithOptions(request, runtime);
|
|
12997
|
+
}
|
|
12998
|
+
|
|
12554
12999
|
/**
|
|
12555
13000
|
* @summary Queries the information about a protected object.
|
|
12556
13001
|
*
|
|
@@ -14043,6 +14488,56 @@ export default class Client extends OpenApi {
|
|
|
14043
14488
|
return await this.describeMemberAccountsWithOptions(request, runtime);
|
|
14044
14489
|
}
|
|
14045
14490
|
|
|
14491
|
+
/**
|
|
14492
|
+
* @summary 获取用户暂停防护状态
|
|
14493
|
+
*
|
|
14494
|
+
* @param request DescribePauseProtectionStatusRequest
|
|
14495
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14496
|
+
* @return DescribePauseProtectionStatusResponse
|
|
14497
|
+
*/
|
|
14498
|
+
async describePauseProtectionStatusWithOptions(request: DescribePauseProtectionStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribePauseProtectionStatusResponse> {
|
|
14499
|
+
Util.validateModel(request);
|
|
14500
|
+
let query = { };
|
|
14501
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
14502
|
+
query["InstanceId"] = request.instanceId;
|
|
14503
|
+
}
|
|
14504
|
+
|
|
14505
|
+
if (!Util.isUnset(request.regionId)) {
|
|
14506
|
+
query["RegionId"] = request.regionId;
|
|
14507
|
+
}
|
|
14508
|
+
|
|
14509
|
+
if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
|
|
14510
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
14511
|
+
}
|
|
14512
|
+
|
|
14513
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14514
|
+
query: OpenApiUtil.query(query),
|
|
14515
|
+
});
|
|
14516
|
+
let params = new $OpenApi.Params({
|
|
14517
|
+
action: "DescribePauseProtectionStatus",
|
|
14518
|
+
version: "2021-10-01",
|
|
14519
|
+
protocol: "HTTPS",
|
|
14520
|
+
pathname: "/",
|
|
14521
|
+
method: "POST",
|
|
14522
|
+
authType: "AK",
|
|
14523
|
+
style: "RPC",
|
|
14524
|
+
reqBodyType: "formData",
|
|
14525
|
+
bodyType: "json",
|
|
14526
|
+
});
|
|
14527
|
+
return $tea.cast<DescribePauseProtectionStatusResponse>(await this.callApi(params, req, runtime), new DescribePauseProtectionStatusResponse({}));
|
|
14528
|
+
}
|
|
14529
|
+
|
|
14530
|
+
/**
|
|
14531
|
+
* @summary 获取用户暂停防护状态
|
|
14532
|
+
*
|
|
14533
|
+
* @param request DescribePauseProtectionStatusRequest
|
|
14534
|
+
* @return DescribePauseProtectionStatusResponse
|
|
14535
|
+
*/
|
|
14536
|
+
async describePauseProtectionStatus(request: DescribePauseProtectionStatusRequest): Promise<DescribePauseProtectionStatusResponse> {
|
|
14537
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14538
|
+
return await this.describePauseProtectionStatusWithOptions(request, runtime);
|
|
14539
|
+
}
|
|
14540
|
+
|
|
14046
14541
|
/**
|
|
14047
14542
|
* @summary Queries the queries per second (QPS) statistics of a WAF instance.
|
|
14048
14543
|
*
|
|
@@ -15734,7 +16229,7 @@ export default class Client extends OpenApi {
|
|
|
15734
16229
|
}
|
|
15735
16230
|
|
|
15736
16231
|
/**
|
|
15737
|
-
* @summary
|
|
16232
|
+
* @summary Modifies the configurations of API security log subscription.
|
|
15738
16233
|
*
|
|
15739
16234
|
* @param request ModifyApisecLogDeliveryRequest
|
|
15740
16235
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -15789,7 +16284,7 @@ export default class Client extends OpenApi {
|
|
|
15789
16284
|
}
|
|
15790
16285
|
|
|
15791
16286
|
/**
|
|
15792
|
-
* @summary
|
|
16287
|
+
* @summary Modifies the configurations of API security log subscription.
|
|
15793
16288
|
*
|
|
15794
16289
|
* @param request ModifyApisecLogDeliveryRequest
|
|
15795
16290
|
* @return ModifyApisecLogDeliveryResponse
|
|
@@ -15800,7 +16295,7 @@ export default class Client extends OpenApi {
|
|
|
15800
16295
|
}
|
|
15801
16296
|
|
|
15802
16297
|
/**
|
|
15803
|
-
* @summary
|
|
16298
|
+
* @summary Modifies the status of API security log subscription.
|
|
15804
16299
|
*
|
|
15805
16300
|
* @param request ModifyApisecLogDeliveryStatusRequest
|
|
15806
16301
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -15847,7 +16342,7 @@ export default class Client extends OpenApi {
|
|
|
15847
16342
|
}
|
|
15848
16343
|
|
|
15849
16344
|
/**
|
|
15850
|
-
* @summary
|
|
16345
|
+
* @summary Modifies the status of API security log subscription.
|
|
15851
16346
|
*
|
|
15852
16347
|
* @param request ModifyApisecLogDeliveryStatusRequest
|
|
15853
16348
|
* @return ModifyApisecLogDeliveryStatusResponse
|
|
@@ -16607,6 +17102,60 @@ export default class Client extends OpenApi {
|
|
|
16607
17102
|
return await this.modifyMemberAccountWithOptions(request, runtime);
|
|
16608
17103
|
}
|
|
16609
17104
|
|
|
17105
|
+
/**
|
|
17106
|
+
* @summary 修改用户暂停防护状态
|
|
17107
|
+
*
|
|
17108
|
+
* @param request ModifyPauseProtectionStatusRequest
|
|
17109
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17110
|
+
* @return ModifyPauseProtectionStatusResponse
|
|
17111
|
+
*/
|
|
17112
|
+
async modifyPauseProtectionStatusWithOptions(request: ModifyPauseProtectionStatusRequest, runtime: $Util.RuntimeOptions): Promise<ModifyPauseProtectionStatusResponse> {
|
|
17113
|
+
Util.validateModel(request);
|
|
17114
|
+
let query = { };
|
|
17115
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
17116
|
+
query["InstanceId"] = request.instanceId;
|
|
17117
|
+
}
|
|
17118
|
+
|
|
17119
|
+
if (!Util.isUnset(request.pauseStatus)) {
|
|
17120
|
+
query["PauseStatus"] = request.pauseStatus;
|
|
17121
|
+
}
|
|
17122
|
+
|
|
17123
|
+
if (!Util.isUnset(request.regionId)) {
|
|
17124
|
+
query["RegionId"] = request.regionId;
|
|
17125
|
+
}
|
|
17126
|
+
|
|
17127
|
+
if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
|
|
17128
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
17129
|
+
}
|
|
17130
|
+
|
|
17131
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
17132
|
+
query: OpenApiUtil.query(query),
|
|
17133
|
+
});
|
|
17134
|
+
let params = new $OpenApi.Params({
|
|
17135
|
+
action: "ModifyPauseProtectionStatus",
|
|
17136
|
+
version: "2021-10-01",
|
|
17137
|
+
protocol: "HTTPS",
|
|
17138
|
+
pathname: "/",
|
|
17139
|
+
method: "POST",
|
|
17140
|
+
authType: "AK",
|
|
17141
|
+
style: "RPC",
|
|
17142
|
+
reqBodyType: "formData",
|
|
17143
|
+
bodyType: "json",
|
|
17144
|
+
});
|
|
17145
|
+
return $tea.cast<ModifyPauseProtectionStatusResponse>(await this.callApi(params, req, runtime), new ModifyPauseProtectionStatusResponse({}));
|
|
17146
|
+
}
|
|
17147
|
+
|
|
17148
|
+
/**
|
|
17149
|
+
* @summary 修改用户暂停防护状态
|
|
17150
|
+
*
|
|
17151
|
+
* @param request ModifyPauseProtectionStatusRequest
|
|
17152
|
+
* @return ModifyPauseProtectionStatusResponse
|
|
17153
|
+
*/
|
|
17154
|
+
async modifyPauseProtectionStatus(request: ModifyPauseProtectionStatusRequest): Promise<ModifyPauseProtectionStatusResponse> {
|
|
17155
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17156
|
+
return await this.modifyPauseProtectionStatusWithOptions(request, runtime);
|
|
17157
|
+
}
|
|
17158
|
+
|
|
16610
17159
|
/**
|
|
16611
17160
|
* @summary Enables or disables the log collection feature for a protected object.
|
|
16612
17161
|
*
|