Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudElasticsearchDescribeIndexList() *schema.Resource
- func DataSourceTencentCloudElasticsearchDiagnose() *schema.Resource
- func DataSourceTencentCloudElasticsearchInstanceLogs() *schema.Resource
- func DataSourceTencentCloudElasticsearchInstanceOperations() *schema.Resource
- func DataSourceTencentCloudElasticsearchInstancePluginList() *schema.Resource
- func DataSourceTencentCloudElasticsearchInstances() *schema.Resource
- func DataSourceTencentCloudElasticsearchLogstashInstanceLogs() *schema.Resource
- func DataSourceTencentCloudElasticsearchLogstashInstanceOperations() *schema.Resource
- func DataSourceTencentCloudElasticsearchViews() *schema.Resource
- func ResourceTencentCloudElasticsearchDiagnose() *schema.Resource
- func ResourceTencentCloudElasticsearchDiagnoseInstance() *schema.Resource
- func ResourceTencentCloudElasticsearchIndex() *schema.Resource
- func ResourceTencentCloudElasticsearchInstance() *schema.Resource
- func ResourceTencentCloudElasticsearchLogstash() *schema.Resource
- func ResourceTencentCloudElasticsearchLogstashPipeline() *schema.Resource
- func ResourceTencentCloudElasticsearchRestartInstanceOperation() *schema.Resource
- func ResourceTencentCloudElasticsearchRestartKibanaOperation() *schema.Resource
- func ResourceTencentCloudElasticsearchRestartLogstashInstanceOperation() *schema.Resource
- func ResourceTencentCloudElasticsearchRestartNodesOperation() *schema.Resource
- func ResourceTencentCloudElasticsearchSecurityGroup() *schema.Resource
- func ResourceTencentCloudElasticsearchStartLogstashPipelineOperation() *schema.Resource
- func ResourceTencentCloudElasticsearchStopLogstashPipelineOperation() *schema.Resource
- func ResourceTencentCloudElasticsearchUpdatePluginsOperation() *schema.Resource
- type ElasticsearchService
- func (me *ElasticsearchService) DeleteElasticsearchIndexByName(ctx context.Context, instanceId, indexType, indexName string) (errRet error)
- func (me *ElasticsearchService) DeleteElasticsearchLogstashById(ctx context.Context, instanceId string) (errRet error)
- func (me *ElasticsearchService) DeleteElasticsearchLogstashPipelineById(ctx context.Context, instanceId, pipelineId string) (errRet error)
- func (me *ElasticsearchService) DeleteInstance(ctx context.Context, instanceId string) error
- func (me *ElasticsearchService) DescribeElasticsearchDescribeIndexListByFilter(ctx context.Context, param map[string]interface{}) (DescribeIndexList []*elasticsearch.IndexMetaField, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchDiagnoseByFilter(ctx context.Context, param map[string]interface{}) (diagnose []*elasticsearch.DiagnoseResult, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchDictionariesById(ctx context.Context, instanceId string) (Dictionaries *elasticsearch.DiagnoseResult, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchIndexByName(ctx context.Context, instanceId, indexType, indexName string) (index *es.IndexMetaField, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchInstanceLogsByFilter(ctx context.Context, param map[string]interface{}) (elasticsearchInstanceLogs []*es.InstanceLog, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchInstanceOperationsByFilter(ctx context.Context, param map[string]interface{}) (instanceOperations []*elasticsearch.Operation, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchInstancePluginListByFilter(ctx context.Context, param map[string]interface{}) (InstancePluginList []*elasticsearch.DescribeInstancePluginInfo, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchLogstashById(ctx context.Context, instanceId string) (logstash *es.LogstashInstanceInfo, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchLogstashInstanceLogsByFilter(ctx context.Context, param map[string]interface{}) (logstashInstanceLogs []*elasticsearch.InstanceLog, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchLogstashInstanceOperationsByFilter(ctx context.Context, param map[string]interface{}) (logstashInstanceOperations []*elasticsearch.Operation, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchLogstashPipelineById(ctx context.Context, instanceId, pipelineId string) (logstashPipeline *es.LogstashPipelineInfo, errRet error)
- func (me *ElasticsearchService) DescribeElasticsearchViewsByFilter(ctx context.Context, param map[string]interface{}) (clusterView *elasticsearch.ClusterView, nodesViews []*elasticsearch.NodeView, ...)
- func (me *ElasticsearchService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *es.InstanceInfo, errRet error)
- func (me *ElasticsearchService) DescribeInstancesByFilter(ctx context.Context, instanceId, instanceName string, tags map[string]string) (instances []*es.InstanceInfo, errRet error)
- func (me *ElasticsearchService) ElasticsearchInstanceRefreshFunc(instanceId string, failStates []string) resource.StateRefreshFunc
- func (me *ElasticsearchService) ElasticsearchLogstashPipelineStateRefreshFunc(instanceId, pipelineId string, failStates []string) resource.StateRefreshFunc
- func (me *ElasticsearchService) ElasticsearchLogstashStateRefreshFunc(instanceId string, failStates []string) resource.StateRefreshFunc
- func (me *ElasticsearchService) GetDiagnoseSettingsById(ctx context.Context, instanceId string) (diagnoseSettings *es.GetDiagnoseSettingsResponseParams, errRet error)
- func (me *ElasticsearchService) UpdateDiagnoseSettings(ctx context.Context, instanceId string, params map[string]interface{}) error
- func (me *ElasticsearchService) UpdateInstance(ctx context.Context, ...) error
- func (me *ElasticsearchService) UpdateInstanceLicense(ctx context.Context, instanceId, licenseType string) error
- func (me *ElasticsearchService) UpdateInstanceVersion(ctx context.Context, instanceId, version string) error
- func (me *ElasticsearchService) UpdateJdk(ctx context.Context, instanceId string, params map[string]interface{}) error
- func (me *ElasticsearchService) UpdateLogstashInstance(ctx context.Context, instanceId string, params map[string]interface{}) error
Constants ¶
View Source
const ( ES_CHARGE_TYPE_PREPAID = "PREPAID" ES_CHARGE_TYPE_POSTPAID_BY_HOUR = "POSTPAID_BY_HOUR" ES_DEPLOY_MODE_SINGLE_REGION = 0 ES_DEPLOY_MODE_MULTI_REGION = 1 ES_LICENSE_TYPE_OSS = "oss" ES_LICENSE_TYPE_BASIC = "basic" ES_LICENSE_TYPE_PLATINUM = "platinum" ES_BASIC_SECURITY_TYPE_ON = 2 ES_BASIC_SECURITY_TYPE_OFF = 1 ES_NODE_TYPE_HOT_DATA = "hotData" ES_NODE_TYPE_WARM_DATA = "warmData" ES_NODE_TYPE_DEDICATED_MATER = "dedicatedMaster" ES_RENEW_FLAG_AUTO = "RENEW_FLAG_AUTO" ES_RENEW_FLAG_MANUAL = "RENEW_FLAG_MANUAL" ES_INSTANCE_STATUS_PROCESSING = 0 ES_INSTANCE_STATUS_NORMAL = 1 ES_INSTANCE_STATUS_CREATING = 2 ES_INSTANCE_STATUS_STOP = -1 ES_INSTANCE_STATUS_DESTROYING = -2 ES_INSTANCE_STATUS_DESTROYED = -3 ES_KIBANA_PUBLIC_ACCESS_OPEN = "OPEN" ES_KIBANA_PUBLIC_ACCESS_CLOSE = "CLOSE" )
Variables ¶
View Source
var ES_BASIC_SECURITY_TYPE = []int{ ES_BASIC_SECURITY_TYPE_ON, ES_BASIC_SECURITY_TYPE_OFF, }
View Source
var ES_CHARGE_TYPE = []string{ ES_CHARGE_TYPE_POSTPAID_BY_HOUR, ES_CHARGE_TYPE_PREPAID, }
View Source
var ES_DEPLOY_MODE = []int{ ES_DEPLOY_MODE_SINGLE_REGION, ES_DEPLOY_MODE_MULTI_REGION, }
View Source
var ES_KIBANA_PUBLIC_ACCESS = []string{ ES_KIBANA_PUBLIC_ACCESS_OPEN, ES_KIBANA_PUBLIC_ACCESS_CLOSE, }
View Source
var ES_LICENSE_TYPE = []string{ ES_LICENSE_TYPE_BASIC, ES_LICENSE_TYPE_PLATINUM, ES_LICENSE_TYPE_OSS, }
View Source
var ES_NODE_DISK_TYPE = []string{ svccvm.CVM_DISK_TYPE_CLOUD_SSD, svccvm.CVM_DISK_TYPE_CLOUD_PREMIUM, svccvm.CVM_DISK_TYPE_CLOUD_HSSD, }
View Source
var ES_NODE_TYPE = []string{ ES_NODE_TYPE_HOT_DATA, ES_NODE_TYPE_WARM_DATA, ES_NODE_TYPE_DEDICATED_MATER, }
View Source
var ES_RENEW_FLAG = []string{ ES_RENEW_FLAG_AUTO, ES_RENEW_FLAG_MANUAL, }
Functions ¶
Types ¶
type ElasticsearchService ¶
type ElasticsearchService struct {
// contains filtered or unexported fields
}
func NewElasticsearchService ¶
func NewElasticsearchService(client *connectivity.TencentCloudClient) ElasticsearchService
func (*ElasticsearchService) DeleteElasticsearchIndexByName ¶
func (me *ElasticsearchService) DeleteElasticsearchIndexByName(ctx context.Context, instanceId, indexType, indexName string) (errRet error)
func (*ElasticsearchService) DeleteElasticsearchLogstashById ¶
func (me *ElasticsearchService) DeleteElasticsearchLogstashById(ctx context.Context, instanceId string) (errRet error)
func (*ElasticsearchService) DeleteElasticsearchLogstashPipelineById ¶
func (me *ElasticsearchService) DeleteElasticsearchLogstashPipelineById(ctx context.Context, instanceId, pipelineId string) (errRet error)
func (*ElasticsearchService) DeleteInstance ¶
func (me *ElasticsearchService) DeleteInstance(ctx context.Context, instanceId string) error
func (*ElasticsearchService) DescribeElasticsearchDescribeIndexListByFilter ¶
func (me *ElasticsearchService) DescribeElasticsearchDescribeIndexListByFilter(ctx context.Context, param map[string]interface{}) (DescribeIndexList []*elasticsearch.IndexMetaField, errRet error)
func (*ElasticsearchService) DescribeElasticsearchDiagnoseByFilter ¶
func (me *ElasticsearchService) DescribeElasticsearchDiagnoseByFilter(ctx context.Context, param map[string]interface{}) (diagnose []*elasticsearch.DiagnoseResult, errRet error)
func (*ElasticsearchService) DescribeElasticsearchDictionariesById ¶
func (me *ElasticsearchService) DescribeElasticsearchDictionariesById(ctx context.Context, instanceId string) (Dictionaries *elasticsearch.DiagnoseResult, errRet error)
func (*ElasticsearchService) DescribeElasticsearchIndexByName ¶
func (me *ElasticsearchService) DescribeElasticsearchIndexByName(ctx context.Context, instanceId, indexType, indexName string) (index *es.IndexMetaField, errRet error)
func (*ElasticsearchService) DescribeElasticsearchInstanceLogsByFilter ¶
func (me *ElasticsearchService) DescribeElasticsearchInstanceLogsByFilter(ctx context.Context, param map[string]interface{}) (elasticsearchInstanceLogs []*es.InstanceLog, errRet error)
func (*ElasticsearchService) DescribeElasticsearchInstanceOperationsByFilter ¶
func (me *ElasticsearchService) DescribeElasticsearchInstanceOperationsByFilter(ctx context.Context, param map[string]interface{}) (instanceOperations []*elasticsearch.Operation, errRet error)
func (*ElasticsearchService) DescribeElasticsearchInstancePluginListByFilter ¶
func (me *ElasticsearchService) DescribeElasticsearchInstancePluginListByFilter(ctx context.Context, param map[string]interface{}) (InstancePluginList []*elasticsearch.DescribeInstancePluginInfo, errRet error)
func (*ElasticsearchService) DescribeElasticsearchLogstashById ¶
func (me *ElasticsearchService) DescribeElasticsearchLogstashById(ctx context.Context, instanceId string) (logstash *es.LogstashInstanceInfo, errRet error)
func (*ElasticsearchService) DescribeElasticsearchLogstashInstanceLogsByFilter ¶
func (me *ElasticsearchService) DescribeElasticsearchLogstashInstanceLogsByFilter(ctx context.Context, param map[string]interface{}) (logstashInstanceLogs []*elasticsearch.InstanceLog, errRet error)
func (*ElasticsearchService) DescribeElasticsearchLogstashInstanceOperationsByFilter ¶
func (me *ElasticsearchService) DescribeElasticsearchLogstashInstanceOperationsByFilter(ctx context.Context, param map[string]interface{}) (logstashInstanceOperations []*elasticsearch.Operation, errRet error)
func (*ElasticsearchService) DescribeElasticsearchLogstashPipelineById ¶
func (me *ElasticsearchService) DescribeElasticsearchLogstashPipelineById(ctx context.Context, instanceId, pipelineId string) (logstashPipeline *es.LogstashPipelineInfo, errRet error)
func (*ElasticsearchService) DescribeElasticsearchViewsByFilter ¶
func (me *ElasticsearchService) DescribeElasticsearchViewsByFilter(ctx context.Context, param map[string]interface{}) (clusterView *elasticsearch.ClusterView, nodesViews []*elasticsearch.NodeView, kibanasViews []*elasticsearch.KibanaView, errRet error)
func (*ElasticsearchService) DescribeInstanceById ¶
func (me *ElasticsearchService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *es.InstanceInfo, errRet error)
func (*ElasticsearchService) DescribeInstancesByFilter ¶
func (me *ElasticsearchService) DescribeInstancesByFilter(ctx context.Context, instanceId, instanceName string, tags map[string]string) (instances []*es.InstanceInfo, errRet error)
func (*ElasticsearchService) ElasticsearchInstanceRefreshFunc ¶
func (me *ElasticsearchService) ElasticsearchInstanceRefreshFunc(instanceId string, failStates []string) resource.StateRefreshFunc
func (*ElasticsearchService) ElasticsearchLogstashPipelineStateRefreshFunc ¶
func (me *ElasticsearchService) ElasticsearchLogstashPipelineStateRefreshFunc(instanceId, pipelineId string, failStates []string) resource.StateRefreshFunc
func (*ElasticsearchService) ElasticsearchLogstashStateRefreshFunc ¶
func (me *ElasticsearchService) ElasticsearchLogstashStateRefreshFunc(instanceId string, failStates []string) resource.StateRefreshFunc
func (*ElasticsearchService) GetDiagnoseSettingsById ¶
func (me *ElasticsearchService) GetDiagnoseSettingsById(ctx context.Context, instanceId string) (diagnoseSettings *es.GetDiagnoseSettingsResponseParams, errRet error)
func (*ElasticsearchService) UpdateDiagnoseSettings ¶
func (*ElasticsearchService) UpdateInstance ¶
func (me *ElasticsearchService) UpdateInstance(ctx context.Context, instanceId, instanceName, password, kibanaPublicAccess string, basicSecurityType int64, nodeList []*es.NodeInfo, nodeTypeInfo *es.WebNodeTypeInfo, esAcl *es.EsAcl) error
UpdateInstance FIXME: use *Request instead of these suck params
func (*ElasticsearchService) UpdateInstanceLicense ¶
func (me *ElasticsearchService) UpdateInstanceLicense(ctx context.Context, instanceId, licenseType string) error
func (*ElasticsearchService) UpdateInstanceVersion ¶
func (me *ElasticsearchService) UpdateInstanceVersion(ctx context.Context, instanceId, version string) error
func (*ElasticsearchService) UpdateLogstashInstance ¶
Source Files ¶
- data_source_tc_elasticsearch_describe_index_list.go
- data_source_tc_elasticsearch_diagnose.go
- data_source_tc_elasticsearch_instance_logs.go
- data_source_tc_elasticsearch_instance_operations.go
- data_source_tc_elasticsearch_instance_plugin_list.go
- data_source_tc_elasticsearch_instances.go
- data_source_tc_elasticsearch_logstash_instance_logs.go
- data_source_tc_elasticsearch_logstash_instance_operations.go
- data_source_tc_elasticsearch_views.go
- extension_elasticsearch.go
- resource_tc_elasticsearch_diagnose.go
- resource_tc_elasticsearch_diagnose_instance.go
- resource_tc_elasticsearch_index.go
- resource_tc_elasticsearch_instance.go
- resource_tc_elasticsearch_logstash.go
- resource_tc_elasticsearch_logstash_pipeline.go
- resource_tc_elasticsearch_restart_instance_operation.go
- resource_tc_elasticsearch_restart_kibana_operation.go
- resource_tc_elasticsearch_restart_logstash_instance_operation.go
- resource_tc_elasticsearch_restart_nodes_operation.go
- resource_tc_elasticsearch_security_group.go
- resource_tc_elasticsearch_start_logstash_pipeline_operation.go
- resource_tc_elasticsearch_stop_logstash_pipeline_operation.go
- resource_tc_elasticsearch_update_plugins_operation.go
- service_tencentcloud_elasticsearch.go
Click to show internal directories.
Click to hide internal directories.