cdb

package
v1.81.139 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MYSQL_STATUS_DELIVING  = 0
	MYSQL_STATUS_RUNNING   = 1
	MYSQL_STATUS_ISOLATING = 4
	MYSQL_STATUS_ISOLATED  = 5
	//https://cloud.tencent.com/document/api/236/36197
	//Internal business state , not public
	MYSQL_STATUS_ISOLATED_1 = 6
	MYSQL_STATUS_ISOLATED_2 = 7
)

mysql Status https://cloud.tencent.com/document/api/236/15872

View Source
const (
	MYSQL_TASK_STATUS_INITIAL = "INITIAL"
	MYSQL_TASK_STATUS_RUNNING = "RUNNING"
	MYSQL_TASK_STATUS_SUCCESS = "SUCCESS"
	MYSQL_TASK_STATUS_FAILED  = "FAILED"
	MYSQL_TASK_STATUS_REMOVED = "REMOVED"
	MYSQL_TASK_STATUS_PAUSED  = "PAUSED "
)

Async task status, from https://cloud.tencent.com/document/api/236/20410

View Source
const (
	MYSQL_RENEW_NOUSE = 0
	MYSQL_RENEW_OPEN  = 1
	MYSQL_RENEW_CLOSE = 2
)

automatic renewal status code

View Source
const (
	MYSQL_CHARGE_TYPE_PREPAID  = "PREPAID"
	MYSQL_CHARGE_TYPE_POSTPAID = "POSTPAID"
)
View Source
const (
	MysqlInstanceIdNotFound  = "InvalidParameter.InstanceNotFound"
	MysqlInstanceIdNotFound2 = "InvalidParameter"
	MysqlInstanceIdNotFound3 = "InternalError.DatabaseAccessError"
)
View Source
const (
	MYSQL_LOG_TO_CLS_TYPE_ERROR = "error"
	MYSQL_LOG_TO_CLS_TYPE_SLOW  = "slowlog"
)
View Source
const InWindow = 1
View Source
const (
	ZONE_SELL_STATUS_ONLINE = 0
)

Variables

View Source
var (
	MysqlPayByMonth = 0
	MysqlPayByUse   = 1
)

type of pay

View Source
var MYSQL_ALLOW_BACKUP_MODEL = []string{"logical", "physical"}
View Source
var MYSQL_ALLOW_BACKUP_TIME = []string{"02:00-06:00", "06:00-10:00", "10:00-14:00", "14:00-18:00", "18:00-22:00", "22:00-02:00"}
View Source
var MYSQL_AVAILABLE_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}

mysql available period value

View Source
var MYSQL_COLUMN_PRIVILEGE = []string{
	"SELECT", "INSERT", "UPDATE", "REFERENCES",
}
View Source
var MYSQL_DATABASE_MUST_PRIVILEGE = "SHOW VIEW"
View Source
var MYSQL_DATABASE_PRIVILEGE = []string{"SELECT", "INSERT", "UPDATE", "DELETE",
	"CREATE", "DROP", "REFERENCES", "INDEX",
	"ALTER", "CREATE TEMPORARY TABLES", "LOCK TABLES",
	"EXECUTE", "CREATE VIEW", "SHOW VIEW",
	"CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER"}
View Source
var MYSQL_DEFAULT_ACCOUNT_HOST = "%"

default to all host

View Source
var MYSQL_GlOBAL_PRIVILEGE = []string{
	"ALTER", "ALTER ROUTINE", "CREATE", "CREATE ROUTINE", "CREATE TEMPORARY TABLES",
	"CREATE USER", "CREATE VIEW", "DELETE", "DROP", "EVENT", "EXECUTE", "INDEX", "INSERT",
	"LOCK TABLES", "PROCESS", "REFERENCES", "RELOAD", "REPLICATION CLIENT",
	"REPLICATION SLAVE", "SELECT", "SHOW DATABASES", "SHOW VIEW", "TRIGGER", "UPDATE",
}
View Source
var MYSQL_ROLE_MAP = map[int64]string{
	1: "master",
	2: "ro",
	3: "dr",
}
View Source
var MYSQL_SUPPORTS_ENGINE = []string{"5.5", "5.6", "5.7", "8.0"}
View Source
var MYSQL_TABLE_PRIVILEGE = []string{
	"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "REFERENCES", "INDEX",
	"ALTER", "CREATE VIEW", "SHOW VIEW", "TRIGGER",
}
View Source
var MYSQL_TASK_STATUS = map[string]int64{
	"UNDEFINED": -1,
	"INITIAL":   0,
	"RUNNING":   1,
	"SUCCEED":   2,
	"FAILED":    3,
	"KILLED":    4,
	"REMOVED":   5,
	"PAUSED":    6,
}
View Source
var MYSQL_TASK_TYPES = map[string]int64{
	"ROLLBACK":            1,
	"SQL OPERATION":       2,
	"IMPORT DATA":         3,
	"MODIFY PARAM":        5,
	"INITIAL":             6,
	"REBOOT":              7,
	"OPEN GTID":           8,
	"UPGRADE RO":          9,
	"BATCH ROLLBACK":      10,
	"UPGRADE MASTER":      11,
	"DROP TABLES":         12,
	"SWITCH DR TO MASTER": 13,
}

