public class EsClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
EsClient(Credential credential,
String region)
构造client
|
EsClient(Credential credential,
String region,
ClientProfile profile)
构造client
|
Modifier and Type | Method and Description |
---|---|
CreateInstanceResponse |
CreateInstance(CreateInstanceRequest req)
创建指定规格的ES集群实例
|
DeleteInstanceResponse |
DeleteInstance(DeleteInstanceRequest req)
销毁集群实例
|
DescribeInstanceLogsResponse |
DescribeInstanceLogs(DescribeInstanceLogsRequest req)
查询用户该地域下符合条件的ES集群的日志
|
DescribeInstanceOperationsResponse |
DescribeInstanceOperations(DescribeInstanceOperationsRequest req)
查询实例指定条件下的操作记录
|
DescribeInstancesResponse |
DescribeInstances(DescribeInstancesRequest req)
查询用户该地域下符合条件的所有实例
|
RestartInstanceResponse |
RestartInstance(RestartInstanceRequest req)
重启ES集群实例(用于系统版本更新等操作)
|
UpdateInstanceResponse |
UpdateInstance(UpdateInstanceRequest req)
对集群进行扩缩容,修改实例名称,修改配置,重置密码, 添加Kibana黑白名单等操作。参数中InstanceId为必传参数,ForceRestart为选填参数,剩余参数传递组合及含义如下:
InstanceName:修改实例名称(仅用于标识实例) NodeNum:集群数据节点横向扩缩容 NodeType, DiskSize:集群数据节点纵向扩缩容 MasterNodeNum: 集群专用主节点横向扩缩容 MasterNodeType, MasterNodeDiskSize: 集群专用主节点纵向扩缩容 EsConfig:修改集群配置 Password:修改集群密码 EsAcl:修改Kibana密码 CosBackUp: 设置集群COS自动备份信息 以上参数组合只能传递一种,多传或少传均会导致请求失败 |
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegion
public EsClient(Credential credential, String region)
credential
- 认证信息实例region
- 产品地域public EsClient(Credential credential, String region, ClientProfile profile)
credential
- 认证信息实例region
- 产品地域profile
- 配置实例public CreateInstanceResponse CreateInstance(CreateInstanceRequest req) throws TencentCloudSDKException
req
- CreateInstanceRequestTencentCloudSDKException
public DeleteInstanceResponse DeleteInstance(DeleteInstanceRequest req) throws TencentCloudSDKException
req
- DeleteInstanceRequestTencentCloudSDKException
public DescribeInstanceLogsResponse DescribeInstanceLogs(DescribeInstanceLogsRequest req) throws TencentCloudSDKException
req
- DescribeInstanceLogsRequestTencentCloudSDKException
public DescribeInstanceOperationsResponse DescribeInstanceOperations(DescribeInstanceOperationsRequest req) throws TencentCloudSDKException
req
- DescribeInstanceOperationsRequestTencentCloudSDKException
public DescribeInstancesResponse DescribeInstances(DescribeInstancesRequest req) throws TencentCloudSDKException
req
- DescribeInstancesRequestTencentCloudSDKException
public RestartInstanceResponse RestartInstance(RestartInstanceRequest req) throws TencentCloudSDKException
req
- RestartInstanceRequestTencentCloudSDKException
public UpdateInstanceResponse UpdateInstance(UpdateInstanceRequest req) throws TencentCloudSDKException
req
- UpdateInstanceRequestTencentCloudSDKException
Copyright © 2019. All rights reserved.