public class CreateInvokerRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateInvokerRequest() | 
| CreateInvokerRequest(CreateInvokerRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getCommandId()Get 远程命令ID。
可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取。 | 
| String[] | getInstanceIds()Get 触发器关联的实例ID。列表上限 100。
可通过对应云产品的查询实例接口获取实例 ID。目前支持实例类型:CVM、Lighthouse、TAT 托管实例。
实例需要安装 TAT 客户端, 且客户端为 Online 状态。可通过 [DescribeAutomationAgentStatus(查询客户端状态)](https://cloud.tencent.com/document/api/1340/52682) 接口查询客户端状态。 | 
| String | getName()Get 执行器名称。长度不超过 120 字符。 | 
| String | getParameters()Get 命令自定义参数。字段类型为 JSON encode string。
仅在 CommandId 所指命令的 EnableParameter 为 true 时,才允许设置此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。 | 
| ScheduleSettings | getScheduleSettings()Get 周期执行器设置。
当执行器类型为 `SCHEDULE` 时,必须指定此参数。 | 
| String | getType()Get 执行器类型。
可选取值(当前仅支持一种):
- `SCHEDULE`:周期类型执行器。 | 
| String | getUsername()Get 命令执行用户。长度不超过 256 字符。 | 
| void | setCommandId(String CommandId)Set 远程命令ID。
可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取。 | 
| void | setInstanceIds(String[] InstanceIds)Set 触发器关联的实例ID。列表上限 100。
可通过对应云产品的查询实例接口获取实例 ID。目前支持实例类型:CVM、Lighthouse、TAT 托管实例。
实例需要安装 TAT 客户端, 且客户端为 Online 状态。可通过 [DescribeAutomationAgentStatus(查询客户端状态)](https://cloud.tencent.com/document/api/1340/52682) 接口查询客户端状态。 | 
| void | setName(String Name)Set 执行器名称。长度不超过 120 字符。 | 
| void | setParameters(String Parameters)Set 命令自定义参数。字段类型为 JSON encode string。
仅在 CommandId 所指命令的 EnableParameter 为 true 时,才允许设置此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。 | 
| void | setScheduleSettings(ScheduleSettings ScheduleSettings)Set 周期执行器设置。
当执行器类型为 `SCHEDULE` 时,必须指定此参数。 | 
| void | setType(String Type)Set 执行器类型。
可选取值(当前仅支持一种):
- `SCHEDULE`:周期类型执行器。 | 
| void | setUsername(String Username)Set 命令执行用户。长度不超过 256 字符。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateInvokerRequest()
public CreateInvokerRequest(CreateInvokerRequest source)
public String getName()
public void setName(String Name)
Name - 执行器名称。长度不超过 120 字符。public String getType()
public void setType(String Type)
Type - 执行器类型。
可选取值(当前仅支持一种):
- `SCHEDULE`:周期类型执行器。public String getCommandId()
public void setCommandId(String CommandId)
CommandId - 远程命令ID。
可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取。public String[] getInstanceIds()
public void setInstanceIds(String[] InstanceIds)
InstanceIds - 触发器关联的实例ID。列表上限 100。
可通过对应云产品的查询实例接口获取实例 ID。目前支持实例类型:CVM、Lighthouse、TAT 托管实例。
实例需要安装 TAT 客户端, 且客户端为 Online 状态。可通过 [DescribeAutomationAgentStatus(查询客户端状态)](https://cloud.tencent.com/document/api/1340/52682) 接口查询客户端状态。public String getUsername()
public void setUsername(String Username)
Username - 命令执行用户。长度不超过 256 字符。public String getParameters()
public void setParameters(String Parameters)
Parameters - 命令自定义参数。字段类型为 JSON encode string。
仅在 CommandId 所指命令的 EnableParameter 为 true 时,才允许设置此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。public ScheduleSettings getScheduleSettings()
public void setScheduleSettings(ScheduleSettings ScheduleSettings)
ScheduleSettings - 周期执行器设置。
当执行器类型为 `SCHEDULE` 时,必须指定此参数。Copyright © 2025. All rights reserved.