Functions

func DataSourceTencentCloudMysqlBackupList

func DataSourceTencentCloudMysqlBackupList() *schema.Resource

func DataSourceTencentCloudMysqlBackupOverview

func DataSourceTencentCloudMysqlBackupOverview() *schema.Resource

func DataSourceTencentCloudMysqlBackupSummaries

func DataSourceTencentCloudMysqlBackupSummaries() *schema.Resource

func DataSourceTencentCloudMysqlBinLog

func DataSourceTencentCloudMysqlBinLog() *schema.Resource

func DataSourceTencentCloudMysqlBinlogBackupOverview

func DataSourceTencentCloudMysqlBinlogBackupOverview() *schema.Resource

func DataSourceTencentCloudMysqlCloneList

func DataSourceTencentCloudMysqlCloneList() *schema.Resource

func DataSourceTencentCloudMysqlDataBackupOverview

func DataSourceTencentCloudMysqlDataBackupOverview() *schema.Resource

func DataSourceTencentCloudMysqlDatabases

func DataSourceTencentCloudMysqlDatabases() *schema.Resource

func DataSourceTencentCloudMysqlDbFeatures

func DataSourceTencentCloudMysqlDbFeatures() *schema.Resource

func DataSourceTencentCloudMysqlDefaultParams

func DataSourceTencentCloudMysqlDefaultParams() *schema.Resource

func DataSourceTencentCloudMysqlErrorLog

func DataSourceTencentCloudMysqlErrorLog() *schema.Resource

func DataSourceTencentCloudMysqlInstTables

func DataSourceTencentCloudMysqlInstTables() *schema.Resource

func DataSourceTencentCloudMysqlInstance

func DataSourceTencentCloudMysqlInstance() *schema.Resource

func DataSourceTencentCloudMysqlInstanceCharset

func DataSourceTencentCloudMysqlInstanceCharset() *schema.Resource

func DataSourceTencentCloudMysqlInstanceInfo

func DataSourceTencentCloudMysqlInstanceInfo() *schema.Resource

func DataSourceTencentCloudMysqlInstanceParamRecord

func DataSourceTencentCloudMysqlInstanceParamRecord() *schema.Resource

func DataSourceTencentCloudMysqlInstanceRebootTime

func DataSourceTencentCloudMysqlInstanceRebootTime() *schema.Resource

func DataSourceTencentCloudMysqlParameterList

func DataSourceTencentCloudMysqlParameterList() *schema.Resource

func DataSourceTencentCloudMysqlProjectSecurityGroup

func DataSourceTencentCloudMysqlProjectSecurityGroup() *schema.Resource

func DataSourceTencentCloudMysqlProxyCustom

func DataSourceTencentCloudMysqlProxyCustom() *schema.Resource

func DataSourceTencentCloudMysqlRoMinScale

func DataSourceTencentCloudMysqlRoMinScale() *schema.Resource

func DataSourceTencentCloudMysqlRollbackRangeTime

func DataSourceTencentCloudMysqlRollbackRangeTime() *schema.Resource

func DataSourceTencentCloudMysqlSlowLog

func DataSourceTencentCloudMysqlSlowLog() *schema.Resource

func DataSourceTencentCloudMysqlSlowLogData

func DataSourceTencentCloudMysqlSlowLogData() *schema.Resource

func DataSourceTencentCloudMysqlSupportedPrivileges

func DataSourceTencentCloudMysqlSupportedPrivileges() *schema.Resource

func DataSourceTencentCloudMysqlSwitchRecord

func DataSourceTencentCloudMysqlSwitchRecord() *schema.Resource

func DataSourceTencentCloudMysqlUserTask

func DataSourceTencentCloudMysqlUserTask() *schema.Resource

func DataSourceTencentCloudMysqlZoneConfig

func DataSourceTencentCloudMysqlZoneConfig() *schema.Resource

func ResourceTencentCloudMysqlAccount

func ResourceTencentCloudMysqlAccount() *schema.Resource

func ResourceTencentCloudMysqlAccountPrivilege

func ResourceTencentCloudMysqlAccountPrivilege() *schema.Resource

func ResourceTencentCloudMysqlAuditLogFile

func ResourceTencentCloudMysqlAuditLogFile() *schema.Resource

func ResourceTencentCloudMysqlBackupDownloadRestriction

