Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudClickhouseBackupJobDetail() *schema.Resource
- func DataSourceTencentCloudClickhouseBackupJobs() *schema.Resource
- func DataSourceTencentCloudClickhouseBackupTables() *schema.Resource
- func DataSourceTencentCloudClickhouseInstanceNodes() *schema.Resource
- func DataSourceTencentCloudClickhouseInstanceShards() *schema.Resource
- func DataSourceTencentCloudClickhouseSpec() *schema.Resource
- func ResourceTencentCloudClickhouseAccount() *schema.Resource
- func ResourceTencentCloudClickhouseAccountPermission() *schema.Resource
- func ResourceTencentCloudClickhouseBackup() *schema.Resource
- func ResourceTencentCloudClickhouseBackupStrategy() *schema.Resource
- func ResourceTencentCloudClickhouseDeleteBackupData() *schema.Resource
- func ResourceTencentCloudClickhouseInstance() *schema.Resource
- func ResourceTencentCloudClickhouseKeyvalConfig() *schema.Resource
- func ResourceTencentCloudClickhouseRecoverBackupJob() *schema.Resource
- func ResourceTencentCloudClickhouseXmlConfig() *schema.Resource
- type AccountInfo
- type AccountPermission
- type CdwchService
- func (me *CdwchService) ActionAlterCkUser(ctx context.Context, apiType string, userInfo map[string]interface{}) error
- func (me *CdwchService) CreateBackUpSchedule(ctx context.Context, instanceId string, paramMap map[string]interface{}) error
- func (me *CdwchService) DescribeBackUpScheduleById(ctx context.Context, instanceId string) (backup *cdwch.DescribeBackUpScheduleResponseParams, errRet error)
- func (me *CdwchService) DescribeCdwchAccountPermission(ctx context.Context, instanceId, cluster, username string) (userNewPrivilege *cdwch.ModifyUserNewPrivilegeRequestParams, errRet error)
- func (me *CdwchService) DescribeCkSqlApis(ctx context.Context, instanceId, cluster, userName, apiType string) error
- func (me *CdwchService) DescribeClickhouseAccountByUserName(ctx context.Context, instanceId, userName string) (accounts []*AccountInfo, errRet error)
- func (me *CdwchService) DescribeClickhouseBackupJobsByFilter(ctx context.Context, param map[string]interface{}) (backupJobs []*clickhouse.BackUpJobDisplay, errRet error)
- func (me *CdwchService) DescribeClickhouseBackupTablesByFilter(ctx context.Context, instanceId string) (backupTables []*clickhouse.BackupTableContent, errRet error)
- func (me *CdwchService) DescribeClickhouseInstanceNodesByFilter(ctx context.Context, param map[string]interface{}) (instanceNodes []*cdwch.InstanceNode, errRet error)
- func (me *CdwchService) DescribeClickhouseInstanceShardsByFilter(ctx context.Context, param map[string]interface{}) (instanceShards *cdwch.DescribeInstanceShardsResponseParams, errRet error)
- func (me *CdwchService) DescribeClickhouseKeyvalConfigById(ctx context.Context, instanceId string) (config []*cdwch.InstanceConfigInfo, errRet error)
- func (me *CdwchService) DescribeClickhouseSpecByFilter(ctx context.Context, param map[string]interface{}) (spec *cdwch.DescribeSpecResponseParams, errRet error)
- func (me *CdwchService) DescribeClickhouseXmlConfigById(ctx context.Context, instanceId string) (xmlConfig []*cdwch.ClusterConfigsInfoFromEMR, errRet error)
- func (me *CdwchService) DescribeInstance(ctx context.Context, instanceId string) (InstanceInfo *cdwch.InstanceInfo, errRet error)
- func (me *CdwchService) DescribeInstanceClusters(ctx context.Context, instanceId string) (clusterInfos []*cdwch.ClusterInfo, errRet error)
- func (me *CdwchService) DescribeInstancesNew(ctx context.Context, instanceId string) (instancesList []*cdwch.InstanceInfo, errRet error)
- func (me *CdwchService) DestroyInstance(ctx context.Context, instanceId string) (errRet error)
- func (me *CdwchService) InstanceStateRefreshFunc(instanceId string) resource.StateRefreshFunc
- func (me *CdwchService) ResizeDisk(ctx context.Context, instanceId string, nodeType string, resizeDisk int) (errRet error)
- func (me *CdwchService) ScaleOutInstance(ctx context.Context, instanceId string, nodeType string, ...) (errRet error)
- func (me *CdwchService) ScaleUpInstance(ctx context.Context, instanceId, nodeType, specName string) (errRet error)
Constants ¶
View Source
const ( CDWCH_PAY_MODE_HOUR = "hour" CDWCH_PAY_MODE_PREPAY = "prepay" )
View Source
const ( CDWCH_CHARGE_TYPE_PREPAID = "PREPAID" CDWCH_CHARGE_TYPE_POSTPAID_BY_HOUR = "POSTPAID_BY_HOUR" )
View Source
const ( NODE_TYPE_CLICKHOUSE = "DATA" NODE_TYPE_ZOOKEEPER = "COMMON" )
View Source
const ( OPERATION_TYPE_CREATE = "create" OPERATION_TYPE_UPDATE = "update" )
View Source
const ( SCHEDULE_TYPE_DATA = "data" SCHEDULE_TYPE_META = "meta" )
View Source
const ( ACTION_ALTER_CK_USER_ADD_SYSTEM_USER = "AddSystemUser" ACTION_ALTER_CK_USER_UPDATE_SYSTEM_USER = "UpdateSystemUser" )
View Source
const ( DESCRIBE_CK_SQL_APIS_GET_SYSTEM_USERS = "GetSystemUsers" DESCRIBE_CK_SQL_APIS_REVOKE_CLUSTER_USER = "RevokeClusterUser" DESCRIBE_CK_SQL_APIS_DELETE_SYSTEM_USER = "DeleteSystemUser" )
Variables ¶
View Source
var PAY_MODE_TO_CHARGE_TYPE = map[string]string{ CDWCH_PAY_MODE_HOUR: CDWCH_CHARGE_TYPE_POSTPAID_BY_HOUR, CDWCH_PAY_MODE_PREPAY: CDWCH_CHARGE_TYPE_PREPAID, }
Functions ¶
func DataSourceTencentCloudClickhouseInstanceNodes ¶ added in v1.81.67
Types ¶
type AccountInfo ¶
type AccountPermission ¶
type AccountPermission struct { InstanceId string `json:"InstanceId"` Cluster string `json:"Cluster"` UserName string `json:"UserName"` AllDatabase bool `json:"AllDatabase"` GlobalPrivileges []string `json:"GlobalPrivileges"` DatabasePrivilegeList []*cdwch.DatabasePrivilegeInfo `json:"DatabasePrivilegeList"` }
type CdwchService ¶
type CdwchService struct {
// contains filtered or unexported fields
}
func NewCdwchService ¶
func NewCdwchService(client *connectivity.TencentCloudClient) CdwchService
func (*CdwchService) ActionAlterCkUser ¶
func (*CdwchService) CreateBackUpSchedule ¶
func (*CdwchService) DescribeBackUpScheduleById ¶
func (me *CdwchService) DescribeBackUpScheduleById(ctx context.Context, instanceId string) (backup *cdwch.DescribeBackUpScheduleResponseParams, errRet error)
func (*CdwchService) DescribeCdwchAccountPermission ¶
func (me *CdwchService) DescribeCdwchAccountPermission(ctx context.Context, instanceId, cluster, username string) (userNewPrivilege *cdwch.ModifyUserNewPrivilegeRequestParams, errRet error)
func (*CdwchService) DescribeCkSqlApis ¶
func (me *CdwchService) DescribeCkSqlApis(ctx context.Context, instanceId, cluster, userName, apiType string) error
func (*CdwchService) DescribeClickhouseAccountByUserName ¶
func (me *CdwchService) DescribeClickhouseAccountByUserName(ctx context.Context, instanceId, userName string) (accounts []*AccountInfo, errRet error)
func (*CdwchService) DescribeClickhouseBackupJobsByFilter ¶
func (me *CdwchService) DescribeClickhouseBackupJobsByFilter(ctx context.Context, param map[string]interface{}) (backupJobs []*clickhouse.BackUpJobDisplay, errRet error)
func (*CdwchService) DescribeClickhouseBackupTablesByFilter ¶
func (me *CdwchService) DescribeClickhouseBackupTablesByFilter(ctx context.Context, instanceId string) (backupTables []*clickhouse.BackupTableContent, errRet error)
func (*CdwchService) DescribeClickhouseInstanceNodesByFilter ¶ added in v1.81.67
func (me *CdwchService) DescribeClickhouseInstanceNodesByFilter(ctx context.Context, param map[string]interface{}) (instanceNodes []*cdwch.InstanceNode, errRet error)
func (*CdwchService) DescribeClickhouseInstanceShardsByFilter ¶
func (me *CdwchService) DescribeClickhouseInstanceShardsByFilter(ctx context.Context, param map[string]interface{}) (instanceShards *cdwch.DescribeInstanceShardsResponseParams, errRet error)
func (*CdwchService) DescribeClickhouseKeyvalConfigById ¶
func (me *CdwchService) DescribeClickhouseKeyvalConfigById(ctx context.Context, instanceId string) (config []*cdwch.InstanceConfigInfo, errRet error)
func (*CdwchService) DescribeClickhouseSpecByFilter ¶
func (me *CdwchService) DescribeClickhouseSpecByFilter(ctx context.Context, param map[string]interface{}) (spec *cdwch.DescribeSpecResponseParams, errRet error)
func (*CdwchService) DescribeClickhouseXmlConfigById ¶
func (me *CdwchService) DescribeClickhouseXmlConfigById(ctx context.Context, instanceId string) (xmlConfig []*cdwch.ClusterConfigsInfoFromEMR, errRet error)
func (*CdwchService) DescribeInstance ¶
func (me *CdwchService) DescribeInstance(ctx context.Context, instanceId string) (InstanceInfo *cdwch.InstanceInfo, errRet error)
func (*CdwchService) DescribeInstanceClusters ¶
func (me *CdwchService) DescribeInstanceClusters(ctx context.Context, instanceId string) (clusterInfos []*cdwch.ClusterInfo, errRet error)
func (*CdwchService) DescribeInstancesNew ¶
func (me *CdwchService) DescribeInstancesNew(ctx context.Context, instanceId string) (instancesList []*cdwch.InstanceInfo, errRet error)
func (*CdwchService) DestroyInstance ¶
func (me *CdwchService) DestroyInstance(ctx context.Context, instanceId string) (errRet error)
func (*CdwchService) InstanceStateRefreshFunc ¶
func (me *CdwchService) InstanceStateRefreshFunc(instanceId string) resource.StateRefreshFunc
func (*CdwchService) ResizeDisk ¶
func (*CdwchService) ScaleOutInstance ¶
func (*CdwchService) ScaleUpInstance ¶
func (me *CdwchService) ScaleUpInstance(ctx context.Context, instanceId, nodeType, specName string) (errRet error)
Source Files ¶
- data_source_tc_clickhouse_backup_job_detail.go
- data_source_tc_clickhouse_backup_jobs.go
- data_source_tc_clickhouse_backup_tables.go
- data_source_tc_clickhouse_instance_nodes.go
- data_source_tc_clickhouse_instance_shards.go
- data_source_tc_clickhouse_spec.go
- extension_cdwch.go
- resource_tc_clickhouse_account.go
- resource_tc_clickhouse_account_permission.go
- resource_tc_clickhouse_backup.go
- resource_tc_clickhouse_backup_strategy.go
- resource_tc_clickhouse_delete_backup_data.go
- resource_tc_clickhouse_instance.go
- resource_tc_clickhouse_keyval_config.go
- resource_tc_clickhouse_recover_backup_job.go
- resource_tc_clickhouse_xml_config.go
- service_tencentcloud_cdwch.go
Click to show internal directories.
Click to hide internal directories.