Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudMysqlBackupList() *schema.Resource
- func DataSourceTencentCloudMysqlBackupOverview() *schema.Resource
- func DataSourceTencentCloudMysqlBackupSummaries() *schema.Resource
- func DataSourceTencentCloudMysqlBinLog() *schema.Resource
- func DataSourceTencentCloudMysqlBinlogBackupOverview() *schema.Resource
- func DataSourceTencentCloudMysqlCloneList() *schema.Resource
- func DataSourceTencentCloudMysqlDataBackupOverview() *schema.Resource
- func DataSourceTencentCloudMysqlDatabases() *schema.Resource
- func DataSourceTencentCloudMysqlDbFeatures() *schema.Resource
- func DataSourceTencentCloudMysqlDefaultParams() *schema.Resource
- func DataSourceTencentCloudMysqlErrorLog() *schema.Resource
- func DataSourceTencentCloudMysqlInstTables() *schema.Resource
- func DataSourceTencentCloudMysqlInstance() *schema.Resource
- func DataSourceTencentCloudMysqlInstanceCharset() *schema.Resource
- func DataSourceTencentCloudMysqlInstanceInfo() *schema.Resource
- func DataSourceTencentCloudMysqlInstanceParamRecord() *schema.Resource
- func DataSourceTencentCloudMysqlInstanceRebootTime() *schema.Resource
- func DataSourceTencentCloudMysqlParameterList() *schema.Resource
- func DataSourceTencentCloudMysqlProjectSecurityGroup() *schema.Resource
- func DataSourceTencentCloudMysqlProxyCustom() *schema.Resource
- func DataSourceTencentCloudMysqlRoMinScale() *schema.Resource
- func DataSourceTencentCloudMysqlRollbackRangeTime() *schema.Resource
- func DataSourceTencentCloudMysqlSlowLog() *schema.Resource
- func DataSourceTencentCloudMysqlSlowLogData() *schema.Resource
- func DataSourceTencentCloudMysqlSupportedPrivileges() *schema.Resource
- func DataSourceTencentCloudMysqlSwitchRecord() *schema.Resource
- func DataSourceTencentCloudMysqlUserTask() *schema.Resource
- func DataSourceTencentCloudMysqlZoneConfig() *schema.Resource
- func ResourceTencentCloudMysqlAccount() *schema.Resource
- func ResourceTencentCloudMysqlAccountPrivilege() *schema.Resource
- func ResourceTencentCloudMysqlAuditLogFile() *schema.Resource
- func ResourceTencentCloudMysqlBackupDownloadRestriction() *schema.Resource
- func ResourceTencentCloudMysqlBackupEncryptionStatus() *schema.Resource
- func ResourceTencentCloudMysqlBackupPolicy() *schema.Resource
- func ResourceTencentCloudMysqlDatabase() *schema.Resource
- func ResourceTencentCloudMysqlDbImportJobOperation() *schema.Resource
- func ResourceTencentCloudMysqlDeployGroup() *schema.Resource
- func ResourceTencentCloudMysqlDrInstance() *schema.Resource
- func ResourceTencentCloudMysqlDrInstanceToMater() *schema.Resource
- func ResourceTencentCloudMysqlInstance() *schema.Resource
- func ResourceTencentCloudMysqlInstanceEncryptionOperation() *schema.Resource
- func ResourceTencentCloudMysqlIsolateInstance() *schema.Resource
- func ResourceTencentCloudMysqlLocalBinlogConfig() *schema.Resource
- func ResourceTencentCloudMysqlParamTemplate() *schema.Resource
- func ResourceTencentCloudMysqlPasswordComplexity() *schema.Resource
- func ResourceTencentCloudMysqlPrivilege() *schema.Resource
- func ResourceTencentCloudMysqlProxy() *schema.Resource
- func ResourceTencentCloudMysqlReadonlyInstance() *schema.Resource
- func ResourceTencentCloudMysqlReloadBalanceProxyNode() *schema.Resource
- func ResourceTencentCloudMysqlRemoteBackupConfig() *schema.Resource
- func ResourceTencentCloudMysqlRenewDbInstanceOperation() *schema.Resource
- func ResourceTencentCloudMysqlResetRootAccount() *schema.Resource
- func ResourceTencentCloudMysqlRestartDbInstancesOperation() *schema.Resource
- func ResourceTencentCloudMysqlRoGroup() *schema.Resource
- func ResourceTencentCloudMysqlRoGroupLoadOperation() *schema.Resource
- func ResourceTencentCloudMysqlRoInstanceIp() *schema.Resource
- func ResourceTencentCloudMysqlRoStartReplication() *schema.Resource
- func ResourceTencentCloudMysqlRoStopReplication() *schema.Resource
- func ResourceTencentCloudMysqlRollback() *schema.Resource
- func ResourceTencentCloudMysqlRollbackStop() *schema.Resource
- func ResourceTencentCloudMysqlSecurityGroupsAttachment() *schema.Resource
- func ResourceTencentCloudMysqlSwitchForUpgrade() *schema.Resource
- func ResourceTencentCloudMysqlSwitchMasterSlaveOperation() *schema.Resource
- func ResourceTencentCloudMysqlSwitchProxy() *schema.Resource
- func ResourceTencentCloudMysqlTimeWindow() *schema.Resource
- func ResourceTencentCloudMysqlVerifyRootAccount() *schema.Resource
- func TencentCloudMysqlParameterDetail() map[string]*schema.Schema
- func TencentMsyqlBasicInfo() map[string]*schema.Schema
- func TencentMysqlSellType() map[string]*schema.Schema
- func TencentMysqlZoneConfig() map[string]*schema.Schema
- type MysqlService
- func (me *MysqlService) CheckDBGTIDOpen(ctx context.Context, mysqlId string) (open int64, errRet error)
- func (me *MysqlService) CloseWanService(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)
- func (me *MysqlService) CreateAccount(ctx context.Context, mysqlId string, ...) (asyncRequestId string, errRet error)
- func (me *MysqlService) CreateBackup(ctx context.Context, mysqlId string) (backupId int64, errRet error)
- func (me *MysqlService) DeleteAccount(ctx context.Context, mysqlId string, accountName string, accountHost string) (asyncRequestId string, errRet error)
- func (me *MysqlService) DeleteMysqlAuditLogFileById(ctx context.Context, instanceId string, fileName string) (errRet error)
- func (me *MysqlService) DeleteMysqlDatabaseById(ctx context.Context, instanceId string, dBName string) (errRet error)
- func (me *MysqlService) DeleteMysqlDbImportJobById(ctx context.Context, asyncRequestId string) (errRet error)
- func (me *MysqlService) DeleteMysqlDeployGroupById(ctx context.Context, deployGroupId string) (errRet error)
- func (me *MysqlService) DeleteMysqlIsolateInstanceById(ctx context.Context, instanceId string) (errRet error)
- func (me *MysqlService) DeleteMysqlParamTemplateById(ctx context.Context, templateId string) (errRet error)
- func (me *MysqlService) DeleteMysqlProxyById(ctx context.Context, instanceId string) (errRet error)
- func (me *MysqlService) DeleteMysqlRollbackById(ctx context.Context, instanceId string) (asyncRequestId string, errRet error)
- func (me *MysqlService) DeleteMysqlSecurityGroupsAttachmentById(ctx context.Context, securityGroupId string, instanceId string) (errRet error)
- func (me *MysqlService) DeleteMysqlTimeWindowById(ctx context.Context, instanceId string) (errRet error)
- func (me *MysqlService) DescribeAccountPrivileges(ctx context.Context, mysqlId string, accountName string, accountHost string, ...) (privileges []string, errRet error)
- func (me *MysqlService) DescribeAccounts(ctx context.Context, mysqlId string) (accountInfos []*cdb.AccountInfo, errRet error)
- func (me *MysqlService) DescribeAsyncRequestInfo(ctx context.Context, asyncRequestId string) (status, message string, errRet error)
- func (me *MysqlService) DescribeBackupConfigByMysqlId(ctx context.Context, mysqlId string) (desResponse *cdb.DescribeBackupConfigResponse, errRet error)
- func (me *MysqlService) DescribeBackupsByMysqlId(ctx context.Context, mysqlId string, leftNumber int64) (backupInfos []*cdb.BackupInfo, errRet error)
- func (me *MysqlService) DescribeCaresParameters(ctx context.Context, instanceId string, cares []string) (caresKv map[string]interface{}, errRet error)
- func (me *MysqlService) DescribeDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)
- func (me *MysqlService) DescribeDBInstanceConfig(ctx context.Context, mysqlId string) (backupConfig *cdb.DescribeDBInstanceConfigResponse, errRet error)
- func (me *MysqlService) DescribeDBSecurityGroups(ctx context.Context, mysqlId string) (securityGroups []string, errRet error)
- func (me *MysqlService) DescribeDBZoneConfig(ctx context.Context) (sellConfigures *cdb.CdbZoneDataResult, errRet error)
- func (me *MysqlService) DescribeDefaultParameters(ctx context.Context, engineVersion string) (parameterList []*cdb.ParameterDetail, errRet error)
- func (me *MysqlService) DescribeInstanceParameters(ctx context.Context, instanceId string) (parameterList []*cdb.ParameterDetail, errRet error)
- func (me *MysqlService) DescribeIsolatedDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)
- func (me *MysqlService) DescribeMysqlAuditLogFileById(ctx context.Context, instanceId string, fileName string) (auditLogFile *cdb.AuditLogFile, errRet error)
- func (me *MysqlService) DescribeMysqlBackupDownloadRestrictionById(ctx context.Context) (backupDownloadRestriction *cdb.DescribeBackupDownloadRestrictionResponseParams, ...)
- func (me *MysqlService) DescribeMysqlBackupEncryptionStatusById(ctx context.Context, instanceId string) (backupEncryptionStatus *cdb.DescribeBackupEncryptionStatusResponseParams, ...)
- func (me *MysqlService) DescribeMysqlBackupOverviewByFilter(ctx context.Context, param map[string]interface{}) (backupOverview *cdb.DescribeBackupOverviewResponseParams, errRet error)
- func (me *MysqlService) DescribeMysqlBackupSummariesByFilter(ctx context.Context, param map[string]interface{}) (backupSummaries []*cdb.BackupSummaryItem, errRet error)
- func (me *MysqlService) DescribeMysqlBinLogByFilter(ctx context.Context, param map[string]interface{}) (binLog []*cdb.BinlogInfo, errRet error)
- func (me *MysqlService) DescribeMysqlBinlogBackupOverviewByFilter(ctx context.Context, param map[string]interface{}) (binlogBackupOverview *cdb.DescribeBinlogBackupOverviewResponseParams, ...)
- func (me *MysqlService) DescribeMysqlCloneListByFilter(ctx context.Context, param map[string]interface{}) (cloneList []*cdb.CloneItem, errRet error)
- func (me *MysqlService) DescribeMysqlDataBackupOverviewByFilter(ctx context.Context, param map[string]interface{}) (dataBackupOverview *cdb.DescribeDataBackupOverviewResponseParams, errRet error)
- func (me *MysqlService) DescribeMysqlDatabaseById(ctx context.Context, instanceId string, dBName string) (database *cdb.DatabasesWithCharacterLists, errRet error)
- func (me *MysqlService) DescribeMysqlDatabasesByFilter(ctx context.Context, param map[string]interface{}) (databases *cdb.DescribeDatabasesResponseParams, errRet error)
- func (me *MysqlService) DescribeMysqlDbFeaturesByFilter(ctx context.Context, param map[string]interface{}) (dbFeatures *cdb.DescribeDBFeaturesResponseParams, errRet error)
- func (me *MysqlService) DescribeMysqlDbImportJobById(ctx context.Context, instanceId, asyncRequestId string) (dbImportJob *cdb.ImportRecord, errRet error)
- func (me *MysqlService) DescribeMysqlDeployGroupById(ctx context.Context, deployGroupId string) (deployGroup *cdb.DeployGroupInfo, errRet error)
- func (me *MysqlService) DescribeMysqlErrorLogByFilter(ctx context.Context, param map[string]interface{}) (errorLog []*cdb.ErrlogItem, errRet error)
- func (me *MysqlService) DescribeMysqlInstTablesByFilter(ctx context.Context, param map[string]interface{}) (instTables []*string, errRet error)
- func (me *MysqlService) DescribeMysqlInstanceCharsetByFilter(ctx context.Context, instanceId string) (instanceCharset *cdb.DescribeDBInstanceCharsetResponseParams, errRet error)
- func (me *MysqlService) DescribeMysqlInstanceInfoById(ctx context.Context, instanceId string) (instanceInfo *cdb.DescribeDBInstanceInfoResponseParams, errRet error)
- func (me *MysqlService) DescribeMysqlInstanceParamRecordByFilter(ctx context.Context, param map[string]interface{}) (instanceParamRecord []*cdb.ParamRecord, errRet error)
- func (me *MysqlService) DescribeMysqlInstanceRebootTimeByFilter(ctx context.Context, param map[string]interface{}) (instanceRebootTime []*cdb.InstanceRebootTime, errRet error)
- func (me *MysqlService) DescribeMysqlLocalBinlogConfigById(ctx context.Context, instanceId string) (localBinlogConfig *cdb.LocalBinlogConfig, errRet error)
- func (me *MysqlService) DescribeMysqlParamTemplateById(ctx context.Context, templateId string) (paramTemplate *cdb.DescribeParamTemplateInfoResponseParams, errRet error)
- func (me *MysqlService) DescribeMysqlParamTemplateInfoById(ctx context.Context, templateId string) (paramTemplateInfo *cdb.ParamTemplateInfo, errRet error)
- func (me *MysqlService) DescribeMysqlPasswordComplexityById(ctx context.Context, instanceId string) (passwordComplexity []*cdb.ParameterDetail, errRet error)
- func (me *MysqlService) DescribeMysqlProjectSecurityGroupByFilter(ctx context.Context, param map[string]interface{}) (projectSecurityGroup []*cdb.SecurityGroup, errRet error)
- func (me *MysqlService) DescribeMysqlProxyById(ctx context.Context, instanceId, proxyGroupId string) (proxy *cdb.ProxyGroupInfo, errRet error)
- func (me *MysqlService) DescribeMysqlProxyCustomById(ctx context.Context, instanceId string) (proxyCustom *cdb.DescribeProxyCustomConfResponseParams, errRet error)
- func (me *MysqlService) DescribeMysqlRemoteBackupConfigById(ctx context.Context, instanceId string) (remoteBackupConfig *cdb.DescribeRemoteBackupConfigResponseParams, errRet error)
- func (me *MysqlService) DescribeMysqlRoGroupById(ctx context.Context, instanceId string, roGroupId string) (roGroup *cdb.RoGroup, errRet error)
- func (me *MysqlService) DescribeMysqlRoMinScaleByFilter(ctx context.Context, param map[string]interface{}) (roMinScale *cdb.DescribeRoMinScaleResponseParams, errRet error)
- func (me *MysqlService) DescribeMysqlRollbackById(ctx context.Context, instanceId, asyncRequestId string) (rollback []*cdb.RollbackInstancesInfo, errRet error)
- func (me *MysqlService) DescribeMysqlRollbackRangeTimeByFilter(ctx context.Context, param map[string]interface{}) (rollbackRangeTime []*cdb.InstanceRollbackRangeTime, errRet error)
- func (me *MysqlService) DescribeMysqlSecurityGroupsAttachmentById(ctx context.Context, securityGroupId string, instanceId string) (securityGroupsAttachment *cdb.SecurityGroup, errRet error)
- func (me *MysqlService) DescribeMysqlSlowLogByFilter(ctx context.Context, param map[string]interface{}) (slowLog []*cdb.SlowLogInfo, errRet error)
- func (me *MysqlService) DescribeMysqlSlowLogDataByFilter(ctx context.Context, param map[string]interface{}) (slowLogData []*cdb.SlowLogItem, errRet error)
- func (me *MysqlService) DescribeMysqlSupportedPrivilegesById(ctx context.Context, instanceId string) (supportedPrivileges *cdb.DescribeSupportedPrivilegesResponseParams, ...)
- func (me *MysqlService) DescribeMysqlSwitchRecordById(ctx context.Context, instanceId string) (switchRecord []*cdb.DBSwitchInfo, errRet error)
- func (me *MysqlService) DescribeMysqlTimeWindowById(ctx context.Context, instanceId string) (timeWindow *cdb.DescribeTimeWindowResponse, errRet error)
- func (me *MysqlService) DescribeMysqlUploadedFilesByFilter(ctx context.Context, param map[string]interface{}) (uploadedFiles []*cdb.SqlFileInfo, errRet error)
- func (me *MysqlService) DescribeMysqlUserTaskByFilter(ctx context.Context, param map[string]interface{}) (userTask []*cdb.TaskDetail, errRet error)
- func (me *MysqlService) DescribeRunningDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)
- func (me *MysqlService) DescribeTagsOfInstanceId(ctx context.Context, mysqlId string) (tags map[string]string, errRet error)
- func (me *MysqlService) DisassociateSecurityGroup(ctx context.Context, mysqlId string, securityGroup string) (errRet error)
- func (me *MysqlService) InitDBInstances(ctx context.Context, mysqlId, password, charset, lowerCase string, port int) (asyncRequestId string, errRet error)
- func (me *MysqlService) IsolateDBInstance(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyAccountDescription(ctx context.Context, mysqlId string, ...) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyAccountHost(ctx context.Context, mysqlId, accountName, host, newHost string) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyAccountMaxUserConnections(ctx context.Context, mysqlId, accountName, accountHost string, ...) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyAccountPassword(ctx context.Context, mysqlId string, ...) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyAccountPrivileges(ctx context.Context, mysqlId string, accountName, accountHost string, ...) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyAutoRenewFlag(ctx context.Context, mysqlId string, newRenewFlag int64) (errRet error)
- func (me *MysqlService) ModifyBackupConfigByMysqlId(ctx context.Context, mysqlId string, retentionPeriod int64, ...) (errRet error)
- func (me *MysqlService) ModifyCdbProxyAddressDesc(ctx context.Context, proxyGroupId, proxyAddressId, desc string) (errRet error)
- func (me *MysqlService) ModifyCdbProxyAddressVipAndVPort(ctx context.Context, proxyGroupId, proxyAddressId, vpcId, subnetId, ip string, ...) (errRet error)
- func (me *MysqlService) ModifyDBInstanceName(ctx context.Context, mysqlId, newInstanceName string) (errRet error)
- func (me *MysqlService) ModifyDBInstanceProject(ctx context.Context, mysqlId string, newProjectId int64) (errRet error)
- func (me *MysqlService) ModifyDBInstanceSecurityGroups(ctx context.Context, mysqlId string, securityGroups []string) (errRet error)
- func (me *MysqlService) ModifyDBInstanceVipVport(ctx context.Context, mysqlId, vpcId, subnetId string, port int64) (errRet error)
- func (me *MysqlService) ModifyInstanceParam(ctx context.Context, instanceId string, params map[string]string) (asyncRequestId string, errRet error)
- func (me *MysqlService) ModifyInstanceTag(ctx context.Context, mysqlId string, deleteTags, modifyTags map[string]string) (errRet error)
- func (me *MysqlService) MysqlAuditLogFileStateRefreshFunc(instanceId, fileName string, failStates []string) resource.StateRefreshFunc
- func (me *MysqlService) NotFoundMysqlInstance(err error) bool
- func (me *MysqlService) OfflineIsolatedInstances(ctx context.Context, mysqlId string) (errRet error)
- func (me *MysqlService) OpenDBInstanceGTID(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)
- func (me *MysqlService) OpenWanService(ctx context.Context, mysqlId string) (asyncRequestId string, errRet error)
- func (me *MysqlService) UpgradeCDBProxyVersion(ctx context.Context, ...) (errRet error)
- func (me *MysqlService) UpgradeDBInstance(ctx context.Context, mysqlId string, ...) (asyncRequestId string, errRet error)
- func (me *MysqlService) UpgradeDBInstanceEngineVersion(ctx context.Context, mysqlId, engineVersion string, ...) (asyncRequestId string, errRet error)
- type ResourceTencentCloudMysqlAccountPrivilegeId
- type ResourceTencentCloudMysqlPrivilegeId
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 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_CHARGE_TYPE = map[int]string{ MysqlPayByMonth: MYSQL_CHARGE_TYPE_PREPAID, MysqlPayByUse: MYSQL_CHARGE_TYPE_POSTPAID, }
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,
}
View Source
var MysqlDelStates = map[int64]bool{ MYSQL_STATUS_ISOLATING: true, MYSQL_STATUS_ISOLATED: true, MYSQL_STATUS_ISOLATED_1: true, MYSQL_STATUS_ISOLATED_2: true, }
Functions ¶
func ResourceTencentCloudMysqlDrInstance ¶ added in v1.81.90
func TencentMsyqlBasicInfo ¶
func TencentMysqlSellType ¶
func TencentMysqlZoneConfig ¶
Types ¶
type MysqlService ¶
type MysqlService struct {
// contains filtered or unexported fields
}
func NewMysqlService ¶
func NewMysqlService(client *connectivity.TencentCloudClient) MysqlService
func (*MysqlService) CheckDBGTIDOpen ¶
func (*MysqlService) CloseWanService ¶
func (*MysqlService) CreateAccount ¶
func (*MysqlService) CreateBackup ¶
func (*MysqlService) DeleteAccount ¶
func (*MysqlService) DeleteMysqlAuditLogFileById ¶
func (*MysqlService) DeleteMysqlDatabaseById ¶
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) 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 (*MysqlService) DeleteMysqlSecurityGroupsAttachmentById ¶
func (*MysqlService) DeleteMysqlTimeWindowById ¶
func (me *MysqlService) DeleteMysqlTimeWindowById(ctx context.Context, instanceId string) (errRet error)
func (*MysqlService) DescribeAccountPrivileges ¶
func (*MysqlService) DescribeAccounts ¶
func (me *MysqlService) DescribeAccounts(ctx context.Context, mysqlId string) (accountInfos []*cdb.AccountInfo, errRet error)
func (*MysqlService) DescribeAsyncRequestInfo ¶
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 (*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 (*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 (*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 (*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) 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 (*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) 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) DescribeRunningDBInstanceById ¶
func (me *MysqlService) DescribeRunningDBInstanceById(ctx context.Context, mysqlId string) (mysqlInfo *cdb.InstanceInfo, errRet error)
func (*MysqlService) DescribeTagsOfInstanceId ¶
func (*MysqlService) DisassociateSecurityGroup ¶
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 (*MysqlService) ModifyAccountDescription ¶
func (*MysqlService) ModifyAccountHost ¶
func (*MysqlService) ModifyAccountMaxUserConnections ¶
func (*MysqlService) ModifyAccountPassword ¶
func (*MysqlService) ModifyAccountPrivileges ¶
func (*MysqlService) ModifyAutoRenewFlag ¶
func (*MysqlService) ModifyBackupConfigByMysqlId ¶
func (*MysqlService) ModifyCdbProxyAddressDesc ¶
func (me *MysqlService) ModifyCdbProxyAddressDesc(ctx context.Context, proxyGroupId, proxyAddressId, desc string) (errRet error)
func (*MysqlService) ModifyCdbProxyAddressVipAndVPort ¶
func (*MysqlService) ModifyDBInstanceName ¶
func (me *MysqlService) ModifyDBInstanceName(ctx context.Context, mysqlId, newInstanceName string) (errRet error)
func (*MysqlService) ModifyDBInstanceProject ¶
func (*MysqlService) ModifyDBInstanceSecurityGroups ¶
func (*MysqlService) ModifyDBInstanceVipVport ¶
func (*MysqlService) ModifyInstanceParam ¶
func (*MysqlService) ModifyInstanceTag ¶
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 (*MysqlService) OpenWanService ¶
func (*MysqlService) UpgradeCDBProxyVersion ¶
func (me *MysqlService) UpgradeCDBProxyVersion(ctx context.Context, instanceId, proxyGroupId, oldProxyVersion, proxyVersion, upgradeTime string) (errRet error)
func (*MysqlService) UpgradeDBInstance ¶
func (*MysqlService) UpgradeDBInstanceEngineVersion ¶
Source Files ¶
- data_source_tc_mysql_backup_list.go
- data_source_tc_mysql_backup_overview.go
- data_source_tc_mysql_backup_summaries.go
- data_source_tc_mysql_bin_log.go
- data_source_tc_mysql_binlog_backup_overview.go
- data_source_tc_mysql_clone_list.go
- data_source_tc_mysql_data_backup_overview.go
- data_source_tc_mysql_databases.go
- data_source_tc_mysql_db_features.go
- data_source_tc_mysql_default_params.go
- data_source_tc_mysql_error_log.go
- data_source_tc_mysql_inst_tables.go
- data_source_tc_mysql_instance.go
- data_source_tc_mysql_instance_charset.go
- data_source_tc_mysql_instance_info.go
- data_source_tc_mysql_instance_param_record.go
- data_source_tc_mysql_instance_reboot_time.go
- data_source_tc_mysql_parameter_list.go
- data_source_tc_mysql_project_security_group.go
- data_source_tc_mysql_proxy_custom.go
- data_source_tc_mysql_ro_min_scale.go
- data_source_tc_mysql_rollback_range_time.go
- data_source_tc_mysql_slow_log.go
- data_source_tc_mysql_slow_log_data.go
- data_source_tc_mysql_supported_privileges.go
- data_source_tc_mysql_switch_record.go
- data_source_tc_mysql_user_task.go
- data_source_tc_mysql_zone_config.go
- extension_mysql.go
- resource_tc_mysql_account.go
- resource_tc_mysql_account_privilege.go
- resource_tc_mysql_audit_log_file.go
- resource_tc_mysql_backup_download_restriction.go
- resource_tc_mysql_backup_encryption_status.go
- resource_tc_mysql_backup_policy.go
- resource_tc_mysql_database.go
- resource_tc_mysql_db_import_job_operation.go
- resource_tc_mysql_deploy_group.go
- resource_tc_mysql_dr_instance.go
- resource_tc_mysql_dr_instance_to_mater.go
- resource_tc_mysql_instance.go
- resource_tc_mysql_instance_encryption_operation.go
- resource_tc_mysql_isolate_instance.go
- resource_tc_mysql_local_binlog_config.go
- resource_tc_mysql_param_template.go
- resource_tc_mysql_password_complexity.go
- resource_tc_mysql_privilege.go
- resource_tc_mysql_proxy.go
- resource_tc_mysql_readonly_instance.go
- resource_tc_mysql_reload_balance_proxy_node.go
- resource_tc_mysql_remote_backup_config.go
- resource_tc_mysql_renew_db_instance_operation.go
- resource_tc_mysql_reset_root_account.go
- resource_tc_mysql_restart_db_instances_operation.go
- resource_tc_mysql_ro_group.go
- resource_tc_mysql_ro_group_load_operation.go
- resource_tc_mysql_ro_instance_ip.go
- resource_tc_mysql_ro_start_replication.go
- resource_tc_mysql_ro_stop_replication.go
- resource_tc_mysql_rollback.go
- resource_tc_mysql_rollback_stop.go
- resource_tc_mysql_security_groups_attachment.go
- resource_tc_mysql_switch_for_upgrade.go
- resource_tc_mysql_switch_master_slave_operation.go
- resource_tc_mysql_switch_proxy.go
- resource_tc_mysql_time_window.go
- resource_tc_mysql_verify_root_account.go
- service_tencentcloud_mysql.go
Click to show internal directories.
Click to hide internal directories.