func ResourceTencentCloudMysqlBackupDownloadRestriction() *schema.Resource

func ResourceTencentCloudMysqlBackupEncryptionStatus

func ResourceTencentCloudMysqlBackupEncryptionStatus() *schema.Resource

func ResourceTencentCloudMysqlBackupPolicy

func ResourceTencentCloudMysqlBackupPolicy() *schema.Resource

func ResourceTencentCloudMysqlClsLogAttachment added in v1.81.118

func ResourceTencentCloudMysqlClsLogAttachment() *schema.Resource

func ResourceTencentCloudMysqlDatabase

func ResourceTencentCloudMysqlDatabase() *schema.Resource

func ResourceTencentCloudMysqlDbImportJobOperation

func ResourceTencentCloudMysqlDbImportJobOperation() *schema.Resource

func ResourceTencentCloudMysqlDeployGroup

func ResourceTencentCloudMysqlDeployGroup() *schema.Resource

func ResourceTencentCloudMysqlDrInstance added in v1.81.90

func ResourceTencentCloudMysqlDrInstance() *schema.Resource

func ResourceTencentCloudMysqlDrInstanceToMater

func ResourceTencentCloudMysqlDrInstanceToMater() *schema.Resource

func ResourceTencentCloudMysqlInstance

func ResourceTencentCloudMysqlInstance() *schema.Resource

func ResourceTencentCloudMysqlInstanceEncryptionOperation

func ResourceTencentCloudMysqlInstanceEncryptionOperation() *schema.Resource

func ResourceTencentCloudMysqlIsolateInstance

func ResourceTencentCloudMysqlIsolateInstance() *schema.Resource

func ResourceTencentCloudMysqlLocalBinlogConfig

func ResourceTencentCloudMysqlLocalBinlogConfig() *schema.Resource

func ResourceTencentCloudMysqlParamTemplate

func ResourceTencentCloudMysqlParamTemplate() *schema.Resource

func ResourceTencentCloudMysqlPasswordComplexity

func ResourceTencentCloudMysqlPasswordComplexity() *schema.Resource

func ResourceTencentCloudMysqlPrivilege

func ResourceTencentCloudMysqlPrivilege() *schema.Resource

func ResourceTencentCloudMysqlProxy

func ResourceTencentCloudMysqlProxy() *schema.Resource

func ResourceTencentCloudMysqlReadonlyInstance

func ResourceTencentCloudMysqlReadonlyInstance() *schema.Resource

func ResourceTencentCloudMysqlReloadBalanceProxyNode

func ResourceTencentCloudMysqlReloadBalanceProxyNode() *schema.Resource

func ResourceTencentCloudMysqlRemoteBackupConfig

func ResourceTencentCloudMysqlRemoteBackupConfig() *schema.Resource

func ResourceTencentCloudMysqlRenewDbInstanceOperation

func ResourceTencentCloudMysqlRenewDbInstanceOperation() *schema.Resource

func ResourceTencentCloudMysqlResetRootAccount

func ResourceTencentCloudMysqlResetRootAccount() *schema.Resource

func ResourceTencentCloudMysqlRestartDbInstancesOperation

func ResourceTencentCloudMysqlRestartDbInstancesOperation() *schema.Resource

func ResourceTencentCloudMysqlRoGroup

func ResourceTencentCloudMysqlRoGroup() *schema.Resource

func ResourceTencentCloudMysqlRoGroupLoadOperation

func ResourceTencentCloudMysqlRoGroupLoadOperation() *schema.Resource

func ResourceTencentCloudMysqlRoInstanceIp

func ResourceTencentCloudMysqlRoInstanceIp() *schema.Resource

func ResourceTencentCloudMysqlRoStartReplication

func ResourceTencentCloudMysqlRoStartReplication() *schema.Resource

func ResourceTencentCloudMysqlRoStopReplication

func ResourceTencentCloudMysqlRoStopReplication() *schema.Resource

func ResourceTencentCloudMysqlRollback

func ResourceTencentCloudMysqlRollback() *schema.Resource

func ResourceTencentCloudMysqlRollbackStop

func ResourceTencentCloudMysqlRollbackStop() *schema.Resource

func ResourceTencentCloudMysqlSecurityGroupsAttachment

func ResourceTencentCloudMysqlSecurityGroupsAttachment() *schema.Resource

func ResourceTencentCloudMysqlSsl added in v1.81.116

func ResourceTencentCloudMysqlSsl() *schema.Resource

func ResourceTencentCloudMysqlSwitchForUpgrade

func ResourceTencentCloudMysqlSwitchForUpgrade() *schema.Resource

func ResourceTencentCloudMysqlSwitchMasterSlaveOperation

func ResourceTencentCloudMysqlSwitchMasterSlaveOperation() *schema.Resource

func ResourceTencentCloudMysqlSwitchProxy

