tencentcloud-sdk-python-tat 3.1.31__tar.gz → 3.1.87__tar.gz
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_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/setup.py +1 -1
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud/tat/v20201028/errorcodes.py +3 -0
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud/tat/v20201028/models.py +126 -246
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud_sdk_python_tat.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tat-3.1.87/tencentcloud_sdk_python_tat.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tat-3.1.31/tencentcloud_sdk_python_tat.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/README.rst +0 -0
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud/tat/__init__.py +0 -0
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud/tat/v20201028/__init__.py +0 -0
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud/tat/v20201028/tat_client.py +0 -0
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud/tat/v20201028/tat_client_async.py +0 -0
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud_sdk_python_tat.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud_sdk_python_tat.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tat-3.1.31 → tencentcloud_sdk_python_tat-3.1.87}/tencentcloud_sdk_python_tat.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tat
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.87
|
|
4
4
|
Summary: Tencent Cloud Tat SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.87
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-tat',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.87,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tat SDK for Python',
|
|
@@ -26,6 +26,9 @@ FAILEDOPERATION_CVMERROR = 'FailedOperation.CVMError'
|
|
|
26
26
|
# 调用 Lighthouse 失败。
|
|
27
27
|
FAILEDOPERATION_LIGHTHOUSEERROR = 'FailedOperation.LighthouseError'
|
|
28
28
|
|
|
29
|
+
# 标签操作失败。
|
|
30
|
+
FAILEDOPERATION_TAGOPERATIONFAILED = 'FailedOperation.TagOperationFailed'
|
|
31
|
+
|
|
29
32
|
# 内部错误。
|
|
30
33
|
INTERNALERROR = 'InternalError'
|
|
31
34
|
|
|
@@ -233,43 +233,43 @@ class Command(AbstractModel):
|
|
|
233
233
|
|
|
234
234
|
def __init__(self):
|
|
235
235
|
r"""
|
|
236
|
-
:param _CommandId:
|
|
236
|
+
:param _CommandId: <p>命令ID。</p>
|
|
237
237
|
:type CommandId: str
|
|
238
|
-
:param _CommandName:
|
|
238
|
+
:param _CommandName: <p>命令名称。</p>
|
|
239
239
|
:type CommandName: str
|
|
240
|
-
:param _Description:
|
|
240
|
+
:param _Description: <p>命令描述。</p>
|
|
241
241
|
:type Description: str
|
|
242
|
-
:param _Content: Base64
|
|
242
|
+
:param _Content: <p>Base64编码后的命令内容。</p>
|
|
243
243
|
:type Content: str
|
|
244
|
-
:param _CommandType:
|
|
244
|
+
:param _CommandType: <p>命令类型。取值为 SHELL、POWERSHELL、BAT 之一。</p>
|
|
245
245
|
:type CommandType: str
|
|
246
|
-
:param _WorkingDirectory:
|
|
246
|
+
:param _WorkingDirectory: <p>命令执行路径。</p>
|
|
247
247
|
:type WorkingDirectory: str
|
|
248
|
-
:param _Timeout:
|
|
248
|
+
:param _Timeout: <p>命令超时时间。</p><p>单位:秒</p><p>指定 OutputCOSBucketUrl 参数时,超时时间将包含命令输出上传 COS 的耗时</p>
|
|
249
249
|
:type Timeout: int
|
|
250
|
-
:param _CreatedTime:
|
|
250
|
+
:param _CreatedTime: <p>命令创建时间。格式为:YYYY-MM-DDThh:mm:ssZ</p>
|
|
251
251
|
:type CreatedTime: str
|
|
252
|
-
:param _UpdatedTime:
|
|
252
|
+
:param _UpdatedTime: <p>命令更新时间。格式为:YYYY-MM-DDThh:mm:ssZ</p>
|
|
253
253
|
:type UpdatedTime: str
|
|
254
|
-
:param _EnableParameter:
|
|
254
|
+
:param _EnableParameter: <p>是否启用自定义参数功能。</p>
|
|
255
255
|
:type EnableParameter: bool
|
|
256
|
-
:param _DefaultParameters:
|
|
256
|
+
:param _DefaultParameters: <p>自定义参数的默认取值。</p>
|
|
257
257
|
:type DefaultParameters: str
|
|
258
|
-
:param _DefaultParameterConfs:
|
|
258
|
+
:param _DefaultParameterConfs: <p>自定义参数的默认取值。</p>
|
|
259
259
|
:type DefaultParameterConfs: list of DefaultParameterConf
|
|
260
|
-
:param _Scenes:
|
|
260
|
+
:param _Scenes: <p>命令关联的场景</p>
|
|
261
261
|
:type Scenes: list of str
|
|
262
|
-
:param _FormattedDescription:
|
|
262
|
+
:param _FormattedDescription: <p>命令的结构化描述。公共命令有值,用户命令为空字符串。</p>
|
|
263
263
|
:type FormattedDescription: str
|
|
264
|
-
:param _CreatedBy:
|
|
264
|
+
:param _CreatedBy: <p>命令创建者。</p><p>枚举值:</p><ul><li>TAT: 公共命令</li><li>USER: 个人创建的命令</li></ul>
|
|
265
265
|
:type CreatedBy: str
|
|
266
|
-
:param _Tags:
|
|
266
|
+
:param _Tags: <p>命令关联的标签列表。</p>
|
|
267
267
|
:type Tags: list of Tag
|
|
268
|
-
:param _Username:
|
|
268
|
+
:param _Username: <p>在实例上执行命令的用户名。</p>
|
|
269
269
|
:type Username: str
|
|
270
|
-
:param _OutputCOSBucketUrl:
|
|
270
|
+
:param _OutputCOSBucketUrl: <p>日志上传的cos bucket 地址。</p>
|
|
271
271
|
:type OutputCOSBucketUrl: str
|
|
272
|
-
:param _OutputCOSKeyPrefix:
|
|
272
|
+
:param _OutputCOSKeyPrefix: <p>日志在cos bucket中的目录。</p>
|
|
273
273
|
:type OutputCOSKeyPrefix: str
|
|
274
274
|
"""
|
|
275
275
|
self._CommandId = None
|
|
@@ -294,7 +294,7 @@ class Command(AbstractModel):
|
|
|
294
294
|
|
|
295
295
|
@property
|
|
296
296
|
def CommandId(self):
|
|
297
|
-
r"""
|
|
297
|
+
r"""<p>命令ID。</p>
|
|
298
298
|
:rtype: str
|
|
299
299
|
"""
|
|
300
300
|
return self._CommandId
|
|
@@ -305,7 +305,7 @@ class Command(AbstractModel):
|
|
|
305
305
|
|
|
306
306
|
@property
|
|
307
307
|
def CommandName(self):
|
|
308
|
-
r"""
|
|
308
|
+
r"""<p>命令名称。</p>
|
|
309
309
|
:rtype: str
|
|
310
310
|
"""
|
|
311
311
|
return self._CommandName
|
|
@@ -316,7 +316,7 @@ class Command(AbstractModel):
|
|
|
316
316
|
|
|
317
317
|
@property
|
|
318
318
|
def Description(self):
|
|
319
|
-
r"""
|
|
319
|
+
r"""<p>命令描述。</p>
|
|
320
320
|
:rtype: str
|
|
321
321
|
"""
|
|
322
322
|
return self._Description
|
|
@@ -327,7 +327,7 @@ class Command(AbstractModel):
|
|
|
327
327
|
|
|
328
328
|
@property
|
|
329
329
|
def Content(self):
|
|
330
|
-
r"""Base64
|
|
330
|
+
r"""<p>Base64编码后的命令内容。</p>
|
|
331
331
|
:rtype: str
|
|
332
332
|
"""
|
|
333
333
|
return self._Content
|
|
@@ -338,7 +338,7 @@ class Command(AbstractModel):
|
|
|
338
338
|
|
|
339
339
|
@property
|
|
340
340
|
def CommandType(self):
|
|
341
|
-
r"""
|
|
341
|
+
r"""<p>命令类型。取值为 SHELL、POWERSHELL、BAT 之一。</p>
|
|
342
342
|
:rtype: str
|
|
343
343
|
"""
|
|
344
344
|
return self._CommandType
|
|
@@ -349,7 +349,7 @@ class Command(AbstractModel):
|
|
|
349
349
|
|
|
350
350
|
@property
|
|
351
351
|
def WorkingDirectory(self):
|
|
352
|
-
r"""
|
|
352
|
+
r"""<p>命令执行路径。</p>
|
|
353
353
|
:rtype: str
|
|
354
354
|
"""
|
|
355
355
|
return self._WorkingDirectory
|
|
@@ -360,7 +360,7 @@ class Command(AbstractModel):
|
|
|
360
360
|
|
|
361
361
|
@property
|
|
362
362
|
def Timeout(self):
|
|
363
|
-
r"""
|
|
363
|
+
r"""<p>命令超时时间。</p><p>单位:秒</p><p>指定 OutputCOSBucketUrl 参数时,超时时间将包含命令输出上传 COS 的耗时</p>
|
|
364
364
|
:rtype: int
|
|
365
365
|
"""
|
|
366
366
|
return self._Timeout
|
|
@@ -371,7 +371,7 @@ class Command(AbstractModel):
|
|
|
371
371
|
|
|
372
372
|
@property
|
|
373
373
|
def CreatedTime(self):
|
|
374
|
-
r"""
|
|
374
|
+
r"""<p>命令创建时间。格式为:YYYY-MM-DDThh:mm:ssZ</p>
|
|
375
375
|
:rtype: str
|
|
376
376
|
"""
|
|
377
377
|
return self._CreatedTime
|
|
@@ -382,7 +382,7 @@ class Command(AbstractModel):
|
|
|
382
382
|
|
|
383
383
|
@property
|
|
384
384
|
def UpdatedTime(self):
|
|
385
|
-
r"""
|
|
385
|
+
r"""<p>命令更新时间。格式为:YYYY-MM-DDThh:mm:ssZ</p>
|
|
386
386
|
:rtype: str
|
|
387
387
|
"""
|
|
388
388
|
return self._UpdatedTime
|
|
@@ -393,7 +393,7 @@ class Command(AbstractModel):
|
|
|
393
393
|
|
|
394
394
|
@property
|
|
395
395
|
def EnableParameter(self):
|
|
396
|
-
r"""
|
|
396
|
+
r"""<p>是否启用自定义参数功能。</p>
|
|
397
397
|
:rtype: bool
|
|
398
398
|
"""
|
|
399
399
|
return self._EnableParameter
|
|
@@ -404,7 +404,7 @@ class Command(AbstractModel):
|
|
|
404
404
|
|
|
405
405
|
@property
|
|
406
406
|
def DefaultParameters(self):
|
|
407
|
-
r"""
|
|
407
|
+
r"""<p>自定义参数的默认取值。</p>
|
|
408
408
|
:rtype: str
|
|
409
409
|
"""
|
|
410
410
|
return self._DefaultParameters
|
|
@@ -415,7 +415,7 @@ class Command(AbstractModel):
|
|
|
415
415
|
|
|
416
416
|
@property
|
|
417
417
|
def DefaultParameterConfs(self):
|
|
418
|
-
r"""
|
|
418
|
+
r"""<p>自定义参数的默认取值。</p>
|
|
419
419
|
:rtype: list of DefaultParameterConf
|
|
420
420
|
"""
|
|
421
421
|
return self._DefaultParameterConfs
|
|
@@ -426,7 +426,7 @@ class Command(AbstractModel):
|
|
|
426
426
|
|
|
427
427
|
@property
|
|
428
428
|
def Scenes(self):
|
|
429
|
-
r"""
|
|
429
|
+
r"""<p>命令关联的场景</p>
|
|
430
430
|
:rtype: list of str
|
|
431
431
|
"""
|
|
432
432
|
return self._Scenes
|
|
@@ -437,7 +437,7 @@ class Command(AbstractModel):
|
|
|
437
437
|
|
|
438
438
|
@property
|
|
439
439
|
def FormattedDescription(self):
|
|
440
|
-
r"""
|
|
440
|
+
r"""<p>命令的结构化描述。公共命令有值,用户命令为空字符串。</p>
|
|
441
441
|
:rtype: str
|
|
442
442
|
"""
|
|
443
443
|
return self._FormattedDescription
|
|
@@ -448,7 +448,7 @@ class Command(AbstractModel):
|
|
|
448
448
|
|
|
449
449
|
@property
|
|
450
450
|
def CreatedBy(self):
|
|
451
|
-
r"""
|
|
451
|
+
r"""<p>命令创建者。</p><p>枚举值:</p><ul><li>TAT: 公共命令</li><li>USER: 个人创建的命令</li></ul>
|
|
452
452
|
:rtype: str
|
|
453
453
|
"""
|
|
454
454
|
return self._CreatedBy
|
|
@@ -459,7 +459,7 @@ class Command(AbstractModel):
|
|
|
459
459
|
|
|
460
460
|
@property
|
|
461
461
|
def Tags(self):
|
|
462
|
-
r"""
|
|
462
|
+
r"""<p>命令关联的标签列表。</p>
|
|
463
463
|
:rtype: list of Tag
|
|
464
464
|
"""
|
|
465
465
|
return self._Tags
|
|
@@ -470,7 +470,7 @@ class Command(AbstractModel):
|
|
|
470
470
|
|
|
471
471
|
@property
|
|
472
472
|
def Username(self):
|
|
473
|
-
r"""
|
|
473
|
+
r"""<p>在实例上执行命令的用户名。</p>
|
|
474
474
|
:rtype: str
|
|
475
475
|
"""
|
|
476
476
|
return self._Username
|
|
@@ -481,7 +481,7 @@ class Command(AbstractModel):
|
|
|
481
481
|
|
|
482
482
|
@property
|
|
483
483
|
def OutputCOSBucketUrl(self):
|
|
484
|
-
r"""
|
|
484
|
+
r"""<p>日志上传的cos bucket 地址。</p>
|
|
485
485
|
:rtype: str
|
|
486
486
|
"""
|
|
487
487
|
return self._OutputCOSBucketUrl
|
|
@@ -492,7 +492,7 @@ class Command(AbstractModel):
|
|
|
492
492
|
|
|
493
493
|
@property
|
|
494
494
|
def OutputCOSKeyPrefix(self):
|
|
495
|
-
r"""
|
|
495
|
+
r"""<p>日志在cos bucket中的目录。</p>
|
|
496
496
|
:rtype: str
|
|
497
497
|
"""
|
|
498
498
|
return self._OutputCOSKeyPrefix
|
|
@@ -675,47 +675,31 @@ class CreateCommandRequest(AbstractModel):
|
|
|
675
675
|
|
|
676
676
|
def __init__(self):
|
|
677
677
|
r"""
|
|
678
|
-
:param _CommandName:
|
|
678
|
+
:param _CommandName: <p>命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。</p>
|
|
679
679
|
:type CommandName: str
|
|
680
|
-
:param _Content: Base64
|
|
680
|
+
:param _Content: <p>命令脚本内容。 需 Base64 编码后传入。</p><p>当 EnableParameter = true 时,支持两种动态参数占位符:</p><ul><li>普通参数 {{key}}:例如脚本 <code>echo {{word}}</code> 配合参数 <code>{"word": "hello"}</code>,实际执行 <code>echo hello</code>,执行记录显示 <code>{"word": "hello"}</code>。</li><li>隐藏参数 {{tat-hidden:key}}:用于敏感信息脱敏。例如脚本 <code>echo {{tat-hidden:word}}</code> 配合参数 <code>{"word": "hello"}</code>(传参 Key 不带前缀),实际执行 <code>echo hello</code>,记录显示 <code>{"word": "******"}</code>。</li></ul><p>参数格式:Base64 编码字符串</p><p>入参限制:Base64 编码后的字符串长度不能超过 64KB</p>
|
|
681
681
|
:type Content: str
|
|
682
|
-
:param _Description:
|
|
682
|
+
:param _Description: <p>命令描述。不超过120字符。</p>
|
|
683
683
|
:type Description: str
|
|
684
|
-
:param _CommandType:
|
|
684
|
+
:param _CommandType: <p>命令类型,目前支持取值:SHELL、POWERSHELL、BAT。默认:SHELL。</p>
|
|
685
685
|
:type CommandType: str
|
|
686
|
-
:param _WorkingDirectory:
|
|
686
|
+
:param _WorkingDirectory: <p>命令执行路径,对于 SHELL 命令默认为 /root,对于 POWERSHELL 命令默认为 C:\Program Files\qcloud\tat_agent\workdir。</p>
|
|
687
687
|
:type WorkingDirectory: str
|
|
688
|
-
:param _Timeout:
|
|
688
|
+
:param _Timeout: <p>命令超时时间,默认60秒。取值范围[1, 86400]。</p>
|
|
689
689
|
:type Timeout: int
|
|
690
|
-
:param _EnableParameter:
|
|
691
|
-
一旦创建,此值不提供修改。
|
|
692
|
-
默认值:false。
|
|
690
|
+
:param _EnableParameter: <p>是否启用自定义参数功能。<br>一旦创建,此值不提供修改。<br>默认值:false。</p>
|
|
693
691
|
:type EnableParameter: bool
|
|
694
|
-
:param _DefaultParameters:
|
|
695
|
-
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
|
|
696
|
-
如果InvokeCommand时未提供参数取值,将使用这里的默认值进行替换。
|
|
697
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
698
|
-
仅在 EnableParameter 参数为 true 时,才允许设置此参数。
|
|
699
|
-
自定义参数最多20个。
|
|
700
|
-
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
|
|
692
|
+
:param _DefaultParameters: <p>启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{"varA": "222"}。<br>key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。<br>如果InvokeCommand时未提供参数取值,将使用这里的默认值进行替换。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>仅在 EnableParameter 参数为 true 时,才允许设置此参数。<br>自定义参数最多20个。<br>自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。</p>
|
|
701
693
|
:type DefaultParameters: str
|
|
702
|
-
:param _DefaultParameterConfs:
|
|
703
|
-
如果InvokeCommand时未提供参数取值,将使用这里的默认值进行替换。
|
|
704
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
705
|
-
仅在 EnableParameter 参数为 true 时,才允许设置此参数。
|
|
706
|
-
自定义参数最多20个。
|
|
694
|
+
:param _DefaultParameterConfs: <p>自定义参数数组。<br>如果InvokeCommand时未提供参数取值,将使用这里的默认值进行替换。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>仅在 EnableParameter 参数为 true 时,才允许设置此参数。<br>自定义参数最多20个。</p>
|
|
707
695
|
:type DefaultParameterConfs: list of DefaultParameterConf
|
|
708
|
-
:param _Tags:
|
|
696
|
+
:param _Tags: <p>为命令关联的标签,列表长度不超过10。</p>
|
|
709
697
|
:type Tags: list of Tag
|
|
710
|
-
:param _Username:
|
|
711
|
-
使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。默认情况下,在 Linux 实例中以 root 用户执行命令;在Windows 实例中以 System 用户执行命令。
|
|
698
|
+
:param _Username: <p>在 CVM 或 Lighthouse 实例中执行命令的用户名称。<br>使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。默认情况下,在 Linux 实例中以 root 用户执行命令;在Windows 实例中以 System 用户执行命令。</p>
|
|
712
699
|
:type Username: str
|
|
713
|
-
:param _OutputCOSBucketUrl:
|
|
700
|
+
:param _OutputCOSBucketUrl: <p>指定日志上传的cos bucket 地址,必须以https开头,如 https://BucketName-123454321.cos.ap-beijing.myqcloud.com。</p>
|
|
714
701
|
:type OutputCOSBucketUrl: str
|
|
715
|
-
:param _OutputCOSKeyPrefix:
|
|
716
|
-
1. 可用数字、中英文和可见字符的组合,长度最多为60。
|
|
717
|
-
2. 用 / 分割路径,可快速创建子目录。
|
|
718
|
-
3. 不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称
|
|
702
|
+
:param _OutputCOSKeyPrefix: <p>指定日志在cos bucket中的目录,目录命名有如下规则:</p><ol><li>可用数字、中英文和可见字符的组合,长度最多为60。</li><li>用 / 分割路径,可快速创建子目录。</li><li>不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称</li></ol>
|
|
719
703
|
:type OutputCOSKeyPrefix: str
|
|
720
704
|
"""
|
|
721
705
|
self._CommandName = None
|
|
@@ -734,7 +718,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
734
718
|
|
|
735
719
|
@property
|
|
736
720
|
def CommandName(self):
|
|
737
|
-
r"""
|
|
721
|
+
r"""<p>命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。</p>
|
|
738
722
|
:rtype: str
|
|
739
723
|
"""
|
|
740
724
|
return self._CommandName
|
|
@@ -745,7 +729,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
745
729
|
|
|
746
730
|
@property
|
|
747
731
|
def Content(self):
|
|
748
|
-
r"""Base64
|
|
732
|
+
r"""<p>命令脚本内容。 需 Base64 编码后传入。</p><p>当 EnableParameter = true 时,支持两种动态参数占位符:</p><ul><li>普通参数 {{key}}:例如脚本 <code>echo {{word}}</code> 配合参数 <code>{"word": "hello"}</code>,实际执行 <code>echo hello</code>,执行记录显示 <code>{"word": "hello"}</code>。</li><li>隐藏参数 {{tat-hidden:key}}:用于敏感信息脱敏。例如脚本 <code>echo {{tat-hidden:word}}</code> 配合参数 <code>{"word": "hello"}</code>(传参 Key 不带前缀),实际执行 <code>echo hello</code>,记录显示 <code>{"word": "******"}</code>。</li></ul><p>参数格式:Base64 编码字符串</p><p>入参限制:Base64 编码后的字符串长度不能超过 64KB</p>
|
|
749
733
|
:rtype: str
|
|
750
734
|
"""
|
|
751
735
|
return self._Content
|
|
@@ -756,7 +740,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
756
740
|
|
|
757
741
|
@property
|
|
758
742
|
def Description(self):
|
|
759
|
-
r"""
|
|
743
|
+
r"""<p>命令描述。不超过120字符。</p>
|
|
760
744
|
:rtype: str
|
|
761
745
|
"""
|
|
762
746
|
return self._Description
|
|
@@ -767,7 +751,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
767
751
|
|
|
768
752
|
@property
|
|
769
753
|
def CommandType(self):
|
|
770
|
-
r"""
|
|
754
|
+
r"""<p>命令类型,目前支持取值:SHELL、POWERSHELL、BAT。默认:SHELL。</p>
|
|
771
755
|
:rtype: str
|
|
772
756
|
"""
|
|
773
757
|
return self._CommandType
|
|
@@ -778,7 +762,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
778
762
|
|
|
779
763
|
@property
|
|
780
764
|
def WorkingDirectory(self):
|
|
781
|
-
r"""
|
|
765
|
+
r"""<p>命令执行路径,对于 SHELL 命令默认为 /root,对于 POWERSHELL 命令默认为 C:\Program Files\qcloud\tat_agent\workdir。</p>
|
|
782
766
|
:rtype: str
|
|
783
767
|
"""
|
|
784
768
|
return self._WorkingDirectory
|
|
@@ -789,7 +773,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
789
773
|
|
|
790
774
|
@property
|
|
791
775
|
def Timeout(self):
|
|
792
|
-
r"""
|
|
776
|
+
r"""<p>命令超时时间,默认60秒。取值范围[1, 86400]。</p>
|
|
793
777
|
:rtype: int
|
|
794
778
|
"""
|
|
795
779
|
return self._Timeout
|
|
@@ -800,9 +784,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
800
784
|
|
|
801
785
|
@property
|
|
802
786
|
def EnableParameter(self):
|
|
803
|
-
r"""
|
|
804
|
-
一旦创建,此值不提供修改。
|
|
805
|
-
默认值:false。
|
|
787
|
+
r"""<p>是否启用自定义参数功能。<br>一旦创建,此值不提供修改。<br>默认值:false。</p>
|
|
806
788
|
:rtype: bool
|
|
807
789
|
"""
|
|
808
790
|
return self._EnableParameter
|
|
@@ -813,13 +795,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
813
795
|
|
|
814
796
|
@property
|
|
815
797
|
def DefaultParameters(self):
|
|
816
|
-
r"""
|
|
817
|
-
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
|
|
818
|
-
如果InvokeCommand时未提供参数取值,将使用这里的默认值进行替换。
|
|
819
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
820
|
-
仅在 EnableParameter 参数为 true 时,才允许设置此参数。
|
|
821
|
-
自定义参数最多20个。
|
|
822
|
-
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
|
|
798
|
+
r"""<p>启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{"varA": "222"}。<br>key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。<br>如果InvokeCommand时未提供参数取值,将使用这里的默认值进行替换。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>仅在 EnableParameter 参数为 true 时,才允许设置此参数。<br>自定义参数最多20个。<br>自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。</p>
|
|
823
799
|
:rtype: str
|
|
824
800
|
"""
|
|
825
801
|
return self._DefaultParameters
|
|
@@ -830,11 +806,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
830
806
|
|
|
831
807
|
@property
|
|
832
808
|
def DefaultParameterConfs(self):
|
|
833
|
-
r"""
|
|
834
|
-
如果InvokeCommand时未提供参数取值,将使用这里的默认值进行替换。
|
|
835
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
836
|
-
仅在 EnableParameter 参数为 true 时,才允许设置此参数。
|
|
837
|
-
自定义参数最多20个。
|
|
809
|
+
r"""<p>自定义参数数组。<br>如果InvokeCommand时未提供参数取值,将使用这里的默认值进行替换。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>仅在 EnableParameter 参数为 true 时,才允许设置此参数。<br>自定义参数最多20个。</p>
|
|
838
810
|
:rtype: list of DefaultParameterConf
|
|
839
811
|
"""
|
|
840
812
|
return self._DefaultParameterConfs
|
|
@@ -845,7 +817,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
845
817
|
|
|
846
818
|
@property
|
|
847
819
|
def Tags(self):
|
|
848
|
-
r"""
|
|
820
|
+
r"""<p>为命令关联的标签,列表长度不超过10。</p>
|
|
849
821
|
:rtype: list of Tag
|
|
850
822
|
"""
|
|
851
823
|
return self._Tags
|
|
@@ -856,8 +828,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
856
828
|
|
|
857
829
|
@property
|
|
858
830
|
def Username(self):
|
|
859
|
-
r"""
|
|
860
|
-
使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。默认情况下,在 Linux 实例中以 root 用户执行命令;在Windows 实例中以 System 用户执行命令。
|
|
831
|
+
r"""<p>在 CVM 或 Lighthouse 实例中执行命令的用户名称。<br>使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。默认情况下,在 Linux 实例中以 root 用户执行命令;在Windows 实例中以 System 用户执行命令。</p>
|
|
861
832
|
:rtype: str
|
|
862
833
|
"""
|
|
863
834
|
return self._Username
|
|
@@ -868,7 +839,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
868
839
|
|
|
869
840
|
@property
|
|
870
841
|
def OutputCOSBucketUrl(self):
|
|
871
|
-
r"""
|
|
842
|
+
r"""<p>指定日志上传的cos bucket 地址,必须以https开头,如 https://BucketName-123454321.cos.ap-beijing.myqcloud.com。</p>
|
|
872
843
|
:rtype: str
|
|
873
844
|
"""
|
|
874
845
|
return self._OutputCOSBucketUrl
|
|
@@ -879,10 +850,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
879
850
|
|
|
880
851
|
@property
|
|
881
852
|
def OutputCOSKeyPrefix(self):
|
|
882
|
-
r"""
|
|
883
|
-
1. 可用数字、中英文和可见字符的组合,长度最多为60。
|
|
884
|
-
2. 用 / 分割路径,可快速创建子目录。
|
|
885
|
-
3. 不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称
|
|
853
|
+
r"""<p>指定日志在cos bucket中的目录,目录命名有如下规则:</p><ol><li>可用数字、中英文和可见字符的组合,长度最多为60。</li><li>用 / 分割路径,可快速创建子目录。</li><li>不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称</li></ol>
|
|
886
854
|
:rtype: str
|
|
887
855
|
"""
|
|
888
856
|
return self._OutputCOSKeyPrefix
|
|
@@ -933,7 +901,7 @@ class CreateCommandResponse(AbstractModel):
|
|
|
933
901
|
|
|
934
902
|
def __init__(self):
|
|
935
903
|
r"""
|
|
936
|
-
:param _CommandId:
|
|
904
|
+
:param _CommandId: <p>命令ID。</p>
|
|
937
905
|
:type CommandId: str
|
|
938
906
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
939
907
|
:type RequestId: str
|
|
@@ -943,7 +911,7 @@ class CreateCommandResponse(AbstractModel):
|
|
|
943
911
|
|
|
944
912
|
@property
|
|
945
913
|
def CommandId(self):
|
|
946
|
-
r"""
|
|
914
|
+
r"""<p>命令ID。</p>
|
|
947
915
|
:rtype: str
|
|
948
916
|
"""
|
|
949
917
|
return self._CommandId
|
|
@@ -5097,42 +5065,29 @@ class ModifyCommandRequest(AbstractModel):
|
|
|
5097
5065
|
|
|
5098
5066
|
def __init__(self):
|
|
5099
5067
|
r"""
|
|
5100
|
-
:param _CommandId:
|
|
5068
|
+
:param _CommandId: <p>命令ID。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取。</p>
|
|
5101
5069
|
:type CommandId: str
|
|
5102
|
-
:param _CommandName:
|
|
5070
|
+
:param _CommandName: <p>命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。</p>
|
|
5103
5071
|
:type CommandName: str
|
|
5104
|
-
:param _Description:
|
|
5072
|
+
:param _Description: <p>命令描述。不超过120字符。</p>
|
|
5105
5073
|
:type Description: str
|
|
5106
|
-
:param _Content: Base64
|
|
5074
|
+
:param _Content: <p>命令脚本内容。 需 Base64 编码后传入。</p><p>当 EnableParameter = true 时,支持两种动态参数占位符:</p><ul><li>普通参数 {{key}}:例如脚本 <code>echo {{word}}</code> 配合参数 <code>{"word": "hello"}</code>,实际执行 <code>echo hello</code>,执行记录显示 <code>{"word": "hello"}</code>。</li><li>隐藏参数 {{tat-hidden:key}}:用于敏感信息脱敏。例如脚本 <code>echo {{tat-hidden:word}}</code> 配合参数 <code>{"word": "hello"}</code>(传参 Key 不带前缀),实际执行 <code>echo hello</code>,记录显示 <code>{"word": "******"}</code>。</li></ul><p>参数格式:Base64 编码字符串</p><p>入参限制:Base64 编码后的字符串长度不能超过 64KB</p>
|
|
5107
5075
|
:type Content: str
|
|
5108
|
-
:param _CommandType:
|
|
5076
|
+
:param _CommandType: <p>命令类型,目前支持取值:SHELL、POWERSHELL、BAT。</p>
|
|
5109
5077
|
:type CommandType: str
|
|
5110
|
-
:param _WorkingDirectory:
|
|
5078
|
+
:param _WorkingDirectory: <p>命令执行路径。</p>
|
|
5111
5079
|
:type WorkingDirectory: str
|
|
5112
|
-
:param _Timeout:
|
|
5080
|
+
:param _Timeout: <p>命令超时时间。</p><p>取值范围:[1, 86400]</p><p>单位:秒</p><p>默认值:60</p><p>指定 OutputCOSBucketUrl 参数时,超时时间将包含命令输出上传 COS 的耗时</p>
|
|
5113
5081
|
:type Timeout: int
|
|
5114
|
-
:param _DefaultParameters:
|
|
5115
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
5116
|
-
采取整体全覆盖式修改,即修改时必须提供所有新默认值。
|
|
5117
|
-
仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
|
|
5118
|
-
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
|
|
5119
|
-
自定义参数最多20个。
|
|
5120
|
-
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
|
|
5082
|
+
:param _DefaultParameters: <p>启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{"varA": "222"}。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>采取整体全覆盖式修改,即修改时必须提供所有新默认值。<br>仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取命令的 EnableParameter 设置。<br>key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。<br>自定义参数最多20个。<br>自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。</p>
|
|
5121
5083
|
:type DefaultParameters: str
|
|
5122
|
-
:param _DefaultParameterConfs:
|
|
5123
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
5124
|
-
仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
|
|
5125
|
-
自定义参数最多20个。
|
|
5084
|
+
:param _DefaultParameterConfs: <p>自定义参数数组。如果 InvokeCommand 时未提供参数取值,将使用这里的默认值进行替换。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取命令的 EnableParameter 设置。<br>自定义参数最多20个。</p>
|
|
5126
5085
|
:type DefaultParameterConfs: list of DefaultParameterConf
|
|
5127
|
-
:param _Username:
|
|
5128
|
-
使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。
|
|
5086
|
+
:param _Username: <p>在 CVM 或 Lighthouse 实例中执行命令的用户名称。<br>使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。</p>
|
|
5129
5087
|
:type Username: str
|
|
5130
|
-
:param _OutputCOSBucketUrl:
|
|
5088
|
+
:param _OutputCOSBucketUrl: <p>指定日志上传的cos bucket 地址,必须以https开头,如 https://BucketName-123454321.cos.ap-beijing.myqcloud.com。</p>
|
|
5131
5089
|
:type OutputCOSBucketUrl: str
|
|
5132
|
-
:param _OutputCOSKeyPrefix:
|
|
5133
|
-
1. 可用数字、中英文和可见字符的组合,长度最多为60。
|
|
5134
|
-
2. 用 / 分割路径,可快速创建子目录。
|
|
5135
|
-
3. 不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。
|
|
5090
|
+
:param _OutputCOSKeyPrefix: <p>指定日志在cos bucket中的目录,目录命名有如下规则:</p><ol><li>可用数字、中英文和可见字符的组合,长度最多为60。</li><li>用 / 分割路径,可快速创建子目录。</li><li>不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。</li></ol>
|
|
5136
5091
|
:type OutputCOSKeyPrefix: str
|
|
5137
5092
|
"""
|
|
5138
5093
|
self._CommandId = None
|
|
@@ -5150,7 +5105,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5150
5105
|
|
|
5151
5106
|
@property
|
|
5152
5107
|
def CommandId(self):
|
|
5153
|
-
r"""
|
|
5108
|
+
r"""<p>命令ID。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取。</p>
|
|
5154
5109
|
:rtype: str
|
|
5155
5110
|
"""
|
|
5156
5111
|
return self._CommandId
|
|
@@ -5161,7 +5116,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5161
5116
|
|
|
5162
5117
|
@property
|
|
5163
5118
|
def CommandName(self):
|
|
5164
|
-
r"""
|
|
5119
|
+
r"""<p>命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。</p>
|
|
5165
5120
|
:rtype: str
|
|
5166
5121
|
"""
|
|
5167
5122
|
return self._CommandName
|
|
@@ -5172,7 +5127,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5172
5127
|
|
|
5173
5128
|
@property
|
|
5174
5129
|
def Description(self):
|
|
5175
|
-
r"""
|
|
5130
|
+
r"""<p>命令描述。不超过120字符。</p>
|
|
5176
5131
|
:rtype: str
|
|
5177
5132
|
"""
|
|
5178
5133
|
return self._Description
|
|
@@ -5183,7 +5138,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5183
5138
|
|
|
5184
5139
|
@property
|
|
5185
5140
|
def Content(self):
|
|
5186
|
-
r"""Base64
|
|
5141
|
+
r"""<p>命令脚本内容。 需 Base64 编码后传入。</p><p>当 EnableParameter = true 时,支持两种动态参数占位符:</p><ul><li>普通参数 {{key}}:例如脚本 <code>echo {{word}}</code> 配合参数 <code>{"word": "hello"}</code>,实际执行 <code>echo hello</code>,执行记录显示 <code>{"word": "hello"}</code>。</li><li>隐藏参数 {{tat-hidden:key}}:用于敏感信息脱敏。例如脚本 <code>echo {{tat-hidden:word}}</code> 配合参数 <code>{"word": "hello"}</code>(传参 Key 不带前缀),实际执行 <code>echo hello</code>,记录显示 <code>{"word": "******"}</code>。</li></ul><p>参数格式:Base64 编码字符串</p><p>入参限制:Base64 编码后的字符串长度不能超过 64KB</p>
|
|
5187
5142
|
:rtype: str
|
|
5188
5143
|
"""
|
|
5189
5144
|
return self._Content
|
|
@@ -5194,7 +5149,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5194
5149
|
|
|
5195
5150
|
@property
|
|
5196
5151
|
def CommandType(self):
|
|
5197
|
-
r"""
|
|
5152
|
+
r"""<p>命令类型,目前支持取值:SHELL、POWERSHELL、BAT。</p>
|
|
5198
5153
|
:rtype: str
|
|
5199
5154
|
"""
|
|
5200
5155
|
return self._CommandType
|
|
@@ -5205,7 +5160,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5205
5160
|
|
|
5206
5161
|
@property
|
|
5207
5162
|
def WorkingDirectory(self):
|
|
5208
|
-
r"""
|
|
5163
|
+
r"""<p>命令执行路径。</p>
|
|
5209
5164
|
:rtype: str
|
|
5210
5165
|
"""
|
|
5211
5166
|
return self._WorkingDirectory
|
|
@@ -5216,7 +5171,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5216
5171
|
|
|
5217
5172
|
@property
|
|
5218
5173
|
def Timeout(self):
|
|
5219
|
-
r"""
|
|
5174
|
+
r"""<p>命令超时时间。</p><p>取值范围:[1, 86400]</p><p>单位:秒</p><p>默认值:60</p><p>指定 OutputCOSBucketUrl 参数时,超时时间将包含命令输出上传 COS 的耗时</p>
|
|
5220
5175
|
:rtype: int
|
|
5221
5176
|
"""
|
|
5222
5177
|
return self._Timeout
|
|
@@ -5227,13 +5182,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5227
5182
|
|
|
5228
5183
|
@property
|
|
5229
5184
|
def DefaultParameters(self):
|
|
5230
|
-
r"""
|
|
5231
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
5232
|
-
采取整体全覆盖式修改,即修改时必须提供所有新默认值。
|
|
5233
|
-
仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
|
|
5234
|
-
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
|
|
5235
|
-
自定义参数最多20个。
|
|
5236
|
-
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
|
|
5185
|
+
r"""<p>启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{"varA": "222"}。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>采取整体全覆盖式修改,即修改时必须提供所有新默认值。<br>仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取命令的 EnableParameter 设置。<br>key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。<br>自定义参数最多20个。<br>自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。</p>
|
|
5237
5186
|
:rtype: str
|
|
5238
5187
|
"""
|
|
5239
5188
|
return self._DefaultParameters
|
|
@@ -5244,10 +5193,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5244
5193
|
|
|
5245
5194
|
@property
|
|
5246
5195
|
def DefaultParameterConfs(self):
|
|
5247
|
-
r"""
|
|
5248
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
5249
|
-
仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
|
|
5250
|
-
自定义参数最多20个。
|
|
5196
|
+
r"""<p>自定义参数数组。如果 InvokeCommand 时未提供参数取值,将使用这里的默认值进行替换。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取命令的 EnableParameter 设置。<br>自定义参数最多20个。</p>
|
|
5251
5197
|
:rtype: list of DefaultParameterConf
|
|
5252
5198
|
"""
|
|
5253
5199
|
return self._DefaultParameterConfs
|
|
@@ -5258,8 +5204,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5258
5204
|
|
|
5259
5205
|
@property
|
|
5260
5206
|
def Username(self):
|
|
5261
|
-
r"""
|
|
5262
|
-
使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。
|
|
5207
|
+
r"""<p>在 CVM 或 Lighthouse 实例中执行命令的用户名称。<br>使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。</p>
|
|
5263
5208
|
:rtype: str
|
|
5264
5209
|
"""
|
|
5265
5210
|
return self._Username
|
|
@@ -5270,7 +5215,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5270
5215
|
|
|
5271
5216
|
@property
|
|
5272
5217
|
def OutputCOSBucketUrl(self):
|
|
5273
|
-
r"""
|
|
5218
|
+
r"""<p>指定日志上传的cos bucket 地址,必须以https开头,如 https://BucketName-123454321.cos.ap-beijing.myqcloud.com。</p>
|
|
5274
5219
|
:rtype: str
|
|
5275
5220
|
"""
|
|
5276
5221
|
return self._OutputCOSBucketUrl
|
|
@@ -5281,10 +5226,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
5281
5226
|
|
|
5282
5227
|
@property
|
|
5283
5228
|
def OutputCOSKeyPrefix(self):
|
|
5284
|
-
r"""
|
|
5285
|
-
1. 可用数字、中英文和可见字符的组合,长度最多为60。
|
|
5286
|
-
2. 用 / 分割路径,可快速创建子目录。
|
|
5287
|
-
3. 不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。
|
|
5229
|
+
r"""<p>指定日志在cos bucket中的目录,目录命名有如下规则:</p><ol><li>可用数字、中英文和可见字符的组合,长度最多为60。</li><li>用 / 分割路径,可快速创建子目录。</li><li>不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。</li></ol>
|
|
5288
5230
|
:rtype: str
|
|
5289
5231
|
"""
|
|
5290
5232
|
return self._OutputCOSKeyPrefix
|
|
@@ -6229,68 +6171,37 @@ class RunCommandRequest(AbstractModel):
|
|
|
6229
6171
|
|
|
6230
6172
|
def __init__(self):
|
|
6231
6173
|
r"""
|
|
6232
|
-
:param _Content: Base64
|
|
6174
|
+
:param _Content: <p>命令脚本内容。 需 Base64 编码后传入。</p><p>当 EnableParameter = true 时,支持两种动态参数占位符:</p><ul><li>普通参数 {{key}}:例如脚本 <code>echo {{word}}</code> 配合参数 <code>{"word": "hello"}</code>,实际执行 <code>echo hello</code>,执行记录显示 <code>{"word": "hello"}</code>。</li><li>隐藏参数 {{tat-hidden:key}}:用于敏感信息脱敏。例如脚本 <code>echo {{tat-hidden:word}}</code> 配合参数 <code>{"word": "hello"}</code>(传参 Key 不带前缀),实际执行 <code>echo hello</code>,记录显示 <code>{"word": "******"}</code>。</li></ul><p>参数格式:Base64 编码字符串</p><p>入参限制:Base64 编码后的字符串长度不能超过 64KB</p>
|
|
6233
6175
|
:type Content: str
|
|
6234
|
-
:param _InstanceIds:
|
|
6235
|
-
|
|
6236
|
-
可通过对应云产品的查询实例接口获取实例 ID。目前支持实例类型:
|
|
6237
|
-
- CVM
|
|
6238
|
-
- Lighthouse
|
|
6239
|
-
- TAT 托管实例
|
|
6176
|
+
:param _InstanceIds: <p>待执行命令的实例ID列表,上限200。</p><p>可通过对应云产品的查询实例接口获取实例 ID。目前支持实例类型:</p><ul><li>CVM</li><li>Lighthouse</li><li>TAT 托管实例</li></ul>
|
|
6240
6177
|
:type InstanceIds: list of str
|
|
6241
|
-
:param _CommandName:
|
|
6178
|
+
:param _CommandName: <p>命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。</p>
|
|
6242
6179
|
:type CommandName: str
|
|
6243
|
-
:param _Description:
|
|
6180
|
+
:param _Description: <p>命令描述。不超过120字符。</p>
|
|
6244
6181
|
:type Description: str
|
|
6245
|
-
:param _CommandType:
|
|
6182
|
+
:param _CommandType: <p>命令类型,目前支持取值:SHELL、POWERSHELL、BAT。默认:SHELL。</p>
|
|
6246
6183
|
:type CommandType: str
|
|
6247
|
-
:param _WorkingDirectory:
|
|
6184
|
+
:param _WorkingDirectory: <p>命令执行路径,对于 SHELL 命令默认为 /root,对于 POWERSHELL 命令默认为 C:\Program Files\qcloud\tat_agent\workdir。</p>
|
|
6248
6185
|
:type WorkingDirectory: str
|
|
6249
|
-
:param _Timeout:
|
|
6186
|
+
:param _Timeout: <p>命令超时时间,默认60秒。取值范围[1, 86400]。</p>
|
|
6250
6187
|
:type Timeout: int
|
|
6251
|
-
:param _SaveCommand:
|
|
6252
|
-
<li> true:保存</li>
|
|
6253
|
-
<li> false:不保存</li>
|
|
6254
|
-
默认为 false。
|
|
6188
|
+
:param _SaveCommand: <p>是否保存命令,取值范围:</p><li> true:保存</li><li> false:不保存</li>默认为 false。
|
|
6255
6189
|
:type SaveCommand: bool
|
|
6256
|
-
:param _EnableParameter:
|
|
6257
|
-
一旦创建,此值不提供修改。
|
|
6258
|
-
取值范围:
|
|
6259
|
-
<li> true:启用 </li>
|
|
6260
|
-
<li> false:不启用 </li>
|
|
6261
|
-
默认值:false。
|
|
6190
|
+
:param _EnableParameter: <p>是否启用自定义参数功能。<br>一旦创建,此值不提供修改。<br>取值范围:</p><li> true:启用 </li><li> false:不启用 </li>默认值:false。
|
|
6262
6191
|
:type EnableParameter: bool
|
|
6263
|
-
:param _DefaultParameters:
|
|
6264
|
-
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
|
|
6265
|
-
仅在命令的 EnableParameter 为 true 时,才允许设置此参数。
|
|
6266
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
6267
|
-
如果 Parameters 未提供,将使用这里的默认值进行替换。
|
|
6268
|
-
自定义参数最多20个。
|
|
6269
|
-
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
|
|
6192
|
+
:param _DefaultParameters: <p>启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{"varA": "222"}。<br>key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。<br>仅在命令的 EnableParameter 为 true 时,才允许设置此参数。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>如果 Parameters 未提供,将使用这里的默认值进行替换。<br>自定义参数最多20个。<br>自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。</p>
|
|
6270
6193
|
:type DefaultParameters: str
|
|
6271
|
-
:param _DefaultParameterConfs:
|
|
6272
|
-
如果 Parameters 未提供,将使用这里的默认值进行替换。
|
|
6273
|
-
仅在命令的 EnableParameter 为 true 时,才允许设置此参数。
|
|
6274
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
6194
|
+
:param _DefaultParameterConfs: <p>自定义参数数组。 如果 Parameters 未提供,将使用这里的默认值进行替换。 自定义参数最多20个。<br>如果 Parameters 未提供,将使用这里的默认值进行替换。<br>仅在命令的 EnableParameter 为 true 时,才允许设置此参数。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。</p>
|
|
6275
6195
|
:type DefaultParameterConfs: list of DefaultParameterConf
|
|
6276
|
-
:param _Parameters: Command 的自定义参数。字段类型为json encoded string。如:{
|
|
6277
|
-
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
|
|
6278
|
-
仅在命令的 EnableParameter 为 true 时,才允许设置此参数。
|
|
6279
|
-
如果未提供该参数取值,将使用 DefaultParameters 或 DefaultParameterConfs 进行替换。
|
|
6280
|
-
自定义参数最多20个。
|
|
6281
|
-
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
|
|
6196
|
+
:param _Parameters: <p>Command 的自定义参数。字段类型为json encoded string。如:{"varA": "222"}。<br>key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。<br>仅在命令的 EnableParameter 为 true 时,才允许设置此参数。<br>如果未提供该参数取值,将使用 DefaultParameters 或 DefaultParameterConfs 进行替换。<br>自定义参数最多20个。<br>自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。</p>
|
|
6282
6197
|
:type Parameters: str
|
|
6283
|
-
:param _Tags:
|
|
6198
|
+
:param _Tags: <p>如果保存命令,可为命令设置标签。列表长度不超过10。</p>
|
|
6284
6199
|
:type Tags: list of Tag
|
|
6285
|
-
:param _Username:
|
|
6286
|
-
使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。默认情况下,在 Linux 实例中以 root 用户执行命令;在Windows 实例中以 System 用户执行命令。
|
|
6200
|
+
:param _Username: <p>在 CVM 或 Lighthouse 实例中执行命令的用户名称。<br>使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。默认情况下,在 Linux 实例中以 root 用户执行命令;在Windows 实例中以 System 用户执行命令。</p>
|
|
6287
6201
|
:type Username: str
|
|
6288
|
-
:param _OutputCOSBucketUrl:
|
|
6202
|
+
:param _OutputCOSBucketUrl: <p>指定日志上传的cos bucket 地址,必须以https开头,如 https://BucketName-123454321.cos.ap-beijing.myqcloud.com。</p>
|
|
6289
6203
|
:type OutputCOSBucketUrl: str
|
|
6290
|
-
:param _OutputCOSKeyPrefix:
|
|
6291
|
-
1. 可用数字、中英文和可见字符的组合,长度最多为60。
|
|
6292
|
-
2. 用 / 分割路径,可快速创建子目录。
|
|
6293
|
-
3. 不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。
|
|
6204
|
+
:param _OutputCOSKeyPrefix: <p>指定日志在cos bucket中的目录,目录命名有如下规则:</p><ol><li>可用数字、中英文和可见字符的组合,长度最多为60。</li><li>用 / 分割路径,可快速创建子目录。</li><li>不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。</li></ol>
|
|
6294
6205
|
:type OutputCOSKeyPrefix: str
|
|
6295
6206
|
"""
|
|
6296
6207
|
self._Content = None
|
|
@@ -6312,7 +6223,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6312
6223
|
|
|
6313
6224
|
@property
|
|
6314
6225
|
def Content(self):
|
|
6315
|
-
r"""Base64
|
|
6226
|
+
r"""<p>命令脚本内容。 需 Base64 编码后传入。</p><p>当 EnableParameter = true 时,支持两种动态参数占位符:</p><ul><li>普通参数 {{key}}:例如脚本 <code>echo {{word}}</code> 配合参数 <code>{"word": "hello"}</code>,实际执行 <code>echo hello</code>,执行记录显示 <code>{"word": "hello"}</code>。</li><li>隐藏参数 {{tat-hidden:key}}:用于敏感信息脱敏。例如脚本 <code>echo {{tat-hidden:word}}</code> 配合参数 <code>{"word": "hello"}</code>(传参 Key 不带前缀),实际执行 <code>echo hello</code>,记录显示 <code>{"word": "******"}</code>。</li></ul><p>参数格式:Base64 编码字符串</p><p>入参限制:Base64 编码后的字符串长度不能超过 64KB</p>
|
|
6316
6227
|
:rtype: str
|
|
6317
6228
|
"""
|
|
6318
6229
|
return self._Content
|
|
@@ -6323,12 +6234,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6323
6234
|
|
|
6324
6235
|
@property
|
|
6325
6236
|
def InstanceIds(self):
|
|
6326
|
-
r"""
|
|
6327
|
-
|
|
6328
|
-
可通过对应云产品的查询实例接口获取实例 ID。目前支持实例类型:
|
|
6329
|
-
- CVM
|
|
6330
|
-
- Lighthouse
|
|
6331
|
-
- TAT 托管实例
|
|
6237
|
+
r"""<p>待执行命令的实例ID列表,上限200。</p><p>可通过对应云产品的查询实例接口获取实例 ID。目前支持实例类型:</p><ul><li>CVM</li><li>Lighthouse</li><li>TAT 托管实例</li></ul>
|
|
6332
6238
|
:rtype: list of str
|
|
6333
6239
|
"""
|
|
6334
6240
|
return self._InstanceIds
|
|
@@ -6339,7 +6245,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6339
6245
|
|
|
6340
6246
|
@property
|
|
6341
6247
|
def CommandName(self):
|
|
6342
|
-
r"""
|
|
6248
|
+
r"""<p>命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。</p>
|
|
6343
6249
|
:rtype: str
|
|
6344
6250
|
"""
|
|
6345
6251
|
return self._CommandName
|
|
@@ -6350,7 +6256,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6350
6256
|
|
|
6351
6257
|
@property
|
|
6352
6258
|
def Description(self):
|
|
6353
|
-
r"""
|
|
6259
|
+
r"""<p>命令描述。不超过120字符。</p>
|
|
6354
6260
|
:rtype: str
|
|
6355
6261
|
"""
|
|
6356
6262
|
return self._Description
|
|
@@ -6361,7 +6267,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6361
6267
|
|
|
6362
6268
|
@property
|
|
6363
6269
|
def CommandType(self):
|
|
6364
|
-
r"""
|
|
6270
|
+
r"""<p>命令类型,目前支持取值:SHELL、POWERSHELL、BAT。默认:SHELL。</p>
|
|
6365
6271
|
:rtype: str
|
|
6366
6272
|
"""
|
|
6367
6273
|
return self._CommandType
|
|
@@ -6372,7 +6278,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6372
6278
|
|
|
6373
6279
|
@property
|
|
6374
6280
|
def WorkingDirectory(self):
|
|
6375
|
-
r"""
|
|
6281
|
+
r"""<p>命令执行路径,对于 SHELL 命令默认为 /root,对于 POWERSHELL 命令默认为 C:\Program Files\qcloud\tat_agent\workdir。</p>
|
|
6376
6282
|
:rtype: str
|
|
6377
6283
|
"""
|
|
6378
6284
|
return self._WorkingDirectory
|
|
@@ -6383,7 +6289,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6383
6289
|
|
|
6384
6290
|
@property
|
|
6385
6291
|
def Timeout(self):
|
|
6386
|
-
r"""
|
|
6292
|
+
r"""<p>命令超时时间,默认60秒。取值范围[1, 86400]。</p>
|
|
6387
6293
|
:rtype: int
|
|
6388
6294
|
"""
|
|
6389
6295
|
return self._Timeout
|
|
@@ -6394,10 +6300,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6394
6300
|
|
|
6395
6301
|
@property
|
|
6396
6302
|
def SaveCommand(self):
|
|
6397
|
-
r"""
|
|
6398
|
-
<li> true:保存</li>
|
|
6399
|
-
<li> false:不保存</li>
|
|
6400
|
-
默认为 false。
|
|
6303
|
+
r"""<p>是否保存命令,取值范围:</p><li> true:保存</li><li> false:不保存</li>默认为 false。
|
|
6401
6304
|
:rtype: bool
|
|
6402
6305
|
"""
|
|
6403
6306
|
return self._SaveCommand
|
|
@@ -6408,12 +6311,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6408
6311
|
|
|
6409
6312
|
@property
|
|
6410
6313
|
def EnableParameter(self):
|
|
6411
|
-
r"""
|
|
6412
|
-
一旦创建,此值不提供修改。
|
|
6413
|
-
取值范围:
|
|
6414
|
-
<li> true:启用 </li>
|
|
6415
|
-
<li> false:不启用 </li>
|
|
6416
|
-
默认值:false。
|
|
6314
|
+
r"""<p>是否启用自定义参数功能。<br>一旦创建,此值不提供修改。<br>取值范围:</p><li> true:启用 </li><li> false:不启用 </li>默认值:false。
|
|
6417
6315
|
:rtype: bool
|
|
6418
6316
|
"""
|
|
6419
6317
|
return self._EnableParameter
|
|
@@ -6424,13 +6322,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6424
6322
|
|
|
6425
6323
|
@property
|
|
6426
6324
|
def DefaultParameters(self):
|
|
6427
|
-
r"""
|
|
6428
|
-
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
|
|
6429
|
-
仅在命令的 EnableParameter 为 true 时,才允许设置此参数。
|
|
6430
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
6431
|
-
如果 Parameters 未提供,将使用这里的默认值进行替换。
|
|
6432
|
-
自定义参数最多20个。
|
|
6433
|
-
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
|
|
6325
|
+
r"""<p>启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{"varA": "222"}。<br>key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。<br>仅在命令的 EnableParameter 为 true 时,才允许设置此参数。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>如果 Parameters 未提供,将使用这里的默认值进行替换。<br>自定义参数最多20个。<br>自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。</p>
|
|
6434
6326
|
:rtype: str
|
|
6435
6327
|
"""
|
|
6436
6328
|
return self._DefaultParameters
|
|
@@ -6441,10 +6333,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6441
6333
|
|
|
6442
6334
|
@property
|
|
6443
6335
|
def DefaultParameterConfs(self):
|
|
6444
|
-
r"""
|
|
6445
|
-
如果 Parameters 未提供,将使用这里的默认值进行替换。
|
|
6446
|
-
仅在命令的 EnableParameter 为 true 时,才允许设置此参数。
|
|
6447
|
-
参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
|
|
6336
|
+
r"""<p>自定义参数数组。 如果 Parameters 未提供,将使用这里的默认值进行替换。 自定义参数最多20个。<br>如果 Parameters 未提供,将使用这里的默认值进行替换。<br>仅在命令的 EnableParameter 为 true 时,才允许设置此参数。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。</p>
|
|
6448
6337
|
:rtype: list of DefaultParameterConf
|
|
6449
6338
|
"""
|
|
6450
6339
|
return self._DefaultParameterConfs
|
|
@@ -6455,12 +6344,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6455
6344
|
|
|
6456
6345
|
@property
|
|
6457
6346
|
def Parameters(self):
|
|
6458
|
-
r"""Command 的自定义参数。字段类型为json encoded string。如:{
|
|
6459
|
-
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
|
|
6460
|
-
仅在命令的 EnableParameter 为 true 时,才允许设置此参数。
|
|
6461
|
-
如果未提供该参数取值,将使用 DefaultParameters 或 DefaultParameterConfs 进行替换。
|
|
6462
|
-
自定义参数最多20个。
|
|
6463
|
-
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
|
|
6347
|
+
r"""<p>Command 的自定义参数。字段类型为json encoded string。如:{"varA": "222"}。<br>key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。<br>仅在命令的 EnableParameter 为 true 时,才允许设置此参数。<br>如果未提供该参数取值,将使用 DefaultParameters 或 DefaultParameterConfs 进行替换。<br>自定义参数最多20个。<br>自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。</p>
|
|
6464
6348
|
:rtype: str
|
|
6465
6349
|
"""
|
|
6466
6350
|
return self._Parameters
|
|
@@ -6471,7 +6355,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6471
6355
|
|
|
6472
6356
|
@property
|
|
6473
6357
|
def Tags(self):
|
|
6474
|
-
r"""
|
|
6358
|
+
r"""<p>如果保存命令,可为命令设置标签。列表长度不超过10。</p>
|
|
6475
6359
|
:rtype: list of Tag
|
|
6476
6360
|
"""
|
|
6477
6361
|
return self._Tags
|
|
@@ -6482,8 +6366,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6482
6366
|
|
|
6483
6367
|
@property
|
|
6484
6368
|
def Username(self):
|
|
6485
|
-
r"""
|
|
6486
|
-
使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。默认情况下,在 Linux 实例中以 root 用户执行命令;在Windows 实例中以 System 用户执行命令。
|
|
6369
|
+
r"""<p>在 CVM 或 Lighthouse 实例中执行命令的用户名称。<br>使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。默认情况下,在 Linux 实例中以 root 用户执行命令;在Windows 实例中以 System 用户执行命令。</p>
|
|
6487
6370
|
:rtype: str
|
|
6488
6371
|
"""
|
|
6489
6372
|
return self._Username
|
|
@@ -6494,7 +6377,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6494
6377
|
|
|
6495
6378
|
@property
|
|
6496
6379
|
def OutputCOSBucketUrl(self):
|
|
6497
|
-
r"""
|
|
6380
|
+
r"""<p>指定日志上传的cos bucket 地址,必须以https开头,如 https://BucketName-123454321.cos.ap-beijing.myqcloud.com。</p>
|
|
6498
6381
|
:rtype: str
|
|
6499
6382
|
"""
|
|
6500
6383
|
return self._OutputCOSBucketUrl
|
|
@@ -6505,10 +6388,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
|
|
|
6505
6388
|
|
|
6506
6389
|
@property
|
|
6507
6390
|
def OutputCOSKeyPrefix(self):
|
|
6508
|
-
r"""
|
|
6509
|
-
1. 可用数字、中英文和可见字符的组合,长度最多为60。
|
|
6510
|
-
2. 用 / 分割路径,可快速创建子目录。
|
|
6511
|
-
3. 不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。
|
|
6391
|
+
r"""<p>指定日志在cos bucket中的目录,目录命名有如下规则:</p><ol><li>可用数字、中英文和可见字符的组合,长度最多为60。</li><li>用 / 分割路径,可快速创建子目录。</li><li>不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。</li></ol>
|
|
6512
6392
|
:rtype: str
|
|
6513
6393
|
"""
|
|
6514
6394
|
return self._OutputCOSKeyPrefix
|
|
@@ -6562,9 +6442,9 @@ class RunCommandResponse(AbstractModel):
|
|
|
6562
6442
|
|
|
6563
6443
|
def __init__(self):
|
|
6564
6444
|
r"""
|
|
6565
|
-
:param _CommandId:
|
|
6445
|
+
:param _CommandId: <p>命令ID。</p>
|
|
6566
6446
|
:type CommandId: str
|
|
6567
|
-
:param _InvocationId:
|
|
6447
|
+
:param _InvocationId: <p>执行活动ID。</p>
|
|
6568
6448
|
:type InvocationId: str
|
|
6569
6449
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6570
6450
|
:type RequestId: str
|
|
@@ -6575,7 +6455,7 @@ class RunCommandResponse(AbstractModel):
|
|
|
6575
6455
|
|
|
6576
6456
|
@property
|
|
6577
6457
|
def CommandId(self):
|
|
6578
|
-
r"""
|
|
6458
|
+
r"""<p>命令ID。</p>
|
|
6579
6459
|
:rtype: str
|
|
6580
6460
|
"""
|
|
6581
6461
|
return self._CommandId
|
|
@@ -6586,7 +6466,7 @@ class RunCommandResponse(AbstractModel):
|
|
|
6586
6466
|
|
|
6587
6467
|
@property
|
|
6588
6468
|
def InvocationId(self):
|
|
6589
|
-
r"""
|
|
6469
|
+
r"""<p>执行活动ID。</p>
|
|
6590
6470
|
:rtype: str
|
|
6591
6471
|
"""
|
|
6592
6472
|
return self._InvocationId
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tat
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.87
|
|
4
4
|
Summary: Tencent Cloud Tat SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.87
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.87
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.31
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|