@alicloud/waf-openapi20211001 3.1.0 → 3.3.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 +201 -10
- package/dist/client.js +368 -18
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +430 -10
package/package.json
CHANGED
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;
|
|
@@ -8068,6 +8227,75 @@ export class ModifyTemplateResourcesResponse extends $tea.Model {
|
|
|
8068
8227
|
}
|
|
8069
8228
|
}
|
|
8070
8229
|
|
|
8230
|
+
export class ReleaseInstanceRequest extends $tea.Model {
|
|
8231
|
+
instanceId?: string;
|
|
8232
|
+
regionId?: string;
|
|
8233
|
+
resourceManagerResourceGroupId?: string;
|
|
8234
|
+
static names(): { [key: string]: string } {
|
|
8235
|
+
return {
|
|
8236
|
+
instanceId: 'InstanceId',
|
|
8237
|
+
regionId: 'RegionId',
|
|
8238
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
8239
|
+
};
|
|
8240
|
+
}
|
|
8241
|
+
|
|
8242
|
+
static types(): { [key: string]: any } {
|
|
8243
|
+
return {
|
|
8244
|
+
instanceId: 'string',
|
|
8245
|
+
regionId: 'string',
|
|
8246
|
+
resourceManagerResourceGroupId: 'string',
|
|
8247
|
+
};
|
|
8248
|
+
}
|
|
8249
|
+
|
|
8250
|
+
constructor(map?: { [key: string]: any }) {
|
|
8251
|
+
super(map);
|
|
8252
|
+
}
|
|
8253
|
+
}
|
|
8254
|
+
|
|
8255
|
+
export class ReleaseInstanceResponseBody extends $tea.Model {
|
|
8256
|
+
requestId?: string;
|
|
8257
|
+
static names(): { [key: string]: string } {
|
|
8258
|
+
return {
|
|
8259
|
+
requestId: 'RequestId',
|
|
8260
|
+
};
|
|
8261
|
+
}
|
|
8262
|
+
|
|
8263
|
+
static types(): { [key: string]: any } {
|
|
8264
|
+
return {
|
|
8265
|
+
requestId: 'string',
|
|
8266
|
+
};
|
|
8267
|
+
}
|
|
8268
|
+
|
|
8269
|
+
constructor(map?: { [key: string]: any }) {
|
|
8270
|
+
super(map);
|
|
8271
|
+
}
|
|
8272
|
+
}
|
|
8273
|
+
|
|
8274
|
+
export class ReleaseInstanceResponse extends $tea.Model {
|
|
8275
|
+
headers?: { [key: string]: string };
|
|
8276
|
+
statusCode?: number;
|
|
8277
|
+
body?: ReleaseInstanceResponseBody;
|
|
8278
|
+
static names(): { [key: string]: string } {
|
|
8279
|
+
return {
|
|
8280
|
+
headers: 'headers',
|
|
8281
|
+
statusCode: 'statusCode',
|
|
8282
|
+
body: 'body',
|
|
8283
|
+
};
|
|
8284
|
+
}
|
|
8285
|
+
|
|
8286
|
+
static types(): { [key: string]: any } {
|
|
8287
|
+
return {
|
|
8288
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8289
|
+
statusCode: 'number',
|
|
8290
|
+
body: ReleaseInstanceResponseBody,
|
|
8291
|
+
};
|
|
8292
|
+
}
|
|
8293
|
+
|
|
8294
|
+
constructor(map?: { [key: string]: any }) {
|
|
8295
|
+
super(map);
|
|
8296
|
+
}
|
|
8297
|
+
}
|
|
8298
|
+
|
|
8071
8299
|
export class SyncProductInstanceRequest extends $tea.Model {
|
|
8072
8300
|
instanceId?: string;
|
|
8073
8301
|
regionId?: string;
|
|
@@ -8728,6 +8956,28 @@ export class DescribeCloudResourcesResponseBodyCloudResources extends $tea.Model
|
|
|
8728
8956
|
}
|
|
8729
8957
|
}
|
|
8730
8958
|
|
|
8959
|
+
export class DescribeDDoSStatusResponseBodyDDoSStatus extends $tea.Model {
|
|
8960
|
+
eventType?: string;
|
|
8961
|
+
status?: string;
|
|
8962
|
+
static names(): { [key: string]: string } {
|
|
8963
|
+
return {
|
|
8964
|
+
eventType: 'EventType',
|
|
8965
|
+
status: 'Status',
|
|
8966
|
+
};
|
|
8967
|
+
}
|
|
8968
|
+
|
|
8969
|
+
static types(): { [key: string]: any } {
|
|
8970
|
+
return {
|
|
8971
|
+
eventType: 'string',
|
|
8972
|
+
status: 'string',
|
|
8973
|
+
};
|
|
8974
|
+
}
|
|
8975
|
+
|
|
8976
|
+
constructor(map?: { [key: string]: any }) {
|
|
8977
|
+
super(map);
|
|
8978
|
+
}
|
|
8979
|
+
}
|
|
8980
|
+
|
|
8731
8981
|
export class DescribeDefenseResourceResponseBodyResource extends $tea.Model {
|
|
8732
8982
|
acwCookieStatus?: number;
|
|
8733
8983
|
acwSecureStatus?: number;
|
|
@@ -11501,6 +11751,76 @@ export default class Client extends OpenApi {
|
|
|
11501
11751
|
return await this.createPostpaidInstanceWithOptions(request, runtime);
|
|
11502
11752
|
}
|
|
11503
11753
|
|
|
11754
|
+
/**
|
|
11755
|
+
* @summary Uploads a ShangMi (SM) certificate for a domain name that is added to Web Application Firewall (WAF) in CNAME record mode.
|
|
11756
|
+
*
|
|
11757
|
+
* @param request CreateSM2CertRequest
|
|
11758
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
11759
|
+
* @return CreateSM2CertResponse
|
|
11760
|
+
*/
|
|
11761
|
+
async createSM2CertWithOptions(request: CreateSM2CertRequest, runtime: $Util.RuntimeOptions): Promise<CreateSM2CertResponse> {
|
|
11762
|
+
Util.validateModel(request);
|
|
11763
|
+
let query = { };
|
|
11764
|
+
if (!Util.isUnset(request.certName)) {
|
|
11765
|
+
query["CertName"] = request.certName;
|
|
11766
|
+
}
|
|
11767
|
+
|
|
11768
|
+
if (!Util.isUnset(request.encryptCertificate)) {
|
|
11769
|
+
query["EncryptCertificate"] = request.encryptCertificate;
|
|
11770
|
+
}
|
|
11771
|
+
|
|
11772
|
+
if (!Util.isUnset(request.encryptPrivateKey)) {
|
|
11773
|
+
query["EncryptPrivateKey"] = request.encryptPrivateKey;
|
|
11774
|
+
}
|
|
11775
|
+
|
|
11776
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
11777
|
+
query["InstanceId"] = request.instanceId;
|
|
11778
|
+
}
|
|
11779
|
+
|
|
11780
|
+
if (!Util.isUnset(request.regionId)) {
|
|
11781
|
+
query["RegionId"] = request.regionId;
|
|
11782
|
+
}
|
|
11783
|
+
|
|
11784
|
+
if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
|
|
11785
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
11786
|
+
}
|
|
11787
|
+
|
|
11788
|
+
if (!Util.isUnset(request.signCertificate)) {
|
|
11789
|
+
query["SignCertificate"] = request.signCertificate;
|
|
11790
|
+
}
|
|
11791
|
+
|
|
11792
|
+
if (!Util.isUnset(request.signPrivateKey)) {
|
|
11793
|
+
query["SignPrivateKey"] = request.signPrivateKey;
|
|
11794
|
+
}
|
|
11795
|
+
|
|
11796
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11797
|
+
query: OpenApiUtil.query(query),
|
|
11798
|
+
});
|
|
11799
|
+
let params = new $OpenApi.Params({
|
|
11800
|
+
action: "CreateSM2Cert",
|
|
11801
|
+
version: "2021-10-01",
|
|
11802
|
+
protocol: "HTTPS",
|
|
11803
|
+
pathname: "/",
|
|
11804
|
+
method: "POST",
|
|
11805
|
+
authType: "AK",
|
|
11806
|
+
style: "RPC",
|
|
11807
|
+
reqBodyType: "formData",
|
|
11808
|
+
bodyType: "json",
|
|
11809
|
+
});
|
|
11810
|
+
return $tea.cast<CreateSM2CertResponse>(await this.callApi(params, req, runtime), new CreateSM2CertResponse({}));
|
|
11811
|
+
}
|
|
11812
|
+
|
|
11813
|
+
/**
|
|
11814
|
+
* @summary Uploads a ShangMi (SM) certificate for a domain name that is added to Web Application Firewall (WAF) in CNAME record mode.
|
|
11815
|
+
*
|
|
11816
|
+
* @param request CreateSM2CertRequest
|
|
11817
|
+
* @return CreateSM2CertResponse
|
|
11818
|
+
*/
|
|
11819
|
+
async createSM2Cert(request: CreateSM2CertRequest): Promise<CreateSM2CertResponse> {
|
|
11820
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11821
|
+
return await this.createSM2CertWithOptions(request, runtime);
|
|
11822
|
+
}
|
|
11823
|
+
|
|
11504
11824
|
/**
|
|
11505
11825
|
* @summary 删除API安全风险
|
|
11506
11826
|
*
|
|
@@ -12242,7 +12562,7 @@ export default class Client extends OpenApi {
|
|
|
12242
12562
|
}
|
|
12243
12563
|
|
|
12244
12564
|
/**
|
|
12245
|
-
* @summary
|
|
12565
|
+
* @summary Queries the configurations of API security log subscription.
|
|
12246
12566
|
*
|
|
12247
12567
|
* @param request DescribeApisecLogDeliveriesRequest
|
|
12248
12568
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -12281,7 +12601,7 @@ export default class Client extends OpenApi {
|
|
|
12281
12601
|
}
|
|
12282
12602
|
|
|
12283
12603
|
/**
|
|
12284
|
-
* @summary
|
|
12604
|
+
* @summary Queries the configurations of API security log subscription.
|
|
12285
12605
|
*
|
|
12286
12606
|
* @param request DescribeApisecLogDeliveriesRequest
|
|
12287
12607
|
* @return DescribeApisecLogDeliveriesResponse
|
|
@@ -12374,7 +12694,7 @@ export default class Client extends OpenApi {
|
|
|
12374
12694
|
}
|
|
12375
12695
|
|
|
12376
12696
|
/**
|
|
12377
|
-
* @summary
|
|
12697
|
+
* @summary Queries the Logstores whose names start with apisec- in Simple Log Service.
|
|
12378
12698
|
*
|
|
12379
12699
|
* @param request DescribeApisecSlsLogStoresRequest
|
|
12380
12700
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -12421,7 +12741,7 @@ export default class Client extends OpenApi {
|
|
|
12421
12741
|
}
|
|
12422
12742
|
|
|
12423
12743
|
/**
|
|
12424
|
-
* @summary
|
|
12744
|
+
* @summary Queries the Logstores whose names start with apisec- in Simple Log Service.
|
|
12425
12745
|
*
|
|
12426
12746
|
* @param request DescribeApisecSlsLogStoresRequest
|
|
12427
12747
|
* @return DescribeApisecSlsLogStoresResponse
|
|
@@ -12432,7 +12752,7 @@ export default class Client extends OpenApi {
|
|
|
12432
12752
|
}
|
|
12433
12753
|
|
|
12434
12754
|
/**
|
|
12435
|
-
* @summary
|
|
12755
|
+
* @summary Queries the projects whose names start with apisec- in Simple Log Service.
|
|
12436
12756
|
*
|
|
12437
12757
|
* @param request DescribeApisecSlsProjectsRequest
|
|
12438
12758
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -12475,7 +12795,7 @@ export default class Client extends OpenApi {
|
|
|
12475
12795
|
}
|
|
12476
12796
|
|
|
12477
12797
|
/**
|
|
12478
|
-
* @summary
|
|
12798
|
+
* @summary Queries the projects whose names start with apisec- in Simple Log Service.
|
|
12479
12799
|
*
|
|
12480
12800
|
* @param request DescribeApisecSlsProjectsRequest
|
|
12481
12801
|
* @return DescribeApisecSlsProjectsResponse
|
|
@@ -12695,6 +13015,56 @@ export default class Client extends OpenApi {
|
|
|
12695
13015
|
return await this.describeCloudResourcesWithOptions(request, runtime);
|
|
12696
13016
|
}
|
|
12697
13017
|
|
|
13018
|
+
/**
|
|
13019
|
+
* @summary Checks whether DDoS attacks occur on specific domain names protected by a Web Application Firewall (WAF) instance.
|
|
13020
|
+
*
|
|
13021
|
+
* @param request DescribeDDoSStatusRequest
|
|
13022
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
13023
|
+
* @return DescribeDDoSStatusResponse
|
|
13024
|
+
*/
|
|
13025
|
+
async describeDDoSStatusWithOptions(request: DescribeDDoSStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDDoSStatusResponse> {
|
|
13026
|
+
Util.validateModel(request);
|
|
13027
|
+
let query = { };
|
|
13028
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
13029
|
+
query["InstanceId"] = request.instanceId;
|
|
13030
|
+
}
|
|
13031
|
+
|
|
13032
|
+
if (!Util.isUnset(request.regionId)) {
|
|
13033
|
+
query["RegionId"] = request.regionId;
|
|
13034
|
+
}
|
|
13035
|
+
|
|
13036
|
+
if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
|
|
13037
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
13038
|
+
}
|
|
13039
|
+
|
|
13040
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13041
|
+
query: OpenApiUtil.query(query),
|
|
13042
|
+
});
|
|
13043
|
+
let params = new $OpenApi.Params({
|
|
13044
|
+
action: "DescribeDDoSStatus",
|
|
13045
|
+
version: "2021-10-01",
|
|
13046
|
+
protocol: "HTTPS",
|
|
13047
|
+
pathname: "/",
|
|
13048
|
+
method: "POST",
|
|
13049
|
+
authType: "AK",
|
|
13050
|
+
style: "RPC",
|
|
13051
|
+
reqBodyType: "formData",
|
|
13052
|
+
bodyType: "json",
|
|
13053
|
+
});
|
|
13054
|
+
return $tea.cast<DescribeDDoSStatusResponse>(await this.callApi(params, req, runtime), new DescribeDDoSStatusResponse({}));
|
|
13055
|
+
}
|
|
13056
|
+
|
|
13057
|
+
/**
|
|
13058
|
+
* @summary Checks whether DDoS attacks occur on specific domain names protected by a Web Application Firewall (WAF) instance.
|
|
13059
|
+
*
|
|
13060
|
+
* @param request DescribeDDoSStatusRequest
|
|
13061
|
+
* @return DescribeDDoSStatusResponse
|
|
13062
|
+
*/
|
|
13063
|
+
async describeDDoSStatus(request: DescribeDDoSStatusRequest): Promise<DescribeDDoSStatusResponse> {
|
|
13064
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
13065
|
+
return await this.describeDDoSStatusWithOptions(request, runtime);
|
|
13066
|
+
}
|
|
13067
|
+
|
|
12698
13068
|
/**
|
|
12699
13069
|
* @summary Queries the information about a protected object.
|
|
12700
13070
|
*
|
|
@@ -15928,7 +16298,7 @@ export default class Client extends OpenApi {
|
|
|
15928
16298
|
}
|
|
15929
16299
|
|
|
15930
16300
|
/**
|
|
15931
|
-
* @summary
|
|
16301
|
+
* @summary Modifies the configurations of API security log subscription.
|
|
15932
16302
|
*
|
|
15933
16303
|
* @param request ModifyApisecLogDeliveryRequest
|
|
15934
16304
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -15983,7 +16353,7 @@ export default class Client extends OpenApi {
|
|
|
15983
16353
|
}
|
|
15984
16354
|
|
|
15985
16355
|
/**
|
|
15986
|
-
* @summary
|
|
16356
|
+
* @summary Modifies the configurations of API security log subscription.
|
|
15987
16357
|
*
|
|
15988
16358
|
* @param request ModifyApisecLogDeliveryRequest
|
|
15989
16359
|
* @return ModifyApisecLogDeliveryResponse
|
|
@@ -15994,7 +16364,7 @@ export default class Client extends OpenApi {
|
|
|
15994
16364
|
}
|
|
15995
16365
|
|
|
15996
16366
|
/**
|
|
15997
|
-
* @summary
|
|
16367
|
+
* @summary Modifies the status of API security log subscription.
|
|
15998
16368
|
*
|
|
15999
16369
|
* @param request ModifyApisecLogDeliveryStatusRequest
|
|
16000
16370
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -16041,7 +16411,7 @@ export default class Client extends OpenApi {
|
|
|
16041
16411
|
}
|
|
16042
16412
|
|
|
16043
16413
|
/**
|
|
16044
|
-
* @summary
|
|
16414
|
+
* @summary Modifies the status of API security log subscription.
|
|
16045
16415
|
*
|
|
16046
16416
|
* @param request ModifyApisecLogDeliveryStatusRequest
|
|
16047
16417
|
* @return ModifyApisecLogDeliveryStatusResponse
|
|
@@ -16983,6 +17353,56 @@ export default class Client extends OpenApi {
|
|
|
16983
17353
|
return await this.modifyTemplateResourcesWithOptions(request, runtime);
|
|
16984
17354
|
}
|
|
16985
17355
|
|
|
17356
|
+
/**
|
|
17357
|
+
* @summary 释放实例
|
|
17358
|
+
*
|
|
17359
|
+
* @param request ReleaseInstanceRequest
|
|
17360
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17361
|
+
* @return ReleaseInstanceResponse
|
|
17362
|
+
*/
|
|
17363
|
+
async releaseInstanceWithOptions(request: ReleaseInstanceRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseInstanceResponse> {
|
|
17364
|
+
Util.validateModel(request);
|
|
17365
|
+
let query = { };
|
|
17366
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
17367
|
+
query["InstanceId"] = request.instanceId;
|
|
17368
|
+
}
|
|
17369
|
+
|
|
17370
|
+
if (!Util.isUnset(request.regionId)) {
|
|
17371
|
+
query["RegionId"] = request.regionId;
|
|
17372
|
+
}
|
|
17373
|
+
|
|
17374
|
+
if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
|
|
17375
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
17376
|
+
}
|
|
17377
|
+
|
|
17378
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
17379
|
+
query: OpenApiUtil.query(query),
|
|
17380
|
+
});
|
|
17381
|
+
let params = new $OpenApi.Params({
|
|
17382
|
+
action: "ReleaseInstance",
|
|
17383
|
+
version: "2021-10-01",
|
|
17384
|
+
protocol: "HTTPS",
|
|
17385
|
+
pathname: "/",
|
|
17386
|
+
method: "POST",
|
|
17387
|
+
authType: "AK",
|
|
17388
|
+
style: "RPC",
|
|
17389
|
+
reqBodyType: "formData",
|
|
17390
|
+
bodyType: "json",
|
|
17391
|
+
});
|
|
17392
|
+
return $tea.cast<ReleaseInstanceResponse>(await this.callApi(params, req, runtime), new ReleaseInstanceResponse({}));
|
|
17393
|
+
}
|
|
17394
|
+
|
|
17395
|
+
/**
|
|
17396
|
+
* @summary 释放实例
|
|
17397
|
+
*
|
|
17398
|
+
* @param request ReleaseInstanceRequest
|
|
17399
|
+
* @return ReleaseInstanceResponse
|
|
17400
|
+
*/
|
|
17401
|
+
async releaseInstance(request: ReleaseInstanceRequest): Promise<ReleaseInstanceResponse> {
|
|
17402
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17403
|
+
return await this.releaseInstanceWithOptions(request, runtime);
|
|
17404
|
+
}
|
|
17405
|
+
|
|
16986
17406
|
/**
|
|
16987
17407
|
* @summary Synchronizes Elastic Compute Service (ECS) instances and Classic Load Balancer (CLB) instances to Web Application Firewall (WAF).
|
|
16988
17408
|
*
|