func ResourceTencentCloudMysqlSwitchProxy() *schema.Resource

func ResourceTencentCloudMysqlTimeWindow

func ResourceTencentCloudMysqlTimeWindow() *schema.Resource

func ResourceTencentCloudMysqlVerifyRootAccount

func ResourceTencentCloudMysqlVerifyRootAccount() *schema.Resource

func TencentCloudMysqlParameterDetail

func TencentCloudMysqlParameterDetail() map[string]*schema.Schema

func TencentMsyqlBasicInfo

func TencentMsyqlBasicInfo() map[string]*schema.Schema

func TencentMysqlSellType

func TencentMysqlSellType() map[string]*schema.Schema

func TencentMysqlZoneConfig

func TencentMysqlZoneConfig() map[string]*schema.Schema

Types

type MysqlService

type MysqlService struct {
	// contains filtered or unexported fields
}

func NewMysqlService

func NewMysqlService(client *connectivity.TencentCloudClient) MysqlService

func (*MysqlService) CheckDBGTIDOpen

func (me *MysqlService) CheckDBGTIDOpen(ctx context.Context, mysqlId string) (open int64, errRet error)

func (*MysqlService) CloseWanService

func (me *MysqlService) CloseWanService(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)

func (*MysqlService) CreateAccount

func (me *MysqlService) CreateAccount(ctx context.Context, mysqlId string,
	accountName, accountHost, accountPassword, accountDescription string, maxUserConnections int64) (asyncRequestId string, errRet error)

func (*MysqlService) CreateBackup

func (me *MysqlService) CreateBackup(ctx context.Context, mysqlId string) (backupId int64, errRet error)

func (*MysqlService) DeleteAccount

func (me *MysqlService) DeleteAccount(ctx context.Context, mysqlId string,
	accountName string, accountHost string) (asyncRequestId string, errRet error)

func (*MysqlService) DeleteMysqlAuditLogFileById

func (me *MysqlService) DeleteMysqlAuditLogFileById(ctx context.Context, instanceId string, fileName string) (errRet error)

func (*MysqlService) DeleteMysqlDatabaseById

func (me *MysqlService) DeleteMysqlDatabaseById(ctx context.Context, instanceId string, dBName string) (errRet error)

func (*MysqlService) DeleteMysqlDbImportJobById

func (me *MysqlService) DeleteMysqlDbImportJobById(ctx context.Context, asyncRequestId string) (errRet error)

func (*MysqlService) DeleteMysqlDeployGroupById

func (me *MysqlService) DeleteMysqlDeployGroupById(ctx context.Context, deployGroupId string) (errRet error)

func (*MysqlService) DeleteMysqlInstanceLogToCLSById added in v1.81.118

func (me *MysqlService) DeleteMysqlInstanceLogToCLSById(ctx context.Context, instanceId string, logType string) (errRet error)

func (*MysqlService) DeleteMysqlIsolateInstanceById

func (me *MysqlService) DeleteMysqlIsolateInstanceById(ctx context.Context, instanceId string) (errRet error)

func (*MysqlService) DeleteMysqlParamTemplateById

func (me *MysqlService) DeleteMysqlParamTemplateById(ctx context.Context, templateId string) (errRet error)

func (*MysqlService) DeleteMysqlProxyById

func (me *MysqlService) DeleteMysqlProxyById(ctx context.Context, instanceId string) (errRet error)

func (*MysqlService) DeleteMysqlRollbackById

func (me *MysqlService) DeleteMysqlRollbackById(ctx context.Context, instanceId string) (asyncRequestId string, errRet error)

func (*MysqlService) DeleteMysqlSecurityGroupsAttachmentById

func (me *MysqlService) DeleteMysqlSecurityGroupsAttachmentById(ctx context.Context, securityGroupId string, instanceId string) (errRet error)

func (*MysqlService) DeleteMysqlTimeWindowById

func (me *MysqlService) DeleteMysqlTimeWindowById(ctx context.Context, instanceId string) (errRet error)

func (*MysqlService) DescribeAccountPrivileges

func (me *MysqlService) DescribeAccountPrivileges(ctx context.Context, mysqlId string,
	accountName string, accountHost string, databaseNames []string) (privileges []string, errRet error)

func (*MysqlService) DescribeAccounts

func (me *MysqlService) DescribeAccounts(ctx context.Context, mysqlId string) (accountInfos []*cdb.AccountInfo, errRet error)

func (*MysqlService) DescribeAsyncRequestInfo

func (me *MysqlService) DescribeAsyncRequestInfo(ctx context.Context, asyncRequestId string) (status, message string, errRet error)

func (*MysqlService) DescribeBackupConfigByMysqlId

func (me *MysqlService) DescribeBackupConfigByMysqlId(ctx context.Context, mysqlId string) (desResponse *cdb.DescribeBackupConfigResponse, errRet error)

