public class TatClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
TatClient(Credential credential,
String region) |
TatClient(Credential credential,
String region,
ClientProfile profile) |
Modifier and Type | Method and Description |
---|---|
CreateCommandResponse |
CreateCommand(CreateCommandRequest req)
此接口用于创建命令。
|
DeleteCommandResponse |
DeleteCommand(DeleteCommandRequest req)
此接口用于删除命令。
|
DescribeAutomationAgentStatusResponse |
DescribeAutomationAgentStatus(DescribeAutomationAgentStatusRequest req)
此接口用于查询自动化助手客户端的状态。
|
DescribeCommandsResponse |
DescribeCommands(DescribeCommandsRequest req)
此接口用于查询命令详情。
|
DescribeInvocationsResponse |
DescribeInvocations(DescribeInvocationsRequest req)
此接口用于查询执行活动详情。
|
DescribeInvocationTasksResponse |
DescribeInvocationTasks(DescribeInvocationTasksRequest req)
此接口用于查询执行任务详情。
|
DescribeRegionsResponse |
DescribeRegions(DescribeRegionsRequest req)
此接口用于查询 TAT 产品后台地域列表。
RegionState 为 AVAILABLE,代表该地域的 TAT 后台服务已经可用;未返回,代表该地域的 TAT 后台服务尚不可用。
|
InvokeCommandResponse |
InvokeCommand(InvokeCommandRequest req)
在指定的实例上触发命令,调用成功返回执行活动ID(inv-xxxxxxxx),每个执行活动内部有一个或多个执行任务(invt-xxxxxxxx),每个执行任务代表命令在一台 CVM 或一台 Lighthouse 上的执行记录。
如果指定实例未安装 agent,或 agent 不在线,返回失败
如果命令类型与 agent 运行环境不符,返回失败
指定的实例需要处于 VPC 网络
指定的实例需要处于 RUNNING 状态
不可同时指定 CVM 和 Lighthouse
|
ModifyCommandResponse |
ModifyCommand(ModifyCommandRequest req)
此接口用于修改命令。
|
PreviewReplacedCommandContentResponse |
PreviewReplacedCommandContent(PreviewReplacedCommandContentRequest req)
此接口用于预览自定义参数替换后的命令内容。不会触发真实执行。
|
RunCommandResponse |
RunCommand(RunCommandRequest req)
执行命令,调用成功返回执行活动ID(inv-xxxxxxxx),每个执行活动内部有一个或多个执行任务(invt-xxxxxxxx),每个执行任务代表命令在一台 CVM 或一台 Lighthouse 上的执行记录。
如果指定实例未安装 agent,或 agent 不在线,返回失败
如果命令类型与 agent 运行环境不符,返回失败
指定的实例需要处于 VPC 网络
指定的实例需要处于 `RUNNING` 状态
不可同时指定 CVM 和 Lighthouse
|
call, getClientProfile, getCredential, getRegion, internalRequest, retry, setClientProfile, setCredential, setRegion
public TatClient(Credential credential, String region)
public TatClient(Credential credential, String region, ClientProfile profile)
public CreateCommandResponse CreateCommand(CreateCommandRequest req) throws TencentCloudSDKException
req
- CreateCommandRequestTencentCloudSDKException
public DeleteCommandResponse DeleteCommand(DeleteCommandRequest req) throws TencentCloudSDKException
req
- DeleteCommandRequestTencentCloudSDKException
public DescribeAutomationAgentStatusResponse DescribeAutomationAgentStatus(DescribeAutomationAgentStatusRequest req) throws TencentCloudSDKException
req
- DescribeAutomationAgentStatusRequestTencentCloudSDKException
public DescribeCommandsResponse DescribeCommands(DescribeCommandsRequest req) throws TencentCloudSDKException
req
- DescribeCommandsRequestTencentCloudSDKException
public DescribeInvocationTasksResponse DescribeInvocationTasks(DescribeInvocationTasksRequest req) throws TencentCloudSDKException
req
- DescribeInvocationTasksRequestTencentCloudSDKException
public DescribeInvocationsResponse DescribeInvocations(DescribeInvocationsRequest req) throws TencentCloudSDKException
req
- DescribeInvocationsRequestTencentCloudSDKException
public DescribeRegionsResponse DescribeRegions(DescribeRegionsRequest req) throws TencentCloudSDKException
req
- DescribeRegionsRequestTencentCloudSDKException
public InvokeCommandResponse InvokeCommand(InvokeCommandRequest req) throws TencentCloudSDKException
req
- InvokeCommandRequestTencentCloudSDKException
public ModifyCommandResponse ModifyCommand(ModifyCommandRequest req) throws TencentCloudSDKException
req
- ModifyCommandRequestTencentCloudSDKException
public PreviewReplacedCommandContentResponse PreviewReplacedCommandContent(PreviewReplacedCommandContentRequest req) throws TencentCloudSDKException
req
- PreviewReplacedCommandContentRequestTencentCloudSDKException
public RunCommandResponse RunCommand(RunCommandRequest req) throws TencentCloudSDKException
req
- RunCommandRequestTencentCloudSDKException
Copyright © 2021. All rights reserved.