tencentcloud-sdk-python 3.0.1338__py2.py3-none-any.whl → 3.0.1372__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/advisor/v20200721/models.py +0 -26
- tencentcloud/ams/v20201229/ams_client.py +17 -6
- tencentcloud/ams/v20201229/models.py +8 -6
- tencentcloud/antiddos/v20200309/antiddos_client.py +0 -50
- tencentcloud/antiddos/v20200309/models.py +44 -837
- tencentcloud/apm/v20210622/models.py +60 -60
- tencentcloud/autoscaling/v20180419/autoscaling_client.py +28 -1
- tencentcloud/autoscaling/v20180419/models.py +352 -210
- tencentcloud/batch/v20170312/batch_client.py +0 -46
- tencentcloud/batch/v20170312/errorcodes.py +0 -9
- tencentcloud/batch/v20170312/models.py +44 -1179
- tencentcloud/bh/v20230418/bh_client.py +253 -0
- tencentcloud/bh/v20230418/errorcodes.py +15 -0
- tencentcloud/bh/v20230418/models.py +3489 -1335
- tencentcloud/bi/v20220105/models.py +242 -2
- tencentcloud/billing/v20180709/billing_client.py +0 -23
- tencentcloud/billing/v20180709/models.py +34 -926
- tencentcloud/bpaas/v20181217/models.py +0 -54
- tencentcloud/cam/v20190116/errorcodes.py +3 -0
- tencentcloud/cam/v20190116/models.py +2 -86
- tencentcloud/captcha/v20190722/models.py +21 -54
- tencentcloud/cat/v20180409/cat_client.py +23 -0
- tencentcloud/cat/v20180409/models.py +509 -0
- tencentcloud/cbs/v20170312/cbs_client.py +1 -1
- tencentcloud/cbs/v20170312/models.py +75 -96
- tencentcloud/ccc/v20200210/ccc_client.py +184 -0
- tencentcloud/ccc/v20200210/errorcodes.py +12 -0
- tencentcloud/ccc/v20200210/models.py +2552 -1026
- tencentcloud/cdb/v20170320/cdb_client.py +27 -4
- tencentcloud/cdb/v20170320/models.py +180 -20
- tencentcloud/cdc/v20201214/cdc_client.py +46 -0
- tencentcloud/cdc/v20201214/errorcodes.py +18 -0
- tencentcloud/cdc/v20201214/models.py +202 -86
- tencentcloud/cdn/v20180606/cdn_client.py +70 -24
- tencentcloud/cdn/v20180606/models.py +19 -50
- tencentcloud/cdwch/v20200915/errorcodes.py +15 -0
- tencentcloud/cdwch/v20200915/models.py +242 -260
- tencentcloud/cdwdoris/v20211228/models.py +330 -0
- tencentcloud/cdwpg/v20201230/models.py +196 -516
- tencentcloud/cdz/v20221123/models.py +0 -12
- tencentcloud/cfg/v20210820/models.py +30 -198
- tencentcloud/cfs/v20190719/errorcodes.py +3 -0
- tencentcloud/cfs/v20190719/models.py +15 -0
- tencentcloud/cfw/v20190904/cfw_client.py +23 -0
- tencentcloud/cfw/v20190904/models.py +331 -4
- tencentcloud/chc/__init__.py +0 -0
- tencentcloud/chc/v20230418/__init__.py +0 -0
- tencentcloud/chc/v20230418/chc_client.py +877 -0
- tencentcloud/chc/v20230418/errorcodes.py +15 -0
- tencentcloud/chc/v20230418/models.py +10146 -0
- tencentcloud/chdfs/v20201112/models.py +2 -2
- tencentcloud/ckafka/v20190819/ckafka_client.py +46 -0
- tencentcloud/ckafka/v20190819/models.py +371 -1230
- tencentcloud/clb/v20180317/clb_client.py +3 -3
- tencentcloud/clb/v20180317/models.py +395 -406
- tencentcloud/cls/v20201016/cls_client.py +41 -18
- tencentcloud/cls/v20201016/models.py +256 -606
- tencentcloud/cme/v20191029/cme_client.py +0 -1
- tencentcloud/cme/v20191029/errorcodes.py +3 -0
- tencentcloud/cme/v20191029/models.py +10 -14
- tencentcloud/cmq/v20190304/models.py +0 -90
- tencentcloud/common/abstract_client.py +29 -24
- tencentcloud/common/abstract_model.py +5 -1
- tencentcloud/common/common_client.py +14 -15
- tencentcloud/common/credential.py +68 -65
- tencentcloud/common/exception/tencent_cloud_sdk_exception.py +1 -1
- tencentcloud/common/profile/client_profile.py +32 -30
- tencentcloud/common/profile/http_profile.py +20 -12
- tencentcloud/common/retry.py +18 -0
- tencentcloud/controlcenter/v20230110/models.py +0 -58
- tencentcloud/cvm/v20170312/cvm_client.py +42 -10
- tencentcloud/cvm/v20170312/errorcodes.py +25 -1
- tencentcloud/cvm/v20170312/models.py +835 -290
- tencentcloud/cwp/v20180228/cwp_client.py +1 -1
- tencentcloud/cwp/v20180228/models.py +362 -58
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +69 -0
- tencentcloud/cynosdb/v20190107/models.py +451 -824
- tencentcloud/dbbrain/v20191016/dbbrain_client.py +23 -0
- tencentcloud/dbbrain/v20191016/models.py +605 -52
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +322 -0
- tencentcloud/dbbrain/v20210527/models.py +6071 -2974
- tencentcloud/dbdc/v20201029/models.py +0 -16
- tencentcloud/dc/v20180410/models.py +25 -12
- tencentcloud/dcdb/v20180411/errorcodes.py +3 -0
- tencentcloud/dcdb/v20180411/models.py +175 -114
- tencentcloud/dlc/v20210125/dlc_client.py +69 -0
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +1217 -592
- tencentcloud/dnspod/v20210323/dnspod_client.py +69 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +9 -0
- tencentcloud/dnspod/v20210323/models.py +718 -110
- tencentcloud/domain/v20180808/domain_client.py +4 -2
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +628 -324
- tencentcloud/dsgc/v20190723/dsgc_client.py +0 -23
- tencentcloud/dsgc/v20190723/models.py +53 -34
- tencentcloud/dts/v20180330/models.py +0 -10
- tencentcloud/dts/v20211206/models.py +118 -585
- tencentcloud/ecdn/v20191012/ecdn_client.py +24 -225
- tencentcloud/ecdn/v20191012/errorcodes.py +0 -63
- tencentcloud/ecdn/v20191012/models.py +4 -1047
- tencentcloud/emr/v20190103/emr_client.py +47 -1
- tencentcloud/emr/v20190103/models.py +1174 -146
- tencentcloud/es/v20180416/errorcodes.py +3 -0
- tencentcloud/es/v20180416/models.py +74 -6
- tencentcloud/es/v20250101/__init__.py +0 -0
- tencentcloud/es/v20250101/errorcodes.py +45 -0
- tencentcloud/es/v20250101/es_client.py +251 -0
- tencentcloud/es/v20250101/models.py +2519 -0
- tencentcloud/ess/v20201111/ess_client.py +43 -5
- tencentcloud/ess/v20201111/models.py +854 -60
- tencentcloud/essbasic/v20210526/essbasic_client.py +35 -2
- tencentcloud/essbasic/v20210526/models.py +726 -43
- tencentcloud/facefusion/v20220927/models.py +4 -2
- tencentcloud/fmu/v20191213/errorcodes.py +3 -21
- tencentcloud/fmu/v20191213/fmu_client.py +0 -75
- tencentcloud/fmu/v20191213/models.py +4 -531
- tencentcloud/gaap/v20180529/gaap_client.py +1 -1
- tencentcloud/gaap/v20180529/models.py +2 -276
- tencentcloud/goosefs/v20220519/models.py +0 -2
- tencentcloud/gs/v20191118/errorcodes.py +36 -0
- tencentcloud/gs/v20191118/gs_client.py +1074 -12
- tencentcloud/gs/v20191118/models.py +6976 -492
- tencentcloud/gwlb/v20240906/errorcodes.py +3 -0
- tencentcloud/gwlb/v20240906/gwlb_client.py +5 -8
- tencentcloud/gwlb/v20240906/models.py +94 -84
- tencentcloud/hai/v20230812/errorcodes.py +7 -1
- tencentcloud/hai/v20230812/hai_client.py +23 -0
- tencentcloud/hai/v20230812/models.py +111 -136
- tencentcloud/hunyuan/v20230901/errorcodes.py +27 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +71 -0
- tencentcloud/hunyuan/v20230901/models.py +1089 -119
- tencentcloud/ims/v20201229/models.py +25 -4
- tencentcloud/ioa/v20220601/ioa_client.py +92 -0
- tencentcloud/ioa/v20220601/models.py +1136 -225
- tencentcloud/iotcloud/v20210408/models.py +2 -4
- tencentcloud/iotexplorer/v20190423/errorcodes.py +12 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +234 -52
- tencentcloud/iotexplorer/v20190423/models.py +2906 -1063
- tencentcloud/iotvideo/v20191126/models.py +0 -4
- tencentcloud/iotvideo/v20201215/models.py +17 -0
- tencentcloud/iotvideo/v20211125/iotvideo_client.py +69 -0
- tencentcloud/iotvideo/v20211125/models.py +476 -0
- tencentcloud/iotvideoindustry/v20201201/iotvideoindustry_client.py +2 -2
- tencentcloud/iotvideoindustry/v20201201/models.py +30 -486
- tencentcloud/iss/v20230517/errorcodes.py +9 -0
- tencentcloud/iss/v20230517/iss_client.py +161 -0
- tencentcloud/iss/v20230517/models.py +1716 -743
- tencentcloud/kms/v20190118/models.py +101 -0
- tencentcloud/lcic/v20220817/errorcodes.py +2 -2
- tencentcloud/lcic/v20220817/lcic_client.py +47 -1
- tencentcloud/lcic/v20220817/models.py +357 -72
- tencentcloud/lighthouse/v20200324/errorcodes.py +12 -15
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +39 -76
- tencentcloud/lighthouse/v20200324/models.py +237 -259
- tencentcloud/live/v20180801/models.py +61 -46
- tencentcloud/lke/v20231130/errorcodes.py +3 -0
- tencentcloud/lke/v20231130/lke_client.py +8 -29
- tencentcloud/lke/v20231130/models.py +561 -115
- tencentcloud/lkeap/v20240522/lkeap_client.py +33 -4
- tencentcloud/lkeap/v20240522/models.py +290 -18
- tencentcloud/lowcode/v20210108/errorcodes.py +3 -0
- tencentcloud/lowcode/v20210108/models.py +0 -2
- tencentcloud/mariadb/v20170312/models.py +155 -140
- tencentcloud/memcached/v20190318/models.py +2 -2
- tencentcloud/mmps/v20200710/models.py +0 -66
- tencentcloud/mna/v20210119/errorcodes.py +0 -36
- tencentcloud/mna/v20210119/mna_client.py +0 -75
- tencentcloud/mna/v20210119/models.py +0 -1002
- tencentcloud/mongodb/v20190725/models.py +115 -6
- tencentcloud/mongodb/v20190725/mongodb_client.py +23 -0
- tencentcloud/monitor/v20180724/errorcodes.py +3 -0
- tencentcloud/monitor/v20180724/models.py +1055 -74
- tencentcloud/monitor/v20180724/monitor_client.py +94 -2
- tencentcloud/mps/v20190612/errorcodes.py +36 -0
- tencentcloud/mps/v20190612/models.py +4866 -448
- tencentcloud/mps/v20190612/mps_client.py +208 -0
- tencentcloud/mqtt/v20240516/errorcodes.py +15 -0
- tencentcloud/mqtt/v20240516/models.py +705 -372
- tencentcloud/mqtt/v20240516/mqtt_client.py +4 -4
- tencentcloud/oceanus/v20190422/models.py +14 -2
- tencentcloud/ocr/v20181119/errorcodes.py +0 -12
- tencentcloud/ocr/v20181119/models.py +311 -1042
- tencentcloud/ocr/v20181119/ocr_client.py +5 -102
- tencentcloud/organization/v20210331/errorcodes.py +3 -0
- tencentcloud/organization/v20210331/models.py +45 -82
- tencentcloud/partners/v20180321/models.py +169 -0
- tencentcloud/partners/v20180321/partners_client.py +23 -0
- tencentcloud/postgres/v20170312/models.py +36 -328
- tencentcloud/postgres/v20170312/postgres_client.py +15 -5
- tencentcloud/privatedns/v20201028/models.py +36 -28
- tencentcloud/rce/v20201103/models.py +0 -15
- tencentcloud/redis/v20180412/models.py +233 -18
- tencentcloud/redis/v20180412/redis_client.py +23 -0
- tencentcloud/rum/v20210622/models.py +0 -2
- tencentcloud/ses/v20201002/models.py +32 -4
- tencentcloud/smop/v20201203/smop_client.py +3 -1
- tencentcloud/soe/v20180724/models.py +4 -2
- tencentcloud/sqlserver/v20180328/models.py +75 -0
- tencentcloud/ssl/v20191205/models.py +7 -319
- tencentcloud/ssm/v20190923/models.py +45 -0
- tencentcloud/sts/v20180813/errorcodes.py +9 -0
- tencentcloud/sts/v20180813/models.py +171 -0
- tencentcloud/sts/v20180813/sts_client.py +23 -0
- tencentcloud/svp/v20240125/errorcodes.py +3 -0
- tencentcloud/svp/v20240125/models.py +506 -44
- tencentcloud/svp/v20240125/svp_client.py +23 -0
- tencentcloud/tan/v20220420/tan_client.py +3 -1
- tencentcloud/tat/v20201028/errorcodes.py +12 -0
- tencentcloud/tat/v20201028/models.py +138 -42
- tencentcloud/tbaas/v20180416/models.py +0 -58
- tencentcloud/tcb/v20180608/errorcodes.py +3 -0
- tencentcloud/tcb/v20180608/models.py +189 -582
- tencentcloud/tcb/v20180608/tcb_client.py +23 -23
- tencentcloud/tcbr/v20220217/models.py +45 -0
- tencentcloud/tchd/v20230306/models.py +166 -0
- tencentcloud/tchd/v20230306/tchd_client.py +24 -0
- tencentcloud/tcr/v20190924/models.py +44 -174
- tencentcloud/tcss/v20201101/models.py +1458 -2066
- tencentcloud/tcss/v20201101/tcss_client.py +92 -125
- tencentcloud/tdid/v20210519/models.py +0 -10
- tencentcloud/tdmq/v20200217/models.py +405 -575
- tencentcloud/tdmq/v20200217/tdmq_client.py +12 -54
- tencentcloud/tds/v20220801/models.py +441 -0
- tencentcloud/tds/v20220801/tds_client.py +23 -0
- tencentcloud/tem/v20210701/models.py +0 -498
- tencentcloud/teo/v20220106/teo_client.py +6 -2
- tencentcloud/teo/v20220901/errorcodes.py +9 -0
- tencentcloud/teo/v20220901/models.py +1828 -472
- tencentcloud/teo/v20220901/teo_client.py +54 -4
- tencentcloud/thpc/v20211109/models.py +0 -6
- tencentcloud/thpc/v20220401/models.py +0 -14
- tencentcloud/thpc/v20230321/models.py +64 -52
- tencentcloud/tione/v20211111/errorcodes.py +114 -0
- tencentcloud/tione/v20211111/models.py +2288 -160
- tencentcloud/tione/v20211111/tione_client.py +138 -0
- tencentcloud/tiw/v20190919/errorcodes.py +3 -24
- tencentcloud/tiw/v20190919/models.py +3657 -8172
- tencentcloud/tiw/v20190919/tiw_client.py +1 -580
- tencentcloud/tke/v20180525/models.py +705 -721
- tencentcloud/tke/v20180525/tke_client.py +23 -0
- tencentcloud/tke/v20220501/models.py +0 -34
- tencentcloud/trocket/v20230308/models.py +1630 -160
- tencentcloud/trocket/v20230308/trocket_client.py +238 -0
- tencentcloud/trro/v20220325/models.py +1132 -44
- tencentcloud/trro/v20220325/trro_client.py +142 -0
- tencentcloud/trtc/v20190722/models.py +94 -90
- tencentcloud/trtc/v20190722/trtc_client.py +4 -0
- tencentcloud/tse/v20201207/models.py +90 -1010
- tencentcloud/tsf/v20180326/errorcodes.py +6 -0
- tencentcloud/tsf/v20180326/models.py +350 -582
- tencentcloud/tsf/v20180326/tsf_client.py +26 -1
- tencentcloud/tts/v20190823/models.py +15 -15
- tencentcloud/tts/v20190823/tts_client.py +6 -5
- tencentcloud/vclm/v20240523/models.py +2 -2
- tencentcloud/vcube/v20220410/models.py +66 -158
- tencentcloud/vcube/v20220410/vcube_client.py +2 -2
- tencentcloud/vdb/v20230616/models.py +1487 -29
- tencentcloud/vdb/v20230616/vdb_client.py +185 -1
- tencentcloud/vm/v20210922/models.py +2 -2
- tencentcloud/vm/v20210922/vm_client.py +16 -8
- tencentcloud/vod/v20180717/errorcodes.py +3 -0
- tencentcloud/vod/v20180717/models.py +106 -417
- tencentcloud/vod/v20180717/vod_client.py +2 -1
- tencentcloud/vod/v20240718/errorcodes.py +33 -0
- tencentcloud/vod/v20240718/models.py +1839 -0
- tencentcloud/vod/v20240718/vod_client.py +146 -0
- tencentcloud/vpc/v20170312/errorcodes.py +12 -0
- tencentcloud/vpc/v20170312/models.py +2052 -519
- tencentcloud/vpc/v20170312/vpc_client.py +229 -11
- tencentcloud/vrs/v20200824/models.py +49 -0
- tencentcloud/waf/v20180125/errorcodes.py +9 -0
- tencentcloud/waf/v20180125/models.py +4191 -0
- tencentcloud/waf/v20180125/waf_client.py +276 -0
- tencentcloud/wedata/v20210820/models.py +5404 -394
- tencentcloud/wedata/v20210820/wedata_client.py +161 -0
- tencentcloud/weilingwith/v20230427/models.py +0 -964
- tencentcloud/weilingwith/v20230427/weilingwith_client.py +3 -1
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/RECORD +284 -275
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/top_level.txt +0 -0
@@ -203,18 +203,13 @@ class ActionTimer(AbstractModel):
|
|
203
203
|
:type TimerAction: str
|
204
204
|
:param _ActionTime: 执行时间,按照ISO8601标准表示,并且使用UTC时间。格式为 YYYY-MM-DDThh:mm:ssZ。例如 2018-05-29T11:26:40Z,执行时间必须大于当前时间5分钟。
|
205
205
|
:type ActionTime: str
|
206
|
-
:param _Externals:
|
206
|
+
:param _Externals: 扩展数据。仅做出参使用。
|
207
207
|
:type Externals: :class:`tencentcloud.cvm.v20170312.models.Externals`
|
208
|
-
:param _ActionTimerId: 定时器ID
|
208
|
+
:param _ActionTimerId: 定时器ID。仅做出参使用。
|
209
209
|
:type ActionTimerId: str
|
210
|
-
:param _Status:
|
211
|
-
|
212
|
-
UNDO:未触发
|
213
|
-
DOING:触发中
|
214
|
-
DONE:已经触发
|
215
|
-
|
210
|
+
:param _Status: 定时器状态,仅做出参使用。取值范围:<br><li>UNDO:未执行</li> <li>DOING:正在执行</li><li>DONE:执行完成。</li>
|
216
211
|
:type Status: str
|
217
|
-
:param _InstanceId: 定时器对应的实例ID
|
212
|
+
:param _InstanceId: 定时器对应的实例ID。仅做出参使用。
|
218
213
|
:type InstanceId: str
|
219
214
|
"""
|
220
215
|
self._TimerAction = None
|
@@ -248,7 +243,7 @@ DONE:已经触发
|
|
248
243
|
|
249
244
|
@property
|
250
245
|
def Externals(self):
|
251
|
-
"""
|
246
|
+
"""扩展数据。仅做出参使用。
|
252
247
|
:rtype: :class:`tencentcloud.cvm.v20170312.models.Externals`
|
253
248
|
"""
|
254
249
|
return self._Externals
|
@@ -259,7 +254,7 @@ DONE:已经触发
|
|
259
254
|
|
260
255
|
@property
|
261
256
|
def ActionTimerId(self):
|
262
|
-
"""定时器ID
|
257
|
+
"""定时器ID。仅做出参使用。
|
263
258
|
:rtype: str
|
264
259
|
"""
|
265
260
|
return self._ActionTimerId
|
@@ -270,12 +265,7 @@ DONE:已经触发
|
|
270
265
|
|
271
266
|
@property
|
272
267
|
def Status(self):
|
273
|
-
"""
|
274
|
-
|
275
|
-
UNDO:未触发
|
276
|
-
DOING:触发中
|
277
|
-
DONE:已经触发
|
278
|
-
|
268
|
+
"""定时器状态,仅做出参使用。取值范围:<br><li>UNDO:未执行</li> <li>DOING:正在执行</li><li>DONE:执行完成。</li>
|
279
269
|
:rtype: str
|
280
270
|
"""
|
281
271
|
return self._Status
|
@@ -286,7 +276,7 @@ DONE:已经触发
|
|
286
276
|
|
287
277
|
@property
|
288
278
|
def InstanceId(self):
|
289
|
-
"""定时器对应的实例ID
|
279
|
+
"""定时器对应的实例ID。仅做出参使用。
|
290
280
|
:rtype: str
|
291
281
|
"""
|
292
282
|
return self._InstanceId
|
@@ -500,11 +490,17 @@ class AssociateInstancesKeyPairsRequest(AbstractModel):
|
|
500
490
|
|
501
491
|
def __init__(self):
|
502
492
|
r"""
|
503
|
-
:param _InstanceIds: 一个或多个待操作的实例ID,每次请求批量实例的上限为100
|
493
|
+
:param _InstanceIds: 一个或多个待操作的实例ID,每次请求批量实例的上限为100。可以通过以下方式获取可用的实例ID:
|
494
|
+
<li>通过登录[控制台](https://console.cloud.tencent.com/cvm/index)查询实例ID。</li>
|
495
|
+
<li>通过调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的`InstanceId`获取实例ID。</li>
|
504
496
|
:type InstanceIds: list of str
|
505
|
-
:param _KeyIds: 一个或多个待操作的密钥对ID,每次请求批量密钥对的上限为100
|
497
|
+
:param _KeyIds: 一个或多个待操作的密钥对ID,每次请求批量密钥对的上限为100。可以通过以下方式获取可用的密钥ID:
|
498
|
+
<li>通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥ID。</li>
|
499
|
+
<li>通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699) ,取返回信息中的`KeyId`获取密钥对ID。</li>
|
506
500
|
:type KeyIds: list of str
|
507
|
-
:param _ForceStop:
|
501
|
+
:param _ForceStop: 是否强制关机,默认值为 false。常规场景下,建议手动关机后绑定密钥。取值范围:
|
502
|
+
<li>true:先执行强制关机,再绑定密钥。</li>
|
503
|
+
<li>false:不执行强制关机,仅支持对已关机状态实例进行绑定操作。</li>
|
508
504
|
:type ForceStop: bool
|
509
505
|
"""
|
510
506
|
self._InstanceIds = None
|
@@ -513,7 +509,9 @@ class AssociateInstancesKeyPairsRequest(AbstractModel):
|
|
513
509
|
|
514
510
|
@property
|
515
511
|
def InstanceIds(self):
|
516
|
-
"""一个或多个待操作的实例ID,每次请求批量实例的上限为100
|
512
|
+
"""一个或多个待操作的实例ID,每次请求批量实例的上限为100。可以通过以下方式获取可用的实例ID:
|
513
|
+
<li>通过登录[控制台](https://console.cloud.tencent.com/cvm/index)查询实例ID。</li>
|
514
|
+
<li>通过调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的`InstanceId`获取实例ID。</li>
|
517
515
|
:rtype: list of str
|
518
516
|
"""
|
519
517
|
return self._InstanceIds
|
@@ -524,7 +522,9 @@ class AssociateInstancesKeyPairsRequest(AbstractModel):
|
|
524
522
|
|
525
523
|
@property
|
526
524
|
def KeyIds(self):
|
527
|
-
"""一个或多个待操作的密钥对ID,每次请求批量密钥对的上限为100
|
525
|
+
"""一个或多个待操作的密钥对ID,每次请求批量密钥对的上限为100。可以通过以下方式获取可用的密钥ID:
|
526
|
+
<li>通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥ID。</li>
|
527
|
+
<li>通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699) ,取返回信息中的`KeyId`获取密钥对ID。</li>
|
528
528
|
:rtype: list of str
|
529
529
|
"""
|
530
530
|
return self._KeyIds
|
@@ -535,7 +535,9 @@ class AssociateInstancesKeyPairsRequest(AbstractModel):
|
|
535
535
|
|
536
536
|
@property
|
537
537
|
def ForceStop(self):
|
538
|
-
"""
|
538
|
+
"""是否强制关机,默认值为 false。常规场景下,建议手动关机后绑定密钥。取值范围:
|
539
|
+
<li>true:先执行强制关机,再绑定密钥。</li>
|
540
|
+
<li>false:不执行强制关机,仅支持对已关机状态实例进行绑定操作。</li>
|
539
541
|
:rtype: bool
|
540
542
|
"""
|
541
543
|
return self._ForceStop
|
@@ -594,9 +596,9 @@ class AssociateSecurityGroupsRequest(AbstractModel):
|
|
594
596
|
|
595
597
|
def __init__(self):
|
596
598
|
r"""
|
597
|
-
:param _SecurityGroupIds: 要绑定的`安全组ID`,类似sg-efil73jd
|
599
|
+
:param _SecurityGroupIds: 要绑定的`安全组ID`,类似sg-efil73jd,只支持绑定单个安全组。可通过 [DescribeSecurityGroups](https://cloud.tencent.com/document/product/215/15808) 接口返回值中的`SecurityGroupId`获取。
|
598
600
|
:type SecurityGroupIds: list of str
|
599
|
-
:param _InstanceIds: 被绑定的`实例ID`,类似ins-lesecurk,支持指定多个实例,每次请求批量实例的上限为100
|
601
|
+
:param _InstanceIds: 被绑定的`实例ID`,类似ins-lesecurk,支持指定多个实例,每次请求批量实例的上限为100。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
600
602
|
:type InstanceIds: list of str
|
601
603
|
"""
|
602
604
|
self._SecurityGroupIds = None
|
@@ -604,7 +606,7 @@ class AssociateSecurityGroupsRequest(AbstractModel):
|
|
604
606
|
|
605
607
|
@property
|
606
608
|
def SecurityGroupIds(self):
|
607
|
-
"""要绑定的`安全组ID`,类似sg-efil73jd
|
609
|
+
"""要绑定的`安全组ID`,类似sg-efil73jd,只支持绑定单个安全组。可通过 [DescribeSecurityGroups](https://cloud.tencent.com/document/product/215/15808) 接口返回值中的`SecurityGroupId`获取。
|
608
610
|
:rtype: list of str
|
609
611
|
"""
|
610
612
|
return self._SecurityGroupIds
|
@@ -615,7 +617,7 @@ class AssociateSecurityGroupsRequest(AbstractModel):
|
|
615
617
|
|
616
618
|
@property
|
617
619
|
def InstanceIds(self):
|
618
|
-
"""被绑定的`实例ID`,类似ins-lesecurk,支持指定多个实例,每次请求批量实例的上限为100
|
620
|
+
"""被绑定的`实例ID`,类似ins-lesecurk,支持指定多个实例,每次请求批量实例的上限为100。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
619
621
|
:rtype: list of str
|
620
622
|
"""
|
621
623
|
return self._InstanceIds
|
@@ -666,6 +668,42 @@ class AssociateSecurityGroupsResponse(AbstractModel):
|
|
666
668
|
self._RequestId = params.get("RequestId")
|
667
669
|
|
668
670
|
|
671
|
+
class Attribute(AbstractModel):
|
672
|
+
"""属性信息
|
673
|
+
|
674
|
+
"""
|
675
|
+
|
676
|
+
def __init__(self):
|
677
|
+
r"""
|
678
|
+
:param _UserData: 实例的自定义数据。
|
679
|
+
:type UserData: str
|
680
|
+
"""
|
681
|
+
self._UserData = None
|
682
|
+
|
683
|
+
@property
|
684
|
+
def UserData(self):
|
685
|
+
"""实例的自定义数据。
|
686
|
+
:rtype: str
|
687
|
+
"""
|
688
|
+
return self._UserData
|
689
|
+
|
690
|
+
@UserData.setter
|
691
|
+
def UserData(self, UserData):
|
692
|
+
self._UserData = UserData
|
693
|
+
|
694
|
+
|
695
|
+
def _deserialize(self, params):
|
696
|
+
self._UserData = params.get("UserData")
|
697
|
+
memeber_set = set(params.keys())
|
698
|
+
for name, value in vars(self).items():
|
699
|
+
property_name = name[1:]
|
700
|
+
if property_name in memeber_set:
|
701
|
+
memeber_set.remove(property_name)
|
702
|
+
if len(memeber_set) > 0:
|
703
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
704
|
+
|
705
|
+
|
706
|
+
|
669
707
|
class ChargePrepaid(AbstractModel):
|
670
708
|
"""描述预付费模式,即包年包月相关参数。包括购买时长和自动续费逻辑等。
|
671
709
|
|
@@ -1750,13 +1788,18 @@ class ConvertOperatingSystemsRequest(AbstractModel):
|
|
1750
1788
|
|
1751
1789
|
def __init__(self):
|
1752
1790
|
r"""
|
1753
|
-
:param _InstanceIds: 执行操作系统转换的实例 ID
|
1791
|
+
:param _InstanceIds: 执行操作系统转换的实例 ID。
|
1792
|
+
可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
1793
|
+
仅支持操作系统为 CentOS 7、CentOS 8 的实例执行转换。
|
1754
1794
|
:type InstanceIds: list of str
|
1755
|
-
:param _MinimalConversion:
|
1795
|
+
:param _MinimalConversion: 是否最小规模转换。
|
1796
|
+
默认值:false
|
1756
1797
|
:type MinimalConversion: bool
|
1757
|
-
:param _DryRun:
|
1798
|
+
:param _DryRun: 是否只预检。
|
1799
|
+
默认值:false
|
1758
1800
|
:type DryRun: bool
|
1759
1801
|
:param _TargetOSType: 转换的目标操作系统类型。仅支持 TencentOS。
|
1802
|
+
默认值:TencentOS
|
1760
1803
|
:type TargetOSType: str
|
1761
1804
|
"""
|
1762
1805
|
self._InstanceIds = None
|
@@ -1766,7 +1809,9 @@ class ConvertOperatingSystemsRequest(AbstractModel):
|
|
1766
1809
|
|
1767
1810
|
@property
|
1768
1811
|
def InstanceIds(self):
|
1769
|
-
"""执行操作系统转换的实例 ID
|
1812
|
+
"""执行操作系统转换的实例 ID。
|
1813
|
+
可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
1814
|
+
仅支持操作系统为 CentOS 7、CentOS 8 的实例执行转换。
|
1770
1815
|
:rtype: list of str
|
1771
1816
|
"""
|
1772
1817
|
return self._InstanceIds
|
@@ -1777,7 +1822,8 @@ class ConvertOperatingSystemsRequest(AbstractModel):
|
|
1777
1822
|
|
1778
1823
|
@property
|
1779
1824
|
def MinimalConversion(self):
|
1780
|
-
"""
|
1825
|
+
"""是否最小规模转换。
|
1826
|
+
默认值:false
|
1781
1827
|
:rtype: bool
|
1782
1828
|
"""
|
1783
1829
|
return self._MinimalConversion
|
@@ -1788,7 +1834,8 @@ class ConvertOperatingSystemsRequest(AbstractModel):
|
|
1788
1834
|
|
1789
1835
|
@property
|
1790
1836
|
def DryRun(self):
|
1791
|
-
"""
|
1837
|
+
"""是否只预检。
|
1838
|
+
默认值:false
|
1792
1839
|
:rtype: bool
|
1793
1840
|
"""
|
1794
1841
|
return self._DryRun
|
@@ -1800,6 +1847,7 @@ class ConvertOperatingSystemsRequest(AbstractModel):
|
|
1800
1847
|
@property
|
1801
1848
|
def TargetOSType(self):
|
1802
1849
|
"""转换的目标操作系统类型。仅支持 TencentOS。
|
1850
|
+
默认值:TencentOS
|
1803
1851
|
:rtype: str
|
1804
1852
|
"""
|
1805
1853
|
return self._TargetOSType
|
@@ -2330,11 +2378,15 @@ class CreateImageRequest(AbstractModel):
|
|
2330
2378
|
|
2331
2379
|
def __init__(self):
|
2332
2380
|
r"""
|
2333
|
-
:param _ImageName:
|
2381
|
+
:param _ImageName: 镜像名称。
|
2382
|
+
最多支持60个字符。
|
2334
2383
|
:type ImageName: str
|
2335
2384
|
:param _InstanceId: 需要制作镜像的实例ID。基于实例创建镜像时,为必填参数。
|
2385
|
+
InstanceId 和 SnapshotIds 为二选一必填参数。
|
2386
|
+
可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
2336
2387
|
:type InstanceId: str
|
2337
|
-
:param _ImageDescription:
|
2388
|
+
:param _ImageDescription: 镜像描述。
|
2389
|
+
最多支持 256 个字符。
|
2338
2390
|
:type ImageDescription: str
|
2339
2391
|
:param _ForcePoweroff: 是否执行强制关机以制作镜像。
|
2340
2392
|
取值范围:<br><li>true:表示关机之后制作镜像</li><br><li>false:表示开机状态制作镜像</li><br><br>默认取值:false。<br><br>开机状态制作镜像,可能导致部分数据未备份,影响数据安全。
|
@@ -2344,13 +2396,18 @@ class CreateImageRequest(AbstractModel):
|
|
2344
2396
|
|
2345
2397
|
关于Sysprep的详情请参考[链接](https://cloud.tencent.com/document/product/213/43498)。
|
2346
2398
|
:type Sysprep: str
|
2347
|
-
:param _DataDiskIds: 基于实例创建整机镜像时,指定包含在镜像里的数据盘ID
|
2399
|
+
:param _DataDiskIds: 基于实例创建整机镜像时,指定包含在镜像里的数据盘ID。
|
2400
|
+
DataDiskIds 只能在指定 InstanceId 实例所包含的数据盘范围内指定。
|
2401
|
+
可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的 `DataDisks` 获取。
|
2348
2402
|
:type DataDiskIds: list of str
|
2349
|
-
:param _SnapshotIds: 基于快照创建镜像,指定快照ID,必须包含一个系统盘快照。不可与InstanceId同时传入。
|
2403
|
+
:param _SnapshotIds: 基于快照创建镜像,指定快照ID,必须包含一个系统盘快照。不可与 InstanceId 同时传入。
|
2404
|
+
InstanceId 和 SnapshotIds 为二选一必填参数。
|
2405
|
+
可通过 [DescribeSnapshots](https://cloud.tencent.com/document/product/362/15647) 接口返回值中的`SnapshotId`获取。
|
2350
2406
|
:type SnapshotIds: list of str
|
2351
2407
|
:param _DryRun: 检测本次请求的是否成功,但不会对操作的资源产生任何影响。默认取值为false。
|
2352
2408
|
:type DryRun: bool
|
2353
2409
|
:param _TagSpecification: 标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。
|
2410
|
+
可通过 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 接口返回值中的 `TagKey` 和 `TagValue` 获取。
|
2354
2411
|
:type TagSpecification: list of TagSpecification
|
2355
2412
|
:param _ImageFamily: 镜像族
|
2356
2413
|
:type ImageFamily: str
|
@@ -2368,7 +2425,8 @@ class CreateImageRequest(AbstractModel):
|
|
2368
2425
|
|
2369
2426
|
@property
|
2370
2427
|
def ImageName(self):
|
2371
|
-
"""
|
2428
|
+
"""镜像名称。
|
2429
|
+
最多支持60个字符。
|
2372
2430
|
:rtype: str
|
2373
2431
|
"""
|
2374
2432
|
return self._ImageName
|
@@ -2380,6 +2438,8 @@ class CreateImageRequest(AbstractModel):
|
|
2380
2438
|
@property
|
2381
2439
|
def InstanceId(self):
|
2382
2440
|
"""需要制作镜像的实例ID。基于实例创建镜像时,为必填参数。
|
2441
|
+
InstanceId 和 SnapshotIds 为二选一必填参数。
|
2442
|
+
可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
2383
2443
|
:rtype: str
|
2384
2444
|
"""
|
2385
2445
|
return self._InstanceId
|
@@ -2390,7 +2450,8 @@ class CreateImageRequest(AbstractModel):
|
|
2390
2450
|
|
2391
2451
|
@property
|
2392
2452
|
def ImageDescription(self):
|
2393
|
-
"""
|
2453
|
+
"""镜像描述。
|
2454
|
+
最多支持 256 个字符。
|
2394
2455
|
:rtype: str
|
2395
2456
|
"""
|
2396
2457
|
return self._ImageDescription
|
@@ -2427,7 +2488,9 @@ class CreateImageRequest(AbstractModel):
|
|
2427
2488
|
|
2428
2489
|
@property
|
2429
2490
|
def DataDiskIds(self):
|
2430
|
-
"""基于实例创建整机镜像时,指定包含在镜像里的数据盘ID
|
2491
|
+
"""基于实例创建整机镜像时,指定包含在镜像里的数据盘ID。
|
2492
|
+
DataDiskIds 只能在指定 InstanceId 实例所包含的数据盘范围内指定。
|
2493
|
+
可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的 `DataDisks` 获取。
|
2431
2494
|
:rtype: list of str
|
2432
2495
|
"""
|
2433
2496
|
return self._DataDiskIds
|
@@ -2438,7 +2501,9 @@ class CreateImageRequest(AbstractModel):
|
|
2438
2501
|
|
2439
2502
|
@property
|
2440
2503
|
def SnapshotIds(self):
|
2441
|
-
"""基于快照创建镜像,指定快照ID,必须包含一个系统盘快照。不可与InstanceId同时传入。
|
2504
|
+
"""基于快照创建镜像,指定快照ID,必须包含一个系统盘快照。不可与 InstanceId 同时传入。
|
2505
|
+
InstanceId 和 SnapshotIds 为二选一必填参数。
|
2506
|
+
可通过 [DescribeSnapshots](https://cloud.tencent.com/document/product/362/15647) 接口返回值中的`SnapshotId`获取。
|
2442
2507
|
:rtype: list of str
|
2443
2508
|
"""
|
2444
2509
|
return self._SnapshotIds
|
@@ -2461,6 +2526,7 @@ class CreateImageRequest(AbstractModel):
|
|
2461
2526
|
@property
|
2462
2527
|
def TagSpecification(self):
|
2463
2528
|
"""标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。
|
2529
|
+
可通过 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 接口返回值中的 `TagKey` 和 `TagValue` 获取。
|
2464
2530
|
:rtype: list of TagSpecification
|
2465
2531
|
"""
|
2466
2532
|
return self._TagSpecification
|
@@ -2559,7 +2625,7 @@ class CreateKeyPairRequest(AbstractModel):
|
|
2559
2625
|
r"""
|
2560
2626
|
:param _KeyName: 密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。
|
2561
2627
|
:type KeyName: str
|
2562
|
-
:param _ProjectId: 密钥对创建后所属的项目ID
|
2628
|
+
:param _ProjectId: 密钥对创建后所属的项目ID,ProjectId为0表示默认项目。
|
2563
2629
|
可以通过以下方式获取项目ID:
|
2564
2630
|
<li>通过项目列表查询项目ID。</li>
|
2565
2631
|
<li>通过调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的`projectId `获取项目ID。</li>
|
@@ -2584,7 +2650,7 @@ class CreateKeyPairRequest(AbstractModel):
|
|
2584
2650
|
|
2585
2651
|
@property
|
2586
2652
|
def ProjectId(self):
|
2587
|
-
"""密钥对创建后所属的项目ID
|
2653
|
+
"""密钥对创建后所属的项目ID,ProjectId为0表示默认项目。
|
2588
2654
|
可以通过以下方式获取项目ID:
|
2589
2655
|
<li>通过项目列表查询项目ID。</li>
|
2590
2656
|
<li>通过调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的`projectId `获取项目ID。</li>
|
@@ -2740,6 +2806,15 @@ false(默认):发送正常请求,通过检查后直接创建实例。
|
|
2740
2806
|
:type DisableApiTermination: bool
|
2741
2807
|
:param _LaunchTemplateTagSpecification: 标签描述列表。通过指定该参数可以绑定标签到实例启动模板。
|
2742
2808
|
:type LaunchTemplateTagSpecification: list of TagSpecification
|
2809
|
+
:param _Metadata: 自定义metadata,支持创建 CVM 时添加自定义元数据键值对。
|
2810
|
+
**注:内测中**。
|
2811
|
+
:type Metadata: :class:`tencentcloud.cvm.v20170312.models.Metadata`
|
2812
|
+
:param _TemplateDataModifyAction: 只允许传递 Update 和 Replace 参数,在模板使用自定义 Metadata 且在 RunInstances 也传递 Metadata 时生效。默认采用 Replace。
|
2813
|
+
|
2814
|
+
- Update:设模板 t含本参数值为Update、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k1:v1, k2:v3]
|
2815
|
+
- Replace:模板 t含本参数值为Replace、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k2:v3]
|
2816
|
+
**注:内测中**。
|
2817
|
+
:type TemplateDataModifyAction: str
|
2743
2818
|
"""
|
2744
2819
|
self._LaunchTemplateName = None
|
2745
2820
|
self._Placement = None
|
@@ -2769,6 +2844,8 @@ false(默认):发送正常请求,通过检查后直接创建实例。
|
|
2769
2844
|
self._InstanceChargePrepaid = None
|
2770
2845
|
self._DisableApiTermination = None
|
2771
2846
|
self._LaunchTemplateTagSpecification = None
|
2847
|
+
self._Metadata = None
|
2848
|
+
self._TemplateDataModifyAction = None
|
2772
2849
|
|
2773
2850
|
@property
|
2774
2851
|
def LaunchTemplateName(self):
|
@@ -3083,6 +3160,33 @@ false(默认):发送正常请求,通过检查后直接创建实例。
|
|
3083
3160
|
def LaunchTemplateTagSpecification(self, LaunchTemplateTagSpecification):
|
3084
3161
|
self._LaunchTemplateTagSpecification = LaunchTemplateTagSpecification
|
3085
3162
|
|
3163
|
+
@property
|
3164
|
+
def Metadata(self):
|
3165
|
+
"""自定义metadata,支持创建 CVM 时添加自定义元数据键值对。
|
3166
|
+
**注:内测中**。
|
3167
|
+
:rtype: :class:`tencentcloud.cvm.v20170312.models.Metadata`
|
3168
|
+
"""
|
3169
|
+
return self._Metadata
|
3170
|
+
|
3171
|
+
@Metadata.setter
|
3172
|
+
def Metadata(self, Metadata):
|
3173
|
+
self._Metadata = Metadata
|
3174
|
+
|
3175
|
+
@property
|
3176
|
+
def TemplateDataModifyAction(self):
|
3177
|
+
"""只允许传递 Update 和 Replace 参数,在模板使用自定义 Metadata 且在 RunInstances 也传递 Metadata 时生效。默认采用 Replace。
|
3178
|
+
|
3179
|
+
- Update:设模板 t含本参数值为Update、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k1:v1, k2:v3]
|
3180
|
+
- Replace:模板 t含本参数值为Replace、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k2:v3]
|
3181
|
+
**注:内测中**。
|
3182
|
+
:rtype: str
|
3183
|
+
"""
|
3184
|
+
return self._TemplateDataModifyAction
|
3185
|
+
|
3186
|
+
@TemplateDataModifyAction.setter
|
3187
|
+
def TemplateDataModifyAction(self, TemplateDataModifyAction):
|
3188
|
+
self._TemplateDataModifyAction = TemplateDataModifyAction
|
3189
|
+
|
3086
3190
|
|
3087
3191
|
def _deserialize(self, params):
|
3088
3192
|
self._LaunchTemplateName = params.get("LaunchTemplateName")
|
@@ -3146,6 +3250,10 @@ false(默认):发送正常请求,通过检查后直接创建实例。
|
|
3146
3250
|
obj = TagSpecification()
|
3147
3251
|
obj._deserialize(item)
|
3148
3252
|
self._LaunchTemplateTagSpecification.append(obj)
|
3253
|
+
if params.get("Metadata") is not None:
|
3254
|
+
self._Metadata = Metadata()
|
3255
|
+
self._Metadata._deserialize(params.get("Metadata"))
|
3256
|
+
self._TemplateDataModifyAction = params.get("TemplateDataModifyAction")
|
3149
3257
|
memeber_set = set(params.keys())
|
3150
3258
|
for name, value in vars(self).items():
|
3151
3259
|
property_name = name[1:]
|
@@ -3267,6 +3375,15 @@ false(默认):发送正常请求,通过检查后直接创建实例。
|
|
3267
3375
|
:type InstanceChargePrepaid: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
|
3268
3376
|
:param _DisableApiTermination: 实例销毁保护标志,表示是否允许通过api接口删除实例。取值范围:<br><li>TRUE:表示开启实例保护,不允许通过api接口删除实例</li><br><li>FALSE:表示关闭实例保护,允许通过api接口删除实例</li><br><br>默认取值:FALSE。
|
3269
3377
|
:type DisableApiTermination: bool
|
3378
|
+
:param _Metadata: 自定义metadata,支持创建 CVM 时添加自定义元数据键值对。
|
3379
|
+
**注:内测中**。
|
3380
|
+
:type Metadata: :class:`tencentcloud.cvm.v20170312.models.Metadata`
|
3381
|
+
:param _TemplateDataModifyAction: 只允许传递 Update 和 Replace 参数,在模板使用自定义 Metadata 且在 RunInstances 也传递 Metadata 时生效。默认采用 Replace。
|
3382
|
+
|
3383
|
+
- Update:设模板 t含本参数值为Update、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k1:v1, k2:v3]
|
3384
|
+
- Replace:模板 t含本参数值为Replace、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k2:v3]
|
3385
|
+
**注:内测中**。
|
3386
|
+
:type TemplateDataModifyAction: str
|
3270
3387
|
"""
|
3271
3388
|
self._Placement = None
|
3272
3389
|
self._LaunchTemplateId = None
|
@@ -3296,6 +3413,8 @@ false(默认):发送正常请求,通过检查后直接创建实例。
|
|
3296
3413
|
self._InstanceChargeType = None
|
3297
3414
|
self._InstanceChargePrepaid = None
|
3298
3415
|
self._DisableApiTermination = None
|
3416
|
+
self._Metadata = None
|
3417
|
+
self._TemplateDataModifyAction = None
|
3299
3418
|
|
3300
3419
|
@property
|
3301
3420
|
def Placement(self):
|
@@ -3610,6 +3729,33 @@ false(默认):发送正常请求,通过检查后直接创建实例。
|
|
3610
3729
|
def DisableApiTermination(self, DisableApiTermination):
|
3611
3730
|
self._DisableApiTermination = DisableApiTermination
|
3612
3731
|
|
3732
|
+
@property
|
3733
|
+
def Metadata(self):
|
3734
|
+
"""自定义metadata,支持创建 CVM 时添加自定义元数据键值对。
|
3735
|
+
**注:内测中**。
|
3736
|
+
:rtype: :class:`tencentcloud.cvm.v20170312.models.Metadata`
|
3737
|
+
"""
|
3738
|
+
return self._Metadata
|
3739
|
+
|
3740
|
+
@Metadata.setter
|
3741
|
+
def Metadata(self, Metadata):
|
3742
|
+
self._Metadata = Metadata
|
3743
|
+
|
3744
|
+
@property
|
3745
|
+
def TemplateDataModifyAction(self):
|
3746
|
+
"""只允许传递 Update 和 Replace 参数,在模板使用自定义 Metadata 且在 RunInstances 也传递 Metadata 时生效。默认采用 Replace。
|
3747
|
+
|
3748
|
+
- Update:设模板 t含本参数值为Update、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k1:v1, k2:v3]
|
3749
|
+
- Replace:模板 t含本参数值为Replace、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k2:v3]
|
3750
|
+
**注:内测中**。
|
3751
|
+
:rtype: str
|
3752
|
+
"""
|
3753
|
+
return self._TemplateDataModifyAction
|
3754
|
+
|
3755
|
+
@TemplateDataModifyAction.setter
|
3756
|
+
def TemplateDataModifyAction(self, TemplateDataModifyAction):
|
3757
|
+
self._TemplateDataModifyAction = TemplateDataModifyAction
|
3758
|
+
|
3613
3759
|
|
3614
3760
|
def _deserialize(self, params):
|
3615
3761
|
if params.get("Placement") is not None:
|
@@ -3668,6 +3814,10 @@ false(默认):发送正常请求,通过检查后直接创建实例。
|
|
3668
3814
|
self._InstanceChargePrepaid = InstanceChargePrepaid()
|
3669
3815
|
self._InstanceChargePrepaid._deserialize(params.get("InstanceChargePrepaid"))
|
3670
3816
|
self._DisableApiTermination = params.get("DisableApiTermination")
|
3817
|
+
if params.get("Metadata") is not None:
|
3818
|
+
self._Metadata = Metadata()
|
3819
|
+
self._Metadata._deserialize(params.get("Metadata"))
|
3820
|
+
self._TemplateDataModifyAction = params.get("TemplateDataModifyAction")
|
3671
3821
|
memeber_set = set(params.keys())
|
3672
3822
|
for name, value in vars(self).items():
|
3673
3823
|
property_name = name[1:]
|
@@ -3728,36 +3878,25 @@ class DataDisk(AbstractModel):
|
|
3728
3878
|
|
3729
3879
|
def __init__(self):
|
3730
3880
|
r"""
|
3731
|
-
:param _DiskSize: 数据盘大小,单位:
|
3881
|
+
:param _DiskSize: 数据盘大小,单位:GiB。最小调整步长为10GiB,不同数据盘类型取值范围不同,具体限制详见:[存储概述](https://cloud.tencent.com/document/product/213/4952)。默认值为0,表示不购买数据盘。更多限制详见产品文档。
|
3732
3882
|
:type DiskSize: int
|
3733
3883
|
:param _DiskType: 数据盘类型。数据盘类型限制详见[存储概述](https://cloud.tencent.com/document/product/213/4952)。取值范围:<br /><li>LOCAL_BASIC:本地硬盘<br /> <li>LOCAL_SSD:本地SSD硬盘<br /><li>LOCAL_NVME:本地NVME硬盘,与InstanceType强相关,不支持指定<br /><li>LOCAL_PRO:本地HDD硬盘,与InstanceType强相关,不支持指定<br /><li>CLOUD_BASIC:普通云硬盘<br /><li> CLOUD_PREMIUM:高性能云硬盘<br /><li>CLOUD_SSD:SSD云硬盘<br /><li> CLOUD_HSSD:增强型SSD云硬盘<br /> <li>CLOUD_TSSD:极速型SSD云硬盘<br /><li>CLOUD_BSSD:通用型SSD云硬盘<br /><br />默认取值:LOCAL_BASIC。<br /><br />该参数对`ResizeInstanceDisk`接口无效。</li></li></li> </li> </li></li></li></li></li></li>
|
3734
3884
|
:type DiskType: str
|
3735
3885
|
:param _DiskId: 数据盘ID。
|
3736
3886
|
该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。
|
3737
3887
|
:type DiskId: str
|
3738
|
-
:param _DeleteWithInstance:
|
3739
|
-
<li>true:子机销毁时,销毁数据盘,只支持按小时后付费云盘</li>
|
3740
|
-
<li>
|
3741
|
-
false:子机销毁时,保留数据盘<br />
|
3742
|
-
默认取值:true<br />
|
3743
|
-
该参数目前仅用于 `RunInstances` 接口。
|
3744
|
-
</li>
|
3888
|
+
:param _DeleteWithInstance: 数据盘是否随子机销毁。取值范围:<li>true:子机销毁时,销毁数据盘,只支持按小时后付费云盘</li><li>false:子机销毁时,保留数据盘</li><br/>默认取值:true <br/>该参数目前仅用于 `RunInstances` 接口。
|
3745
3889
|
:type DeleteWithInstance: bool
|
3746
3890
|
:param _SnapshotId: 数据盘快照ID。选择的数据盘快照大小需小于数据盘大小。
|
3747
3891
|
:type SnapshotId: str
|
3748
|
-
:param _Encrypt:
|
3749
|
-
<li>true:加密</li>
|
3750
|
-
<li>
|
3751
|
-
false:不加密<br />
|
3752
|
-
默认取值:false<br />
|
3753
|
-
该参数目前仅用于 `RunInstances` 接口。
|
3754
|
-
</li>
|
3892
|
+
:param _Encrypt: 数据盘是否加密。取值范围:<li>true:加密</li><li>false:不加密</li><br/>默认取值:false<br/>该参数目前仅用于 `RunInstances` 接口。
|
3755
3893
|
:type Encrypt: bool
|
3756
3894
|
:param _KmsKeyId: 自定义CMK对应的ID,取值为UUID或者类似kms-abcd1234。用于加密云盘。
|
3757
3895
|
|
3758
3896
|
该参数目前仅用于 `RunInstances` 接口。
|
3759
3897
|
:type KmsKeyId: str
|
3760
|
-
:param _ThroughputPerformance: 云硬盘性能,单位:
|
3898
|
+
:param _ThroughputPerformance: 云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。
|
3899
|
+
当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)
|
3761
3900
|
:type ThroughputPerformance: int
|
3762
3901
|
:param _CdcId: 所属的独享集群ID。
|
3763
3902
|
:type CdcId: str
|
@@ -3766,8 +3905,6 @@ class DataDisk(AbstractModel):
|
|
3766
3905
|
<b>注:内测中。</b>
|
3767
3906
|
:type BurstPerformance: bool
|
3768
3907
|
:param _DiskName: 磁盘名称,长度不超过128 个字符。
|
3769
|
-
|
3770
|
-
该参数正在邀测中,暂未开放使用。
|
3771
3908
|
:type DiskName: str
|
3772
3909
|
"""
|
3773
3910
|
self._DiskSize = None
|
@@ -3784,7 +3921,7 @@ class DataDisk(AbstractModel):
|
|
3784
3921
|
|
3785
3922
|
@property
|
3786
3923
|
def DiskSize(self):
|
3787
|
-
"""数据盘大小,单位:
|
3924
|
+
"""数据盘大小,单位:GiB。最小调整步长为10GiB,不同数据盘类型取值范围不同,具体限制详见:[存储概述](https://cloud.tencent.com/document/product/213/4952)。默认值为0,表示不购买数据盘。更多限制详见产品文档。
|
3788
3925
|
:rtype: int
|
3789
3926
|
"""
|
3790
3927
|
return self._DiskSize
|
@@ -3818,13 +3955,7 @@ class DataDisk(AbstractModel):
|
|
3818
3955
|
|
3819
3956
|
@property
|
3820
3957
|
def DeleteWithInstance(self):
|
3821
|
-
"""
|
3822
|
-
<li>true:子机销毁时,销毁数据盘,只支持按小时后付费云盘</li>
|
3823
|
-
<li>
|
3824
|
-
false:子机销毁时,保留数据盘<br />
|
3825
|
-
默认取值:true<br />
|
3826
|
-
该参数目前仅用于 `RunInstances` 接口。
|
3827
|
-
</li>
|
3958
|
+
"""数据盘是否随子机销毁。取值范围:<li>true:子机销毁时,销毁数据盘,只支持按小时后付费云盘</li><li>false:子机销毁时,保留数据盘</li><br/>默认取值:true <br/>该参数目前仅用于 `RunInstances` 接口。
|
3828
3959
|
:rtype: bool
|
3829
3960
|
"""
|
3830
3961
|
return self._DeleteWithInstance
|
@@ -3846,13 +3977,7 @@ class DataDisk(AbstractModel):
|
|
3846
3977
|
|
3847
3978
|
@property
|
3848
3979
|
def Encrypt(self):
|
3849
|
-
"""
|
3850
|
-
<li>true:加密</li>
|
3851
|
-
<li>
|
3852
|
-
false:不加密<br />
|
3853
|
-
默认取值:false<br />
|
3854
|
-
该参数目前仅用于 `RunInstances` 接口。
|
3855
|
-
</li>
|
3980
|
+
"""数据盘是否加密。取值范围:<li>true:加密</li><li>false:不加密</li><br/>默认取值:false<br/>该参数目前仅用于 `RunInstances` 接口。
|
3856
3981
|
:rtype: bool
|
3857
3982
|
"""
|
3858
3983
|
return self._Encrypt
|
@@ -3876,7 +4001,8 @@ class DataDisk(AbstractModel):
|
|
3876
4001
|
|
3877
4002
|
@property
|
3878
4003
|
def ThroughputPerformance(self):
|
3879
|
-
"""云硬盘性能,单位:
|
4004
|
+
"""云硬盘性能,单位:MiB/s。使用此参数可给云硬盘购买额外的性能。
|
4005
|
+
当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)
|
3880
4006
|
:rtype: int
|
3881
4007
|
"""
|
3882
4008
|
return self._ThroughputPerformance
|
@@ -3912,8 +4038,6 @@ class DataDisk(AbstractModel):
|
|
3912
4038
|
@property
|
3913
4039
|
def DiskName(self):
|
3914
4040
|
"""磁盘名称,长度不超过128 个字符。
|
3915
|
-
|
3916
|
-
该参数正在邀测中,暂未开放使用。
|
3917
4041
|
:rtype: str
|
3918
4042
|
"""
|
3919
4043
|
return self._DiskName
|
@@ -4080,11 +4204,14 @@ class DeleteImagesRequest(AbstractModel):
|
|
4080
4204
|
|
4081
4205
|
def __init__(self):
|
4082
4206
|
r"""
|
4083
|
-
:param _ImageIds:
|
4207
|
+
:param _ImageIds: 删除的镜像 ID 列表。
|
4208
|
+
可通过 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) 接口返回值中的`ImageId`获取。
|
4084
4209
|
:type ImageIds: list of str
|
4085
|
-
:param _DeleteBindedSnap:
|
4210
|
+
:param _DeleteBindedSnap: 是否删除镜像关联的快照。
|
4211
|
+
默认值:false
|
4086
4212
|
:type DeleteBindedSnap: bool
|
4087
|
-
:param _DryRun:
|
4213
|
+
:param _DryRun: 检测是否支持删除镜像。
|
4214
|
+
默认值:false
|
4088
4215
|
:type DryRun: bool
|
4089
4216
|
"""
|
4090
4217
|
self._ImageIds = None
|
@@ -4093,7 +4220,8 @@ class DeleteImagesRequest(AbstractModel):
|
|
4093
4220
|
|
4094
4221
|
@property
|
4095
4222
|
def ImageIds(self):
|
4096
|
-
"""
|
4223
|
+
"""删除的镜像 ID 列表。
|
4224
|
+
可通过 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) 接口返回值中的`ImageId`获取。
|
4097
4225
|
:rtype: list of str
|
4098
4226
|
"""
|
4099
4227
|
return self._ImageIds
|
@@ -4104,7 +4232,8 @@ class DeleteImagesRequest(AbstractModel):
|
|
4104
4232
|
|
4105
4233
|
@property
|
4106
4234
|
def DeleteBindedSnap(self):
|
4107
|
-
"""
|
4235
|
+
"""是否删除镜像关联的快照。
|
4236
|
+
默认值:false
|
4108
4237
|
:rtype: bool
|
4109
4238
|
"""
|
4110
4239
|
return self._DeleteBindedSnap
|
@@ -4115,7 +4244,8 @@ class DeleteImagesRequest(AbstractModel):
|
|
4115
4244
|
|
4116
4245
|
@property
|
4117
4246
|
def DryRun(self):
|
4118
|
-
"""
|
4247
|
+
"""检测是否支持删除镜像。
|
4248
|
+
默认值:false
|
4119
4249
|
:rtype: bool
|
4120
4250
|
"""
|
4121
4251
|
return self._DryRun
|
@@ -4174,14 +4304,14 @@ class DeleteInstancesActionTimerRequest(AbstractModel):
|
|
4174
4304
|
|
4175
4305
|
def __init__(self):
|
4176
4306
|
r"""
|
4177
|
-
:param _ActionTimerIds: 定时任务ID列表,可以通过DescribeInstancesActionTimer接口查询。只能删除未执行的定时任务。
|
4307
|
+
:param _ActionTimerIds: 定时任务ID列表,可以通过[ DescribeInstancesActionTimer ](https://cloud.tencent.com/document/product/213/103950)接口查询。只能删除未执行的定时任务。
|
4178
4308
|
:type ActionTimerIds: list of str
|
4179
4309
|
"""
|
4180
4310
|
self._ActionTimerIds = None
|
4181
4311
|
|
4182
4312
|
@property
|
4183
4313
|
def ActionTimerIds(self):
|
4184
|
-
"""定时任务ID列表,可以通过DescribeInstancesActionTimer接口查询。只能删除未执行的定时任务。
|
4314
|
+
"""定时任务ID列表,可以通过[ DescribeInstancesActionTimer ](https://cloud.tencent.com/document/product/213/103950)接口查询。只能删除未执行的定时任务。
|
4185
4315
|
:rtype: list of str
|
4186
4316
|
"""
|
4187
4317
|
return self._ActionTimerIds
|
@@ -4302,14 +4432,14 @@ class DeleteLaunchTemplateRequest(AbstractModel):
|
|
4302
4432
|
|
4303
4433
|
def __init__(self):
|
4304
4434
|
r"""
|
4305
|
-
:param _LaunchTemplateId: 启动模板ID
|
4435
|
+
:param _LaunchTemplateId: 启动模板ID。可通过 [DescribeLaunchTemplates](https://cloud.tencent.com/document/api/213/66322) 接口返回值中的`LaunchTemplateId`获取。
|
4306
4436
|
:type LaunchTemplateId: str
|
4307
4437
|
"""
|
4308
4438
|
self._LaunchTemplateId = None
|
4309
4439
|
|
4310
4440
|
@property
|
4311
4441
|
def LaunchTemplateId(self):
|
4312
|
-
"""启动模板ID
|
4442
|
+
"""启动模板ID。可通过 [DescribeLaunchTemplates](https://cloud.tencent.com/document/api/213/66322) 接口返回值中的`LaunchTemplateId`获取。
|
4313
4443
|
:rtype: str
|
4314
4444
|
"""
|
4315
4445
|
return self._LaunchTemplateId
|
@@ -4366,9 +4496,9 @@ class DeleteLaunchTemplateVersionsRequest(AbstractModel):
|
|
4366
4496
|
|
4367
4497
|
def __init__(self):
|
4368
4498
|
r"""
|
4369
|
-
:param _LaunchTemplateId: 启动模板ID
|
4499
|
+
:param _LaunchTemplateId: 启动模板ID。可通过 [DescribeLaunchTemplates](https://cloud.tencent.com/document/api/213/66322) 接口返回值中的`LaunchTemplateId`获取。
|
4370
4500
|
:type LaunchTemplateId: str
|
4371
|
-
:param _LaunchTemplateVersions:
|
4501
|
+
:param _LaunchTemplateVersions: 实例启动模板版本列表。可通过 [DescribeLaunchTemplateVersions](https://cloud.tencent.com/document/api/213/66323) 接口返回值中的`LaunchTemplateVersion`获取。
|
4372
4502
|
:type LaunchTemplateVersions: list of int
|
4373
4503
|
"""
|
4374
4504
|
self._LaunchTemplateId = None
|
@@ -4376,7 +4506,7 @@ class DeleteLaunchTemplateVersionsRequest(AbstractModel):
|
|
4376
4506
|
|
4377
4507
|
@property
|
4378
4508
|
def LaunchTemplateId(self):
|
4379
|
-
"""启动模板ID
|
4509
|
+
"""启动模板ID。可通过 [DescribeLaunchTemplates](https://cloud.tencent.com/document/api/213/66322) 接口返回值中的`LaunchTemplateId`获取。
|
4380
4510
|
:rtype: str
|
4381
4511
|
"""
|
4382
4512
|
return self._LaunchTemplateId
|
@@ -4387,7 +4517,7 @@ class DeleteLaunchTemplateVersionsRequest(AbstractModel):
|
|
4387
4517
|
|
4388
4518
|
@property
|
4389
4519
|
def LaunchTemplateVersions(self):
|
4390
|
-
"""
|
4520
|
+
"""实例启动模板版本列表。可通过 [DescribeLaunchTemplateVersions](https://cloud.tencent.com/document/api/213/66323) 接口返回值中的`LaunchTemplateVersion`获取。
|
4391
4521
|
:rtype: list of int
|
4392
4522
|
"""
|
4393
4523
|
return self._LaunchTemplateVersions
|
@@ -4448,7 +4578,7 @@ class DescribeAccountQuotaRequest(AbstractModel):
|
|
4448
4578
|
:param _Filters: <li><strong>zone</strong></li>
|
4449
4579
|
<p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a></p>
|
4450
4580
|
<li><strong>quota-type</strong></li>
|
4451
|
-
<p style="padding-left: 30px;">按照【<strong>配额类型</strong>】进行过滤。配额类型形如:PostPaidQuotaSet。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"
|
4581
|
+
<p style="padding-left: 30px;">按照【<strong>配额类型</strong>】进行过滤。配额类型形如:PostPaidQuotaSet。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:</p><p style="padding-left: 30px;">PostPaidQuotaSet: 后付费配额</p><p style="padding-left: 30px;">PrePaidQuotaSet: 预付费配额</p><p style="padding-left: 30px;">SpotPaidQuotaSet: 竞价配额</p><p style="padding-left: 30px;">ImageQuotaSet: 镜像配额</p><p style="padding-left: 30px;">DisasterRecoverGroupQuotaSet: 置放群组配额</p>
|
4452
4582
|
:type Filters: list of Filter
|
4453
4583
|
"""
|
4454
4584
|
self._Filters = None
|
@@ -4458,7 +4588,7 @@ class DescribeAccountQuotaRequest(AbstractModel):
|
|
4458
4588
|
"""<li><strong>zone</strong></li>
|
4459
4589
|
<p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a></p>
|
4460
4590
|
<li><strong>quota-type</strong></li>
|
4461
|
-
<p style="padding-left: 30px;">按照【<strong>配额类型</strong>】进行过滤。配额类型形如:PostPaidQuotaSet。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"
|
4591
|
+
<p style="padding-left: 30px;">按照【<strong>配额类型</strong>】进行过滤。配额类型形如:PostPaidQuotaSet。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:</p><p style="padding-left: 30px;">PostPaidQuotaSet: 后付费配额</p><p style="padding-left: 30px;">PrePaidQuotaSet: 预付费配额</p><p style="padding-left: 30px;">SpotPaidQuotaSet: 竞价配额</p><p style="padding-left: 30px;">ImageQuotaSet: 镜像配额</p><p style="padding-left: 30px;">DisasterRecoverGroupQuotaSet: 置放群组配额</p>
|
4462
4592
|
:rtype: list of Filter
|
4463
4593
|
"""
|
4464
4594
|
return self._Filters
|
@@ -5627,14 +5757,14 @@ class DescribeImageSharePermissionRequest(AbstractModel):
|
|
5627
5757
|
|
5628
5758
|
def __init__(self):
|
5629
5759
|
r"""
|
5630
|
-
:param _ImageId: 需要共享的镜像
|
5760
|
+
:param _ImageId: 需要共享的镜像 ID,可通过 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) 接口返回的`ImageId`获取。
|
5631
5761
|
:type ImageId: str
|
5632
5762
|
"""
|
5633
5763
|
self._ImageId = None
|
5634
5764
|
|
5635
5765
|
@property
|
5636
5766
|
def ImageId(self):
|
5637
|
-
"""需要共享的镜像
|
5767
|
+
"""需要共享的镜像 ID,可通过 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) 接口返回的`ImageId`获取。
|
5638
5768
|
:rtype: str
|
5639
5769
|
"""
|
5640
5770
|
return self._ImageId
|
@@ -5718,23 +5848,23 @@ class DescribeImagesRequest(AbstractModel):
|
|
5718
5848
|
<li><strong>image-id</strong></li>
|
5719
5849
|
<p style="padding-left: 30px;">按照【<strong>镜像ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5720
5850
|
<li><strong>image-type</strong></li>
|
5721
|
-
<p style="padding-left: 30px;">按照【<strong>镜像类型</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:</p><p style="padding-left: 30px;">PRIVATE_IMAGE:
|
5851
|
+
<p style="padding-left: 30px;">按照【<strong>镜像类型</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:</p><p style="padding-left: 30px;">PRIVATE_IMAGE: 自定义镜像 (本账户创建的镜像)</p><p style="padding-left: 30px;">PUBLIC_IMAGE: 公共镜像 (腾讯云官方镜像)</p><p style="padding-left: 30px;">SHARED_IMAGE: 共享镜像(其他账户共享给本账户的镜像)</p>
|
5722
5852
|
<li><strong>image-name</strong></li>
|
5723
|
-
<p style="padding-left: 30px;">按照【<strong>镜像名称</strong
|
5853
|
+
<p style="padding-left: 30px;">按照【<strong>镜像名称</strong>】进行过滤。支持模糊查询。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5724
5854
|
<li><strong>platform</strong></li>
|
5725
|
-
<p style="padding-left: 30px;">按照【<strong>镜像平台</strong>】进行过滤,如CentOS
|
5855
|
+
<p style="padding-left: 30px;">按照【<strong>镜像平台</strong>】进行过滤,如 CentOS,支持模糊匹配。可通过 <a href="https://cloud.tencent.com/document/api/213/15715" target="_blank">DescribeImages</a> 接口返回的<code> Platform </code>获取。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5726
5856
|
<li><strong>tag-key</strong></li>
|
5727
|
-
<p style="padding-left: 30px;">按照【<strong>标签键</strong
|
5857
|
+
<p style="padding-left: 30px;">按照【<strong>标签键</strong>】进行过滤。可通过 <a href="https://cloud.tencent.com/document/product/651/72275" target="_blank"> GetTags </a> 接口返回的<code> TagKey </code>获取。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5728
5858
|
<li><strong>tag-value</strong></li>
|
5729
|
-
<p style="padding-left: 30px;">按照【<strong>标签值</strong
|
5859
|
+
<p style="padding-left: 30px;">按照【<strong>标签值</strong>】进行过滤。可通过 <a href="https://cloud.tencent.com/document/product/651/72275" target="_blank"> GetTags </a> 接口返回的<code> TagValue </code>获取。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5730
5860
|
<li><strong>tag:tag-key</strong></li>
|
5731
|
-
<p style="padding-left: 30px;">按照【<strong>标签键值对</strong>】进行过滤。tag-key
|
5861
|
+
<p style="padding-left: 30px;">按照【<strong>标签键值对</strong>】进行过滤。tag-key使用具体的标签键进行替换。可通过 <a href="https://cloud.tencent.com/document/product/651/72275" target="_blank"> GetTags </a> 接口返回的<code> TagKey 和 TagValue </code>获取。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5732
5862
|
:type Filters: list of Filter
|
5733
5863
|
:param _Offset: 偏移量,默认为0。关于Offset详见[API简介](/document/api/213/568#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89)。
|
5734
5864
|
:type Offset: int
|
5735
5865
|
:param _Limit: 数量限制,默认为20,最大值为100。关于Limit详见[API简介](/document/api/213/568#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89)。
|
5736
5866
|
:type Limit: int
|
5737
|
-
:param _InstanceType: 实例类型,如 `S1.SMALL1`
|
5867
|
+
:param _InstanceType: 实例类型,如 `S1.SMALL1`。可通过 [DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/product/213/15749) 接口返回的 `InstanceType` 获取。
|
5738
5868
|
:type InstanceType: str
|
5739
5869
|
"""
|
5740
5870
|
self._ImageIds = None
|
@@ -5761,17 +5891,17 @@ class DescribeImagesRequest(AbstractModel):
|
|
5761
5891
|
<li><strong>image-id</strong></li>
|
5762
5892
|
<p style="padding-left: 30px;">按照【<strong>镜像ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5763
5893
|
<li><strong>image-type</strong></li>
|
5764
|
-
<p style="padding-left: 30px;">按照【<strong>镜像类型</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:</p><p style="padding-left: 30px;">PRIVATE_IMAGE:
|
5894
|
+
<p style="padding-left: 30px;">按照【<strong>镜像类型</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:</p><p style="padding-left: 30px;">PRIVATE_IMAGE: 自定义镜像 (本账户创建的镜像)</p><p style="padding-left: 30px;">PUBLIC_IMAGE: 公共镜像 (腾讯云官方镜像)</p><p style="padding-left: 30px;">SHARED_IMAGE: 共享镜像(其他账户共享给本账户的镜像)</p>
|
5765
5895
|
<li><strong>image-name</strong></li>
|
5766
|
-
<p style="padding-left: 30px;">按照【<strong>镜像名称</strong
|
5896
|
+
<p style="padding-left: 30px;">按照【<strong>镜像名称</strong>】进行过滤。支持模糊查询。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5767
5897
|
<li><strong>platform</strong></li>
|
5768
|
-
<p style="padding-left: 30px;">按照【<strong>镜像平台</strong>】进行过滤,如CentOS
|
5898
|
+
<p style="padding-left: 30px;">按照【<strong>镜像平台</strong>】进行过滤,如 CentOS,支持模糊匹配。可通过 <a href="https://cloud.tencent.com/document/api/213/15715" target="_blank">DescribeImages</a> 接口返回的<code> Platform </code>获取。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5769
5899
|
<li><strong>tag-key</strong></li>
|
5770
|
-
<p style="padding-left: 30px;">按照【<strong>标签键</strong
|
5900
|
+
<p style="padding-left: 30px;">按照【<strong>标签键</strong>】进行过滤。可通过 <a href="https://cloud.tencent.com/document/product/651/72275" target="_blank"> GetTags </a> 接口返回的<code> TagKey </code>获取。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5771
5901
|
<li><strong>tag-value</strong></li>
|
5772
|
-
<p style="padding-left: 30px;">按照【<strong>标签值</strong
|
5902
|
+
<p style="padding-left: 30px;">按照【<strong>标签值</strong>】进行过滤。可通过 <a href="https://cloud.tencent.com/document/product/651/72275" target="_blank"> GetTags </a> 接口返回的<code> TagValue </code>获取。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5773
5903
|
<li><strong>tag:tag-key</strong></li>
|
5774
|
-
<p style="padding-left: 30px;">按照【<strong>标签键值对</strong>】进行过滤。tag-key
|
5904
|
+
<p style="padding-left: 30px;">按照【<strong>标签键值对</strong>】进行过滤。tag-key使用具体的标签键进行替换。可通过 <a href="https://cloud.tencent.com/document/product/651/72275" target="_blank"> GetTags </a> 接口返回的<code> TagKey 和 TagValue </code>获取。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
5775
5905
|
:rtype: list of Filter
|
5776
5906
|
"""
|
5777
5907
|
return self._Filters
|
@@ -5804,7 +5934,7 @@ class DescribeImagesRequest(AbstractModel):
|
|
5804
5934
|
|
5805
5935
|
@property
|
5806
5936
|
def InstanceType(self):
|
5807
|
-
"""实例类型,如 `S1.SMALL1`
|
5937
|
+
"""实例类型,如 `S1.SMALL1`。可通过 [DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/product/213/15749) 接口返回的 `InstanceType` 获取。
|
5808
5938
|
:rtype: str
|
5809
5939
|
"""
|
5810
5940
|
return self._InstanceType
|
@@ -6215,14 +6345,14 @@ class DescribeInstanceVncUrlRequest(AbstractModel):
|
|
6215
6345
|
|
6216
6346
|
def __init__(self):
|
6217
6347
|
r"""
|
6218
|
-
:param _InstanceId: 一个操作的实例ID。可通过[
|
6348
|
+
:param _InstanceId: 一个操作的实例ID。可通过[ DescribeInstances ](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
6219
6349
|
:type InstanceId: str
|
6220
6350
|
"""
|
6221
6351
|
self._InstanceId = None
|
6222
6352
|
|
6223
6353
|
@property
|
6224
6354
|
def InstanceId(self):
|
6225
|
-
"""一个操作的实例ID。可通过[
|
6355
|
+
"""一个操作的实例ID。可通过[ DescribeInstances ](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
6226
6356
|
:rtype: str
|
6227
6357
|
"""
|
6228
6358
|
return self._InstanceId
|
@@ -6296,15 +6426,15 @@ class DescribeInstancesActionTimerRequest(AbstractModel):
|
|
6296
6426
|
r"""
|
6297
6427
|
:param _ActionTimerIds: 定时任务ID列表。
|
6298
6428
|
:type ActionTimerIds: list of str
|
6299
|
-
:param _InstanceIds: 按照一个或者多个实例ID
|
6429
|
+
:param _InstanceIds: 按照一个或者多个实例ID查询。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
6300
6430
|
:type InstanceIds: list of str
|
6301
6431
|
:param _TimerAction: 定时器动作,目前仅支持销毁一个值:TerminateInstances。
|
6302
6432
|
:type TimerAction: str
|
6303
|
-
:param _EndActionTime:
|
6433
|
+
:param _EndActionTime: 定时任务执行时间的结束范围,用于条件筛选,格式如2018-05-01 19:00:00。
|
6304
6434
|
:type EndActionTime: str
|
6305
|
-
:param _StartActionTime:
|
6435
|
+
:param _StartActionTime: 定时任务执行时间的开始范围,用于条件筛选,格式如2018-05-01 19:00:00。
|
6306
6436
|
:type StartActionTime: str
|
6307
|
-
:param _StatusList: 定时任务状态列表。<br><li>UNDO:未执行</li> <
|
6437
|
+
:param _StatusList: 定时任务状态列表。<br><li>UNDO:未执行</li> <li>DOING:正在执行</li><li>DONE:执行完成。</li>
|
6308
6438
|
:type StatusList: list of str
|
6309
6439
|
"""
|
6310
6440
|
self._ActionTimerIds = None
|
@@ -6327,7 +6457,7 @@ class DescribeInstancesActionTimerRequest(AbstractModel):
|
|
6327
6457
|
|
6328
6458
|
@property
|
6329
6459
|
def InstanceIds(self):
|
6330
|
-
"""按照一个或者多个实例ID
|
6460
|
+
"""按照一个或者多个实例ID查询。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
6331
6461
|
:rtype: list of str
|
6332
6462
|
"""
|
6333
6463
|
return self._InstanceIds
|
@@ -6349,7 +6479,7 @@ class DescribeInstancesActionTimerRequest(AbstractModel):
|
|
6349
6479
|
|
6350
6480
|
@property
|
6351
6481
|
def EndActionTime(self):
|
6352
|
-
"""
|
6482
|
+
"""定时任务执行时间的结束范围,用于条件筛选,格式如2018-05-01 19:00:00。
|
6353
6483
|
:rtype: str
|
6354
6484
|
"""
|
6355
6485
|
return self._EndActionTime
|
@@ -6360,7 +6490,7 @@ class DescribeInstancesActionTimerRequest(AbstractModel):
|
|
6360
6490
|
|
6361
6491
|
@property
|
6362
6492
|
def StartActionTime(self):
|
6363
|
-
"""
|
6493
|
+
"""定时任务执行时间的开始范围,用于条件筛选,格式如2018-05-01 19:00:00。
|
6364
6494
|
:rtype: str
|
6365
6495
|
"""
|
6366
6496
|
return self._StartActionTime
|
@@ -6371,7 +6501,7 @@ class DescribeInstancesActionTimerRequest(AbstractModel):
|
|
6371
6501
|
|
6372
6502
|
@property
|
6373
6503
|
def StatusList(self):
|
6374
|
-
"""定时任务状态列表。<br><li>UNDO:未执行</li> <
|
6504
|
+
"""定时任务状态列表。<br><li>UNDO:未执行</li> <li>DOING:正在执行</li><li>DONE:执行完成。</li>
|
6375
6505
|
:rtype: list of str
|
6376
6506
|
"""
|
6377
6507
|
return self._StatusList
|
@@ -6446,6 +6576,107 @@ class DescribeInstancesActionTimerResponse(AbstractModel):
|
|
6446
6576
|
self._RequestId = params.get("RequestId")
|
6447
6577
|
|
6448
6578
|
|
6579
|
+
class DescribeInstancesAttributesRequest(AbstractModel):
|
6580
|
+
"""DescribeInstancesAttributes请求参数结构体
|
6581
|
+
|
6582
|
+
"""
|
6583
|
+
|
6584
|
+
def __init__(self):
|
6585
|
+
r"""
|
6586
|
+
:param _Attributes: 需要获取的实例属性。可选值:
|
6587
|
+
UserData: 实例自定义数据
|
6588
|
+
:type Attributes: list of str
|
6589
|
+
:param _InstanceIds: 实例ID列表。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
6590
|
+
:type InstanceIds: list of str
|
6591
|
+
"""
|
6592
|
+
self._Attributes = None
|
6593
|
+
self._InstanceIds = None
|
6594
|
+
|
6595
|
+
@property
|
6596
|
+
def Attributes(self):
|
6597
|
+
"""需要获取的实例属性。可选值:
|
6598
|
+
UserData: 实例自定义数据
|
6599
|
+
:rtype: list of str
|
6600
|
+
"""
|
6601
|
+
return self._Attributes
|
6602
|
+
|
6603
|
+
@Attributes.setter
|
6604
|
+
def Attributes(self, Attributes):
|
6605
|
+
self._Attributes = Attributes
|
6606
|
+
|
6607
|
+
@property
|
6608
|
+
def InstanceIds(self):
|
6609
|
+
"""实例ID列表。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
6610
|
+
:rtype: list of str
|
6611
|
+
"""
|
6612
|
+
return self._InstanceIds
|
6613
|
+
|
6614
|
+
@InstanceIds.setter
|
6615
|
+
def InstanceIds(self, InstanceIds):
|
6616
|
+
self._InstanceIds = InstanceIds
|
6617
|
+
|
6618
|
+
|
6619
|
+
def _deserialize(self, params):
|
6620
|
+
self._Attributes = params.get("Attributes")
|
6621
|
+
self._InstanceIds = params.get("InstanceIds")
|
6622
|
+
memeber_set = set(params.keys())
|
6623
|
+
for name, value in vars(self).items():
|
6624
|
+
property_name = name[1:]
|
6625
|
+
if property_name in memeber_set:
|
6626
|
+
memeber_set.remove(property_name)
|
6627
|
+
if len(memeber_set) > 0:
|
6628
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
6629
|
+
|
6630
|
+
|
6631
|
+
|
6632
|
+
class DescribeInstancesAttributesResponse(AbstractModel):
|
6633
|
+
"""DescribeInstancesAttributes返回参数结构体
|
6634
|
+
|
6635
|
+
"""
|
6636
|
+
|
6637
|
+
def __init__(self):
|
6638
|
+
r"""
|
6639
|
+
:param _InstanceSet: 指定的实例属性列表
|
6640
|
+
:type InstanceSet: list of InstanceAttribute
|
6641
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6642
|
+
:type RequestId: str
|
6643
|
+
"""
|
6644
|
+
self._InstanceSet = None
|
6645
|
+
self._RequestId = None
|
6646
|
+
|
6647
|
+
@property
|
6648
|
+
def InstanceSet(self):
|
6649
|
+
"""指定的实例属性列表
|
6650
|
+
:rtype: list of InstanceAttribute
|
6651
|
+
"""
|
6652
|
+
return self._InstanceSet
|
6653
|
+
|
6654
|
+
@InstanceSet.setter
|
6655
|
+
def InstanceSet(self, InstanceSet):
|
6656
|
+
self._InstanceSet = InstanceSet
|
6657
|
+
|
6658
|
+
@property
|
6659
|
+
def RequestId(self):
|
6660
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6661
|
+
:rtype: str
|
6662
|
+
"""
|
6663
|
+
return self._RequestId
|
6664
|
+
|
6665
|
+
@RequestId.setter
|
6666
|
+
def RequestId(self, RequestId):
|
6667
|
+
self._RequestId = RequestId
|
6668
|
+
|
6669
|
+
|
6670
|
+
def _deserialize(self, params):
|
6671
|
+
if params.get("InstanceSet") is not None:
|
6672
|
+
self._InstanceSet = []
|
6673
|
+
for item in params.get("InstanceSet"):
|
6674
|
+
obj = InstanceAttribute()
|
6675
|
+
obj._deserialize(item)
|
6676
|
+
self._InstanceSet.append(obj)
|
6677
|
+
self._RequestId = params.get("RequestId")
|
6678
|
+
|
6679
|
+
|
6449
6680
|
class DescribeInstancesModificationRequest(AbstractModel):
|
6450
6681
|
"""DescribeInstancesModification请求参数结构体
|
6451
6682
|
|
@@ -6456,7 +6687,7 @@ class DescribeInstancesModificationRequest(AbstractModel):
|
|
6456
6687
|
:param _InstanceIds: 一个或多个待查询的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为20。
|
6457
6688
|
:type InstanceIds: list of str
|
6458
6689
|
:param _Filters: <li><strong>status</strong></li>
|
6459
|
-
<p style="padding-left: 30px;">按照【<strong>配置规格状态</strong>】进行过滤。配置规格状态形如:SELL、UNAVAILABLE。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
6690
|
+
<p style="padding-left: 30px;">按照【<strong>配置规格状态</strong>】进行过滤。配置规格状态形如:SELL(表示实例可售卖)、UNAVAILABLE(表示实例不可用)。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
6460
6691
|
每次请求的`Filters`的上限为10,`Filter.Values`的上限为2。
|
6461
6692
|
:type Filters: list of Filter
|
6462
6693
|
"""
|
@@ -6477,7 +6708,7 @@ class DescribeInstancesModificationRequest(AbstractModel):
|
|
6477
6708
|
@property
|
6478
6709
|
def Filters(self):
|
6479
6710
|
"""<li><strong>status</strong></li>
|
6480
|
-
<p style="padding-left: 30px;">按照【<strong>配置规格状态</strong>】进行过滤。配置规格状态形如:SELL、UNAVAILABLE。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
6711
|
+
<p style="padding-left: 30px;">按照【<strong>配置规格状态</strong>】进行过滤。配置规格状态形如:SELL(表示实例可售卖)、UNAVAILABLE(表示实例不可用)。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
6481
6712
|
每次请求的`Filters`的上限为10,`Filter.Values`的上限为2。
|
6482
6713
|
:rtype: list of Filter
|
6483
6714
|
"""
|
@@ -6579,7 +6810,7 @@ class DescribeInstancesOperationLimitRequest(AbstractModel):
|
|
6579
6810
|
:param _InstanceIds: 按照一个或者多个实例ID查询,可通过[DescribeInstances](https://cloud.tencent.com/document/api/213/15728)API返回值中的InstanceId获取。实例ID形如:ins-xxxxxxxx。(此参数的具体格式可参考API[简介](https://cloud.tencent.com/document/api/213/15688)的ids.N一节)。每次请求的实例的上限为100。
|
6580
6811
|
:type InstanceIds: list of str
|
6581
6812
|
:param _Operation: 实例操作。
|
6582
|
-
<li> INSTANCE_DEGRADE:实例降配操作</li>
|
6813
|
+
<li> INSTANCE_DEGRADE:实例降配操作</li><li> INTERNET_CHARGE_TYPE_CHANGE:实例调整带宽付费模式操作</li>
|
6583
6814
|
:type Operation: str
|
6584
6815
|
"""
|
6585
6816
|
self._InstanceIds = None
|
@@ -6599,7 +6830,7 @@ class DescribeInstancesOperationLimitRequest(AbstractModel):
|
|
6599
6830
|
@property
|
6600
6831
|
def Operation(self):
|
6601
6832
|
"""实例操作。
|
6602
|
-
<li> INSTANCE_DEGRADE:实例降配操作</li>
|
6833
|
+
<li> INSTANCE_DEGRADE:实例降配操作</li><li> INTERNET_CHARGE_TYPE_CHANGE:实例调整带宽付费模式操作</li>
|
6603
6834
|
:rtype: str
|
6604
6835
|
"""
|
6605
6836
|
return self._Operation
|
@@ -8213,7 +8444,6 @@ class DescribeTaskInfoResponse(AbstractModel):
|
|
8213
8444
|
:param _TotalCount: 查询返回的维修任务总数量。
|
8214
8445
|
:type TotalCount: int
|
8215
8446
|
:param _RepairTaskInfoSet: 查询返回的维修任务列表。
|
8216
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8217
8447
|
:type RepairTaskInfoSet: list of RepairTaskInfo
|
8218
8448
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8219
8449
|
:type RequestId: str
|
@@ -8236,7 +8466,6 @@ class DescribeTaskInfoResponse(AbstractModel):
|
|
8236
8466
|
@property
|
8237
8467
|
def RepairTaskInfoSet(self):
|
8238
8468
|
"""查询返回的维修任务列表。
|
8239
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8240
8469
|
:rtype: list of RepairTaskInfo
|
8241
8470
|
"""
|
8242
8471
|
return self._RepairTaskInfoSet
|
@@ -8282,7 +8511,7 @@ class DescribeZoneInstanceConfigInfosRequest(AbstractModel):
|
|
8282
8511
|
<li><strong>instance-type</strong></li>
|
8283
8512
|
<p style="padding-left: 30px;">按照【<strong>实例机型</strong>】进行过滤。不同实例机型指定了不同的资源规格,具体取值可通过调用接口 [DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/product/213/15749) 来获得最新的规格表或参见[实例类型](https://cloud.tencent.com/document/product/213/11518)描述。若不指定该参数,则默认查询筛选条件下所有机型。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
8284
8513
|
<li><strong>instance-charge-type</strong></li>
|
8285
|
-
<p style="padding-left: 30px;">按照【<strong>实例计费模式</strong>】进行过滤。(PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 )</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
8514
|
+
<p style="padding-left: 30px;">按照【<strong>实例计费模式</strong>】进行过滤。(PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 | CDHPAID:表示独享子机 | SPOTPAID:表示竞价付费 | CDCPAID:表示专用集群付费)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
8286
8515
|
<li><strong>sort-keys</strong></li>
|
8287
8516
|
<p style="padding-left: 30px;">按关键字进行排序,格式为排序字段加排序方式,中间用冒号分隔。 例如: 按cpu数逆序排序 "cpu:desc", 按mem大小顺序排序 "mem:asc"</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
8288
8517
|
每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。
|
@@ -8299,7 +8528,7 @@ class DescribeZoneInstanceConfigInfosRequest(AbstractModel):
|
|
8299
8528
|
<li><strong>instance-type</strong></li>
|
8300
8529
|
<p style="padding-left: 30px;">按照【<strong>实例机型</strong>】进行过滤。不同实例机型指定了不同的资源规格,具体取值可通过调用接口 [DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/product/213/15749) 来获得最新的规格表或参见[实例类型](https://cloud.tencent.com/document/product/213/11518)描述。若不指定该参数,则默认查询筛选条件下所有机型。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
8301
8530
|
<li><strong>instance-charge-type</strong></li>
|
8302
|
-
<p style="padding-left: 30px;">按照【<strong>实例计费模式</strong>】进行过滤。(PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 )</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
8531
|
+
<p style="padding-left: 30px;">按照【<strong>实例计费模式</strong>】进行过滤。(PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 | CDHPAID:表示独享子机 | SPOTPAID:表示竞价付费 | CDCPAID:表示专用集群付费)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
8303
8532
|
<li><strong>sort-keys</strong></li>
|
8304
8533
|
<p style="padding-left: 30px;">按关键字进行排序,格式为排序字段加排序方式,中间用冒号分隔。 例如: 按cpu数逆序排序 "cpu:desc", 按mem大小顺序排序 "mem:asc"</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
8305
8534
|
每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。
|
@@ -8453,11 +8682,17 @@ class DisassociateInstancesKeyPairsRequest(AbstractModel):
|
|
8453
8682
|
|
8454
8683
|
def __init__(self):
|
8455
8684
|
r"""
|
8456
|
-
:param _InstanceIds: 一个或多个待操作的实例ID,每次请求批量实例的上限为100。<br
|
8685
|
+
:param _InstanceIds: 一个或多个待操作的实例ID,每次请求批量实例的上限为100。<br>可以通过以下方式获取可用的实例ID:
|
8686
|
+
<li>通过登录[控制台](https://console.cloud.tencent.com/cvm/index)查询实例ID。</li>
|
8687
|
+
<li>通过调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的 `InstanceId` 获取实例ID。</li>
|
8457
8688
|
:type InstanceIds: list of str
|
8458
|
-
:param _KeyIds: 密钥对ID
|
8689
|
+
:param _KeyIds: 密钥对ID列表,列表长度上限为100。可以通过以下方式获取可用的密钥ID:
|
8690
|
+
<li>通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥ID。</li>
|
8691
|
+
<li>通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699) ,取返回信息中的 `KeyId` 获取密钥对ID。</li>
|
8459
8692
|
:type KeyIds: list of str
|
8460
|
-
:param _ForceStop:
|
8693
|
+
:param _ForceStop: 是否强制关机,默认值为 false。常规场景下,建议手动关机后解绑密钥。取值范围:
|
8694
|
+
<li>true:先执行强制关机,再解绑密钥。</li>
|
8695
|
+
<li>false:不执行强制关机,仅支持对已关机状态实例进行解绑操作。</li>
|
8461
8696
|
:type ForceStop: bool
|
8462
8697
|
"""
|
8463
8698
|
self._InstanceIds = None
|
@@ -8466,7 +8701,9 @@ class DisassociateInstancesKeyPairsRequest(AbstractModel):
|
|
8466
8701
|
|
8467
8702
|
@property
|
8468
8703
|
def InstanceIds(self):
|
8469
|
-
"""一个或多个待操作的实例ID,每次请求批量实例的上限为100。<br
|
8704
|
+
"""一个或多个待操作的实例ID,每次请求批量实例的上限为100。<br>可以通过以下方式获取可用的实例ID:
|
8705
|
+
<li>通过登录[控制台](https://console.cloud.tencent.com/cvm/index)查询实例ID。</li>
|
8706
|
+
<li>通过调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的 `InstanceId` 获取实例ID。</li>
|
8470
8707
|
:rtype: list of str
|
8471
8708
|
"""
|
8472
8709
|
return self._InstanceIds
|
@@ -8477,7 +8714,9 @@ class DisassociateInstancesKeyPairsRequest(AbstractModel):
|
|
8477
8714
|
|
8478
8715
|
@property
|
8479
8716
|
def KeyIds(self):
|
8480
|
-
"""密钥对ID
|
8717
|
+
"""密钥对ID列表,列表长度上限为100。可以通过以下方式获取可用的密钥ID:
|
8718
|
+
<li>通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥ID。</li>
|
8719
|
+
<li>通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699) ,取返回信息中的 `KeyId` 获取密钥对ID。</li>
|
8481
8720
|
:rtype: list of str
|
8482
8721
|
"""
|
8483
8722
|
return self._KeyIds
|
@@ -8488,7 +8727,9 @@ class DisassociateInstancesKeyPairsRequest(AbstractModel):
|
|
8488
8727
|
|
8489
8728
|
@property
|
8490
8729
|
def ForceStop(self):
|
8491
|
-
"""
|
8730
|
+
"""是否强制关机,默认值为 false。常规场景下,建议手动关机后解绑密钥。取值范围:
|
8731
|
+
<li>true:先执行强制关机,再解绑密钥。</li>
|
8732
|
+
<li>false:不执行强制关机,仅支持对已关机状态实例进行解绑操作。</li>
|
8492
8733
|
:rtype: bool
|
8493
8734
|
"""
|
8494
8735
|
return self._ForceStop
|
@@ -8547,9 +8788,9 @@ class DisassociateSecurityGroupsRequest(AbstractModel):
|
|
8547
8788
|
|
8548
8789
|
def __init__(self):
|
8549
8790
|
r"""
|
8550
|
-
:param _SecurityGroupIds: 要解绑的`安全组ID`,类似sg-efil73jd
|
8791
|
+
:param _SecurityGroupIds: 要解绑的`安全组ID`,类似sg-efil73jd,只支持解绑单个安全组。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`SecurityGroupIds`获取实例绑定的安全组。
|
8551
8792
|
:type SecurityGroupIds: list of str
|
8552
|
-
:param _InstanceIds: 被解绑的`实例ID`,类似ins-lesecurk,支持指定多个实例,每次请求批量实例的上限为100
|
8793
|
+
:param _InstanceIds: 被解绑的`实例ID`,类似ins-lesecurk,支持指定多个实例,每次请求批量实例的上限为100。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
8553
8794
|
:type InstanceIds: list of str
|
8554
8795
|
"""
|
8555
8796
|
self._SecurityGroupIds = None
|
@@ -8557,7 +8798,7 @@ class DisassociateSecurityGroupsRequest(AbstractModel):
|
|
8557
8798
|
|
8558
8799
|
@property
|
8559
8800
|
def SecurityGroupIds(self):
|
8560
|
-
"""要解绑的`安全组ID`,类似sg-efil73jd
|
8801
|
+
"""要解绑的`安全组ID`,类似sg-efil73jd,只支持解绑单个安全组。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`SecurityGroupIds`获取实例绑定的安全组。
|
8561
8802
|
:rtype: list of str
|
8562
8803
|
"""
|
8563
8804
|
return self._SecurityGroupIds
|
@@ -8568,7 +8809,7 @@ class DisassociateSecurityGroupsRequest(AbstractModel):
|
|
8568
8809
|
|
8569
8810
|
@property
|
8570
8811
|
def InstanceIds(self):
|
8571
|
-
"""被解绑的`实例ID`,类似ins-lesecurk,支持指定多个实例,每次请求批量实例的上限为100
|
8812
|
+
"""被解绑的`实例ID`,类似ins-lesecurk,支持指定多个实例,每次请求批量实例的上限为100。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
8572
8813
|
:rtype: list of str
|
8573
8814
|
"""
|
8574
8815
|
return self._InstanceIds
|
@@ -8641,8 +8882,10 @@ class DisasterRecoverGroup(AbstractModel):
|
|
8641
8882
|
:type CurrentNum: int
|
8642
8883
|
:param _InstanceIds: 分散置放群组内,云服务器id列表。
|
8643
8884
|
:type InstanceIds: list of str
|
8644
|
-
:param _CreateTime:
|
8885
|
+
:param _CreateTime: 分散置放群组创建时间。按照`ISO8601`标准表示,并且使用`UTC`时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。
|
8645
8886
|
:type CreateTime: str
|
8887
|
+
:param _Affinity: 置放群组亲和度
|
8888
|
+
:type Affinity: int
|
8646
8889
|
:param _Tags: 置放群组关联的标签列表。
|
8647
8890
|
:type Tags: list of Tag
|
8648
8891
|
"""
|
@@ -8653,6 +8896,7 @@ class DisasterRecoverGroup(AbstractModel):
|
|
8653
8896
|
self._CurrentNum = None
|
8654
8897
|
self._InstanceIds = None
|
8655
8898
|
self._CreateTime = None
|
8899
|
+
self._Affinity = None
|
8656
8900
|
self._Tags = None
|
8657
8901
|
|
8658
8902
|
@property
|
@@ -8726,7 +8970,7 @@ class DisasterRecoverGroup(AbstractModel):
|
|
8726
8970
|
|
8727
8971
|
@property
|
8728
8972
|
def CreateTime(self):
|
8729
|
-
"""
|
8973
|
+
"""分散置放群组创建时间。按照`ISO8601`标准表示,并且使用`UTC`时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。
|
8730
8974
|
:rtype: str
|
8731
8975
|
"""
|
8732
8976
|
return self._CreateTime
|
@@ -8735,6 +8979,17 @@ class DisasterRecoverGroup(AbstractModel):
|
|
8735
8979
|
def CreateTime(self, CreateTime):
|
8736
8980
|
self._CreateTime = CreateTime
|
8737
8981
|
|
8982
|
+
@property
|
8983
|
+
def Affinity(self):
|
8984
|
+
"""置放群组亲和度
|
8985
|
+
:rtype: int
|
8986
|
+
"""
|
8987
|
+
return self._Affinity
|
8988
|
+
|
8989
|
+
@Affinity.setter
|
8990
|
+
def Affinity(self, Affinity):
|
8991
|
+
self._Affinity = Affinity
|
8992
|
+
|
8738
8993
|
@property
|
8739
8994
|
def Tags(self):
|
8740
8995
|
"""置放群组关联的标签列表。
|
@@ -8755,6 +9010,7 @@ class DisasterRecoverGroup(AbstractModel):
|
|
8755
9010
|
self._CurrentNum = params.get("CurrentNum")
|
8756
9011
|
self._InstanceIds = params.get("InstanceIds")
|
8757
9012
|
self._CreateTime = params.get("CreateTime")
|
9013
|
+
self._Affinity = params.get("Affinity")
|
8758
9014
|
if params.get("Tags") is not None:
|
8759
9015
|
self._Tags = []
|
8760
9016
|
for item in params.get("Tags"):
|
@@ -8946,23 +9202,28 @@ class EnterRescueModeRequest(AbstractModel):
|
|
8946
9202
|
|
8947
9203
|
def __init__(self):
|
8948
9204
|
r"""
|
8949
|
-
:param _InstanceId: 需要进入救援模式的实例
|
9205
|
+
:param _InstanceId: 需要进入救援模式的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
9206
|
+
|
8950
9207
|
:type InstanceId: str
|
8951
|
-
:param _Password:
|
9208
|
+
:param _Password: 救援模式下系统密码。不同操作系统类型密码复杂度限制不一样,具体如下:<li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。</li><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。</li>
|
8952
9209
|
:type Password: str
|
8953
9210
|
:param _Username: 救援模式下系统用户名
|
8954
9211
|
:type Username: str
|
8955
|
-
:param _ForceStop:
|
9212
|
+
:param _ForceStop: 是否强制关机。本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。
|
8956
9213
|
:type ForceStop: bool
|
9214
|
+
:param _StopType: 实例的关闭模式。取值范围:<br><li>SOFT_FIRST:表示在正常关闭失败后进行强制关闭</li><br><li>HARD:直接强制关闭</li><br><li>SOFT:仅软关机</li><br>默认取值:SOFT。
|
9215
|
+
:type StopType: str
|
8957
9216
|
"""
|
8958
9217
|
self._InstanceId = None
|
8959
9218
|
self._Password = None
|
8960
9219
|
self._Username = None
|
8961
9220
|
self._ForceStop = None
|
9221
|
+
self._StopType = None
|
8962
9222
|
|
8963
9223
|
@property
|
8964
9224
|
def InstanceId(self):
|
8965
|
-
"""需要进入救援模式的实例
|
9225
|
+
"""需要进入救援模式的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
9226
|
+
|
8966
9227
|
:rtype: str
|
8967
9228
|
"""
|
8968
9229
|
return self._InstanceId
|
@@ -8973,7 +9234,7 @@ class EnterRescueModeRequest(AbstractModel):
|
|
8973
9234
|
|
8974
9235
|
@property
|
8975
9236
|
def Password(self):
|
8976
|
-
"""
|
9237
|
+
"""救援模式下系统密码。不同操作系统类型密码复杂度限制不一样,具体如下:<li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。</li><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。</li>
|
8977
9238
|
:rtype: str
|
8978
9239
|
"""
|
8979
9240
|
return self._Password
|
@@ -8995,21 +9256,37 @@ class EnterRescueModeRequest(AbstractModel):
|
|
8995
9256
|
|
8996
9257
|
@property
|
8997
9258
|
def ForceStop(self):
|
8998
|
-
""
|
9259
|
+
warnings.warn("parameter `ForceStop` is deprecated", DeprecationWarning)
|
9260
|
+
|
9261
|
+
"""是否强制关机。本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。
|
8999
9262
|
:rtype: bool
|
9000
9263
|
"""
|
9001
9264
|
return self._ForceStop
|
9002
9265
|
|
9003
9266
|
@ForceStop.setter
|
9004
9267
|
def ForceStop(self, ForceStop):
|
9268
|
+
warnings.warn("parameter `ForceStop` is deprecated", DeprecationWarning)
|
9269
|
+
|
9005
9270
|
self._ForceStop = ForceStop
|
9006
9271
|
|
9272
|
+
@property
|
9273
|
+
def StopType(self):
|
9274
|
+
"""实例的关闭模式。取值范围:<br><li>SOFT_FIRST:表示在正常关闭失败后进行强制关闭</li><br><li>HARD:直接强制关闭</li><br><li>SOFT:仅软关机</li><br>默认取值:SOFT。
|
9275
|
+
:rtype: str
|
9276
|
+
"""
|
9277
|
+
return self._StopType
|
9278
|
+
|
9279
|
+
@StopType.setter
|
9280
|
+
def StopType(self, StopType):
|
9281
|
+
self._StopType = StopType
|
9282
|
+
|
9007
9283
|
|
9008
9284
|
def _deserialize(self, params):
|
9009
9285
|
self._InstanceId = params.get("InstanceId")
|
9010
9286
|
self._Password = params.get("Password")
|
9011
9287
|
self._Username = params.get("Username")
|
9012
9288
|
self._ForceStop = params.get("ForceStop")
|
9289
|
+
self._StopType = params.get("StopType")
|
9013
9290
|
memeber_set = set(params.keys())
|
9014
9291
|
for name, value in vars(self).items():
|
9015
9292
|
property_name = name[1:]
|
@@ -9055,14 +9332,14 @@ class ExitRescueModeRequest(AbstractModel):
|
|
9055
9332
|
|
9056
9333
|
def __init__(self):
|
9057
9334
|
r"""
|
9058
|
-
:param _InstanceId: 退出救援模式的实例id
|
9335
|
+
:param _InstanceId: 退出救援模式的实例id。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
9059
9336
|
:type InstanceId: str
|
9060
9337
|
"""
|
9061
9338
|
self._InstanceId = None
|
9062
9339
|
|
9063
9340
|
@property
|
9064
9341
|
def InstanceId(self):
|
9065
|
-
"""退出救援模式的实例id
|
9342
|
+
"""退出救援模式的实例id。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
9066
9343
|
:rtype: str
|
9067
9344
|
"""
|
9068
9345
|
return self._InstanceId
|
@@ -9119,17 +9396,22 @@ class ExportImagesRequest(AbstractModel):
|
|
9119
9396
|
|
9120
9397
|
def __init__(self):
|
9121
9398
|
r"""
|
9122
|
-
:param _BucketName: COS
|
9399
|
+
:param _BucketName: COS存储桶名称。
|
9400
|
+
可通过 [List Buckets](https://cloud.tencent.com/document/product/436/8291) 接口查询请求者名下的所有存储桶列表或特定地域下的存储桶列表。
|
9123
9401
|
:type BucketName: str
|
9124
9402
|
:param _ImageIds: 镜像ID列表。调用 ExportImages 接口时,参数 ImageIds 和 SnapshotIds 为二选一必填参数,目前参数 SnapshotIds 暂未对外开放。
|
9403
|
+
可通过 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) 接口返回值中的`ImageId`获取。
|
9125
9404
|
:type ImageIds: list of str
|
9126
9405
|
:param _ExportFormat: 镜像文件导出格式。取值范围:RAW,QCOW2,VHD,VMDK。默认为RAW
|
9127
9406
|
:type ExportFormat: str
|
9128
|
-
:param _FileNamePrefixList:
|
9407
|
+
:param _FileNamePrefixList: 导出文件的名称前缀列表。
|
9408
|
+
默认导出文件无名称前缀。
|
9129
9409
|
:type FileNamePrefixList: list of str
|
9130
|
-
:param _OnlyExportRootDisk:
|
9410
|
+
:param _OnlyExportRootDisk: 是否只导出系统盘。
|
9411
|
+
默认值:false
|
9131
9412
|
:type OnlyExportRootDisk: bool
|
9132
|
-
:param _DryRun:
|
9413
|
+
:param _DryRun: 检测镜像是否支持导出。
|
9414
|
+
默认值:false
|
9133
9415
|
:type DryRun: bool
|
9134
9416
|
:param _RoleName: 角色名称。默认为CVM_QcsRole,发起请求前请确认是否存在该角色,以及是否已正确配置COS写入权限。
|
9135
9417
|
:type RoleName: str
|
@@ -9144,7 +9426,8 @@ class ExportImagesRequest(AbstractModel):
|
|
9144
9426
|
|
9145
9427
|
@property
|
9146
9428
|
def BucketName(self):
|
9147
|
-
"""COS
|
9429
|
+
"""COS存储桶名称。
|
9430
|
+
可通过 [List Buckets](https://cloud.tencent.com/document/product/436/8291) 接口查询请求者名下的所有存储桶列表或特定地域下的存储桶列表。
|
9148
9431
|
:rtype: str
|
9149
9432
|
"""
|
9150
9433
|
return self._BucketName
|
@@ -9156,6 +9439,7 @@ class ExportImagesRequest(AbstractModel):
|
|
9156
9439
|
@property
|
9157
9440
|
def ImageIds(self):
|
9158
9441
|
"""镜像ID列表。调用 ExportImages 接口时,参数 ImageIds 和 SnapshotIds 为二选一必填参数,目前参数 SnapshotIds 暂未对外开放。
|
9442
|
+
可通过 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) 接口返回值中的`ImageId`获取。
|
9159
9443
|
:rtype: list of str
|
9160
9444
|
"""
|
9161
9445
|
return self._ImageIds
|
@@ -9177,7 +9461,8 @@ class ExportImagesRequest(AbstractModel):
|
|
9177
9461
|
|
9178
9462
|
@property
|
9179
9463
|
def FileNamePrefixList(self):
|
9180
|
-
"""
|
9464
|
+
"""导出文件的名称前缀列表。
|
9465
|
+
默认导出文件无名称前缀。
|
9181
9466
|
:rtype: list of str
|
9182
9467
|
"""
|
9183
9468
|
return self._FileNamePrefixList
|
@@ -9188,7 +9473,8 @@ class ExportImagesRequest(AbstractModel):
|
|
9188
9473
|
|
9189
9474
|
@property
|
9190
9475
|
def OnlyExportRootDisk(self):
|
9191
|
-
"""
|
9476
|
+
"""是否只导出系统盘。
|
9477
|
+
默认值:false
|
9192
9478
|
:rtype: bool
|
9193
9479
|
"""
|
9194
9480
|
return self._OnlyExportRootDisk
|
@@ -9199,7 +9485,8 @@ class ExportImagesRequest(AbstractModel):
|
|
9199
9485
|
|
9200
9486
|
@property
|
9201
9487
|
def DryRun(self):
|
9202
|
-
"""
|
9488
|
+
"""检测镜像是否支持导出。
|
9489
|
+
默认值:false
|
9203
9490
|
:rtype: bool
|
9204
9491
|
"""
|
9205
9492
|
return self._DryRun
|
@@ -9247,7 +9534,9 @@ class ExportImagesResponse(AbstractModel):
|
|
9247
9534
|
r"""
|
9248
9535
|
:param _TaskId: 导出镜像任务ID
|
9249
9536
|
:type TaskId: int
|
9250
|
-
:param _CosPaths: 导出镜像的COS
|
9537
|
+
:param _CosPaths: 导出镜像的COS文件名列表。其中,文件名格式如下。
|
9538
|
+
* 系统盘:前缀名_镜像ID_system_快照ID.镜像格式
|
9539
|
+
* 数据盘:前缀名_镜像ID_data_快照ID.镜像格式
|
9251
9540
|
:type CosPaths: list of str
|
9252
9541
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9253
9542
|
:type RequestId: str
|
@@ -9269,7 +9558,9 @@ class ExportImagesResponse(AbstractModel):
|
|
9269
9558
|
|
9270
9559
|
@property
|
9271
9560
|
def CosPaths(self):
|
9272
|
-
"""导出镜像的COS
|
9561
|
+
"""导出镜像的COS文件名列表。其中,文件名格式如下。
|
9562
|
+
* 系统盘:前缀名_镜像ID_system_快照ID.镜像格式
|
9563
|
+
* 数据盘:前缀名_镜像ID_data_快照ID.镜像格式
|
9273
9564
|
:rtype: list of str
|
9274
9565
|
"""
|
9275
9566
|
return self._CosPaths
|
@@ -10158,17 +10449,24 @@ class Image(AbstractModel):
|
|
10158
10449
|
:type ImageId: str
|
10159
10450
|
:param _OsName: 镜像操作系统
|
10160
10451
|
:type OsName: str
|
10161
|
-
:param _ImageType:
|
10452
|
+
:param _ImageType: 镜像类型。镜像类型返回值包括:
|
10453
|
+
* `PUBLIC_IMAGE` 公共镜像
|
10454
|
+
* `PRIVATE_IMAGE` 自定义镜像
|
10455
|
+
* `SHARED_IMAGE` 共享镜像
|
10162
10456
|
:type ImageType: str
|
10163
|
-
:param _CreatedTime:
|
10457
|
+
:param _CreatedTime: 镜像创建时间。
|
10458
|
+
按照 ISO8601 标准表示,并且使用 UTC 时间,格式为:YYYY-MM-DDThh:mm:ssZ。
|
10164
10459
|
:type CreatedTime: str
|
10165
10460
|
:param _ImageName: 镜像名称
|
10166
10461
|
:type ImageName: str
|
10167
10462
|
:param _ImageDescription: 镜像描述
|
10168
10463
|
:type ImageDescription: str
|
10169
|
-
:param _ImageSize:
|
10464
|
+
:param _ImageSize: 镜像大小,单位 GiB。
|
10170
10465
|
:type ImageSize: int
|
10171
|
-
:param _Architecture:
|
10466
|
+
:param _Architecture: 镜像架构。镜像架构返回值包括:
|
10467
|
+
* `x86_64`
|
10468
|
+
* `arm`
|
10469
|
+
* `i386`
|
10172
10470
|
:type Architecture: str
|
10173
10471
|
:param _ImageState: 镜像状态:
|
10174
10472
|
CREATING-创建中
|
@@ -10183,7 +10481,10 @@ IMPORTFAILED-导入失败
|
|
10183
10481
|
:type Platform: str
|
10184
10482
|
:param _ImageCreator: 镜像创建者
|
10185
10483
|
:type ImageCreator: str
|
10186
|
-
:param _ImageSource:
|
10484
|
+
:param _ImageSource: 镜像来源。镜像来源返回值包括:
|
10485
|
+
* `OFFICIAL` 官方镜像
|
10486
|
+
* `CREATE_IMAGE` 用户自建镜像
|
10487
|
+
* `EXTERNAL_IMPORT` 用户外部导入镜像
|
10187
10488
|
:type ImageSource: str
|
10188
10489
|
:param _SyncPercent: 同步百分比
|
10189
10490
|
注意:此字段可能返回 null,表示取不到有效值。
|
@@ -10194,12 +10495,16 @@ IMPORTFAILED-导入失败
|
|
10194
10495
|
:type SnapshotSet: list of Snapshot
|
10195
10496
|
:param _Tags: 镜像关联的标签列表。
|
10196
10497
|
:type Tags: list of Tag
|
10197
|
-
:param _LicenseType:
|
10498
|
+
:param _LicenseType: 镜像许可类型。镜像许可类型返回值包括:
|
10499
|
+
* `TencentCloud` 腾讯云官方许可
|
10500
|
+
* `BYOL` 用户自带许可
|
10198
10501
|
:type LicenseType: str
|
10199
10502
|
:param _ImageFamily: 镜像族
|
10200
10503
|
:type ImageFamily: str
|
10201
10504
|
:param _ImageDeprecated: 镜像是否废弃
|
10202
10505
|
:type ImageDeprecated: bool
|
10506
|
+
:param _CdcCacheStatus: CDC镜像缓存状态
|
10507
|
+
:type CdcCacheStatus: str
|
10203
10508
|
"""
|
10204
10509
|
self._ImageId = None
|
10205
10510
|
self._OsName = None
|
@@ -10220,6 +10525,7 @@ IMPORTFAILED-导入失败
|
|
10220
10525
|
self._LicenseType = None
|
10221
10526
|
self._ImageFamily = None
|
10222
10527
|
self._ImageDeprecated = None
|
10528
|
+
self._CdcCacheStatus = None
|
10223
10529
|
|
10224
10530
|
@property
|
10225
10531
|
def ImageId(self):
|
@@ -10245,7 +10551,10 @@ IMPORTFAILED-导入失败
|
|
10245
10551
|
|
10246
10552
|
@property
|
10247
10553
|
def ImageType(self):
|
10248
|
-
"""
|
10554
|
+
"""镜像类型。镜像类型返回值包括:
|
10555
|
+
* `PUBLIC_IMAGE` 公共镜像
|
10556
|
+
* `PRIVATE_IMAGE` 自定义镜像
|
10557
|
+
* `SHARED_IMAGE` 共享镜像
|
10249
10558
|
:rtype: str
|
10250
10559
|
"""
|
10251
10560
|
return self._ImageType
|
@@ -10256,7 +10565,8 @@ IMPORTFAILED-导入失败
|
|
10256
10565
|
|
10257
10566
|
@property
|
10258
10567
|
def CreatedTime(self):
|
10259
|
-
"""
|
10568
|
+
"""镜像创建时间。
|
10569
|
+
按照 ISO8601 标准表示,并且使用 UTC 时间,格式为:YYYY-MM-DDThh:mm:ssZ。
|
10260
10570
|
:rtype: str
|
10261
10571
|
"""
|
10262
10572
|
return self._CreatedTime
|
@@ -10289,7 +10599,7 @@ IMPORTFAILED-导入失败
|
|
10289
10599
|
|
10290
10600
|
@property
|
10291
10601
|
def ImageSize(self):
|
10292
|
-
"""
|
10602
|
+
"""镜像大小,单位 GiB。
|
10293
10603
|
:rtype: int
|
10294
10604
|
"""
|
10295
10605
|
return self._ImageSize
|
@@ -10300,7 +10610,10 @@ IMPORTFAILED-导入失败
|
|
10300
10610
|
|
10301
10611
|
@property
|
10302
10612
|
def Architecture(self):
|
10303
|
-
"""
|
10613
|
+
"""镜像架构。镜像架构返回值包括:
|
10614
|
+
* `x86_64`
|
10615
|
+
* `arm`
|
10616
|
+
* `i386`
|
10304
10617
|
:rtype: str
|
10305
10618
|
"""
|
10306
10619
|
return self._Architecture
|
@@ -10351,7 +10664,10 @@ IMPORTFAILED-导入失败
|
|
10351
10664
|
|
10352
10665
|
@property
|
10353
10666
|
def ImageSource(self):
|
10354
|
-
"""
|
10667
|
+
"""镜像来源。镜像来源返回值包括:
|
10668
|
+
* `OFFICIAL` 官方镜像
|
10669
|
+
* `CREATE_IMAGE` 用户自建镜像
|
10670
|
+
* `EXTERNAL_IMPORT` 用户外部导入镜像
|
10355
10671
|
:rtype: str
|
10356
10672
|
"""
|
10357
10673
|
return self._ImageSource
|
@@ -10407,7 +10723,9 @@ IMPORTFAILED-导入失败
|
|
10407
10723
|
|
10408
10724
|
@property
|
10409
10725
|
def LicenseType(self):
|
10410
|
-
"""
|
10726
|
+
"""镜像许可类型。镜像许可类型返回值包括:
|
10727
|
+
* `TencentCloud` 腾讯云官方许可
|
10728
|
+
* `BYOL` 用户自带许可
|
10411
10729
|
:rtype: str
|
10412
10730
|
"""
|
10413
10731
|
return self._LicenseType
|
@@ -10438,6 +10756,17 @@ IMPORTFAILED-导入失败
|
|
10438
10756
|
def ImageDeprecated(self, ImageDeprecated):
|
10439
10757
|
self._ImageDeprecated = ImageDeprecated
|
10440
10758
|
|
10759
|
+
@property
|
10760
|
+
def CdcCacheStatus(self):
|
10761
|
+
"""CDC镜像缓存状态
|
10762
|
+
:rtype: str
|
10763
|
+
"""
|
10764
|
+
return self._CdcCacheStatus
|
10765
|
+
|
10766
|
+
@CdcCacheStatus.setter
|
10767
|
+
def CdcCacheStatus(self, CdcCacheStatus):
|
10768
|
+
self._CdcCacheStatus = CdcCacheStatus
|
10769
|
+
|
10441
10770
|
|
10442
10771
|
def _deserialize(self, params):
|
10443
10772
|
self._ImageId = params.get("ImageId")
|
@@ -10469,6 +10798,7 @@ IMPORTFAILED-导入失败
|
|
10469
10798
|
self._LicenseType = params.get("LicenseType")
|
10470
10799
|
self._ImageFamily = params.get("ImageFamily")
|
10471
10800
|
self._ImageDeprecated = params.get("ImageDeprecated")
|
10801
|
+
self._CdcCacheStatus = params.get("CdcCacheStatus")
|
10472
10802
|
memeber_set = set(params.keys())
|
10473
10803
|
for name, value in vars(self).items():
|
10474
10804
|
property_name = name[1:]
|
@@ -10899,7 +11229,7 @@ class ImportInstancesActionTimerRequest(AbstractModel):
|
|
10899
11229
|
|
10900
11230
|
def __init__(self):
|
10901
11231
|
r"""
|
10902
|
-
:param _InstanceIds: 实例id
|
11232
|
+
:param _InstanceIds: 实例id列表,可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
10903
11233
|
:type InstanceIds: list of str
|
10904
11234
|
:param _ActionTimer: 定时器任务信息,目前仅支持定时销毁。
|
10905
11235
|
:type ActionTimer: :class:`tencentcloud.cvm.v20170312.models.ActionTimer`
|
@@ -10909,7 +11239,7 @@ class ImportInstancesActionTimerRequest(AbstractModel):
|
|
10909
11239
|
|
10910
11240
|
@property
|
10911
11241
|
def InstanceIds(self):
|
10912
|
-
"""实例id
|
11242
|
+
"""实例id列表,可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
10913
11243
|
:rtype: list of str
|
10914
11244
|
"""
|
10915
11245
|
return self._InstanceIds
|
@@ -10997,9 +11327,7 @@ class ImportKeyPairRequest(AbstractModel):
|
|
10997
11327
|
r"""
|
10998
11328
|
:param _KeyName: 密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。
|
10999
11329
|
:type KeyName: str
|
11000
|
-
:param _ProjectId: 密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。<br
|
11001
|
-
|
11002
|
-
如果是默认项目,直接填0就可以。
|
11330
|
+
:param _ProjectId: 密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。<br>可以通过以下方式获取项目ID:<li>通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。</li><li>通过调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的 `projectId ` 获取项目ID。</li>如果是默认项目,直接填0就可以。
|
11003
11331
|
:type ProjectId: int
|
11004
11332
|
:param _PublicKey: 密钥对的公钥内容,`OpenSSH RSA` 格式。
|
11005
11333
|
:type PublicKey: str
|
@@ -11024,9 +11352,7 @@ class ImportKeyPairRequest(AbstractModel):
|
|
11024
11352
|
|
11025
11353
|
@property
|
11026
11354
|
def ProjectId(self):
|
11027
|
-
"""密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。<br
|
11028
|
-
|
11029
|
-
如果是默认项目,直接填0就可以。
|
11355
|
+
"""密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。<br>可以通过以下方式获取项目ID:<li>通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。</li><li>通过调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的 `projectId ` 获取项目ID。</li>如果是默认项目,直接填0就可以。
|
11030
11356
|
:rtype: int
|
11031
11357
|
"""
|
11032
11358
|
return self._ProjectId
|
@@ -12009,21 +12335,28 @@ class InquiryPriceResizeInstanceDisksRequest(AbstractModel):
|
|
12009
12335
|
|
12010
12336
|
def __init__(self):
|
12011
12337
|
r"""
|
12012
|
-
:param _InstanceId: 待操作的实例ID。可通过[
|
12338
|
+
:param _InstanceId: 待操作的实例ID。可通过[ DescribeInstances ](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`InstanceId`获取。
|
12013
12339
|
:type InstanceId: str
|
12014
|
-
:param _DataDisks:
|
12340
|
+
:param _DataDisks: 待扩容的数据盘配置信息。只支持扩容非弹性数据盘[ DescribeDisks ](https://cloud.tencent.com/document/api/362/16315)接口返回值中的`Portable`为`false`表示非弹性)。数据盘容量单位:GB。最小扩容步长:10G。关于数据盘类型的选择请参考硬盘产品简介。可选数据盘类型受到实例类型`InstanceType`限制。另外允许扩容的最大容量也因数据盘类型的不同而有所差异。
|
12015
12341
|
<dx-alert infotype="explain" title="">您必须指定参数DataDisks与SystemDisk的其中一个,但不能同时指定。</dx-alert>
|
12016
12342
|
:type DataDisks: list of DataDisk
|
12017
|
-
:param _ForceStop: 是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再重置用户密码。取值范围:<br><li>true:表示在正常关机失败后进行强制关机</li><br><li>false:表示在正常关机失败后不进行强制关机</li><br
|
12343
|
+
:param _ForceStop: 是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再重置用户密码。取值范围:<br><li>true:表示在正常关机失败后进行强制关机</li><br><li>false:表示在正常关机失败后不进行强制关机</li><br>默认取值:false。<br><br>强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
12018
12344
|
:type ForceStop: bool
|
12345
|
+
:param _SystemDisk: 待扩容的系统盘配置信息。只支持扩容云盘。
|
12346
|
+
<dx-alert infotype="explain" title="">您必须指定参数DataDisks与SystemDisk的其中一个,但不能同时指定。</dx-alert>
|
12347
|
+
:type SystemDisk: :class:`tencentcloud.cvm.v20170312.models.SystemDisk`
|
12348
|
+
:param _ResizeOnline: 是否在线扩容
|
12349
|
+
:type ResizeOnline: bool
|
12019
12350
|
"""
|
12020
12351
|
self._InstanceId = None
|
12021
12352
|
self._DataDisks = None
|
12022
12353
|
self._ForceStop = None
|
12354
|
+
self._SystemDisk = None
|
12355
|
+
self._ResizeOnline = None
|
12023
12356
|
|
12024
12357
|
@property
|
12025
12358
|
def InstanceId(self):
|
12026
|
-
"""待操作的实例ID。可通过[
|
12359
|
+
"""待操作的实例ID。可通过[ DescribeInstances ](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`InstanceId`获取。
|
12027
12360
|
:rtype: str
|
12028
12361
|
"""
|
12029
12362
|
return self._InstanceId
|
@@ -12034,7 +12367,7 @@ class InquiryPriceResizeInstanceDisksRequest(AbstractModel):
|
|
12034
12367
|
|
12035
12368
|
@property
|
12036
12369
|
def DataDisks(self):
|
12037
|
-
"""
|
12370
|
+
"""待扩容的数据盘配置信息。只支持扩容非弹性数据盘[ DescribeDisks ](https://cloud.tencent.com/document/api/362/16315)接口返回值中的`Portable`为`false`表示非弹性)。数据盘容量单位:GB。最小扩容步长:10G。关于数据盘类型的选择请参考硬盘产品简介。可选数据盘类型受到实例类型`InstanceType`限制。另外允许扩容的最大容量也因数据盘类型的不同而有所差异。
|
12038
12371
|
<dx-alert infotype="explain" title="">您必须指定参数DataDisks与SystemDisk的其中一个,但不能同时指定。</dx-alert>
|
12039
12372
|
:rtype: list of DataDisk
|
12040
12373
|
"""
|
@@ -12046,7 +12379,7 @@ class InquiryPriceResizeInstanceDisksRequest(AbstractModel):
|
|
12046
12379
|
|
12047
12380
|
@property
|
12048
12381
|
def ForceStop(self):
|
12049
|
-
"""是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再重置用户密码。取值范围:<br><li>true:表示在正常关机失败后进行强制关机</li><br><li>false:表示在正常关机失败后不进行强制关机</li><br
|
12382
|
+
"""是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再重置用户密码。取值范围:<br><li>true:表示在正常关机失败后进行强制关机</li><br><li>false:表示在正常关机失败后不进行强制关机</li><br>默认取值:false。<br><br>强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
12050
12383
|
:rtype: bool
|
12051
12384
|
"""
|
12052
12385
|
return self._ForceStop
|
@@ -12055,6 +12388,29 @@ class InquiryPriceResizeInstanceDisksRequest(AbstractModel):
|
|
12055
12388
|
def ForceStop(self, ForceStop):
|
12056
12389
|
self._ForceStop = ForceStop
|
12057
12390
|
|
12391
|
+
@property
|
12392
|
+
def SystemDisk(self):
|
12393
|
+
"""待扩容的系统盘配置信息。只支持扩容云盘。
|
12394
|
+
<dx-alert infotype="explain" title="">您必须指定参数DataDisks与SystemDisk的其中一个,但不能同时指定。</dx-alert>
|
12395
|
+
:rtype: :class:`tencentcloud.cvm.v20170312.models.SystemDisk`
|
12396
|
+
"""
|
12397
|
+
return self._SystemDisk
|
12398
|
+
|
12399
|
+
@SystemDisk.setter
|
12400
|
+
def SystemDisk(self, SystemDisk):
|
12401
|
+
self._SystemDisk = SystemDisk
|
12402
|
+
|
12403
|
+
@property
|
12404
|
+
def ResizeOnline(self):
|
12405
|
+
"""是否在线扩容
|
12406
|
+
:rtype: bool
|
12407
|
+
"""
|
12408
|
+
return self._ResizeOnline
|
12409
|
+
|
12410
|
+
@ResizeOnline.setter
|
12411
|
+
def ResizeOnline(self, ResizeOnline):
|
12412
|
+
self._ResizeOnline = ResizeOnline
|
12413
|
+
|
12058
12414
|
|
12059
12415
|
def _deserialize(self, params):
|
12060
12416
|
self._InstanceId = params.get("InstanceId")
|
@@ -12065,6 +12421,10 @@ class InquiryPriceResizeInstanceDisksRequest(AbstractModel):
|
|
12065
12421
|
obj._deserialize(item)
|
12066
12422
|
self._DataDisks.append(obj)
|
12067
12423
|
self._ForceStop = params.get("ForceStop")
|
12424
|
+
if params.get("SystemDisk") is not None:
|
12425
|
+
self._SystemDisk = SystemDisk()
|
12426
|
+
self._SystemDisk._deserialize(params.get("SystemDisk"))
|
12427
|
+
self._ResizeOnline = params.get("ResizeOnline")
|
12068
12428
|
memeber_set = set(params.keys())
|
12069
12429
|
for name, value in vars(self).items():
|
12070
12430
|
property_name = name[1:]
|
@@ -12137,7 +12497,8 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
12137
12497
|
:type InstanceChargeType: str
|
12138
12498
|
:param _InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。
|
12139
12499
|
:type InstanceChargePrepaid: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
|
12140
|
-
:param _InstanceType:
|
12500
|
+
:param _InstanceType: 实例机型。不同实例机型指定了不同的资源规格。
|
12501
|
+
<br><li>对于付费模式为PREPAID或POSTPAID_BY_HOUR的实例创建,具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。若不指定该参数,则系统将根据当前地域的资源售卖情况动态指定默认机型。</li><br><li>对于付费模式为CDHPAID的实例创建,该参数以"CDH_"为前缀,根据CPU和内存配置生成,具体形式为:CDH_XCXG,例如对于创建CPU为1核,内存为1G大小的专用宿主机的实例,该参数应该为CDH_1C1G。</li>
|
12141
12502
|
:type InstanceType: str
|
12142
12503
|
:param _SystemDisk: 实例系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
12143
12504
|
:type SystemDisk: :class:`tencentcloud.cvm.v20170312.models.SystemDisk`
|
@@ -12153,7 +12514,7 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
12153
12514
|
:type InstanceName: str
|
12154
12515
|
:param _LoginSettings: 实例登录设置。通过该参数可以设置实例的登录方式密码、密钥或保持镜像的原始登录设置。默认情况下会随机生成密码,并以站内信方式知会到用户。
|
12155
12516
|
:type LoginSettings: :class:`tencentcloud.cvm.v20170312.models.LoginSettings`
|
12156
|
-
:param _SecurityGroupIds: 实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808)
|
12517
|
+
:param _SecurityGroupIds: 实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的`SecurityGroupId`字段来获取。若不指定该参数,则默认不绑定安全组。
|
12157
12518
|
:type SecurityGroupIds: list of str
|
12158
12519
|
:param _EnhancedService: 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。
|
12159
12520
|
:type EnhancedService: :class:`tencentcloud.cvm.v20170312.models.EnhancedService`
|
@@ -12165,6 +12526,10 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
12165
12526
|
:type TagSpecification: list of TagSpecification
|
12166
12527
|
:param _InstanceMarketOptions: 实例的市场相关选项,如竞价实例相关参数
|
12167
12528
|
:type InstanceMarketOptions: :class:`tencentcloud.cvm.v20170312.models.InstanceMarketOptionsRequest`
|
12529
|
+
:param _Metadata: 自定义metadata,支持创建 CVM 时添加自定义元数据键值对。
|
12530
|
+
|
12531
|
+
**注:内测中**。
|
12532
|
+
:type Metadata: :class:`tencentcloud.cvm.v20170312.models.Metadata`
|
12168
12533
|
:param _HpcClusterId: 高性能计算集群ID。
|
12169
12534
|
:type HpcClusterId: str
|
12170
12535
|
:param _CpuTopology: 描述了实例CPU拓扑结构的相关信息。若不指定该参数,则按系统资源情况决定。
|
@@ -12190,6 +12555,7 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
12190
12555
|
self._HostName = None
|
12191
12556
|
self._TagSpecification = None
|
12192
12557
|
self._InstanceMarketOptions = None
|
12558
|
+
self._Metadata = None
|
12193
12559
|
self._HpcClusterId = None
|
12194
12560
|
self._CpuTopology = None
|
12195
12561
|
self._LaunchTemplate = None
|
@@ -12242,7 +12608,8 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
12242
12608
|
|
12243
12609
|
@property
|
12244
12610
|
def InstanceType(self):
|
12245
|
-
"""
|
12611
|
+
"""实例机型。不同实例机型指定了不同的资源规格。
|
12612
|
+
<br><li>对于付费模式为PREPAID或POSTPAID_BY_HOUR的实例创建,具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。若不指定该参数,则系统将根据当前地域的资源售卖情况动态指定默认机型。</li><br><li>对于付费模式为CDHPAID的实例创建,该参数以"CDH_"为前缀,根据CPU和内存配置生成,具体形式为:CDH_XCXG,例如对于创建CPU为1核,内存为1G大小的专用宿主机的实例,该参数应该为CDH_1C1G。</li>
|
12246
12613
|
:rtype: str
|
12247
12614
|
"""
|
12248
12615
|
return self._InstanceType
|
@@ -12330,7 +12697,7 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
12330
12697
|
|
12331
12698
|
@property
|
12332
12699
|
def SecurityGroupIds(self):
|
12333
|
-
"""实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808)
|
12700
|
+
"""实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的`SecurityGroupId`字段来获取。若不指定该参数,则默认不绑定安全组。
|
12334
12701
|
:rtype: list of str
|
12335
12702
|
"""
|
12336
12703
|
return self._SecurityGroupIds
|
@@ -12394,6 +12761,19 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
12394
12761
|
def InstanceMarketOptions(self, InstanceMarketOptions):
|
12395
12762
|
self._InstanceMarketOptions = InstanceMarketOptions
|
12396
12763
|
|
12764
|
+
@property
|
12765
|
+
def Metadata(self):
|
12766
|
+
"""自定义metadata,支持创建 CVM 时添加自定义元数据键值对。
|
12767
|
+
|
12768
|
+
**注:内测中**。
|
12769
|
+
:rtype: :class:`tencentcloud.cvm.v20170312.models.Metadata`
|
12770
|
+
"""
|
12771
|
+
return self._Metadata
|
12772
|
+
|
12773
|
+
@Metadata.setter
|
12774
|
+
def Metadata(self, Metadata):
|
12775
|
+
self._Metadata = Metadata
|
12776
|
+
|
12397
12777
|
@property
|
12398
12778
|
def HpcClusterId(self):
|
12399
12779
|
"""高性能计算集群ID。
|
@@ -12473,6 +12853,9 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
12473
12853
|
if params.get("InstanceMarketOptions") is not None:
|
12474
12854
|
self._InstanceMarketOptions = InstanceMarketOptionsRequest()
|
12475
12855
|
self._InstanceMarketOptions._deserialize(params.get("InstanceMarketOptions"))
|
12856
|
+
if params.get("Metadata") is not None:
|
12857
|
+
self._Metadata = Metadata()
|
12858
|
+
self._Metadata._deserialize(params.get("Metadata"))
|
12476
12859
|
self._HpcClusterId = params.get("HpcClusterId")
|
12477
12860
|
if params.get("CpuTopology") is not None:
|
12478
12861
|
self._CpuTopology = CpuTopology()
|
@@ -12640,7 +13023,7 @@ class Instance(AbstractModel):
|
|
12640
13023
|
:type RestrictState: str
|
12641
13024
|
:param _InstanceName: 实例名称。
|
12642
13025
|
:type InstanceName: str
|
12643
|
-
:param _InstanceChargeType:
|
13026
|
+
:param _InstanceChargeType: 实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。取值范围:<br><li>PREPAID:预付费,即包年包月</li><br><li>POSTPAID_BY_HOUR:按小时后付费</li><br><li>CDHPAID:独享子机(基于专用宿主机创建,宿主机部分的资源不收费)</li><br><li>SPOTPAID:竞价付费</li><br><li>CDCPAID:专用集群付费</li>
|
12644
13027
|
:type InstanceChargeType: str
|
12645
13028
|
:param _SystemDisk: 实例系统盘信息。
|
12646
13029
|
:type SystemDisk: :class:`tencentcloud.cvm.v20170312.models.SystemDisk`
|
@@ -12670,7 +13053,7 @@ class Instance(AbstractModel):
|
|
12670
13053
|
:type SecurityGroupIds: list of str
|
12671
13054
|
:param _LoginSettings: 实例登录设置。目前只返回实例所关联的密钥。
|
12672
13055
|
:type LoginSettings: :class:`tencentcloud.cvm.v20170312.models.LoginSettings`
|
12673
|
-
:param _InstanceState:
|
13056
|
+
:param _InstanceState: 实例状态。状态类型详见[实例状态表](https://cloud.tencent.com/document/api/213/15753#InstanceStatus)
|
12674
13057
|
:type InstanceState: str
|
12675
13058
|
:param _Tags: 实例关联的标签列表。
|
12676
13059
|
:type Tags: list of Tag
|
@@ -12840,7 +13223,7 @@ class Instance(AbstractModel):
|
|
12840
13223
|
|
12841
13224
|
@property
|
12842
13225
|
def InstanceChargeType(self):
|
12843
|
-
"""
|
13226
|
+
"""实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。取值范围:<br><li>PREPAID:预付费,即包年包月</li><br><li>POSTPAID_BY_HOUR:按小时后付费</li><br><li>CDHPAID:独享子机(基于专用宿主机创建,宿主机部分的资源不收费)</li><br><li>SPOTPAID:竞价付费</li><br><li>CDCPAID:专用集群付费</li>
|
12844
13227
|
:rtype: str
|
12845
13228
|
"""
|
12846
13229
|
return self._InstanceChargeType
|
@@ -12996,7 +13379,7 @@ class Instance(AbstractModel):
|
|
12996
13379
|
|
12997
13380
|
@property
|
12998
13381
|
def InstanceState(self):
|
12999
|
-
"""
|
13382
|
+
"""实例状态。状态类型详见[实例状态表](https://cloud.tencent.com/document/api/213/15753#InstanceStatus)
|
13000
13383
|
:rtype: str
|
13001
13384
|
"""
|
13002
13385
|
return self._InstanceState
|
@@ -13297,6 +13680,59 @@ class Instance(AbstractModel):
|
|
13297
13680
|
|
13298
13681
|
|
13299
13682
|
|
13683
|
+
class InstanceAttribute(AbstractModel):
|
13684
|
+
"""实例属性
|
13685
|
+
|
13686
|
+
"""
|
13687
|
+
|
13688
|
+
def __init__(self):
|
13689
|
+
r"""
|
13690
|
+
:param _InstanceId: 实例 ID。
|
13691
|
+
:type InstanceId: str
|
13692
|
+
:param _Attributes: 实例属性信息。
|
13693
|
+
:type Attributes: :class:`tencentcloud.cvm.v20170312.models.Attribute`
|
13694
|
+
"""
|
13695
|
+
self._InstanceId = None
|
13696
|
+
self._Attributes = None
|
13697
|
+
|
13698
|
+
@property
|
13699
|
+
def InstanceId(self):
|
13700
|
+
"""实例 ID。
|
13701
|
+
:rtype: str
|
13702
|
+
"""
|
13703
|
+
return self._InstanceId
|
13704
|
+
|
13705
|
+
@InstanceId.setter
|
13706
|
+
def InstanceId(self, InstanceId):
|
13707
|
+
self._InstanceId = InstanceId
|
13708
|
+
|
13709
|
+
@property
|
13710
|
+
def Attributes(self):
|
13711
|
+
"""实例属性信息。
|
13712
|
+
:rtype: :class:`tencentcloud.cvm.v20170312.models.Attribute`
|
13713
|
+
"""
|
13714
|
+
return self._Attributes
|
13715
|
+
|
13716
|
+
@Attributes.setter
|
13717
|
+
def Attributes(self, Attributes):
|
13718
|
+
self._Attributes = Attributes
|
13719
|
+
|
13720
|
+
|
13721
|
+
def _deserialize(self, params):
|
13722
|
+
self._InstanceId = params.get("InstanceId")
|
13723
|
+
if params.get("Attributes") is not None:
|
13724
|
+
self._Attributes = Attribute()
|
13725
|
+
self._Attributes._deserialize(params.get("Attributes"))
|
13726
|
+
memeber_set = set(params.keys())
|
13727
|
+
for name, value in vars(self).items():
|
13728
|
+
property_name = name[1:]
|
13729
|
+
if property_name in memeber_set:
|
13730
|
+
memeber_set.remove(property_name)
|
13731
|
+
if len(memeber_set) > 0:
|
13732
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
13733
|
+
|
13734
|
+
|
13735
|
+
|
13300
13736
|
class InstanceChargePrepaid(AbstractModel):
|
13301
13737
|
"""描述了实例的计费模式
|
13302
13738
|
|
@@ -13587,7 +14023,7 @@ class InstanceTypeConfig(AbstractModel):
|
|
13587
14023
|
:type GPU: int
|
13588
14024
|
:param _CPU: CPU核数,单位:核。
|
13589
14025
|
:type CPU: int
|
13590
|
-
:param _Memory: 内存容量,单位:`
|
14026
|
+
:param _Memory: 内存容量,单位:`GiB`。
|
13591
14027
|
:type Memory: int
|
13592
14028
|
:param _FPGA: FPGA核数,单位:核。
|
13593
14029
|
:type FPGA: int
|
@@ -13660,7 +14096,7 @@ class InstanceTypeConfig(AbstractModel):
|
|
13660
14096
|
|
13661
14097
|
@property
|
13662
14098
|
def Memory(self):
|
13663
|
-
"""内存容量,单位:`
|
14099
|
+
"""内存容量,单位:`GiB`。
|
13664
14100
|
:rtype: int
|
13665
14101
|
"""
|
13666
14102
|
return self._Memory
|
@@ -13790,7 +14226,7 @@ class InstanceTypeQuotaItem(AbstractModel):
|
|
13790
14226
|
:type Zone: str
|
13791
14227
|
:param _InstanceType: 实例机型。
|
13792
14228
|
:type InstanceType: str
|
13793
|
-
:param _InstanceChargeType: 实例计费模式。取值范围: <br><li>PREPAID:表示预付费,即包年包月<br></li>POSTPAID_BY_HOUR
|
14229
|
+
:param _InstanceChargeType: 实例计费模式。取值范围: <br><li>PREPAID:表示预付费,即包年包月<br></li><li>POSTPAID_BY_HOUR:表示后付费,即按量计费</li><li>CDHPAID:表示[专用宿主机](https://cloud.tencent.com/document/product/416)付费,即只对`专用宿主机`计费,不对`专用宿主机`上的实例计费。<br></li><li>SPOTPAID:表示竞价实例付费。</li>
|
13794
14230
|
:type InstanceChargeType: str
|
13795
14231
|
:param _NetworkCard: 网卡类型,例如:25代表25G网卡
|
13796
14232
|
:type NetworkCard: int
|
@@ -13806,7 +14242,7 @@ class InstanceTypeQuotaItem(AbstractModel):
|
|
13806
14242
|
:type TypeName: str
|
13807
14243
|
:param _LocalDiskTypeList: 本地磁盘规格列表。当该参数返回为空值时,表示当前情况下无法创建本地盘。
|
13808
14244
|
:type LocalDiskTypeList: list of LocalDiskType
|
13809
|
-
:param _Status: 实例是否售卖。取值范围: <br><li>SELL:表示实例可购买<br></li>SOLD_OUT
|
14245
|
+
:param _Status: 实例是否售卖。取值范围: <br><li>SELL:表示实例可购买<br></li><li>SOLD_OUT:表示实例已售罄。</li>
|
13810
14246
|
:type Status: str
|
13811
14247
|
:param _Price: 实例的售卖价格。
|
13812
14248
|
:type Price: :class:`tencentcloud.cvm.v20170312.models.ItemPrice`
|
@@ -13831,10 +14267,7 @@ class InstanceTypeQuotaItem(AbstractModel):
|
|
13831
14267
|
:param _Frequency: 实例的CPU主频信息
|
13832
14268
|
:type Frequency: str
|
13833
14269
|
:param _StatusCategory: 描述库存情况。取值范围:
|
13834
|
-
<li> EnoughStock:表示对应库存非常充足</li>
|
13835
|
-
<li>NormalStock:表示对应库存供应有保障</li>
|
13836
|
-
<li> UnderStock:表示对应库存即将售罄</li>
|
13837
|
-
<li>WithoutStock:表示对应库存已经售罄</li>
|
14270
|
+
<li> EnoughStock:表示对应库存非常充足</li> <li>NormalStock:表示对应库存供应有保障</li><li> UnderStock:表示对应库存即将售罄</li> <li>WithoutStock:表示对应库存已经售罄</li>
|
13838
14271
|
:type StatusCategory: str
|
13839
14272
|
"""
|
13840
14273
|
self._Zone = None
|
@@ -13885,7 +14318,7 @@ class InstanceTypeQuotaItem(AbstractModel):
|
|
13885
14318
|
|
13886
14319
|
@property
|
13887
14320
|
def InstanceChargeType(self):
|
13888
|
-
"""实例计费模式。取值范围: <br><li>PREPAID:表示预付费,即包年包月<br></li>POSTPAID_BY_HOUR
|
14321
|
+
"""实例计费模式。取值范围: <br><li>PREPAID:表示预付费,即包年包月<br></li><li>POSTPAID_BY_HOUR:表示后付费,即按量计费</li><li>CDHPAID:表示[专用宿主机](https://cloud.tencent.com/document/product/416)付费,即只对`专用宿主机`计费,不对`专用宿主机`上的实例计费。<br></li><li>SPOTPAID:表示竞价实例付费。</li>
|
13889
14322
|
:rtype: str
|
13890
14323
|
"""
|
13891
14324
|
return self._InstanceChargeType
|
@@ -13973,7 +14406,7 @@ class InstanceTypeQuotaItem(AbstractModel):
|
|
13973
14406
|
|
13974
14407
|
@property
|
13975
14408
|
def Status(self):
|
13976
|
-
"""实例是否售卖。取值范围: <br><li>SELL:表示实例可购买<br></li>SOLD_OUT
|
14409
|
+
"""实例是否售卖。取值范围: <br><li>SELL:表示实例可购买<br></li><li>SOLD_OUT:表示实例已售罄。</li>
|
13977
14410
|
:rtype: str
|
13978
14411
|
"""
|
13979
14412
|
return self._Status
|
@@ -14106,10 +14539,7 @@ class InstanceTypeQuotaItem(AbstractModel):
|
|
14106
14539
|
@property
|
14107
14540
|
def StatusCategory(self):
|
14108
14541
|
"""描述库存情况。取值范围:
|
14109
|
-
<li> EnoughStock:表示对应库存非常充足</li>
|
14110
|
-
<li>NormalStock:表示对应库存供应有保障</li>
|
14111
|
-
<li> UnderStock:表示对应库存即将售罄</li>
|
14112
|
-
<li>WithoutStock:表示对应库存已经售罄</li>
|
14542
|
+
<li> EnoughStock:表示对应库存非常充足</li> <li>NormalStock:表示对应库存供应有保障</li><li> UnderStock:表示对应库存即将售罄</li> <li>WithoutStock:表示对应库存已经售罄</li>
|
14113
14543
|
:rtype: str
|
14114
14544
|
"""
|
14115
14545
|
return self._StatusCategory
|
@@ -14175,7 +14605,7 @@ class InternetAccessible(AbstractModel):
|
|
14175
14605
|
:type InternetMaxBandwidthOut: int
|
14176
14606
|
:param _PublicIpAssigned: 是否分配公网IP。取值范围:<br><li>true:表示分配公网IP</li><li>false:表示不分配公网IP</li><br>当公网带宽大于0Mbps时,可自由选择开通与否,默认开通公网IP;当公网带宽为0,则不允许分配公网IP。该参数仅在RunInstances接口中作为入参使用。
|
14177
14607
|
:type PublicIpAssigned: bool
|
14178
|
-
:param _BandwidthPackageId: 带宽包ID。可通过[
|
14608
|
+
:param _BandwidthPackageId: 带宽包ID。可通过[ DescribeBandwidthPackages ](https://cloud.tencent.com/document/api/215/19209)接口返回值中的`BandwidthPackageId`获取。该参数仅在RunInstances接口中作为入参使用。
|
14179
14609
|
:type BandwidthPackageId: str
|
14180
14610
|
"""
|
14181
14611
|
self._InternetChargeType = None
|
@@ -14218,7 +14648,7 @@ class InternetAccessible(AbstractModel):
|
|
14218
14648
|
|
14219
14649
|
@property
|
14220
14650
|
def BandwidthPackageId(self):
|
14221
|
-
"""带宽包ID。可通过[
|
14651
|
+
"""带宽包ID。可通过[ DescribeBandwidthPackages ](https://cloud.tencent.com/document/api/215/19209)接口返回值中的`BandwidthPackageId`获取。该参数仅在RunInstances接口中作为入参使用。
|
14222
14652
|
:rtype: str
|
14223
14653
|
"""
|
14224
14654
|
return self._BandwidthPackageId
|
@@ -14318,7 +14748,7 @@ class InternetChargeTypeConfig(AbstractModel):
|
|
14318
14748
|
|
14319
14749
|
def __init__(self):
|
14320
14750
|
r"""
|
14321
|
-
:param _InternetChargeType:
|
14751
|
+
:param _InternetChargeType: 网络计费类型。取值范围:<br><li>BANDWIDTH_PREPAID:预付费按带宽结算</li><li>TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费</li><li>BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费</li><li>BANDWIDTH_PACKAGE:带宽包用户</li>默认取值:非带宽包用户默认与子机付费类型保持一致,比如子机付费类型为预付费,网络计费类型默认为预付费;子机付费类型为后付费,网络计费类型默认为后付费。
|
14322
14752
|
:type InternetChargeType: str
|
14323
14753
|
:param _Description: 网络计费模式描述信息。
|
14324
14754
|
:type Description: str
|
@@ -14328,7 +14758,7 @@ class InternetChargeTypeConfig(AbstractModel):
|
|
14328
14758
|
|
14329
14759
|
@property
|
14330
14760
|
def InternetChargeType(self):
|
14331
|
-
"""
|
14761
|
+
"""网络计费类型。取值范围:<br><li>BANDWIDTH_PREPAID:预付费按带宽结算</li><li>TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费</li><li>BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费</li><li>BANDWIDTH_PACKAGE:带宽包用户</li>默认取值:非带宽包用户默认与子机付费类型保持一致,比如子机付费类型为预付费,网络计费类型默认为预付费;子机付费类型为后付费,网络计费类型默认为后付费。
|
14332
14762
|
:rtype: str
|
14333
14763
|
"""
|
14334
14764
|
return self._InternetChargeType
|
@@ -14697,7 +15127,7 @@ class KeyPair(AbstractModel):
|
|
14697
15127
|
:type KeyId: str
|
14698
15128
|
:param _KeyName: 密钥对名称。
|
14699
15129
|
:type KeyName: str
|
14700
|
-
:param _ProjectId:
|
15130
|
+
:param _ProjectId: 密钥对所属的项目 `ID`,ProjectId 为 0 时表示默认项目。
|
14701
15131
|
:type ProjectId: int
|
14702
15132
|
:param _Description: 密钥对描述信息。
|
14703
15133
|
:type Description: str
|
@@ -14746,7 +15176,7 @@ class KeyPair(AbstractModel):
|
|
14746
15176
|
|
14747
15177
|
@property
|
14748
15178
|
def ProjectId(self):
|
14749
|
-
"""
|
15179
|
+
"""密钥对所属的项目 `ID`,ProjectId 为 0 时表示默认项目。
|
14750
15180
|
:rtype: int
|
14751
15181
|
"""
|
14752
15182
|
return self._ProjectId
|
@@ -15470,7 +15900,7 @@ class LaunchTemplateVersionInfo(AbstractModel):
|
|
15470
15900
|
:type IsDefaultVersion: bool
|
15471
15901
|
:param _LaunchTemplateVersionDescription: 实例启动模板版本描述信息。
|
15472
15902
|
:type LaunchTemplateVersionDescription: str
|
15473
|
-
:param _CreatedBy:
|
15903
|
+
:param _CreatedBy: 创建者的AppId。
|
15474
15904
|
:type CreatedBy: str
|
15475
15905
|
"""
|
15476
15906
|
self._LaunchTemplateVersion = None
|
@@ -15549,7 +15979,7 @@ class LaunchTemplateVersionInfo(AbstractModel):
|
|
15549
15979
|
|
15550
15980
|
@property
|
15551
15981
|
def CreatedBy(self):
|
15552
|
-
"""
|
15982
|
+
"""创建者的AppId。
|
15553
15983
|
:rtype: str
|
15554
15984
|
"""
|
15555
15985
|
return self._CreatedBy
|
@@ -15743,6 +16173,100 @@ class LoginSettings(AbstractModel):
|
|
15743
16173
|
|
15744
16174
|
|
15745
16175
|
|
16176
|
+
class Metadata(AbstractModel):
|
16177
|
+
"""自定义metadata
|
16178
|
+
|
16179
|
+
"""
|
16180
|
+
|
16181
|
+
def __init__(self):
|
16182
|
+
r"""
|
16183
|
+
:param _Items: 自定义metadata键值对列表。
|
16184
|
+
:type Items: list of MetadataItem
|
16185
|
+
"""
|
16186
|
+
self._Items = None
|
16187
|
+
|
16188
|
+
@property
|
16189
|
+
def Items(self):
|
16190
|
+
"""自定义metadata键值对列表。
|
16191
|
+
:rtype: list of MetadataItem
|
16192
|
+
"""
|
16193
|
+
return self._Items
|
16194
|
+
|
16195
|
+
@Items.setter
|
16196
|
+
def Items(self, Items):
|
16197
|
+
self._Items = Items
|
16198
|
+
|
16199
|
+
|
16200
|
+
def _deserialize(self, params):
|
16201
|
+
if params.get("Items") is not None:
|
16202
|
+
self._Items = []
|
16203
|
+
for item in params.get("Items"):
|
16204
|
+
obj = MetadataItem()
|
16205
|
+
obj._deserialize(item)
|
16206
|
+
self._Items.append(obj)
|
16207
|
+
memeber_set = set(params.keys())
|
16208
|
+
for name, value in vars(self).items():
|
16209
|
+
property_name = name[1:]
|
16210
|
+
if property_name in memeber_set:
|
16211
|
+
memeber_set.remove(property_name)
|
16212
|
+
if len(memeber_set) > 0:
|
16213
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
16214
|
+
|
16215
|
+
|
16216
|
+
|
16217
|
+
class MetadataItem(AbstractModel):
|
16218
|
+
"""自定义metadata key和value
|
16219
|
+
|
16220
|
+
"""
|
16221
|
+
|
16222
|
+
def __init__(self):
|
16223
|
+
r"""
|
16224
|
+
:param _Key: 自定义metadata键,需符合正则 ^[a-zA-Z0-9_-]+$,长度 ≤128 字节(大小写敏感);
|
16225
|
+
|
16226
|
+
:type Key: str
|
16227
|
+
:param _Value: 自定义metadata值,支持任意数据(含二进制),大小 ≤256 KB(大小写敏感);
|
16228
|
+
:type Value: str
|
16229
|
+
"""
|
16230
|
+
self._Key = None
|
16231
|
+
self._Value = None
|
16232
|
+
|
16233
|
+
@property
|
16234
|
+
def Key(self):
|
16235
|
+
"""自定义metadata键,需符合正则 ^[a-zA-Z0-9_-]+$,长度 ≤128 字节(大小写敏感);
|
16236
|
+
|
16237
|
+
:rtype: str
|
16238
|
+
"""
|
16239
|
+
return self._Key
|
16240
|
+
|
16241
|
+
@Key.setter
|
16242
|
+
def Key(self, Key):
|
16243
|
+
self._Key = Key
|
16244
|
+
|
16245
|
+
@property
|
16246
|
+
def Value(self):
|
16247
|
+
"""自定义metadata值,支持任意数据(含二进制),大小 ≤256 KB(大小写敏感);
|
16248
|
+
:rtype: str
|
16249
|
+
"""
|
16250
|
+
return self._Value
|
16251
|
+
|
16252
|
+
@Value.setter
|
16253
|
+
def Value(self, Value):
|
16254
|
+
self._Value = Value
|
16255
|
+
|
16256
|
+
|
16257
|
+
def _deserialize(self, params):
|
16258
|
+
self._Key = params.get("Key")
|
16259
|
+
self._Value = params.get("Value")
|
16260
|
+
memeber_set = set(params.keys())
|
16261
|
+
for name, value in vars(self).items():
|
16262
|
+
property_name = name[1:]
|
16263
|
+
if property_name in memeber_set:
|
16264
|
+
memeber_set.remove(property_name)
|
16265
|
+
if len(memeber_set) > 0:
|
16266
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
16267
|
+
|
16268
|
+
|
16269
|
+
|
15746
16270
|
class ModifyChcAttributeRequest(AbstractModel):
|
15747
16271
|
"""ModifyChcAttribute请求参数结构体
|
15748
16272
|
|
@@ -16389,7 +16913,7 @@ class ModifyInstanceDiskTypeRequest(AbstractModel):
|
|
16389
16913
|
|
16390
16914
|
def __init__(self):
|
16391
16915
|
r"""
|
16392
|
-
:param _InstanceId: 待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/
|
16916
|
+
:param _InstanceId: 待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
16393
16917
|
:type InstanceId: str
|
16394
16918
|
:param _DataDisks: 实例数据盘配置信息,只需要指定要转换的目标云硬盘的介质类型,指定DiskType的值,当前只支持一个数据盘转化。只支持CDHPAID类型实例指定CdcId参数。
|
16395
16919
|
:type DataDisks: list of DataDisk
|
@@ -16402,7 +16926,7 @@ class ModifyInstanceDiskTypeRequest(AbstractModel):
|
|
16402
16926
|
|
16403
16927
|
@property
|
16404
16928
|
def InstanceId(self):
|
16405
|
-
"""待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/
|
16929
|
+
"""待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
16406
16930
|
:rtype: str
|
16407
16931
|
"""
|
16408
16932
|
return self._InstanceId
|
@@ -16493,11 +17017,10 @@ class ModifyInstancesAttributeRequest(AbstractModel):
|
|
16493
17017
|
:param _InstanceIds: 一个或多个待操作的实例ID。可通过[DescribeInstances](https://cloud.tencent.com/document/api/213/15728) API返回值中的`InstanceId`获取。每次请求允许操作的实例数量上限是100。
|
16494
17018
|
:type InstanceIds: list of str
|
16495
17019
|
:param _InstanceName: 修改后实例名称。可任意命名,但不得超过60个字符。
|
16496
|
-
<dx-alert infotype="explain" title="">必须指定InstanceName与SecurityGroups的其中一个,但不能同时设置</dx-alert>
|
16497
17020
|
:type InstanceName: str
|
16498
17021
|
:param _UserData: 提供给实例使用的用户数据,需要以 base64 方式编码,支持的最大数据大小为 16 KB。关于获取此参数的详细介绍,请参阅 [Windows](https://cloud.tencent.com/document/product/213/17526) 和 [Linux](https://cloud.tencent.com/document/product/213/17525) 启动时运行命令。
|
16499
17022
|
:type UserData: str
|
16500
|
-
:param _SecurityGroups: 指定实例的修改后的安全组Id
|
17023
|
+
:param _SecurityGroups: 指定实例的修改后的安全组Id列表,子机将重新关联指定列表的安全组,原本关联的安全组会被解绑。
|
16501
17024
|
:type SecurityGroups: list of str
|
16502
17025
|
:param _CamRoleName: 给实例绑定用户角色,传空值为解绑操作
|
16503
17026
|
:type CamRoleName: str
|
@@ -16539,7 +17062,6 @@ class ModifyInstancesAttributeRequest(AbstractModel):
|
|
16539
17062
|
@property
|
16540
17063
|
def InstanceName(self):
|
16541
17064
|
"""修改后实例名称。可任意命名,但不得超过60个字符。
|
16542
|
-
<dx-alert infotype="explain" title="">必须指定InstanceName与SecurityGroups的其中一个,但不能同时设置</dx-alert>
|
16543
17065
|
:rtype: str
|
16544
17066
|
"""
|
16545
17067
|
return self._InstanceName
|
@@ -16561,7 +17083,7 @@ class ModifyInstancesAttributeRequest(AbstractModel):
|
|
16561
17083
|
|
16562
17084
|
@property
|
16563
17085
|
def SecurityGroups(self):
|
16564
|
-
"""指定实例的修改后的安全组Id
|
17086
|
+
"""指定实例的修改后的安全组Id列表,子机将重新关联指定列表的安全组,原本关联的安全组会被解绑。
|
16565
17087
|
:rtype: list of str
|
16566
17088
|
"""
|
16567
17089
|
return self._SecurityGroups
|
@@ -16688,11 +17210,11 @@ class ModifyInstancesChargeTypeRequest(AbstractModel):
|
|
16688
17210
|
r"""
|
16689
17211
|
:param _InstanceIds: 一个或多个待操作的实例ID。可通过[DescribeInstances](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`InstanceId`获取。每次请求批量实例的上限为30。
|
16690
17212
|
:type InstanceIds: list of str
|
16691
|
-
:param _InstanceChargeType: 修改后实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<
|
17213
|
+
:param _InstanceChargeType: 修改后实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<li> PREPAID:预付费,即包年包月。</li><li> POSTPAID_BY_HOUR:后付费,即按量付费。</li>
|
16692
17214
|
:type InstanceChargeType: str
|
16693
17215
|
:param _InstanceChargePrepaid: 修改后预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。<dx-alert infotype="explain" title="">若指定实例的付费模式为预付费则该参数必传。</dx-alert>
|
16694
17216
|
:type InstanceChargePrepaid: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
|
16695
|
-
:param _ModifyPortableDataDisk: 是否同时切换弹性数据云盘计费模式。取值范围:<
|
17217
|
+
:param _ModifyPortableDataDisk: 是否同时切换弹性数据云盘计费模式。取值范围:<li> true:表示切换弹性数据云盘计费模式</li><li> false:表示不切换弹性数据云盘计费模式</li>默认取值:false。
|
16696
17218
|
:type ModifyPortableDataDisk: bool
|
16697
17219
|
"""
|
16698
17220
|
self._InstanceIds = None
|
@@ -16713,7 +17235,7 @@ class ModifyInstancesChargeTypeRequest(AbstractModel):
|
|
16713
17235
|
|
16714
17236
|
@property
|
16715
17237
|
def InstanceChargeType(self):
|
16716
|
-
"""修改后实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<
|
17238
|
+
"""修改后实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<li> PREPAID:预付费,即包年包月。</li><li> POSTPAID_BY_HOUR:后付费,即按量付费。</li>
|
16717
17239
|
:rtype: str
|
16718
17240
|
"""
|
16719
17241
|
return self._InstanceChargeType
|
@@ -16735,7 +17257,7 @@ class ModifyInstancesChargeTypeRequest(AbstractModel):
|
|
16735
17257
|
|
16736
17258
|
@property
|
16737
17259
|
def ModifyPortableDataDisk(self):
|
16738
|
-
"""是否同时切换弹性数据云盘计费模式。取值范围:<
|
17260
|
+
"""是否同时切换弹性数据云盘计费模式。取值范围:<li> true:表示切换弹性数据云盘计费模式</li><li> false:表示不切换弹性数据云盘计费模式</li>默认取值:false。
|
16739
17261
|
:rtype: bool
|
16740
17262
|
"""
|
16741
17263
|
return self._ModifyPortableDataDisk
|
@@ -16893,7 +17415,7 @@ class ModifyInstancesProjectRequest(AbstractModel):
|
|
16893
17415
|
r"""
|
16894
17416
|
:param _InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) API返回值中的`InstanceId`获取。每次请求允许操作的实例数量上限是100。
|
16895
17417
|
:type InstanceIds: list of str
|
16896
|
-
:param _ProjectId: 项目ID。项目可以使用[AddProject](https://cloud.tencent.com/document/api/651/81952)接口创建。可通过[
|
17418
|
+
:param _ProjectId: 项目ID。项目可以使用[ AddProject ](https://cloud.tencent.com/document/api/651/81952)接口创建。可通过[ DescribeProject ](https://cloud.tencent.com/document/api/651/78725) 接口返回值中的`projectId`获取。后续使用[DescribeInstances](https://cloud.tencent.com/document/api/213/15728)接口查询实例时,项目ID可用于过滤结果。
|
16897
17419
|
:type ProjectId: int
|
16898
17420
|
"""
|
16899
17421
|
self._InstanceIds = None
|
@@ -16912,7 +17434,7 @@ class ModifyInstancesProjectRequest(AbstractModel):
|
|
16912
17434
|
|
16913
17435
|
@property
|
16914
17436
|
def ProjectId(self):
|
16915
|
-
"""项目ID。项目可以使用[AddProject](https://cloud.tencent.com/document/api/651/81952)接口创建。可通过[
|
17437
|
+
"""项目ID。项目可以使用[ AddProject ](https://cloud.tencent.com/document/api/651/81952)接口创建。可通过[ DescribeProject ](https://cloud.tencent.com/document/api/651/78725) 接口返回值中的`projectId`获取。后续使用[DescribeInstances](https://cloud.tencent.com/document/api/213/15728)接口查询实例时,项目ID可用于过滤结果。
|
16916
17438
|
:rtype: int
|
16917
17439
|
"""
|
16918
17440
|
return self._ProjectId
|
@@ -17160,7 +17682,9 @@ class ModifyKeyPairAttributeRequest(AbstractModel):
|
|
17160
17682
|
|
17161
17683
|
def __init__(self):
|
17162
17684
|
r"""
|
17163
|
-
:param _KeyId: 密钥对ID
|
17685
|
+
:param _KeyId: 密钥对ID。可以通过以下方式获取可用的密钥 ID:
|
17686
|
+
<li>通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥 ID。</li>
|
17687
|
+
<li>通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/9403) ,取返回信息中的 `KeyId` 获取密钥对 ID。</li>
|
17164
17688
|
:type KeyId: str
|
17165
17689
|
:param _KeyName: 修改后的密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。
|
17166
17690
|
:type KeyName: str
|
@@ -17173,7 +17697,9 @@ class ModifyKeyPairAttributeRequest(AbstractModel):
|
|
17173
17697
|
|
17174
17698
|
@property
|
17175
17699
|
def KeyId(self):
|
17176
|
-
"""密钥对ID
|
17700
|
+
"""密钥对ID。可以通过以下方式获取可用的密钥 ID:
|
17701
|
+
<li>通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥 ID。</li>
|
17702
|
+
<li>通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/9403) ,取返回信息中的 `KeyId` 获取密钥对 ID。</li>
|
17177
17703
|
:rtype: str
|
17178
17704
|
"""
|
17179
17705
|
return self._KeyId
|
@@ -17254,9 +17780,9 @@ class ModifyLaunchTemplateDefaultVersionRequest(AbstractModel):
|
|
17254
17780
|
|
17255
17781
|
def __init__(self):
|
17256
17782
|
r"""
|
17257
|
-
:param _LaunchTemplateId: 启动模板ID
|
17783
|
+
:param _LaunchTemplateId: 启动模板ID。可通过 [DescribeLaunchTemplates](https://cloud.tencent.com/document/api/213/66322) 接口返回值中的`LaunchTemplateId `获取。
|
17258
17784
|
:type LaunchTemplateId: str
|
17259
|
-
:param _DefaultVersion:
|
17785
|
+
:param _DefaultVersion: 待设置的默认版本号。可通过 [DescribeLaunchTemplateVersions](https://cloud.tencent.com/document/api/213/66323) 接口返回值中的`LaunchTemplateVersion`获取。
|
17260
17786
|
:type DefaultVersion: int
|
17261
17787
|
"""
|
17262
17788
|
self._LaunchTemplateId = None
|
@@ -17264,7 +17790,7 @@ class ModifyLaunchTemplateDefaultVersionRequest(AbstractModel):
|
|
17264
17790
|
|
17265
17791
|
@property
|
17266
17792
|
def LaunchTemplateId(self):
|
17267
|
-
"""启动模板ID
|
17793
|
+
"""启动模板ID。可通过 [DescribeLaunchTemplates](https://cloud.tencent.com/document/api/213/66322) 接口返回值中的`LaunchTemplateId `获取。
|
17268
17794
|
:rtype: str
|
17269
17795
|
"""
|
17270
17796
|
return self._LaunchTemplateId
|
@@ -17275,7 +17801,7 @@ class ModifyLaunchTemplateDefaultVersionRequest(AbstractModel):
|
|
17275
17801
|
|
17276
17802
|
@property
|
17277
17803
|
def DefaultVersion(self):
|
17278
|
-
"""
|
17804
|
+
"""待设置的默认版本号。可通过 [DescribeLaunchTemplateVersions](https://cloud.tencent.com/document/api/213/66323) 接口返回值中的`LaunchTemplateVersion`获取。
|
17279
17805
|
:rtype: int
|
17280
17806
|
"""
|
17281
17807
|
return self._DefaultVersion
|
@@ -17793,7 +18319,7 @@ class ProgramFpgaImageRequest(AbstractModel):
|
|
17793
18319
|
|
17794
18320
|
def __init__(self):
|
17795
18321
|
r"""
|
17796
|
-
:param _InstanceId: 实例的ID
|
18322
|
+
:param _InstanceId: 实例的ID信息。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
17797
18323
|
:type InstanceId: str
|
17798
18324
|
:param _FPGAUrl: FPGA镜像文件的COS URL地址。
|
17799
18325
|
:type FPGAUrl: str
|
@@ -17809,7 +18335,7 @@ class ProgramFpgaImageRequest(AbstractModel):
|
|
17809
18335
|
|
17810
18336
|
@property
|
17811
18337
|
def InstanceId(self):
|
17812
|
-
"""实例的ID
|
18338
|
+
"""实例的ID信息。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。
|
17813
18339
|
:rtype: str
|
17814
18340
|
"""
|
17815
18341
|
return self._InstanceId
|
@@ -18043,9 +18569,9 @@ class RebootInstancesRequest(AbstractModel):
|
|
18043
18569
|
r"""
|
18044
18570
|
:param _InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
|
18045
18571
|
:type InstanceIds: list of str
|
18046
|
-
:param _ForceReboot: 本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常重启失败后选择强制重启实例。取值范围:<br><li>true
|
18572
|
+
:param _ForceReboot: 本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常重启失败后选择强制重启实例。取值范围:<br><li>true:表示在正常重启失败后进行强制重启</li><li>false:表示在正常重启失败后不进行强制重启</li><br>默认取值:false。
|
18047
18573
|
:type ForceReboot: bool
|
18048
|
-
:param _StopType: 关机类型。取值范围:<br><li>SOFT
|
18574
|
+
:param _StopType: 关机类型。取值范围:<br><li>SOFT:表示软关机</li><li>HARD:表示硬关机</li><li>SOFT_FIRST:表示优先软关机,失败再执行硬关机</li><br>默认取值:SOFT。
|
18049
18575
|
:type StopType: str
|
18050
18576
|
"""
|
18051
18577
|
self._InstanceIds = None
|
@@ -18065,7 +18591,7 @@ class RebootInstancesRequest(AbstractModel):
|
|
18065
18591
|
|
18066
18592
|
@property
|
18067
18593
|
def ForceReboot(self):
|
18068
|
-
"""本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常重启失败后选择强制重启实例。取值范围:<br><li>true
|
18594
|
+
"""本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常重启失败后选择强制重启实例。取值范围:<br><li>true:表示在正常重启失败后进行强制重启</li><li>false:表示在正常重启失败后不进行强制重启</li><br>默认取值:false。
|
18069
18595
|
:rtype: bool
|
18070
18596
|
"""
|
18071
18597
|
return self._ForceReboot
|
@@ -18076,7 +18602,7 @@ class RebootInstancesRequest(AbstractModel):
|
|
18076
18602
|
|
18077
18603
|
@property
|
18078
18604
|
def StopType(self):
|
18079
|
-
"""关机类型。取值范围:<br><li>SOFT
|
18605
|
+
"""关机类型。取值范围:<br><li>SOFT:表示软关机</li><li>HARD:表示硬关机</li><li>SOFT_FIRST:表示优先软关机,失败再执行硬关机</li><br>默认取值:SOFT。
|
18080
18606
|
:rtype: str
|
18081
18607
|
"""
|
18082
18608
|
return self._StopType
|
@@ -20278,13 +20804,11 @@ class ResetInstancesPasswordRequest(AbstractModel):
|
|
20278
20804
|
r"""
|
20279
20805
|
:param _InstanceIds: 一个或多个待操作的实例ID。可通过[DescribeInstances](https://cloud.tencent.com/document/api/213/15728) API返回值中的`InstanceId`获取。每次请求允许操作的实例数量上限是100。
|
20280
20806
|
:type InstanceIds: list of str
|
20281
|
-
:param _Password: 重置后的实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:
|
20282
|
-
Linux 实例密码必须8-30位,推荐使用12位以上密码,不能以“/”开头,至少包含以下字符中的三种不同字符,字符种类:<br><li>小写字母:[a-z]<br><li>大写字母:[A-Z]<br><li>数字:0-9<br><li>特殊字符: ()\`\~!@#$%^&\*-+=\_|{}[]:;'<>,.?/
|
20283
|
-
Windows 实例密码必须12\~30位,不能以“/”开头且不包括用户名,至少包含以下字符中的三种不同字符<br><li>小写字母:[a-z]<br><li>大写字母:[A-Z]<br><li>数字: 0-9<br><li>特殊字符:()\`\~!@#$%^&\*-+=\_|{}[]:;' <>,.?/<br><li>如果实例即包含 `Linux` 实例又包含 `Windows` 实例,则密码复杂度限制按照 `Windows` 实例的限制。
|
20807
|
+
:param _Password: 重置后的实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:Linux 实例密码必须8-30位,推荐使用12位以上密码,不能以“/”开头,至少包含以下字符中的三种不同字符,字符种类:<br><li>小写字母:[a-z]</li><li>大写字母:[A-Z]</li><li>数字:0-9</li><li>特殊字符: ()\`\~!@#$%^&\*-+=\_|{}[]:;'<>,.?/Windows 实例密码必须12\~30位,不能以“/”开头且不包括用户名,至少包含以下字符中的三种不同字符</li><li>小写字母:[a-z]</li><li>大写字母:[A-Z]</li><li>数字: 0-9</li><li>特殊字符:()\`\~!@#$%^&\*-+=\_|{}[]:;' <>,.?/</li><li>如果实例即包含 `Linux` 实例又包含 `Windows` 实例,则密码复杂度限制按照 `Windows` 实例的限制。</li>
|
20284
20808
|
:type Password: str
|
20285
20809
|
:param _UserName: 待重置密码的实例操作系统的用户名。不得超过64个字符。
|
20286
20810
|
:type UserName: str
|
20287
|
-
:param _ForceStop: 是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再重置用户密码。取值范围:<br><li>true
|
20811
|
+
:param _ForceStop: 是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再重置用户密码。取值范围:<br><li>true:表示在正常关机失败后进行强制关机</li><li>false:表示在正常关机失败后不进行强制关机</li>默认取值:false。<br><br>强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
20288
20812
|
:type ForceStop: bool
|
20289
20813
|
"""
|
20290
20814
|
self._InstanceIds = None
|
@@ -20305,9 +20829,7 @@ Windows 实例密码必须12\~30位,不能以“/”开头且不包括用户
|
|
20305
20829
|
|
20306
20830
|
@property
|
20307
20831
|
def Password(self):
|
20308
|
-
"""重置后的实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:
|
20309
|
-
Linux 实例密码必须8-30位,推荐使用12位以上密码,不能以“/”开头,至少包含以下字符中的三种不同字符,字符种类:<br><li>小写字母:[a-z]<br><li>大写字母:[A-Z]<br><li>数字:0-9<br><li>特殊字符: ()\`\~!@#$%^&\*-+=\_|{}[]:;'<>,.?/
|
20310
|
-
Windows 实例密码必须12\~30位,不能以“/”开头且不包括用户名,至少包含以下字符中的三种不同字符<br><li>小写字母:[a-z]<br><li>大写字母:[A-Z]<br><li>数字: 0-9<br><li>特殊字符:()\`\~!@#$%^&\*-+=\_|{}[]:;' <>,.?/<br><li>如果实例即包含 `Linux` 实例又包含 `Windows` 实例,则密码复杂度限制按照 `Windows` 实例的限制。
|
20832
|
+
"""重置后的实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:Linux 实例密码必须8-30位,推荐使用12位以上密码,不能以“/”开头,至少包含以下字符中的三种不同字符,字符种类:<br><li>小写字母:[a-z]</li><li>大写字母:[A-Z]</li><li>数字:0-9</li><li>特殊字符: ()\`\~!@#$%^&\*-+=\_|{}[]:;'<>,.?/Windows 实例密码必须12\~30位,不能以“/”开头且不包括用户名,至少包含以下字符中的三种不同字符</li><li>小写字母:[a-z]</li><li>大写字母:[A-Z]</li><li>数字: 0-9</li><li>特殊字符:()\`\~!@#$%^&\*-+=\_|{}[]:;' <>,.?/</li><li>如果实例即包含 `Linux` 实例又包含 `Windows` 实例,则密码复杂度限制按照 `Windows` 实例的限制。</li>
|
20311
20833
|
:rtype: str
|
20312
20834
|
"""
|
20313
20835
|
return self._Password
|
@@ -20329,7 +20851,7 @@ Windows 实例密码必须12\~30位,不能以“/”开头且不包括用户
|
|
20329
20851
|
|
20330
20852
|
@property
|
20331
20853
|
def ForceStop(self):
|
20332
|
-
"""是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再重置用户密码。取值范围:<br><li>true
|
20854
|
+
"""是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再重置用户密码。取值范围:<br><li>true:表示在正常关机失败后进行强制关机</li><li>false:表示在正常关机失败后不进行强制关机</li>默认取值:false。<br><br>强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
20333
20855
|
:rtype: bool
|
20334
20856
|
"""
|
20335
20857
|
return self._ForceStop
|
@@ -20391,7 +20913,7 @@ class ResetInstancesTypeRequest(AbstractModel):
|
|
20391
20913
|
r"""
|
20392
20914
|
:param _InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。本接口目前仅支持每次操作1个实例。
|
20393
20915
|
:type InstanceIds: list of str
|
20394
|
-
:param _InstanceType: 调整后的实例机型。不同实例机型指定了不同的资源规格,具体取值可通过调用接口[
|
20916
|
+
:param _InstanceType: 调整后的实例机型。不同实例机型指定了不同的资源规格,具体取值可通过调用接口[ DescribeInstanceTypeConfigs ](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例类型](https://cloud.tencent.com/document/product/213/11518)描述。
|
20395
20917
|
:type InstanceType: str
|
20396
20918
|
:param _ForceStop: 是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机。取值范围:<br><li>true:表示在正常关机失败后进行强制关机</li><br><li>false:表示在正常关机失败后不进行强制关机</li><br><br>默认取值:false。<br><br>强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
20397
20919
|
:type ForceStop: bool
|
@@ -20413,7 +20935,7 @@ class ResetInstancesTypeRequest(AbstractModel):
|
|
20413
20935
|
|
20414
20936
|
@property
|
20415
20937
|
def InstanceType(self):
|
20416
|
-
"""调整后的实例机型。不同实例机型指定了不同的资源规格,具体取值可通过调用接口[
|
20938
|
+
"""调整后的实例机型。不同实例机型指定了不同的资源规格,具体取值可通过调用接口[ DescribeInstanceTypeConfigs ](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例类型](https://cloud.tencent.com/document/product/213/11518)描述。
|
20417
20939
|
:rtype: str
|
20418
20940
|
"""
|
20419
20941
|
return self._InstanceType
|
@@ -20483,14 +21005,14 @@ class ResizeInstanceDisksRequest(AbstractModel):
|
|
20483
21005
|
|
20484
21006
|
def __init__(self):
|
20485
21007
|
r"""
|
20486
|
-
:param _InstanceId: 待操作的实例ID。可通过[
|
21008
|
+
:param _InstanceId: 待操作的实例ID。可通过[ DescribeInstances ](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`InstanceId`获取。
|
20487
21009
|
:type InstanceId: str
|
20488
|
-
:param _DataDisks:
|
21010
|
+
:param _DataDisks: 待扩容的数据盘配置信息,仅支持指定待扩容盘的目的容量。只支持扩容非弹性数据盘([ DescribeDisks ](https://cloud.tencent.com/document/api/362/16315)接口返回值中的`Portable`为`false`表示非弹性)。数据盘容量单位:GiB。最小扩容步长:10GiB。关于数据盘类型的选择请参考[硬盘产品简介](https://cloud.tencent.com/document/product/362/2353)。可选数据盘类型受到实例类型`InstanceType`限制。另外允许扩容的最大容量也因数据盘类型的不同而有所差异。
|
20489
21011
|
<dx-alert infotype="explain" title="">您必须指定参数DataDisks与SystemDisk的其中一个,但不能同时指定。</dx-alert>
|
20490
21012
|
:type DataDisks: list of DataDisk
|
20491
|
-
:param _ForceStop:
|
21013
|
+
:param _ForceStop: 是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再扩容实例磁盘。取值范围:<br><li>true:表示在正常关机失败后进行强制关机</li><br><li>false:表示在正常关机失败后不进行强制关机</li><br><br>默认取值:false。<br><br>强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
20492
21014
|
:type ForceStop: bool
|
20493
|
-
:param _SystemDisk:
|
21015
|
+
:param _SystemDisk: 待扩容的系统盘配置信息,仅支持指定待扩容盘的目的容量。只支持扩容云盘。
|
20494
21016
|
<dx-alert infotype="explain" title="">您必须指定参数DataDisks与SystemDisk的其中一个,但不能同时指定。</dx-alert>
|
20495
21017
|
:type SystemDisk: :class:`tencentcloud.cvm.v20170312.models.SystemDisk`
|
20496
21018
|
:param _ResizeOnline: 扩容云盘的方式是否为在线扩容。
|
@@ -20504,7 +21026,7 @@ class ResizeInstanceDisksRequest(AbstractModel):
|
|
20504
21026
|
|
20505
21027
|
@property
|
20506
21028
|
def InstanceId(self):
|
20507
|
-
"""待操作的实例ID。可通过[
|
21029
|
+
"""待操作的实例ID。可通过[ DescribeInstances ](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`InstanceId`获取。
|
20508
21030
|
:rtype: str
|
20509
21031
|
"""
|
20510
21032
|
return self._InstanceId
|
@@ -20515,7 +21037,7 @@ class ResizeInstanceDisksRequest(AbstractModel):
|
|
20515
21037
|
|
20516
21038
|
@property
|
20517
21039
|
def DataDisks(self):
|
20518
|
-
"""
|
21040
|
+
"""待扩容的数据盘配置信息,仅支持指定待扩容盘的目的容量。只支持扩容非弹性数据盘([ DescribeDisks ](https://cloud.tencent.com/document/api/362/16315)接口返回值中的`Portable`为`false`表示非弹性)。数据盘容量单位:GiB。最小扩容步长:10GiB。关于数据盘类型的选择请参考[硬盘产品简介](https://cloud.tencent.com/document/product/362/2353)。可选数据盘类型受到实例类型`InstanceType`限制。另外允许扩容的最大容量也因数据盘类型的不同而有所差异。
|
20519
21041
|
<dx-alert infotype="explain" title="">您必须指定参数DataDisks与SystemDisk的其中一个,但不能同时指定。</dx-alert>
|
20520
21042
|
:rtype: list of DataDisk
|
20521
21043
|
"""
|
@@ -20527,7 +21049,7 @@ class ResizeInstanceDisksRequest(AbstractModel):
|
|
20527
21049
|
|
20528
21050
|
@property
|
20529
21051
|
def ForceStop(self):
|
20530
|
-
"""
|
21052
|
+
"""是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再扩容实例磁盘。取值范围:<br><li>true:表示在正常关机失败后进行强制关机</li><br><li>false:表示在正常关机失败后不进行强制关机</li><br><br>默认取值:false。<br><br>强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
20531
21053
|
:rtype: bool
|
20532
21054
|
"""
|
20533
21055
|
return self._ForceStop
|
@@ -20538,7 +21060,7 @@ class ResizeInstanceDisksRequest(AbstractModel):
|
|
20538
21060
|
|
20539
21061
|
@property
|
20540
21062
|
def SystemDisk(self):
|
20541
|
-
"""
|
21063
|
+
"""待扩容的系统盘配置信息,仅支持指定待扩容盘的目的容量。只支持扩容云盘。
|
20542
21064
|
<dx-alert infotype="explain" title="">您必须指定参数DataDisks与SystemDisk的其中一个,但不能同时指定。</dx-alert>
|
20543
21065
|
:rtype: :class:`tencentcloud.cvm.v20170312.models.SystemDisk`
|
20544
21066
|
"""
|
@@ -20681,7 +21203,8 @@ class RunInstancesRequest(AbstractModel):
|
|
20681
21203
|
:type InstanceName: str
|
20682
21204
|
:param _LoginSettings: 实例登录设置。通过该参数可以设置实例的登录方式密码、密钥或保持镜像的原始登录设置。默认情况下会随机生成密码,并以站内信方式知会到用户。
|
20683
21205
|
:type LoginSettings: :class:`tencentcloud.cvm.v20170312.models.LoginSettings`
|
20684
|
-
:param _SecurityGroupIds: 实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId
|
21206
|
+
:param _SecurityGroupIds: 实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的 sgId 字段来获取。若不指定该参数,则绑定指定项目下的默认安全组,如默认安全组不存在则将自动创建。
|
21207
|
+
|
20685
21208
|
:type SecurityGroupIds: list of str
|
20686
21209
|
:param _EnhancedService: 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认公共镜像开启云监控、云安全服务;自定义镜像与镜像市场镜像默认不开启云监控,云安全服务,而使用镜像里保留的服务。
|
20687
21210
|
:type EnhancedService: :class:`tencentcloud.cvm.v20170312.models.EnhancedService`
|
@@ -20699,6 +21222,9 @@ class RunInstancesRequest(AbstractModel):
|
|
20699
21222
|
:type InstanceMarketOptions: :class:`tencentcloud.cvm.v20170312.models.InstanceMarketOptionsRequest`
|
20700
21223
|
:param _UserData: 提供给实例使用的用户数据,需要以 base64 方式编码,支持的最大数据大小为 16KB。关于获取此参数的详细介绍,请参阅[Windows](https://cloud.tencent.com/document/product/213/17526)和[Linux](https://cloud.tencent.com/document/product/213/17525)启动时运行命令。
|
20701
21224
|
:type UserData: str
|
21225
|
+
:param _Metadata: 自定义metadata,支持创建 CVM 时添加自定义元数据键值对。
|
21226
|
+
**注:内测中**。
|
21227
|
+
:type Metadata: :class:`tencentcloud.cvm.v20170312.models.Metadata`
|
20702
21228
|
:param _DryRun: 是否只预检此次请求。
|
20703
21229
|
true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。
|
20704
21230
|
如果检查不通过,则返回对应错误码;
|
@@ -20741,6 +21267,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
20741
21267
|
self._TagSpecification = None
|
20742
21268
|
self._InstanceMarketOptions = None
|
20743
21269
|
self._UserData = None
|
21270
|
+
self._Metadata = None
|
20744
21271
|
self._DryRun = None
|
20745
21272
|
self._CpuTopology = None
|
20746
21273
|
self._CamRoleName = None
|
@@ -20887,7 +21414,8 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
20887
21414
|
|
20888
21415
|
@property
|
20889
21416
|
def SecurityGroupIds(self):
|
20890
|
-
"""实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId
|
21417
|
+
"""实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的 sgId 字段来获取。若不指定该参数,则绑定指定项目下的默认安全组,如默认安全组不存在则将自动创建。
|
21418
|
+
|
20891
21419
|
:rtype: list of str
|
20892
21420
|
"""
|
20893
21421
|
return self._SecurityGroupIds
|
@@ -20984,6 +21512,18 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
20984
21512
|
def UserData(self, UserData):
|
20985
21513
|
self._UserData = UserData
|
20986
21514
|
|
21515
|
+
@property
|
21516
|
+
def Metadata(self):
|
21517
|
+
"""自定义metadata,支持创建 CVM 时添加自定义元数据键值对。
|
21518
|
+
**注:内测中**。
|
21519
|
+
:rtype: :class:`tencentcloud.cvm.v20170312.models.Metadata`
|
21520
|
+
"""
|
21521
|
+
return self._Metadata
|
21522
|
+
|
21523
|
+
@Metadata.setter
|
21524
|
+
def Metadata(self, Metadata):
|
21525
|
+
self._Metadata = Metadata
|
21526
|
+
|
20987
21527
|
@property
|
20988
21528
|
def DryRun(self):
|
20989
21529
|
"""是否只预检此次请求。
|
@@ -21127,6 +21667,9 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
21127
21667
|
self._InstanceMarketOptions = InstanceMarketOptionsRequest()
|
21128
21668
|
self._InstanceMarketOptions._deserialize(params.get("InstanceMarketOptions"))
|
21129
21669
|
self._UserData = params.get("UserData")
|
21670
|
+
if params.get("Metadata") is not None:
|
21671
|
+
self._Metadata = Metadata()
|
21672
|
+
self._Metadata._deserialize(params.get("Metadata"))
|
21130
21673
|
self._DryRun = params.get("DryRun")
|
21131
21674
|
if params.get("CpuTopology") is not None:
|
21132
21675
|
self._CpuTopology = CpuTopology()
|
@@ -21271,7 +21814,8 @@ class SharePermission(AbstractModel):
|
|
21271
21814
|
|
21272
21815
|
def __init__(self):
|
21273
21816
|
r"""
|
21274
|
-
:param _CreatedTime:
|
21817
|
+
:param _CreatedTime: 镜像分享时间。
|
21818
|
+
按照 ISO8601 标准表示,并且使用 UTC 时间,格式为:YYYY-MM-DDThh:mm:ssZ。
|
21275
21819
|
:type CreatedTime: str
|
21276
21820
|
:param _AccountId: 镜像分享的账户ID
|
21277
21821
|
:type AccountId: str
|
@@ -21281,7 +21825,8 @@ class SharePermission(AbstractModel):
|
|
21281
21825
|
|
21282
21826
|
@property
|
21283
21827
|
def CreatedTime(self):
|
21284
|
-
"""
|
21828
|
+
"""镜像分享时间。
|
21829
|
+
按照 ISO8601 标准表示,并且使用 UTC 时间,格式为:YYYY-MM-DDThh:mm:ssZ。
|
21285
21830
|
:rtype: str
|
21286
21831
|
"""
|
21287
21832
|
return self._CreatedTime
|
@@ -21328,7 +21873,7 @@ class Snapshot(AbstractModel):
|
|
21328
21873
|
SYSTEM_DISK:系统盘
|
21329
21874
|
DATA_DISK:数据盘。
|
21330
21875
|
:type DiskUsage: str
|
21331
|
-
:param _DiskSize: 创建此快照的云硬盘大小,单位
|
21876
|
+
:param _DiskSize: 创建此快照的云硬盘大小,单位 GiB。
|
21332
21877
|
:type DiskSize: int
|
21333
21878
|
"""
|
21334
21879
|
self._SnapshotId = None
|
@@ -21361,7 +21906,7 @@ DATA_DISK:数据盘。
|
|
21361
21906
|
|
21362
21907
|
@property
|
21363
21908
|
def DiskSize(self):
|
21364
|
-
"""创建此快照的云硬盘大小,单位
|
21909
|
+
"""创建此快照的云硬盘大小,单位 GiB。
|
21365
21910
|
:rtype: int
|
21366
21911
|
"""
|
21367
21912
|
return self._DiskSize
|
@@ -21590,13 +22135,13 @@ class StopInstancesRequest(AbstractModel):
|
|
21590
22135
|
r"""
|
21591
22136
|
:param _InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
|
21592
22137
|
:type InstanceIds: list of str
|
21593
|
-
:param _ForceStop: 本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常关闭失败后选择强制关闭实例。取值范围:<br><li>true
|
22138
|
+
:param _ForceStop: 本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常关闭失败后选择强制关闭实例。取值范围:<br><li>true:表示在正常关闭失败后进行强制关闭</li><li>false:表示在正常关闭失败后不进行强制关闭</li><br>默认取值:false。
|
21594
22139
|
:type ForceStop: bool
|
21595
|
-
:param _StopType: 实例的关闭模式。取值范围:<br><li>SOFT_FIRST
|
22140
|
+
:param _StopType: 实例的关闭模式。取值范围:<br><li>SOFT_FIRST:表示在正常关闭失败后进行强制关闭</li><li>HARD:直接强制关闭</li><li>SOFT:仅软关机</li>默认取值:SOFT。
|
21596
22141
|
:type StopType: str
|
21597
22142
|
:param _StoppedMode: 按量计费实例关机收费模式。
|
21598
|
-
取值范围:<br><li>KEEP_CHARGING
|
21599
|
-
|
22143
|
+
取值范围:<br><li>KEEP_CHARGING:关机继续收费</li><li>STOP_CHARGING:关机停止收费</li><br>默认取值:KEEP_CHARGING。
|
22144
|
+
该参数只针对部分按量计费实例生效,详情参考[按量计费实例关机不收费说明](https://cloud.tencent.com/document/product/213/19918)
|
21600
22145
|
:type StoppedMode: str
|
21601
22146
|
"""
|
21602
22147
|
self._InstanceIds = None
|
@@ -21617,7 +22162,7 @@ class StopInstancesRequest(AbstractModel):
|
|
21617
22162
|
|
21618
22163
|
@property
|
21619
22164
|
def ForceStop(self):
|
21620
|
-
"""本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常关闭失败后选择强制关闭实例。取值范围:<br><li>true
|
22165
|
+
"""本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常关闭失败后选择强制关闭实例。取值范围:<br><li>true:表示在正常关闭失败后进行强制关闭</li><li>false:表示在正常关闭失败后不进行强制关闭</li><br>默认取值:false。
|
21621
22166
|
:rtype: bool
|
21622
22167
|
"""
|
21623
22168
|
return self._ForceStop
|
@@ -21628,7 +22173,7 @@ class StopInstancesRequest(AbstractModel):
|
|
21628
22173
|
|
21629
22174
|
@property
|
21630
22175
|
def StopType(self):
|
21631
|
-
"""实例的关闭模式。取值范围:<br><li>SOFT_FIRST
|
22176
|
+
"""实例的关闭模式。取值范围:<br><li>SOFT_FIRST:表示在正常关闭失败后进行强制关闭</li><li>HARD:直接强制关闭</li><li>SOFT:仅软关机</li>默认取值:SOFT。
|
21632
22177
|
:rtype: str
|
21633
22178
|
"""
|
21634
22179
|
return self._StopType
|
@@ -21640,8 +22185,8 @@ class StopInstancesRequest(AbstractModel):
|
|
21640
22185
|
@property
|
21641
22186
|
def StoppedMode(self):
|
21642
22187
|
"""按量计费实例关机收费模式。
|
21643
|
-
取值范围:<br><li>KEEP_CHARGING
|
21644
|
-
|
22188
|
+
取值范围:<br><li>KEEP_CHARGING:关机继续收费</li><li>STOP_CHARGING:关机停止收费</li><br>默认取值:KEEP_CHARGING。
|
22189
|
+
该参数只针对部分按量计费实例生效,详情参考[按量计费实例关机不收费说明](https://cloud.tencent.com/document/product/213/19918)
|
21645
22190
|
:rtype: str
|
21646
22191
|
"""
|
21647
22192
|
return self._StoppedMode
|
@@ -21703,9 +22248,9 @@ class StorageBlock(AbstractModel):
|
|
21703
22248
|
r"""
|
21704
22249
|
:param _Type: HDD本地存储类型,值为:LOCAL_PRO.
|
21705
22250
|
:type Type: str
|
21706
|
-
:param _MinSize: HDD
|
22251
|
+
:param _MinSize: HDD本地存储的最小容量。单位:GiB。
|
21707
22252
|
:type MinSize: int
|
21708
|
-
:param _MaxSize: HDD
|
22253
|
+
:param _MaxSize: HDD本地存储的最大容量。单位:GiB。
|
21709
22254
|
:type MaxSize: int
|
21710
22255
|
"""
|
21711
22256
|
self._Type = None
|
@@ -21725,7 +22270,7 @@ class StorageBlock(AbstractModel):
|
|
21725
22270
|
|
21726
22271
|
@property
|
21727
22272
|
def MinSize(self):
|
21728
|
-
"""HDD
|
22273
|
+
"""HDD本地存储的最小容量。单位:GiB。
|
21729
22274
|
:rtype: int
|
21730
22275
|
"""
|
21731
22276
|
return self._MinSize
|
@@ -21736,7 +22281,7 @@ class StorageBlock(AbstractModel):
|
|
21736
22281
|
|
21737
22282
|
@property
|
21738
22283
|
def MaxSize(self):
|
21739
|
-
"""HDD
|
22284
|
+
"""HDD本地存储的最大容量。单位:GiB。
|
21740
22285
|
:rtype: int
|
21741
22286
|
"""
|
21742
22287
|
return self._MaxSize
|
@@ -21818,25 +22363,27 @@ class SyncImagesRequest(AbstractModel):
|
|
21818
22363
|
|
21819
22364
|
def __init__(self):
|
21820
22365
|
r"""
|
21821
|
-
:param _ImageIds: 镜像ID列表 ,镜像ID可以通过如下方式获取:<br><li>通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId
|
22366
|
+
:param _ImageIds: 镜像ID列表 ,镜像ID可以通过如下方式获取:<br><li>通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取,镜像ID对应的镜像状态必须为`NORMAL`。</li><li>通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。</li>
|
21822
22367
|
:type ImageIds: list of str
|
21823
|
-
:param _DestinationRegions: 目的同步地域列表,必须满足如下限制:<br><li>必须是一个合法的Region。</li><li>如果是自定义镜像,则目标同步地域不能为源地域。</li><li>如果是共享镜像,则目的同步地域仅支持源地域,表示将共享镜像复制为源地域的自定义镜像。</li><li>暂不支持部分地域同步,请参考[复制镜像](https://cloud.tencent.com/document/product/213/4943#.E5.A4.8D.E5.88.B6.E8.AF.B4.E6.98.8E)。</li>具体地域参数请参考[Region](https://cloud.tencent.com/document/product/213/6091)。
|
22368
|
+
:param _DestinationRegions: 目的同步地域列表,必须满足如下限制:<br><li>必须是一个合法的Region。</li><li>如果是自定义镜像,则目标同步地域不能为源地域。</li><li>如果是共享镜像,则目的同步地域仅支持源地域,表示将共享镜像复制为源地域的自定义镜像。</li><li>如果是自定义镜像复制为加密自定义镜像,则目的同步地域仅支持源地域,表示将自定义镜像复制为源地域的加密自定义镜像。</li><li>暂不支持部分地域同步,请参考[复制镜像](https://cloud.tencent.com/document/product/213/4943#.E5.A4.8D.E5.88.B6.E8.AF.B4.E6.98.8E)。</li>具体地域参数请参考[Region](https://cloud.tencent.com/document/product/213/6091)。
|
21824
22369
|
:type DestinationRegions: list of str
|
21825
22370
|
:param _DryRun: 检测是否支持发起同步镜像。
|
21826
22371
|
默认值: false
|
21827
22372
|
:type DryRun: bool
|
21828
22373
|
:param _ImageName: 目标镜像名称。默认使用源镜像名称。
|
22374
|
+
最多支持 60 个字符。
|
21829
22375
|
:type ImageName: str
|
21830
22376
|
:param _ImageSetRequired: 是否需要返回目的地域的镜像ID。
|
21831
22377
|
默认值: false
|
21832
22378
|
:type ImageSetRequired: bool
|
21833
22379
|
:param _Encrypt: 是否复制为加密自定义镜像。
|
21834
22380
|
默认值为 false。
|
21835
|
-
|
22381
|
+
复制加密自定义镜像仅支持同地域, 即 DestinationRegions 仅支持填写指定镜像所在地域。
|
21836
22382
|
:type Encrypt: bool
|
21837
22383
|
:param _KmsKeyId: 加密自定义镜像使用的 KMS 密钥 ID。
|
21838
22384
|
仅当复制加密镜像时,即 Encrypt 为 true 时,此参数有效;
|
21839
22385
|
不指定 KmsKeyId,默认使用 CBS 云产品 KMS 密钥。
|
22386
|
+
KMS 密钥 ID 通过[KMS 控制台](https://console.cloud.tencent.com/kms2)获取。
|
21840
22387
|
:type KmsKeyId: str
|
21841
22388
|
"""
|
21842
22389
|
self._ImageIds = None
|
@@ -21849,7 +22396,7 @@ class SyncImagesRequest(AbstractModel):
|
|
21849
22396
|
|
21850
22397
|
@property
|
21851
22398
|
def ImageIds(self):
|
21852
|
-
"""镜像ID列表 ,镜像ID可以通过如下方式获取:<br><li>通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId
|
22399
|
+
"""镜像ID列表 ,镜像ID可以通过如下方式获取:<br><li>通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取,镜像ID对应的镜像状态必须为`NORMAL`。</li><li>通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。</li>
|
21853
22400
|
:rtype: list of str
|
21854
22401
|
"""
|
21855
22402
|
return self._ImageIds
|
@@ -21860,7 +22407,7 @@ class SyncImagesRequest(AbstractModel):
|
|
21860
22407
|
|
21861
22408
|
@property
|
21862
22409
|
def DestinationRegions(self):
|
21863
|
-
"""目的同步地域列表,必须满足如下限制:<br><li>必须是一个合法的Region。</li><li>如果是自定义镜像,则目标同步地域不能为源地域。</li><li>如果是共享镜像,则目的同步地域仅支持源地域,表示将共享镜像复制为源地域的自定义镜像。</li><li>暂不支持部分地域同步,请参考[复制镜像](https://cloud.tencent.com/document/product/213/4943#.E5.A4.8D.E5.88.B6.E8.AF.B4.E6.98.8E)。</li>具体地域参数请参考[Region](https://cloud.tencent.com/document/product/213/6091)。
|
22410
|
+
"""目的同步地域列表,必须满足如下限制:<br><li>必须是一个合法的Region。</li><li>如果是自定义镜像,则目标同步地域不能为源地域。</li><li>如果是共享镜像,则目的同步地域仅支持源地域,表示将共享镜像复制为源地域的自定义镜像。</li><li>如果是自定义镜像复制为加密自定义镜像,则目的同步地域仅支持源地域,表示将自定义镜像复制为源地域的加密自定义镜像。</li><li>暂不支持部分地域同步,请参考[复制镜像](https://cloud.tencent.com/document/product/213/4943#.E5.A4.8D.E5.88.B6.E8.AF.B4.E6.98.8E)。</li>具体地域参数请参考[Region](https://cloud.tencent.com/document/product/213/6091)。
|
21864
22411
|
:rtype: list of str
|
21865
22412
|
"""
|
21866
22413
|
return self._DestinationRegions
|
@@ -21884,6 +22431,7 @@ class SyncImagesRequest(AbstractModel):
|
|
21884
22431
|
@property
|
21885
22432
|
def ImageName(self):
|
21886
22433
|
"""目标镜像名称。默认使用源镜像名称。
|
22434
|
+
最多支持 60 个字符。
|
21887
22435
|
:rtype: str
|
21888
22436
|
"""
|
21889
22437
|
return self._ImageName
|
@@ -21908,7 +22456,7 @@ class SyncImagesRequest(AbstractModel):
|
|
21908
22456
|
def Encrypt(self):
|
21909
22457
|
"""是否复制为加密自定义镜像。
|
21910
22458
|
默认值为 false。
|
21911
|
-
|
22459
|
+
复制加密自定义镜像仅支持同地域, 即 DestinationRegions 仅支持填写指定镜像所在地域。
|
21912
22460
|
:rtype: bool
|
21913
22461
|
"""
|
21914
22462
|
return self._Encrypt
|
@@ -21922,6 +22470,7 @@ class SyncImagesRequest(AbstractModel):
|
|
21922
22470
|
"""加密自定义镜像使用的 KMS 密钥 ID。
|
21923
22471
|
仅当复制加密镜像时,即 Encrypt 为 true 时,此参数有效;
|
21924
22472
|
不指定 KmsKeyId,默认使用 CBS 云产品 KMS 密钥。
|
22473
|
+
KMS 密钥 ID 通过[KMS 控制台](https://console.cloud.tencent.com/kms2)获取。
|
21925
22474
|
:rtype: str
|
21926
22475
|
"""
|
21927
22476
|
return self._KmsKeyId
|
@@ -22018,13 +22567,11 @@ class SystemDisk(AbstractModel):
|
|
22018
22567
|
:param _DiskId: 系统盘ID。
|
22019
22568
|
该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。
|
22020
22569
|
:type DiskId: str
|
22021
|
-
:param _DiskSize: 系统盘大小,单位:
|
22570
|
+
:param _DiskSize: 系统盘大小,单位:GiB。默认值为 50
|
22022
22571
|
:type DiskSize: int
|
22023
22572
|
:param _CdcId: 所属的独享集群ID。
|
22024
22573
|
:type CdcId: str
|
22025
22574
|
:param _DiskName: 磁盘名称,长度不超过128 个字符。
|
22026
|
-
|
22027
|
-
该参数正在邀测中,暂未开放使用。
|
22028
22575
|
:type DiskName: str
|
22029
22576
|
"""
|
22030
22577
|
self._DiskType = None
|
@@ -22067,7 +22614,7 @@ class SystemDisk(AbstractModel):
|
|
22067
22614
|
|
22068
22615
|
@property
|
22069
22616
|
def DiskSize(self):
|
22070
|
-
"""系统盘大小,单位:
|
22617
|
+
"""系统盘大小,单位:GiB。默认值为 50
|
22071
22618
|
:rtype: int
|
22072
22619
|
"""
|
22073
22620
|
return self._DiskSize
|
@@ -22090,8 +22637,6 @@ class SystemDisk(AbstractModel):
|
|
22090
22637
|
@property
|
22091
22638
|
def DiskName(self):
|
22092
22639
|
"""磁盘名称,长度不超过128 个字符。
|
22093
|
-
|
22094
|
-
该参数正在邀测中,暂未开放使用。
|
22095
22640
|
:rtype: str
|
22096
22641
|
"""
|
22097
22642
|
return self._DiskName
|
@@ -22365,7 +22910,7 @@ class VirtualPrivateCloud(AbstractModel):
|
|
22365
22910
|
r"""
|
22366
22911
|
:param _VpcId: 私有网络ID,形如`vpc-xxx`。有效的VpcId可通过登录[控制台](https://console.cloud.tencent.com/vpc/vpc?rid=1)查询;也可以调用接口 [DescribeVpcEx](/document/api/215/1372) ,从接口返回中的`unVpcId`字段获取。若在创建子机时VpcId与SubnetId同时传入`DEFAULT`,则强制使用默认vpc网络。
|
22367
22912
|
:type VpcId: str
|
22368
|
-
:param _SubnetId: 私有网络子网ID,形如`subnet-xxx`。有效的私有网络子网ID可通过登录[控制台](https://console.cloud.tencent.com/vpc/subnet?rid=1)查询;也可以调用接口 [DescribeSubnets](/document/
|
22913
|
+
:param _SubnetId: 私有网络子网ID,形如`subnet-xxx`。有效的私有网络子网ID可通过登录[控制台](https://console.cloud.tencent.com/vpc/subnet?rid=1)查询;也可以调用接口 [DescribeSubnets](https://cloud.tencent.com/document/product/215/15784) ,从接口返回中的`SubnetId `字段获取。若在创建子机时SubnetId与VpcId同时传入`DEFAULT`,则强制使用默认vpc网络。
|
22369
22914
|
:type SubnetId: str
|
22370
22915
|
:param _AsVpcGateway: 是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:<li>true:表示用作公网网关</li><li>false:表示不作为公网网关</li>默认取值:false。
|
22371
22916
|
:type AsVpcGateway: bool
|
@@ -22393,7 +22938,7 @@ class VirtualPrivateCloud(AbstractModel):
|
|
22393
22938
|
|
22394
22939
|
@property
|
22395
22940
|
def SubnetId(self):
|
22396
|
-
"""私有网络子网ID,形如`subnet-xxx`。有效的私有网络子网ID可通过登录[控制台](https://console.cloud.tencent.com/vpc/subnet?rid=1)查询;也可以调用接口 [DescribeSubnets](/document/
|
22941
|
+
"""私有网络子网ID,形如`subnet-xxx`。有效的私有网络子网ID可通过登录[控制台](https://console.cloud.tencent.com/vpc/subnet?rid=1)查询;也可以调用接口 [DescribeSubnets](https://cloud.tencent.com/document/product/215/15784) ,从接口返回中的`SubnetId `字段获取。若在创建子机时SubnetId与VpcId同时传入`DEFAULT`,则强制使用默认vpc网络。
|
22397
22942
|
:rtype: str
|
22398
22943
|
"""
|
22399
22944
|
return self._SubnetId
|