func (*MysqlService) DescribeBackupsByMysqlId

func (me *MysqlService) DescribeBackupsByMysqlId(ctx context.Context,
	mysqlId string,
	leftNumber int64) (backupInfos []*cdb.BackupInfo, errRet error)

func (*MysqlService) DescribeCaresParameters

func (me *MysqlService) DescribeCaresParameters(ctx context.Context, instanceId string, cares []string) (caresKv map[string]interface{}, errRet error)

func (*MysqlService) DescribeDBInstanceById

func (me *MysqlService) DescribeDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)

func (*MysqlService) DescribeDBInstanceConfig

func (me *MysqlService) DescribeDBInstanceConfig(ctx context.Context, mysqlId string) (backupConfig *cdb.DescribeDBInstanceConfigResponse,
	errRet error)

func (*MysqlService) DescribeDBSecurityGroups

func (me *MysqlService) DescribeDBSecurityGroups(ctx context.Context, mysqlId string) (securityGroups []string, errRet error)

func (*MysqlService) DescribeDBZoneConfig

func (me *MysqlService) DescribeDBZoneConfig(ctx context.Context) (sellConfigures *cdb.CdbZoneDataResult, errRet error)

func (*MysqlService) DescribeDefaultParameters

func (me *MysqlService) DescribeDefaultParameters(ctx context.Context, engineVersion string) (parameterList []*cdb.ParameterDetail, errRet error)

func (*MysqlService) DescribeInstanceParameters

func (me *MysqlService) DescribeInstanceParameters(ctx context.Context, instanceId string) (parameterList []*cdb.ParameterDetail, errRet error)

func (*MysqlService) DescribeIsolatedDBInstanceById

func (me *MysqlService) DescribeIsolatedDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)

func (*MysqlService) DescribeMysqlAuditLogFileById

func (me *MysqlService) DescribeMysqlAuditLogFileById(ctx context.Context, instanceId string, fileName string) (auditLogFile *cdb.AuditLogFile, errRet error)

func (*MysqlService) DescribeMysqlBackupDownloadRestrictionById

func (me *MysqlService) DescribeMysqlBackupDownloadRestrictionById(ctx context.Context) (backupDownloadRestriction *cdb.DescribeBackupDownloadRestrictionResponseParams, errRet error)

func (*MysqlService) DescribeMysqlBackupEncryptionStatusById

func (me *MysqlService) DescribeMysqlBackupEncryptionStatusById(ctx context.Context, instanceId string) (backupEncryptionStatus *cdb.DescribeBackupEncryptionStatusResponseParams, errRet error)

func (*MysqlService) DescribeMysqlBackupOverviewByFilter

func (me *MysqlService) DescribeMysqlBackupOverviewByFilter(ctx context.Context, param map[string]interface{}) (backupOverview *cdb.DescribeBackupOverviewResponseParams, errRet error)

func (*MysqlService) DescribeMysqlBackupSummariesByFilter

func (me *MysqlService) DescribeMysqlBackupSummariesByFilter(ctx context.Context, param map[string]interface{}) (backupSummaries []*cdb.BackupSummaryItem, errRet error)

func (*MysqlService) DescribeMysqlBinLogByFilter

func (me *MysqlService) DescribeMysqlBinLogByFilter(ctx context.Context, param map[string]interface{}) (binLog []*cdb.BinlogInfo, errRet error)

func (*MysqlService) DescribeMysqlBinlogBackupOverviewByFilter

func (me *MysqlService) DescribeMysqlBinlogBackupOverviewByFilter(ctx context.Context, param map[string]interface{}) (binlogBackupOverview *cdb.DescribeBinlogBackupOverviewResponseParams, errRet error)

func (*MysqlService) DescribeMysqlCloneListByFilter

func (me *MysqlService) DescribeMysqlCloneListByFilter(ctx context.Context, param map[string]interface{}) (cloneList []*cdb.CloneItem, errRet error)

func (*MysqlService) DescribeMysqlDataBackupOverviewByFilter

func (me *MysqlService) DescribeMysqlDataBackupOverviewByFilter(ctx context.Context, param map[string]interface{}) (dataBackupOverview *cdb.DescribeDataBackupOverviewResponseParams, errRet error)

func (*MysqlService) DescribeMysqlDatabaseById

func (me *MysqlService) DescribeMysqlDatabaseById(ctx context.Context, instanceId string, dBName string) (database *cdb.DatabasesWithCharacterLists, errRet error)

func (*MysqlService) DescribeMysqlDatabasesByFilter

func (me *MysqlService) DescribeMysqlDatabasesByFilter(ctx context.Context, param map[string]interface{}) (databases *cdb.DescribeDatabasesResponseParams, errRet error)

