/
EcmClient.java
1631 lines (1476 loc) · 72.4 KB
/
EcmClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.ecm.v20190719;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.ecm.v20190719.models.*;
public class EcmClient extends AbstractClient{
private static String endpoint = "ecm.tencentcloudapi.com";
private static String service = "ecm";
private static String version = "2019-07-19";
public EcmClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public EcmClient(Credential credential, String region, ClientProfile profile) {
super(EcmClient.endpoint, EcmClient.version, credential, region, profile);
}
/**
*申请一个或多个弹性公网IP(简称 EIP)
* @param req AllocateAddressesRequest
* @return AllocateAddressesResponse
* @throws TencentCloudSDKException
*/
public AllocateAddressesResponse AllocateAddresses(AllocateAddressesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AllocateAddresses", AllocateAddressesResponse.class);
}
/**
*本接口用于给IPv6地址分配公网带宽
* @param req AllocateIpv6AddressesBandwidthRequest
* @return AllocateIpv6AddressesBandwidthResponse
* @throws TencentCloudSDKException
*/
public AllocateIpv6AddressesBandwidthResponse AllocateIpv6AddressesBandwidth(AllocateIpv6AddressesBandwidthRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AllocateIpv6AddressesBandwidth", AllocateIpv6AddressesBandwidthResponse.class);
}
/**
*本接口(AssignIpv6Addresses)用于弹性网卡申请IPv6地址。
* @param req AssignIpv6AddressesRequest
* @return AssignIpv6AddressesResponse
* @throws TencentCloudSDKException
*/
public AssignIpv6AddressesResponse AssignIpv6Addresses(AssignIpv6AddressesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssignIpv6Addresses", AssignIpv6AddressesResponse.class);
}
/**
*本接口(AssignIpv6CidrBlock)用于分配IPv6网段。
使用本接口前,您需要已有VPC实例,如果没有可通过接口CreateVpc创建。
* @param req AssignIpv6CidrBlockRequest
* @return AssignIpv6CidrBlockResponse
* @throws TencentCloudSDKException
*/
public AssignIpv6CidrBlockResponse AssignIpv6CidrBlock(AssignIpv6CidrBlockRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssignIpv6CidrBlock", AssignIpv6CidrBlockResponse.class);
}
/**
*本接口(AssignIpv6CidrBlocks)用于分配IPv6网段。
使用本接口前,您需要已有VPC实例,如果没有可通过接口CreateVpc创建。
每个VPC 可以同时支持运营商网络('CMCC'-中国移动, 'CTCC'-中国电信, 'CUCC'-中国联调)。本接口可以同时申请不同类型的IPv6网段
* @param req AssignIpv6CidrBlocksRequest
* @return AssignIpv6CidrBlocksResponse
* @throws TencentCloudSDKException
*/
public AssignIpv6CidrBlocksResponse AssignIpv6CidrBlocks(AssignIpv6CidrBlocksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssignIpv6CidrBlocks", AssignIpv6CidrBlocksResponse.class);
}
/**
*本接口(AssignIpv6SubnetCidrBlock)用于分配IPv6子网段。
给子网分配 IPv6 网段,要求子网所属 VPC 已获得 IPv6 网段。如果尚未分配,请先通过接口 AssignIpv6CidrBlock 给子网所属 VPC 分配一个 IPv6 网段。否则无法分配 IPv6 子网段。
每个子网只能分配一个IPv6网段。
* @param req AssignIpv6SubnetCidrBlockRequest
* @return AssignIpv6SubnetCidrBlockResponse
* @throws TencentCloudSDKException
*/
public AssignIpv6SubnetCidrBlockResponse AssignIpv6SubnetCidrBlock(AssignIpv6SubnetCidrBlockRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssignIpv6SubnetCidrBlock", AssignIpv6SubnetCidrBlockResponse.class);
}
/**
*弹性网卡申请内网 IP
* @param req AssignPrivateIpAddressesRequest
* @return AssignPrivateIpAddressesResponse
* @throws TencentCloudSDKException
*/
public AssignPrivateIpAddressesResponse AssignPrivateIpAddresses(AssignPrivateIpAddressesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssignPrivateIpAddresses", AssignPrivateIpAddressesResponse.class);
}
/**
*将弹性公网IP(简称 EIP)绑定到实例或弹性网卡的指定内网 IP 上。
将 EIP 绑定到实例(ECM)上,其本质是将 EIP 绑定到实例上主网卡的主内网 IP 上。
将 EIP 绑定到指定网卡的内网 IP上,内网IP已经绑定了EIP或普通公网IP,则反馈失败。必须先解绑该 EIP,才能再绑定新的。
只有状态为 UNBIND 的 EIP 才能够绑定内网IP。
* @param req AssociateAddressRequest
* @return AssociateAddressResponse
* @throws TencentCloudSDKException
*/
public AssociateAddressResponse AssociateAddress(AssociateAddressRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssociateAddress", AssociateAddressResponse.class);
}
/**
*绑定安全组
* @param req AssociateSecurityGroupsRequest
* @return AssociateSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public AssociateSecurityGroupsResponse AssociateSecurityGroups(AssociateSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssociateSecurityGroups", AssociateSecurityGroupsResponse.class);
}
/**
*本接口(AttachDisks)用于挂载云硬盘。
* 支持批量操作,将多块云盘挂载到同一云主机。如果多个云盘中存在不允许挂载的云盘,则操作不执行,返回特定的错误码。
* 本接口为异步接口,当挂载云盘的请求成功返回时,表示后台已发起挂载云盘的操作,可通过接口[DescribeDisks](/document/product/362/16315)来查询对应云盘的状态,如果云盘的状态由“ATTACHING”变为“ATTACHED”,则为挂载成功。
* @param req AttachDisksRequest
* @return AttachDisksResponse
* @throws TencentCloudSDKException
*/
public AttachDisksResponse AttachDisks(AttachDisksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AttachDisks", AttachDisksResponse.class);
}
/**
*弹性网卡绑定云主机
* @param req AttachNetworkInterfaceRequest
* @return AttachNetworkInterfaceResponse
* @throws TencentCloudSDKException
*/
public AttachNetworkInterfaceResponse AttachNetworkInterface(AttachNetworkInterfaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AttachNetworkInterface", AttachNetworkInterfaceResponse.class);
}
/**
*批量解绑后端服务。
* @param req BatchDeregisterTargetsRequest
* @return BatchDeregisterTargetsResponse
* @throws TencentCloudSDKException
*/
public BatchDeregisterTargetsResponse BatchDeregisterTargets(BatchDeregisterTargetsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BatchDeregisterTargets", BatchDeregisterTargetsResponse.class);
}
/**
*批量修改监听器绑定的后端机器的转发权重。
* @param req BatchModifyTargetWeightRequest
* @return BatchModifyTargetWeightResponse
* @throws TencentCloudSDKException
*/
public BatchModifyTargetWeightResponse BatchModifyTargetWeight(BatchModifyTargetWeightRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BatchModifyTargetWeight", BatchModifyTargetWeightResponse.class);
}
/**
*批量绑定后端目标。
* @param req BatchRegisterTargetsRequest
* @return BatchRegisterTargetsResponse
* @throws TencentCloudSDKException
*/
public BatchRegisterTargetsResponse BatchRegisterTargets(BatchRegisterTargetsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BatchRegisterTargets", BatchRegisterTargetsResponse.class);
}
/**
*本接口(CreateDisks)用于创建云硬盘。
* 预付费云盘的购买会预先扣除本次云盘购买所需金额,在调用本接口前请确保账户余额充足。
* 本接口支持传入数据盘快照来创建云盘,实现将快照数据复制到新购云盘上。
* 本接口为异步接口,当创建请求下发成功后会返回一个新建的云盘ID列表,此时云盘的创建并未立即完成。可以通过调用[DescribeDisks](/document/product/362/16315)接口根据DiskId查询对应云盘,如果能查到云盘,且状态为'UNATTACHED'或'ATTACHED',则表示创建成功。
* @param req CreateDisksRequest
* @return CreateDisksResponse
* @throws TencentCloudSDKException
*/
public CreateDisksResponse CreateDisks(CreateDisksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateDisks", CreateDisksResponse.class);
}
/**
*本接口(CreateHaVip)用于创建高可用虚拟IP(HAVIP)
* @param req CreateHaVipRequest
* @return CreateHaVipResponse
* @throws TencentCloudSDKException
*/
public CreateHaVipResponse CreateHaVip(CreateHaVipRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateHaVip", CreateHaVipResponse.class);
}
/**
*本接口(CreateImage)用于将实例的系统盘制作为新镜像,创建后的镜像可以用于创建实例。
* @param req CreateImageRequest
* @return CreateImageResponse
* @throws TencentCloudSDKException
*/
public CreateImageResponse CreateImage(CreateImageRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateImage", CreateImageResponse.class);
}
/**
*用于创建一个 OpenSSH RSA 密钥对,可以用于登录 Linux 实例。
* @param req CreateKeyPairRequest
* @return CreateKeyPairResponse
* @throws TencentCloudSDKException
*/
public CreateKeyPairResponse CreateKeyPair(CreateKeyPairRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateKeyPair", CreateKeyPairResponse.class);
}
/**
*创建负载均衡监听器。
* @param req CreateListenerRequest
* @return CreateListenerResponse
* @throws TencentCloudSDKException
*/
public CreateListenerResponse CreateListener(CreateListenerRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateListener", CreateListenerResponse.class);
}
/**
*购买负载均衡实例。
* @param req CreateLoadBalancerRequest
* @return CreateLoadBalancerResponse
* @throws TencentCloudSDKException
*/
public CreateLoadBalancerResponse CreateLoadBalancer(CreateLoadBalancerRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateLoadBalancer", CreateLoadBalancerResponse.class);
}
/**
*创建模块
* @param req CreateModuleRequest
* @return CreateModuleResponse
* @throws TencentCloudSDKException
*/
public CreateModuleResponse CreateModule(CreateModuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateModule", CreateModuleResponse.class);
}
/**
*创建弹性网卡
* @param req CreateNetworkInterfaceRequest
* @return CreateNetworkInterfaceResponse
* @throws TencentCloudSDKException
*/
public CreateNetworkInterfaceResponse CreateNetworkInterface(CreateNetworkInterfaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateNetworkInterface", CreateNetworkInterfaceResponse.class);
}
/**
*创建了VPC后,系统会创建一个默认路由表,所有新建的子网都会关联到默认路由表。默认情况下您可以直接使用默认路由表来管理您的路由策略。当您的路由策略较多时,您可以调用创建路由表接口创建更多路由表管理您的路由策略。
* @param req CreateRouteTableRequest
* @return CreateRouteTableResponse
* @throws TencentCloudSDKException
*/
public CreateRouteTableResponse CreateRouteTable(CreateRouteTableRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRouteTable", CreateRouteTableResponse.class);
}
/**
*创建路由策略
* @param req CreateRoutesRequest
* @return CreateRoutesResponse
* @throws TencentCloudSDKException
*/
public CreateRoutesResponse CreateRoutes(CreateRoutesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRoutes", CreateRoutesResponse.class);
}
/**
*创建安全组
* @param req CreateSecurityGroupRequest
* @return CreateSecurityGroupResponse
* @throws TencentCloudSDKException
*/
public CreateSecurityGroupResponse CreateSecurityGroup(CreateSecurityGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSecurityGroup", CreateSecurityGroupResponse.class);
}
/**
*<p>本接口(CreateSecurityGroupPolicies)用于创建安全组规则(SecurityGroupPolicy)。</p>
<p>在 SecurityGroupPolicySet 参数中:</p>
<ul>
<li>Version 安全组规则版本号,用户每次更新安全规则版本会自动加1,防止您更新的路由规则已过期,不填不考虑冲突。</li>
<li>在创建出站和入站规则(Egress 和 Ingress)时:<ul>
<li>Protocol 字段支持输入TCP, UDP, ICMP, GRE, ALL。</li>
<li>CidrBlock 字段允许输入符合cidr格式标准的任意字符串。在基础网络中,如果 CidrBlock 包含您的账户内的云服务器之外的设备在腾讯云的内网 IP,并不代表此规则允许您访问这些设备,租户之间网络隔离规则优先于安全组中的内网规则。</li>
<li>SecurityGroupId 字段允许输入与待修改的安全组位于相同项目中的安全组 ID,包括这个安全组 ID 本身,代表安全组下所有云服务器的内网 IP。使用这个字段时,这条规则用来匹配网络报文的过程中会随着被使用的这个 ID 所关联的云服务器变化而变化,不需要重新修改。</li>
<li>Port 字段允许输入一个单独端口号,或者用减号分隔的两个端口号代表端口范围,例如80或8000-8010。只有当 Protocol 字段是 TCP 或 UDP 时,Port 字段才被接受,即 Protocol 字段不是 TCP 或 UDP 时,Protocol 和 Port 排他关系,不允许同时输入,否则会接口报错。</li>
<li>Action 字段只允许输入 ACCEPT 或 DROP。</li>
<li>CidrBlock, SecurityGroupId, AddressTemplate 是排他关系,不允许同时输入,Protocol + Port 和 ServiceTemplate 二者是排他关系,不允许同时输入。</li>
<li>一次请求中只能创建单个方向的规则, 如果需要指定索引(PolicyIndex)参数, 多条规则的索引必须一致。</li>
</ul></li></ul>
<p>默认接口请求频率限制:20次/秒。</p>
* @param req CreateSecurityGroupPoliciesRequest
* @return CreateSecurityGroupPoliciesResponse
* @throws TencentCloudSDKException
*/
public CreateSecurityGroupPoliciesResponse CreateSecurityGroupPolicies(CreateSecurityGroupPoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSecurityGroupPolicies", CreateSecurityGroupPoliciesResponse.class);
}
/**
*创建子网,若创建成功,则此子网会成为此可用区的默认子网。
* @param req CreateSubnetRequest
* @return CreateSubnetResponse
* @throws TencentCloudSDKException
*/
public CreateSubnetResponse CreateSubnet(CreateSubnetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSubnet", CreateSubnetResponse.class);
}
/**
*创建私有网络
* @param req CreateVpcRequest
* @return CreateVpcResponse
* @throws TencentCloudSDKException
*/
public CreateVpcResponse CreateVpc(CreateVpcRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateVpc", CreateVpcResponse.class);
}
/**
*用于删除高可用虚拟IP(HAVIP)
* @param req DeleteHaVipRequest
* @return DeleteHaVipResponse
* @throws TencentCloudSDKException
*/
public DeleteHaVipResponse DeleteHaVip(DeleteHaVipRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteHaVip", DeleteHaVipResponse.class);
}
/**
*删除镜像
* @param req DeleteImageRequest
* @return DeleteImageResponse
* @throws TencentCloudSDKException
*/
public DeleteImageResponse DeleteImage(DeleteImageRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteImage", DeleteImageResponse.class);
}
/**
*删除负载均衡监听器。
* @param req DeleteListenerRequest
* @return DeleteListenerResponse
* @throws TencentCloudSDKException
*/
public DeleteListenerResponse DeleteListener(DeleteListenerRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteListener", DeleteListenerResponse.class);
}
/**
*删除负载均衡实例。
* @param req DeleteLoadBalancerRequest
* @return DeleteLoadBalancerResponse
* @throws TencentCloudSDKException
*/
public DeleteLoadBalancerResponse DeleteLoadBalancer(DeleteLoadBalancerRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteLoadBalancer", DeleteLoadBalancerResponse.class);
}
/**
*删除负载均衡多个监听器
* @param req DeleteLoadBalancerListenersRequest
* @return DeleteLoadBalancerListenersResponse
* @throws TencentCloudSDKException
*/
public DeleteLoadBalancerListenersResponse DeleteLoadBalancerListeners(DeleteLoadBalancerListenersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteLoadBalancerListeners", DeleteLoadBalancerListenersResponse.class);
}
/**
*删除业务模块
* @param req DeleteModuleRequest
* @return DeleteModuleResponse
* @throws TencentCloudSDKException
*/
public DeleteModuleResponse DeleteModule(DeleteModuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteModule", DeleteModuleResponse.class);
}
/**
*删除弹性网卡
* @param req DeleteNetworkInterfaceRequest
* @return DeleteNetworkInterfaceResponse
* @throws TencentCloudSDKException
*/
public DeleteNetworkInterfaceResponse DeleteNetworkInterface(DeleteNetworkInterfaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteNetworkInterface", DeleteNetworkInterfaceResponse.class);
}
/**
*删除路由表
* @param req DeleteRouteTableRequest
* @return DeleteRouteTableResponse
* @throws TencentCloudSDKException
*/
public DeleteRouteTableResponse DeleteRouteTable(DeleteRouteTableRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRouteTable", DeleteRouteTableResponse.class);
}
/**
*对某个路由表批量删除路由策略
* @param req DeleteRoutesRequest
* @return DeleteRoutesResponse
* @throws TencentCloudSDKException
*/
public DeleteRoutesResponse DeleteRoutes(DeleteRoutesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRoutes", DeleteRoutesResponse.class);
}
/**
*只有当前账号下的安全组允许被删除。
安全组实例ID如果在其他安全组的规则中被引用,则无法直接删除。这种情况下,需要先进行规则修改,再删除安全组。
删除的安全组无法再找回,请谨慎调用。
* @param req DeleteSecurityGroupRequest
* @return DeleteSecurityGroupResponse
* @throws TencentCloudSDKException
*/
public DeleteSecurityGroupResponse DeleteSecurityGroup(DeleteSecurityGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSecurityGroup", DeleteSecurityGroupResponse.class);
}
/**
*SecurityGroupPolicySet.Version 用于指定要操作的安全组的版本。传入 Version 版本号若不等于当前安全组的最新版本,将返回失败;若不传 Version 则直接删除指定PolicyIndex的规则。
* @param req DeleteSecurityGroupPoliciesRequest
* @return DeleteSecurityGroupPoliciesResponse
* @throws TencentCloudSDKException
*/
public DeleteSecurityGroupPoliciesResponse DeleteSecurityGroupPolicies(DeleteSecurityGroupPoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSecurityGroupPolicies", DeleteSecurityGroupPoliciesResponse.class);
}
/**
*本接口(DeleteSnapshots)用于删除快照。
* 快照必须处于NORMAL状态,快照状态可以通过[DescribeSnapshots](/document/product/362/15647)接口查询,见输出参数中SnapshotState字段解释。
* 支持批量操作。如果多个快照存在无法删除的快照,则操作不执行,以返回特定的错误码返回。
* @param req DeleteSnapshotsRequest
* @return DeleteSnapshotsResponse
* @throws TencentCloudSDKException
*/
public DeleteSnapshotsResponse DeleteSnapshots(DeleteSnapshotsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSnapshots", DeleteSnapshotsResponse.class);
}
/**
*删除子网,若子网为可用区下的默认子网,则默认子网会回退到系统自动创建的默认子网,非用户最新创建的子网。若默认子网不满足需求,可调用设置默认子网接口设置。
* @param req DeleteSubnetRequest
* @return DeleteSubnetResponse
* @throws TencentCloudSDKException
*/
public DeleteSubnetResponse DeleteSubnet(DeleteSubnetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSubnet", DeleteSubnetResponse.class);
}
/**
*删除私有网络
* @param req DeleteVpcRequest
* @return DeleteVpcResponse
* @throws TencentCloudSDKException
*/
public DeleteVpcResponse DeleteVpc(DeleteVpcRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteVpc", DeleteVpcResponse.class);
}
/**
*查询您账户的弹性公网IP(简称 EIP)在当前地域的配额信息
* @param req DescribeAddressQuotaRequest
* @return DescribeAddressQuotaResponse
* @throws TencentCloudSDKException
*/
public DescribeAddressQuotaResponse DescribeAddressQuota(DescribeAddressQuotaRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAddressQuota", DescribeAddressQuotaResponse.class);
}
/**
*查询弹性公网IP列表
* @param req DescribeAddressesRequest
* @return DescribeAddressesResponse
* @throws TencentCloudSDKException
*/
public DescribeAddressesResponse DescribeAddresses(DescribeAddressesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAddresses", DescribeAddressesResponse.class);
}
/**
*获取概览页统计的基本数据
* @param req DescribeBaseOverviewRequest
* @return DescribeBaseOverviewResponse
* @throws TencentCloudSDKException
*/
public DescribeBaseOverviewResponse DescribeBaseOverview(DescribeBaseOverviewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBaseOverview", DescribeBaseOverviewResponse.class);
}
/**
*获取带宽硬盘等数据的限制
* @param req DescribeConfigRequest
* @return DescribeConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeConfigResponse DescribeConfig(DescribeConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeConfig", DescribeConfigResponse.class);
}
/**
*查询导入镜像任务
* @param req DescribeCustomImageTaskRequest
* @return DescribeCustomImageTaskResponse
* @throws TencentCloudSDKException
*/
public DescribeCustomImageTaskResponse DescribeCustomImageTask(DescribeCustomImageTaskRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCustomImageTask", DescribeCustomImageTaskResponse.class);
}
/**
*查询可用区的默认子网
* @param req DescribeDefaultSubnetRequest
* @return DescribeDefaultSubnetResponse
* @throws TencentCloudSDKException
*/
public DescribeDefaultSubnetResponse DescribeDefaultSubnet(DescribeDefaultSubnetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDefaultSubnet", DescribeDefaultSubnetResponse.class);
}
/**
*本接口(DescribeDisks)用于查询云硬盘列表。
* 可以根据云硬盘ID、云硬盘类型或者云硬盘状态等信息来查询云硬盘的详细信息,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器`Filter`。
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的云硬盘列表。
* @param req DescribeDisksRequest
* @return DescribeDisksResponse
* @throws TencentCloudSDKException
*/
public DescribeDisksResponse DescribeDisks(DescribeDisksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDisks", DescribeDisksResponse.class);
}
/**
*用于查询高可用虚拟IP(HAVIP)列表。
* @param req DescribeHaVipsRequest
* @return DescribeHaVipsResponse
* @throws TencentCloudSDKException
*/
public DescribeHaVipsResponse DescribeHaVips(DescribeHaVipsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeHaVips", DescribeHaVipsResponse.class);
}
/**
*展示镜像列表
* @param req DescribeImageRequest
* @return DescribeImageResponse
* @throws TencentCloudSDKException
*/
public DescribeImageResponse DescribeImage(DescribeImageRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeImage", DescribeImageResponse.class);
}
/**
*查询外部导入镜像支持的OS列表
* @param req DescribeImportImageOsRequest
* @return DescribeImportImageOsResponse
* @throws TencentCloudSDKException
*/
public DescribeImportImageOsResponse DescribeImportImageOs(DescribeImportImageOsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeImportImageOs", DescribeImportImageOsResponse.class);
}
/**
*获取机型配置列表
* @param req DescribeInstanceTypeConfigRequest
* @return DescribeInstanceTypeConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeInstanceTypeConfigResponse DescribeInstanceTypeConfig(DescribeInstanceTypeConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeInstanceTypeConfig", DescribeInstanceTypeConfigResponse.class);
}
/**
*查询实例管理终端地址
* @param req DescribeInstanceVncUrlRequest
* @return DescribeInstanceVncUrlResponse
* @throws TencentCloudSDKException
*/
public DescribeInstanceVncUrlResponse DescribeInstanceVncUrl(DescribeInstanceVncUrlRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeInstanceVncUrl", DescribeInstanceVncUrlResponse.class);
}
/**
*获取实例的相关信息。
* @param req DescribeInstancesRequest
* @return DescribeInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribeInstancesResponse DescribeInstances(DescribeInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeInstances", DescribeInstancesResponse.class);
}
/**
*通过实例id获取当前禁止的操作
* @param req DescribeInstancesDeniedActionsRequest
* @return DescribeInstancesDeniedActionsResponse
* @throws TencentCloudSDKException
*/
public DescribeInstancesDeniedActionsResponse DescribeInstancesDeniedActions(DescribeInstancesDeniedActionsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeInstancesDeniedActions", DescribeInstancesDeniedActionsResponse.class);
}
/**
*查询负载均衡的监听器列表。
* @param req DescribeListenersRequest
* @return DescribeListenersResponse
* @throws TencentCloudSDKException
*/
public DescribeListenersResponse DescribeListeners(DescribeListenersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeListeners", DescribeListenersResponse.class);
}
/**
*查询负载均衡相关的任务状态
* @param req DescribeLoadBalanceTaskStatusRequest
* @return DescribeLoadBalanceTaskStatusResponse
* @throws TencentCloudSDKException
*/
public DescribeLoadBalanceTaskStatusResponse DescribeLoadBalanceTaskStatus(DescribeLoadBalanceTaskStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeLoadBalanceTaskStatus", DescribeLoadBalanceTaskStatusResponse.class);
}
/**
*查询负载均衡实例列表。
* @param req DescribeLoadBalancersRequest
* @return DescribeLoadBalancersResponse
* @throws TencentCloudSDKException
*/
public DescribeLoadBalancersResponse DescribeLoadBalancers(DescribeLoadBalancersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeLoadBalancers", DescribeLoadBalancersResponse.class);
}
/**
*获取模块列表
* @param req DescribeModuleRequest
* @return DescribeModuleResponse
* @throws TencentCloudSDKException
*/
public DescribeModuleResponse DescribeModule(DescribeModuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeModule", DescribeModuleResponse.class);
}
/**
*展示模块详细信息
* @param req DescribeModuleDetailRequest
* @return DescribeModuleDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeModuleDetailResponse DescribeModuleDetail(DescribeModuleDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeModuleDetail", DescribeModuleDetailResponse.class);
}
/**
*获取客户节点上的出入带宽月峰和计费带宽信息
* @param req DescribeMonthPeakNetworkRequest
* @return DescribeMonthPeakNetworkResponse
* @throws TencentCloudSDKException
*/
public DescribeMonthPeakNetworkResponse DescribeMonthPeakNetwork(DescribeMonthPeakNetworkRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeMonthPeakNetwork", DescribeMonthPeakNetworkResponse.class);
}
/**
*查询弹性网卡列表
* @param req DescribeNetworkInterfacesRequest
* @return DescribeNetworkInterfacesResponse
* @throws TencentCloudSDKException
*/
public DescribeNetworkInterfacesResponse DescribeNetworkInterfaces(DescribeNetworkInterfacesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeNetworkInterfaces", DescribeNetworkInterfacesResponse.class);
}
/**
*获取节点列表
* @param req DescribeNodeRequest
* @return DescribeNodeResponse
* @throws TencentCloudSDKException
*/
public DescribeNodeResponse DescribeNode(DescribeNodeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeNode", DescribeNodeResponse.class);
}
/**
*使用本接口获取某种机型在某些区域的装箱配额(当使用虚拟机型时,返回的是一组相互关联的装箱配额)。
* @param req DescribePackingQuotaGroupRequest
* @return DescribePackingQuotaGroupResponse
* @throws TencentCloudSDKException
*/
public DescribePackingQuotaGroupResponse DescribePackingQuotaGroup(DescribePackingQuotaGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePackingQuotaGroup", DescribePackingQuotaGroupResponse.class);
}
/**
*CPU 内存 硬盘等基础信息峰值数据
* @param req DescribePeakBaseOverviewRequest
* @return DescribePeakBaseOverviewResponse
* @throws TencentCloudSDKException
*/
public DescribePeakBaseOverviewResponse DescribePeakBaseOverview(DescribePeakBaseOverviewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePeakBaseOverview", DescribePeakBaseOverviewResponse.class);
}
/**
*获取网络峰值数据
* @param req DescribePeakNetworkOverviewRequest
* @return DescribePeakNetworkOverviewResponse
* @throws TencentCloudSDKException
*/
public DescribePeakNetworkOverviewResponse DescribePeakNetworkOverview(DescribePeakNetworkOverviewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePeakNetworkOverview", DescribePeakNetworkOverviewResponse.class);
}
/**
*查询实例价格
* @param req DescribePriceRunInstanceRequest
* @return DescribePriceRunInstanceResponse
* @throws TencentCloudSDKException
*/
public DescribePriceRunInstanceResponse DescribePriceRunInstance(DescribePriceRunInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePriceRunInstance", DescribePriceRunInstanceResponse.class);
}
/**
*该接口(DescribeRegionIpv6Addresses)用于查询ECM地域之下的IPV6地址信息。
* @param req DescribeRegionIpv6AddressesRequest
* @return DescribeRegionIpv6AddressesResponse
* @throws TencentCloudSDKException
*/
public DescribeRegionIpv6AddressesResponse DescribeRegionIpv6Addresses(DescribeRegionIpv6AddressesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRegionIpv6Addresses", DescribeRegionIpv6AddressesResponse.class);
}
/**
*查询自定义路由策略与云联网路由策略冲突列表
* @param req DescribeRouteConflictsRequest
* @return DescribeRouteConflictsResponse
* @throws TencentCloudSDKException
*/
public DescribeRouteConflictsResponse DescribeRouteConflicts(DescribeRouteConflictsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRouteConflicts", DescribeRouteConflictsResponse.class);
}
/**
*查询路由表对象列表
* @param req DescribeRouteTablesRequest
* @return DescribeRouteTablesResponse
* @throws TencentCloudSDKException
*/
public DescribeRouteTablesResponse DescribeRouteTables(DescribeRouteTablesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRouteTables", DescribeRouteTablesResponse.class);
}
/**
*查询安全组关联实例统计
* @param req DescribeSecurityGroupAssociationStatisticsRequest
* @return DescribeSecurityGroupAssociationStatisticsResponse
* @throws TencentCloudSDKException
*/
public DescribeSecurityGroupAssociationStatisticsResponse DescribeSecurityGroupAssociationStatistics(DescribeSecurityGroupAssociationStatisticsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSecurityGroupAssociationStatistics", DescribeSecurityGroupAssociationStatisticsResponse.class);
}
/**
*查询用户安全组配额
* @param req DescribeSecurityGroupLimitsRequest
* @return DescribeSecurityGroupLimitsResponse
* @throws TencentCloudSDKException
*/
public DescribeSecurityGroupLimitsResponse DescribeSecurityGroupLimits(DescribeSecurityGroupLimitsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSecurityGroupLimits", DescribeSecurityGroupLimitsResponse.class);
}
/**
*查询安全组规则
* @param req DescribeSecurityGroupPoliciesRequest
* @return DescribeSecurityGroupPoliciesResponse
* @throws TencentCloudSDKException
*/
public DescribeSecurityGroupPoliciesResponse DescribeSecurityGroupPolicies(DescribeSecurityGroupPoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSecurityGroupPolicies", DescribeSecurityGroupPoliciesResponse.class);
}
/**
*查看安全组
* @param req DescribeSecurityGroupsRequest
* @return DescribeSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public DescribeSecurityGroupsResponse DescribeSecurityGroups(DescribeSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSecurityGroups", DescribeSecurityGroupsResponse.class);
}
/**
*本接口(DescribeSnapshots)用于查询快照的详细信息。
* 根据快照ID、创建快照的云硬盘ID、创建快照的云硬盘类型等对结果进行过滤,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器`Filter`。
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的快照列表。
* @param req DescribeSnapshotsRequest
* @return DescribeSnapshotsResponse
* @throws TencentCloudSDKException
*/
public DescribeSnapshotsResponse DescribeSnapshots(DescribeSnapshotsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSnapshots", DescribeSnapshotsResponse.class);
}
/**
*查询子网列表
* @param req DescribeSubnetsRequest
* @return DescribeSubnetsResponse
* @throws TencentCloudSDKException
*/
public DescribeSubnetsResponse DescribeSubnets(DescribeSubnetsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSubnets", DescribeSubnetsResponse.class);
}
/**
*获取负载均衡后端服务的健康检查状态。
* @param req DescribeTargetHealthRequest
* @return DescribeTargetHealthResponse
* @throws TencentCloudSDKException
*/
public DescribeTargetHealthResponse DescribeTargetHealth(DescribeTargetHealthRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTargetHealth", DescribeTargetHealthResponse.class);
}
/**
*查询负载均衡绑定的后端服务列表。
* @param req DescribeTargetsRequest
* @return DescribeTargetsResponse
* @throws TencentCloudSDKException
*/
public DescribeTargetsResponse DescribeTargets(DescribeTargetsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTargets", DescribeTargetsResponse.class);
}
/**
*查询EIP异步任务执行结果
* @param req DescribeTaskResultRequest
* @return DescribeTaskResultResponse
* @throws TencentCloudSDKException
*/
public DescribeTaskResultResponse DescribeTaskResult(DescribeTaskResultRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTaskResult", DescribeTaskResultResponse.class);
}
/**
*本接口(DescribeTaskStatus)用于获取异步任务状态
* @param req DescribeTaskStatusRequest
* @return DescribeTaskStatusResponse
* @throws TencentCloudSDKException
*/
public DescribeTaskStatusResponse DescribeTaskStatus(DescribeTaskStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTaskStatus", DescribeTaskStatusResponse.class);
}
/**
*查询私有网络列表
* @param req DescribeVpcsRequest
* @return DescribeVpcsResponse
* @throws TencentCloudSDKException
*/
public DescribeVpcsResponse DescribeVpcs(DescribeVpcsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVpcs", DescribeVpcsResponse.class);
}
/**
*本接口(DetachDisks)用于卸载云硬盘。
* 支持批量操作,卸载挂载在同一主机上的多块云盘。如果多块云盘中存在不允许卸载的云盘,则操作不执行,返回特定的错误码。
* 本接口为异步接口,当请求成功返回时,云盘并未立即从主机卸载,可通过接口[DescribeDisks](/document/product/362/16315)来查询对应云盘的状态,如果云盘的状态由“ATTACHED”变为“UNATTACHED”,则为卸载成功。
* @param req DetachDisksRequest
* @return DetachDisksResponse
* @throws TencentCloudSDKException
*/
public DetachDisksResponse DetachDisks(DetachDisksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DetachDisks", DetachDisksResponse.class);
}
/**
*弹性网卡解绑云主机