func (*MysqlService) DescribeMysqlDbFeaturesByFilter

func (me *MysqlService) DescribeMysqlDbFeaturesByFilter(ctx context.Context, param map[string]interface{}) (dbFeatures *cdb.DescribeDBFeaturesResponseParams, errRet error)

func (*MysqlService) DescribeMysqlDbImportJobById

func (me *MysqlService) DescribeMysqlDbImportJobById(ctx context.Context, instanceId, asyncRequestId string) (dbImportJob *cdb.ImportRecord, errRet error)

func (*MysqlService) DescribeMysqlDeployGroupById

func (me *MysqlService) DescribeMysqlDeployGroupById(ctx context.Context, deployGroupId string) (deployGroup *cdb.DeployGroupInfo, errRet error)

func (*MysqlService) DescribeMysqlErrorLogByFilter

func (me *MysqlService) DescribeMysqlErrorLogByFilter(ctx context.Context, param map[string]interface{}) (errorLog []*cdb.ErrlogItem, errRet error)

func (*MysqlService) DescribeMysqlInstTablesByFilter

func (me *MysqlService) DescribeMysqlInstTablesByFilter(ctx context.Context, param map[string]interface{}) (instTables []*string, errRet error)

func (*MysqlService) DescribeMysqlInstanceCharsetByFilter

func (me *MysqlService) DescribeMysqlInstanceCharsetByFilter(ctx context.Context, instanceId string) (instanceCharset *cdb.DescribeDBInstanceCharsetResponseParams, errRet error)

func (*MysqlService) DescribeMysqlInstanceInfoById

func (me *MysqlService) DescribeMysqlInstanceInfoById(ctx context.Context, instanceId string) (instanceInfo *cdb.DescribeDBInstanceInfoResponseParams, errRet error)

func (*MysqlService) DescribeMysqlInstanceLogToCLSById added in v1.81.118

func (me *MysqlService) DescribeMysqlInstanceLogToCLSById(ctx context.Context, instanceId string) (logToCLSResponseParam *cdb.DescribeDBInstanceLogToCLSResponseParams, errRet error)

func (*MysqlService) DescribeMysqlInstanceParamRecordByFilter

func (me *MysqlService) DescribeMysqlInstanceParamRecordByFilter(ctx context.Context, param map[string]interface{}) (instanceParamRecord []*cdb.ParamRecord, errRet error)

func (*MysqlService) DescribeMysqlInstanceRebootTimeByFilter

func (me *MysqlService) DescribeMysqlInstanceRebootTimeByFilter(ctx context.Context, param map[string]interface{}) (instanceRebootTime []*cdb.InstanceRebootTime, errRet error)

func (*MysqlService) DescribeMysqlLocalBinlogConfigById

func (me *MysqlService) DescribeMysqlLocalBinlogConfigById(ctx context.Context, instanceId string) (localBinlogConfig *cdb.LocalBinlogConfig, errRet error)

func (*MysqlService) DescribeMysqlParamTemplateById

func (me *MysqlService) DescribeMysqlParamTemplateById(ctx context.Context, templateId string) (paramTemplate *cdb.DescribeParamTemplateInfoResponseParams, errRet error)

func (*MysqlService) DescribeMysqlParamTemplateInfoById

func (me *MysqlService) DescribeMysqlParamTemplateInfoById(ctx context.Context, templateId string) (paramTemplateInfo *cdb.ParamTemplateInfo, errRet error)

func (*MysqlService) DescribeMysqlPasswordComplexityById

func (me *MysqlService) DescribeMysqlPasswordComplexityById(ctx context.Context, instanceId string) (passwordComplexity []*cdb.ParameterDetail, errRet error)

func (*MysqlService) DescribeMysqlProjectSecurityGroupByFilter

func (me *MysqlService) DescribeMysqlProjectSecurityGroupByFilter(ctx context.Context, param map[string]interface{}) (projectSecurityGroup []*cdb.SecurityGroup, errRet error)

func (*MysqlService) DescribeMysqlProxyById

func (me *MysqlService) DescribeMysqlProxyById(ctx context.Context, instanceId, proxyGroupId string) (proxy *cdb.ProxyGroupInfo, errRet error)

func (*MysqlService) DescribeMysqlProxyCustomById

func (me *MysqlService) DescribeMysqlProxyCustomById(ctx context.Context, instanceId string) (proxyCustom *cdb.DescribeProxyCustomConfResponseParams, errRet error)

func (*MysqlService) DescribeMysqlRemoteBackupConfigById

func (me *MysqlService) DescribeMysqlRemoteBackupConfigById(ctx context.Context, instanceId string) (remoteBackupConfig *cdb.DescribeRemoteBackupConfigResponseParams, errRet error)

func (*MysqlService) DescribeMysqlRoGroupById

func (me *MysqlService) DescribeMysqlRoGroupById(ctx context.Context, instanceId string, roGroupId string) (roGroup *cdb.RoGroup, errRet error)

func (*MysqlService) DescribeMysqlRoMinScaleByFilter

func (me *MysqlService) DescribeMysqlRoMinScaleByFilter(ctx context.Context, param map[string]interface{}) (roMinScale *cdb.DescribeRoMinScaleResponseParams, errRet error)

func (*MysqlService) DescribeMysqlRollbackById

func (me *MysqlService) DescribeMysqlRollbackById(ctx context.Context, instanceId, asyncRequestId string) (rollback []*cdb.RollbackInstancesInfo, errRet error)

func (*MysqlService) DescribeMysqlRollbackRangeTimeByFilter

func (me *MysqlService) DescribeMysqlRollbackRangeTimeByFilter(ctx context.Context, param map[string]interface{}) (rollbackRangeTime []*cdb.InstanceRollbackRangeTime, errRet error)

func (*MysqlService) DescribeMysqlSecurityGroupsAttachmentById

func (me *MysqlService) DescribeMysqlSecurityGroupsAttachmentById(ctx context.Context, securityGroupId string, instanceId string) (securityGroupsAttachment *cdb.SecurityGroup, errRet error)

func (*MysqlService) DescribeMysqlSlowLogByFilter

func (me *MysqlService) DescribeMysqlSlowLogByFilter(ctx context.Context, param map[string]interface{}) (slowLog []*cdb.SlowLogInfo, errRet error)

func (*MysqlService) DescribeMysqlSlowLogDataByFilter

func (me *MysqlService) DescribeMysqlSlowLogDataByFilter(ctx context.Context, param map[string]interface{}) (slowLogData []*cdb.SlowLogItem, errRet error)

func (*MysqlService) DescribeMysqlSslById added in v1.81.116

func (me *MysqlService) DescribeMysqlSslById(ctx context.Context, instanceId string) (ssl *cdb.DescribeSSLStatusResponseParams, errRet error)

func (*MysqlService) DescribeMysqlSupportedPrivilegesById

func (me *MysqlService) DescribeMysqlSupportedPrivilegesById(ctx context.Context, instanceId string) (supportedPrivileges *cdb.DescribeSupportedPrivilegesResponseParams, errRet error)

func (*MysqlService) DescribeMysqlSwitchRecordById

func (me *MysqlService) DescribeMysqlSwitchRecordById(ctx context.Context, instanceId string) (switchRecord []*cdb.DBSwitchInfo, errRet error)

func (*MysqlService) DescribeMysqlTimeWindowById

func (me *MysqlService) DescribeMysqlTimeWindowById(ctx context.Context, instanceId string) (timeWindow *cdb.DescribeTimeWindowResponse, errRet error)

func (*MysqlService) DescribeMysqlUploadedFilesByFilter

func (me *MysqlService) DescribeMysqlUploadedFilesByFilter(ctx context.Context, param map[string]interface{}) (uploadedFiles []*cdb.SqlFileInfo, errRet error)

func (*MysqlService) DescribeMysqlUserTaskByFilter

func (me *MysqlService) DescribeMysqlUserTaskByFilter(ctx context.Context, param map[string]interface{}) (userTask []*cdb.TaskDetail, errRet error)

func (*MysqlService) DescribeRoGroupByIdAndRoId added in v1.81.119

func (me *MysqlService) DescribeRoGroupByIdAndRoId(ctx context.Context, instanceId string, roInstanceId string) (roGroup *cdb.RoGroup, errRet error)

func (*MysqlService) DescribeRunningDBInstanceById

func (me *MysqlService) DescribeRunningDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)

func (*MysqlService) DescribeTagsOfInstanceId

func (me *MysqlService) DescribeTagsOfInstanceId(ctx context.Context, mysqlId string) (tags map[string]string, errRet error)

func (*MysqlService) DisassociateSecurityGroup

func (me *MysqlService) DisassociateSecurityGroup(ctx context.Context, mysqlId string, securityGroup string) (errRet error)

func (*MysqlService) InitDBInstances

func (me *MysqlService) InitDBInstances(ctx context.Context, mysqlId, password, charset, lowerCase string, port int) (asyncRequestId string, errRet error)

DEPRECATED: Specify these arguments while creating.

func (*MysqlService) IsolateDBInstance

func (me *MysqlService) IsolateDBInstance(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyAccountDescription

func (me *MysqlService) ModifyAccountDescription(ctx context.Context, mysqlId string,
	accountName, accountHost, accountDescription string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyAccountHost

func (me *MysqlService) ModifyAccountHost(ctx context.Context, mysqlId, accountName, host, newHost string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyAccountMaxUserConnections

func (me *MysqlService) ModifyAccountMaxUserConnections(ctx context.Context, mysqlId, accountName, accountHost string, maxUserConnections int64) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyAccountPassword

func (me *MysqlService) ModifyAccountPassword(ctx context.Context, mysqlId string,
	accountName, accountHost, accountPassword string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyAccountPrivileges

func (me *MysqlService) ModifyAccountPrivileges(ctx context.Context, mysqlId string,
	accountName, accountHost string, databaseNames []string, privileges []string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyAutoRenewFlag

func (me *MysqlService) ModifyAutoRenewFlag(ctx context.Context, mysqlId string, newRenewFlag int64) (errRet error)

func (*MysqlService) ModifyBackupConfigByMysqlId

func (me *MysqlService) ModifyBackupConfigByMysqlId(ctx context.Context, mysqlId string, retentionPeriod int64, backupModel,
	backupTime string, binlogExpireDays int64, enableBinlogStandby string, binlogStandbyDays int64) (errRet error)

func (*MysqlService) ModifyCdbProxyAddressDesc

func (me *MysqlService) ModifyCdbProxyAddressDesc(ctx context.Context, proxyGroupId, proxyAddressId, desc string) (errRet error)

func (*MysqlService) ModifyCdbProxyAddressVipAndVPort

func (me *MysqlService) ModifyCdbProxyAddressVipAndVPort(ctx context.Context, proxyGroupId, proxyAddressId, vpcId, subnetId, ip string, port uint64) (errRet error)

func (*MysqlService) ModifyDBInstanceName

func (me *MysqlService) ModifyDBInstanceName(ctx context.Context, mysqlId,
	newInstanceName string) (errRet error)

func (*MysqlService) ModifyDBInstanceProject

func (me *MysqlService) ModifyDBInstanceProject(ctx context.Context, mysqlId string, newProjectId int64) (errRet error)

func (*MysqlService) ModifyDBInstanceSecurityGroups

func (me *MysqlService) ModifyDBInstanceSecurityGroups(ctx context.Context, mysqlId string, securityGroups []string) (errRet error)

func (*MysqlService) ModifyDBInstanceVipVport

func (me *MysqlService) ModifyDBInstanceVipVport(ctx context.Context, mysqlId, vpcId, subnetId string, port int64) (errRet error)

func (*MysqlService) ModifyInstanceParam

func (me *MysqlService) ModifyInstanceParam(ctx context.Context, instanceId string, params map[string]string) (asyncRequestId string, errRet error)

func (*MysqlService) ModifyInstanceTag

func (me *MysqlService) ModifyInstanceTag(ctx context.Context, mysqlId string, deleteTags, modifyTags map[string]string) (errRet error)

func (*MysqlService) MysqlAuditLogFileStateRefreshFunc

func (me *MysqlService) MysqlAuditLogFileStateRefreshFunc(instanceId, fileName string, failStates []string) resource.StateRefreshFunc

func (*MysqlService) NotFoundMysqlInstance

func (me *MysqlService) NotFoundMysqlInstance(err error) bool

check if the err means the mysql_id is not found

func (*MysqlService) OfflineIsolatedInstances

func (me *MysqlService) OfflineIsolatedInstances(ctx context.Context, mysqlId string) (errRet error)

func (*MysqlService) OpenDBInstanceGTID

func (me *MysqlService) OpenDBInstanceGTID(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)

func (*MysqlService) OpenWanService

func (me *MysqlService) OpenWanService(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)

func (*MysqlService) UpgradeCDBProxyVersion

func (me *MysqlService) UpgradeCDBProxyVersion(ctx context.Context, instanceId, proxyGroupId, oldProxyVersion, proxyVersion, upgradeTime string) (errRet error)

func (*MysqlService) UpgradeDBInstance

func (me *MysqlService) UpgradeDBInstance(ctx context.Context, mysqlId string,
	memSize, cpu, volumeSize, fastUpgrade int64, deviceType string, slaveDeployMode, slaveSyncMode int64,
	firstSlaveZone, secondSlaveZone string, waitSwitch int64) (asyncRequestId string, errRet error)

func (*MysqlService) UpgradeDBInstanceEngineVersion

func (me *MysqlService) UpgradeDBInstanceEngineVersion(ctx context.Context, mysqlId, engineVersion string, upgradeSubversion, maxDelayTime, waitSwitch int64) (asyncRequestId string, errRet error)

type ResourceTencentCloudMysqlAccountPrivilegeId

type ResourceTencentCloudMysqlAccountPrivilegeId struct {
	MysqlId     string
	AccountName string
	AccountHost string `json:"AccountHost,omitempty"`
}

type ResourceTencentCloudMysqlPrivilegeId

type ResourceTencentCloudMysqlPrivilegeId struct {
	MysqlId     string
	AccountName string
	AccountHost string `json:"AccountHost,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL