Documentation ¶
Index ¶
- Constants
- type Account
- type AccountInfo
- type AddTimeWindowRequest
- type AddTimeWindowRequestParams
- type AddTimeWindowResponse
- type AddTimeWindowResponseParams
- type AdjustCdbProxyAddressRequest
- type AdjustCdbProxyAddressRequestParams
- type AdjustCdbProxyAddressResponse
- type AdjustCdbProxyAddressResponseParams
- type AdjustCdbProxyRequest
- type AdjustCdbProxyRequestParams
- type AdjustCdbProxyResponse
- type AdjustCdbProxyResponseParams
- type AggregationCondition
- type AnalyzeAuditLogsRequest
- type AnalyzeAuditLogsRequestParams
- type AnalyzeAuditLogsResponse
- type AnalyzeAuditLogsResponseParams
- type AssociateSecurityGroupsRequest
- type AssociateSecurityGroupsRequestParams
- type AssociateSecurityGroupsResponse
- type AssociateSecurityGroupsResponseParams
- type AuditFilter
- type AuditLog
- type AuditLogAggregationResult
- type AuditLogFilter
- type AuditPolicy
- type AuditRule
- type AuditRuleFilters
- type BackupConfig
- type BackupInfo
- type BackupItem
- type BackupLimitVpcItem
- type BackupSummaryItem
- type BalanceRoGroupLoadRequest
- type BalanceRoGroupLoadRequestParams
- type BalanceRoGroupLoadResponse
- type BalanceRoGroupLoadResponseParams
- type BinlogInfo
- type Bucket
- type CdbRegionSellConf
- type CdbSellConfig
- type CdbSellType
- type CdbZoneDataResult
- type CdbZoneSellConf
- type Client
- func (c *Client) AddTimeWindow(request *AddTimeWindowRequest) (response *AddTimeWindowResponse, err error)
- func (c *Client) AddTimeWindowWithContext(ctx context.Context, request *AddTimeWindowRequest) (response *AddTimeWindowResponse, err error)
- func (c *Client) AdjustCdbProxy(request *AdjustCdbProxyRequest) (response *AdjustCdbProxyResponse, err error)
- func (c *Client) AdjustCdbProxyAddress(request *AdjustCdbProxyAddressRequest) (response *AdjustCdbProxyAddressResponse, err error)
- func (c *Client) AdjustCdbProxyAddressWithContext(ctx context.Context, request *AdjustCdbProxyAddressRequest) (response *AdjustCdbProxyAddressResponse, err error)
- func (c *Client) AdjustCdbProxyWithContext(ctx context.Context, request *AdjustCdbProxyRequest) (response *AdjustCdbProxyResponse, err error)
- func (c *Client) AnalyzeAuditLogs(request *AnalyzeAuditLogsRequest) (response *AnalyzeAuditLogsResponse, err error)
- func (c *Client) AnalyzeAuditLogsWithContext(ctx context.Context, request *AnalyzeAuditLogsRequest) (response *AnalyzeAuditLogsResponse, err error)
- func (c *Client) AssociateSecurityGroups(request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
- func (c *Client) AssociateSecurityGroupsWithContext(ctx context.Context, request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
- func (c *Client) BalanceRoGroupLoad(request *BalanceRoGroupLoadRequest) (response *BalanceRoGroupLoadResponse, err error)
- func (c *Client) BalanceRoGroupLoadWithContext(ctx context.Context, request *BalanceRoGroupLoadRequest) (response *BalanceRoGroupLoadResponse, err error)
- func (c *Client) CloseCDBProxy(request *CloseCDBProxyRequest) (response *CloseCDBProxyResponse, err error)
- func (c *Client) CloseCDBProxyWithContext(ctx context.Context, request *CloseCDBProxyRequest) (response *CloseCDBProxyResponse, err error)
- func (c *Client) CloseCdbProxyAddress(request *CloseCdbProxyAddressRequest) (response *CloseCdbProxyAddressResponse, err error)
- func (c *Client) CloseCdbProxyAddressWithContext(ctx context.Context, request *CloseCdbProxyAddressRequest) (response *CloseCdbProxyAddressResponse, err error)
- func (c *Client) CloseWanService(request *CloseWanServiceRequest) (response *CloseWanServiceResponse, err error)
- func (c *Client) CloseWanServiceWithContext(ctx context.Context, request *CloseWanServiceRequest) (response *CloseWanServiceResponse, err error)
- func (c *Client) CreateAccounts(request *CreateAccountsRequest) (response *CreateAccountsResponse, err error)
- func (c *Client) CreateAccountsWithContext(ctx context.Context, request *CreateAccountsRequest) (response *CreateAccountsResponse, err error)
- func (c *Client) CreateAuditPolicy(request *CreateAuditPolicyRequest) (response *CreateAuditPolicyResponse, err error)
- func (c *Client) CreateAuditPolicyWithContext(ctx context.Context, request *CreateAuditPolicyRequest) (response *CreateAuditPolicyResponse, err error)
- func (c *Client) CreateBackup(request *CreateBackupRequest) (response *CreateBackupResponse, err error)
- func (c *Client) CreateBackupWithContext(ctx context.Context, request *CreateBackupRequest) (response *CreateBackupResponse, err error)
- func (c *Client) CreateCdbProxy(request *CreateCdbProxyRequest) (response *CreateCdbProxyResponse, err error)
- func (c *Client) CreateCdbProxyAddress(request *CreateCdbProxyAddressRequest) (response *CreateCdbProxyAddressResponse, err error)
- func (c *Client) CreateCdbProxyAddressWithContext(ctx context.Context, request *CreateCdbProxyAddressRequest) (response *CreateCdbProxyAddressResponse, err error)
- func (c *Client) CreateCdbProxyWithContext(ctx context.Context, request *CreateCdbProxyRequest) (response *CreateCdbProxyResponse, err error)
- func (c *Client) CreateCloneInstance(request *CreateCloneInstanceRequest) (response *CreateCloneInstanceResponse, err error)
- func (c *Client) CreateCloneInstanceWithContext(ctx context.Context, request *CreateCloneInstanceRequest) (response *CreateCloneInstanceResponse, err error)
- func (c *Client) CreateDBImportJob(request *CreateDBImportJobRequest) (response *CreateDBImportJobResponse, err error)
- func (c *Client) CreateDBImportJobWithContext(ctx context.Context, request *CreateDBImportJobRequest) (response *CreateDBImportJobResponse, err error)
- func (c *Client) CreateDBInstance(request *CreateDBInstanceRequest) (response *CreateDBInstanceResponse, err error)
- func (c *Client) CreateDBInstanceHour(request *CreateDBInstanceHourRequest) (response *CreateDBInstanceHourResponse, err error)
- func (c *Client) CreateDBInstanceHourWithContext(ctx context.Context, request *CreateDBInstanceHourRequest) (response *CreateDBInstanceHourResponse, err error)
- func (c *Client) CreateDBInstanceWithContext(ctx context.Context, request *CreateDBInstanceRequest) (response *CreateDBInstanceResponse, err error)
- func (c *Client) CreateDatabase(request *CreateDatabaseRequest) (response *CreateDatabaseResponse, err error)
- func (c *Client) CreateDatabaseWithContext(ctx context.Context, request *CreateDatabaseRequest) (response *CreateDatabaseResponse, err error)
- func (c *Client) CreateParamTemplate(request *CreateParamTemplateRequest) (response *CreateParamTemplateResponse, err error)
- func (c *Client) CreateParamTemplateWithContext(ctx context.Context, request *CreateParamTemplateRequest) (response *CreateParamTemplateResponse, err error)
- func (c *Client) CreateRoInstanceIp(request *CreateRoInstanceIpRequest) (response *CreateRoInstanceIpResponse, err error)
- func (c *Client) CreateRoInstanceIpWithContext(ctx context.Context, request *CreateRoInstanceIpRequest) (response *CreateRoInstanceIpResponse, err error)
- func (c *Client) DeleteAccounts(request *DeleteAccountsRequest) (response *DeleteAccountsResponse, err error)
- func (c *Client) DeleteAccountsWithContext(ctx context.Context, request *DeleteAccountsRequest) (response *DeleteAccountsResponse, err error)
- func (c *Client) DeleteBackup(request *DeleteBackupRequest) (response *DeleteBackupResponse, err error)
- func (c *Client) DeleteBackupWithContext(ctx context.Context, request *DeleteBackupRequest) (response *DeleteBackupResponse, err error)
- func (c *Client) DeleteParamTemplate(request *DeleteParamTemplateRequest) (response *DeleteParamTemplateResponse, err error)
- func (c *Client) DeleteParamTemplateWithContext(ctx context.Context, request *DeleteParamTemplateRequest) (response *DeleteParamTemplateResponse, err error)
- func (c *Client) DeleteTimeWindow(request *DeleteTimeWindowRequest) (response *DeleteTimeWindowResponse, err error)
- func (c *Client) DeleteTimeWindowWithContext(ctx context.Context, request *DeleteTimeWindowRequest) (response *DeleteTimeWindowResponse, err error)
- func (c *Client) DescribeAccountPrivileges(request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error)
- func (c *Client) DescribeAccountPrivilegesWithContext(ctx context.Context, request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error)
- func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
- func (c *Client) DescribeAccountsWithContext(ctx context.Context, request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
- func (c *Client) DescribeAsyncRequestInfo(request *DescribeAsyncRequestInfoRequest) (response *DescribeAsyncRequestInfoResponse, err error)
- func (c *Client) DescribeAsyncRequestInfoWithContext(ctx context.Context, request *DescribeAsyncRequestInfoRequest) (response *DescribeAsyncRequestInfoResponse, err error)
- func (c *Client) DescribeAuditLogs(request *DescribeAuditLogsRequest) (response *DescribeAuditLogsResponse, err error)
- func (c *Client) DescribeAuditLogsWithContext(ctx context.Context, request *DescribeAuditLogsRequest) (response *DescribeAuditLogsResponse, err error)
- func (c *Client) DescribeAuditPolicies(request *DescribeAuditPoliciesRequest) (response *DescribeAuditPoliciesResponse, err error)
- func (c *Client) DescribeAuditPoliciesWithContext(ctx context.Context, request *DescribeAuditPoliciesRequest) (response *DescribeAuditPoliciesResponse, err error)
- func (c *Client) DescribeAuditRules(request *DescribeAuditRulesRequest) (response *DescribeAuditRulesResponse, err error)
- func (c *Client) DescribeAuditRulesWithContext(ctx context.Context, request *DescribeAuditRulesRequest) (response *DescribeAuditRulesResponse, err error)
- func (c *Client) DescribeBackupConfig(request *DescribeBackupConfigRequest) (response *DescribeBackupConfigResponse, err error)
- func (c *Client) DescribeBackupConfigWithContext(ctx context.Context, request *DescribeBackupConfigRequest) (response *DescribeBackupConfigResponse, err error)
- func (c *Client) DescribeBackupDecryptionKey(request *DescribeBackupDecryptionKeyRequest) (response *DescribeBackupDecryptionKeyResponse, err error)
- func (c *Client) DescribeBackupDecryptionKeyWithContext(ctx context.Context, request *DescribeBackupDecryptionKeyRequest) (response *DescribeBackupDecryptionKeyResponse, err error)
- func (c *Client) DescribeBackupDownloadRestriction(request *DescribeBackupDownloadRestrictionRequest) (response *DescribeBackupDownloadRestrictionResponse, err error)
- func (c *Client) DescribeBackupDownloadRestrictionWithContext(ctx context.Context, request *DescribeBackupDownloadRestrictionRequest) (response *DescribeBackupDownloadRestrictionResponse, err error)
- func (c *Client) DescribeBackupEncryptionStatus(request *DescribeBackupEncryptionStatusRequest) (response *DescribeBackupEncryptionStatusResponse, err error)
- func (c *Client) DescribeBackupEncryptionStatusWithContext(ctx context.Context, request *DescribeBackupEncryptionStatusRequest) (response *DescribeBackupEncryptionStatusResponse, err error)
- func (c *Client) DescribeBackupOverview(request *DescribeBackupOverviewRequest) (response *DescribeBackupOverviewResponse, err error)
- func (c *Client) DescribeBackupOverviewWithContext(ctx context.Context, request *DescribeBackupOverviewRequest) (response *DescribeBackupOverviewResponse, err error)
- func (c *Client) DescribeBackupSummaries(request *DescribeBackupSummariesRequest) (response *DescribeBackupSummariesResponse, err error)
- func (c *Client) DescribeBackupSummariesWithContext(ctx context.Context, request *DescribeBackupSummariesRequest) (response *DescribeBackupSummariesResponse, err error)
- func (c *Client) DescribeBackups(request *DescribeBackupsRequest) (response *DescribeBackupsResponse, err error)
- func (c *Client) DescribeBackupsWithContext(ctx context.Context, request *DescribeBackupsRequest) (response *DescribeBackupsResponse, err error)
- func (c *Client) DescribeBinlogBackupOverview(request *DescribeBinlogBackupOverviewRequest) (response *DescribeBinlogBackupOverviewResponse, err error)
- func (c *Client) DescribeBinlogBackupOverviewWithContext(ctx context.Context, request *DescribeBinlogBackupOverviewRequest) (response *DescribeBinlogBackupOverviewResponse, err error)
- func (c *Client) DescribeBinlogs(request *DescribeBinlogsRequest) (response *DescribeBinlogsResponse, err error)
- func (c *Client) DescribeBinlogsWithContext(ctx context.Context, request *DescribeBinlogsRequest) (response *DescribeBinlogsResponse, err error)
- func (c *Client) DescribeCdbProxyInfo(request *DescribeCdbProxyInfoRequest) (response *DescribeCdbProxyInfoResponse, err error)
- func (c *Client) DescribeCdbProxyInfoWithContext(ctx context.Context, request *DescribeCdbProxyInfoRequest) (response *DescribeCdbProxyInfoResponse, err error)
- func (c *Client) DescribeCdbZoneConfig(request *DescribeCdbZoneConfigRequest) (response *DescribeCdbZoneConfigResponse, err error)
- func (c *Client) DescribeCdbZoneConfigWithContext(ctx context.Context, request *DescribeCdbZoneConfigRequest) (response *DescribeCdbZoneConfigResponse, err error)
- func (c *Client) DescribeCloneList(request *DescribeCloneListRequest) (response *DescribeCloneListResponse, err error)
- func (c *Client) DescribeCloneListWithContext(ctx context.Context, request *DescribeCloneListRequest) (response *DescribeCloneListResponse, err error)
- func (c *Client) DescribeCpuExpandStrategy(request *DescribeCpuExpandStrategyRequest) (response *DescribeCpuExpandStrategyResponse, err error)
- func (c *Client) DescribeCpuExpandStrategyWithContext(ctx context.Context, request *DescribeCpuExpandStrategyRequest) (response *DescribeCpuExpandStrategyResponse, err error)
- func (c *Client) DescribeDBFeatures(request *DescribeDBFeaturesRequest) (response *DescribeDBFeaturesResponse, err error)
- func (c *Client) DescribeDBFeaturesWithContext(ctx context.Context, request *DescribeDBFeaturesRequest) (response *DescribeDBFeaturesResponse, err error)
- func (c *Client) DescribeDBImportRecords(request *DescribeDBImportRecordsRequest) (response *DescribeDBImportRecordsResponse, err error)
- func (c *Client) DescribeDBImportRecordsWithContext(ctx context.Context, request *DescribeDBImportRecordsRequest) (response *DescribeDBImportRecordsResponse, err error)
- func (c *Client) DescribeDBInstanceCharset(request *DescribeDBInstanceCharsetRequest) (response *DescribeDBInstanceCharsetResponse, err error)
- func (c *Client) DescribeDBInstanceCharsetWithContext(ctx context.Context, request *DescribeDBInstanceCharsetRequest) (response *DescribeDBInstanceCharsetResponse, err error)
- func (c *Client) DescribeDBInstanceConfig(request *DescribeDBInstanceConfigRequest) (response *DescribeDBInstanceConfigResponse, err error)
- func (c *Client) DescribeDBInstanceConfigWithContext(ctx context.Context, request *DescribeDBInstanceConfigRequest) (response *DescribeDBInstanceConfigResponse, err error)
- func (c *Client) DescribeDBInstanceGTID(request *DescribeDBInstanceGTIDRequest) (response *DescribeDBInstanceGTIDResponse, err error)
- func (c *Client) DescribeDBInstanceGTIDWithContext(ctx context.Context, request *DescribeDBInstanceGTIDRequest) (response *DescribeDBInstanceGTIDResponse, err error)
- func (c *Client) DescribeDBInstanceInfo(request *DescribeDBInstanceInfoRequest) (response *DescribeDBInstanceInfoResponse, err error)
- func (c *Client) DescribeDBInstanceInfoWithContext(ctx context.Context, request *DescribeDBInstanceInfoRequest) (response *DescribeDBInstanceInfoResponse, err error)
- func (c *Client) DescribeDBInstanceRebootTime(request *DescribeDBInstanceRebootTimeRequest) (response *DescribeDBInstanceRebootTimeResponse, err error)
- func (c *Client) DescribeDBInstanceRebootTimeWithContext(ctx context.Context, request *DescribeDBInstanceRebootTimeRequest) (response *DescribeDBInstanceRebootTimeResponse, err error)
- func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
- func (c *Client) DescribeDBInstancesWithContext(ctx context.Context, request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
- func (c *Client) DescribeDBPrice(request *DescribeDBPriceRequest) (response *DescribeDBPriceResponse, err error)
- func (c *Client) DescribeDBPriceWithContext(ctx context.Context, request *DescribeDBPriceRequest) (response *DescribeDBPriceResponse, err error)
- func (c *Client) DescribeDBSecurityGroups(request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
- func (c *Client) DescribeDBSecurityGroupsWithContext(ctx context.Context, request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
- func (c *Client) DescribeDBSwitchRecords(request *DescribeDBSwitchRecordsRequest) (response *DescribeDBSwitchRecordsResponse, err error)
- func (c *Client) DescribeDBSwitchRecordsWithContext(ctx context.Context, request *DescribeDBSwitchRecordsRequest) (response *DescribeDBSwitchRecordsResponse, err error)
- func (c *Client) DescribeDataBackupOverview(request *DescribeDataBackupOverviewRequest) (response *DescribeDataBackupOverviewResponse, err error)
- func (c *Client) DescribeDataBackupOverviewWithContext(ctx context.Context, request *DescribeDataBackupOverviewRequest) (response *DescribeDataBackupOverviewResponse, err error)
- func (c *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
- func (c *Client) DescribeDatabasesWithContext(ctx context.Context, request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
- func (c *Client) DescribeDefaultParams(request *DescribeDefaultParamsRequest) (response *DescribeDefaultParamsResponse, err error)
- func (c *Client) DescribeDefaultParamsWithContext(ctx context.Context, request *DescribeDefaultParamsRequest) (response *DescribeDefaultParamsResponse, err error)
- func (c *Client) DescribeDeviceMonitorInfo(request *DescribeDeviceMonitorInfoRequest) (response *DescribeDeviceMonitorInfoResponse, err error)
- func (c *Client) DescribeDeviceMonitorInfoWithContext(ctx context.Context, request *DescribeDeviceMonitorInfoRequest) (response *DescribeDeviceMonitorInfoResponse, err error)
- func (c *Client) DescribeErrorLogData(request *DescribeErrorLogDataRequest) (response *DescribeErrorLogDataResponse, err error)
- func (c *Client) DescribeErrorLogDataWithContext(ctx context.Context, request *DescribeErrorLogDataRequest) (response *DescribeErrorLogDataResponse, err error)
- func (c *Client) DescribeInstanceParamRecords(request *DescribeInstanceParamRecordsRequest) (response *DescribeInstanceParamRecordsResponse, err error)
- func (c *Client) DescribeInstanceParamRecordsWithContext(ctx context.Context, request *DescribeInstanceParamRecordsRequest) (response *DescribeInstanceParamRecordsResponse, err error)
- func (c *Client) DescribeInstanceParams(request *DescribeInstanceParamsRequest) (response *DescribeInstanceParamsResponse, err error)
- func (c *Client) DescribeInstanceParamsWithContext(ctx context.Context, request *DescribeInstanceParamsRequest) (response *DescribeInstanceParamsResponse, err error)
- func (c *Client) DescribeLocalBinlogConfig(request *DescribeLocalBinlogConfigRequest) (response *DescribeLocalBinlogConfigResponse, err error)
- func (c *Client) DescribeLocalBinlogConfigWithContext(ctx context.Context, request *DescribeLocalBinlogConfigRequest) (response *DescribeLocalBinlogConfigResponse, err error)
- func (c *Client) DescribeParamTemplateInfo(request *DescribeParamTemplateInfoRequest) (response *DescribeParamTemplateInfoResponse, err error)
- func (c *Client) DescribeParamTemplateInfoWithContext(ctx context.Context, request *DescribeParamTemplateInfoRequest) (response *DescribeParamTemplateInfoResponse, err error)
- func (c *Client) DescribeParamTemplates(request *DescribeParamTemplatesRequest) (response *DescribeParamTemplatesResponse, err error)
- func (c *Client) DescribeParamTemplatesWithContext(ctx context.Context, request *DescribeParamTemplatesRequest) (response *DescribeParamTemplatesResponse, err error)
- func (c *Client) DescribeProjectSecurityGroups(request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
- func (c *Client) DescribeProjectSecurityGroupsWithContext(ctx context.Context, request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
- func (c *Client) DescribeProxyCustomConf(request *DescribeProxyCustomConfRequest) (response *DescribeProxyCustomConfResponse, err error)
- func (c *Client) DescribeProxyCustomConfWithContext(ctx context.Context, request *DescribeProxyCustomConfRequest) (response *DescribeProxyCustomConfResponse, err error)
- func (c *Client) DescribeProxySupportParam(request *DescribeProxySupportParamRequest) (response *DescribeProxySupportParamResponse, err error)
- func (c *Client) DescribeProxySupportParamWithContext(ctx context.Context, request *DescribeProxySupportParamRequest) (response *DescribeProxySupportParamResponse, err error)
- func (c *Client) DescribeRemoteBackupConfig(request *DescribeRemoteBackupConfigRequest) (response *DescribeRemoteBackupConfigResponse, err error)
- func (c *Client) DescribeRemoteBackupConfigWithContext(ctx context.Context, request *DescribeRemoteBackupConfigRequest) (response *DescribeRemoteBackupConfigResponse, err error)
- func (c *Client) DescribeRoGroups(request *DescribeRoGroupsRequest) (response *DescribeRoGroupsResponse, err error)
- func (c *Client) DescribeRoGroupsWithContext(ctx context.Context, request *DescribeRoGroupsRequest) (response *DescribeRoGroupsResponse, err error)
- func (c *Client) DescribeRoMinScale(request *DescribeRoMinScaleRequest) (response *DescribeRoMinScaleResponse, err error)
- func (c *Client) DescribeRoMinScaleWithContext(ctx context.Context, request *DescribeRoMinScaleRequest) (response *DescribeRoMinScaleResponse, err error)
- func (c *Client) DescribeRollbackRangeTime(request *DescribeRollbackRangeTimeRequest) (response *DescribeRollbackRangeTimeResponse, err error)
- func (c *Client) DescribeRollbackRangeTimeWithContext(ctx context.Context, request *DescribeRollbackRangeTimeRequest) (response *DescribeRollbackRangeTimeResponse, err error)
- func (c *Client) DescribeRollbackTaskDetail(request *DescribeRollbackTaskDetailRequest) (response *DescribeRollbackTaskDetailResponse, err error)
- func (c *Client) DescribeRollbackTaskDetailWithContext(ctx context.Context, request *DescribeRollbackTaskDetailRequest) (response *DescribeRollbackTaskDetailResponse, err error)
- func (c *Client) DescribeSlowLogData(request *DescribeSlowLogDataRequest) (response *DescribeSlowLogDataResponse, err error)
- func (c *Client) DescribeSlowLogDataWithContext(ctx context.Context, request *DescribeSlowLogDataRequest) (response *DescribeSlowLogDataResponse, err error)
- func (c *Client) DescribeSlowLogs(request *DescribeSlowLogsRequest) (response *DescribeSlowLogsResponse, err error)
- func (c *Client) DescribeSlowLogsWithContext(ctx context.Context, request *DescribeSlowLogsRequest) (response *DescribeSlowLogsResponse, err error)
- func (c *Client) DescribeSupportedPrivileges(request *DescribeSupportedPrivilegesRequest) (response *DescribeSupportedPrivilegesResponse, err error)
- func (c *Client) DescribeSupportedPrivilegesWithContext(ctx context.Context, request *DescribeSupportedPrivilegesRequest) (response *DescribeSupportedPrivilegesResponse, err error)
- func (c *Client) DescribeTables(request *DescribeTablesRequest) (response *DescribeTablesResponse, err error)
- func (c *Client) DescribeTablesWithContext(ctx context.Context, request *DescribeTablesRequest) (response *DescribeTablesResponse, err error)
- func (c *Client) DescribeTagsOfInstanceIds(request *DescribeTagsOfInstanceIdsRequest) (response *DescribeTagsOfInstanceIdsResponse, err error)
- func (c *Client) DescribeTagsOfInstanceIdsWithContext(ctx context.Context, request *DescribeTagsOfInstanceIdsRequest) (response *DescribeTagsOfInstanceIdsResponse, err error)
- func (c *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
- func (c *Client) DescribeTasksWithContext(ctx context.Context, request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
- func (c *Client) DescribeTimeWindow(request *DescribeTimeWindowRequest) (response *DescribeTimeWindowResponse, err error)
- func (c *Client) DescribeTimeWindowWithContext(ctx context.Context, request *DescribeTimeWindowRequest) (response *DescribeTimeWindowResponse, err error)
- func (c *Client) DescribeUploadedFiles(request *DescribeUploadedFilesRequest) (response *DescribeUploadedFilesResponse, err error)
- func (c *Client) DescribeUploadedFilesWithContext(ctx context.Context, request *DescribeUploadedFilesRequest) (response *DescribeUploadedFilesResponse, err error)
- func (c *Client) DisassociateSecurityGroups(request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
- func (c *Client) DisassociateSecurityGroupsWithContext(ctx context.Context, request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
- func (c *Client) InitDBInstances(request *InitDBInstancesRequest) (response *InitDBInstancesResponse, err error)
- func (c *Client) InitDBInstancesWithContext(ctx context.Context, request *InitDBInstancesRequest) (response *InitDBInstancesResponse, err error)
- func (c *Client) IsolateDBInstance(request *IsolateDBInstanceRequest) (response *IsolateDBInstanceResponse, err error)
- func (c *Client) IsolateDBInstanceWithContext(ctx context.Context, request *IsolateDBInstanceRequest) (response *IsolateDBInstanceResponse, err error)
- func (c *Client) ModifyAccountDescription(request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error)
- func (c *Client) ModifyAccountDescriptionWithContext(ctx context.Context, request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error)
- func (c *Client) ModifyAccountMaxUserConnections(request *ModifyAccountMaxUserConnectionsRequest) (response *ModifyAccountMaxUserConnectionsResponse, err error)
- func (c *Client) ModifyAccountMaxUserConnectionsWithContext(ctx context.Context, request *ModifyAccountMaxUserConnectionsRequest) (response *ModifyAccountMaxUserConnectionsResponse, err error)
- func (c *Client) ModifyAccountPassword(request *ModifyAccountPasswordRequest) (response *ModifyAccountPasswordResponse, err error)
- func (c *Client) ModifyAccountPasswordWithContext(ctx context.Context, request *ModifyAccountPasswordRequest) (response *ModifyAccountPasswordResponse, err error)
- func (c *Client) ModifyAccountPrivileges(request *ModifyAccountPrivilegesRequest) (response *ModifyAccountPrivilegesResponse, err error)
- func (c *Client) ModifyAccountPrivilegesWithContext(ctx context.Context, request *ModifyAccountPrivilegesRequest) (response *ModifyAccountPrivilegesResponse, err error)
- func (c *Client) ModifyAutoRenewFlag(request *ModifyAutoRenewFlagRequest) (response *ModifyAutoRenewFlagResponse, err error)
- func (c *Client) ModifyAutoRenewFlagWithContext(ctx context.Context, request *ModifyAutoRenewFlagRequest) (response *ModifyAutoRenewFlagResponse, err error)
- func (c *Client) ModifyBackupConfig(request *ModifyBackupConfigRequest) (response *ModifyBackupConfigResponse, err error)
- func (c *Client) ModifyBackupConfigWithContext(ctx context.Context, request *ModifyBackupConfigRequest) (response *ModifyBackupConfigResponse, err error)
- func (c *Client) ModifyBackupDownloadRestriction(request *ModifyBackupDownloadRestrictionRequest) (response *ModifyBackupDownloadRestrictionResponse, err error)
- func (c *Client) ModifyBackupDownloadRestrictionWithContext(ctx context.Context, request *ModifyBackupDownloadRestrictionRequest) (response *ModifyBackupDownloadRestrictionResponse, err error)
- func (c *Client) ModifyBackupEncryptionStatus(request *ModifyBackupEncryptionStatusRequest) (response *ModifyBackupEncryptionStatusResponse, err error)
- func (c *Client) ModifyBackupEncryptionStatusWithContext(ctx context.Context, request *ModifyBackupEncryptionStatusRequest) (response *ModifyBackupEncryptionStatusResponse, err error)
- func (c *Client) ModifyCdbProxyAddressDesc(request *ModifyCdbProxyAddressDescRequest) (response *ModifyCdbProxyAddressDescResponse, err error)
- func (c *Client) ModifyCdbProxyAddressDescWithContext(ctx context.Context, request *ModifyCdbProxyAddressDescRequest) (response *ModifyCdbProxyAddressDescResponse, err error)
- func (c *Client) ModifyCdbProxyAddressVipAndVPort(request *ModifyCdbProxyAddressVipAndVPortRequest) (response *ModifyCdbProxyAddressVipAndVPortResponse, err error)
- func (c *Client) ModifyCdbProxyAddressVipAndVPortWithContext(ctx context.Context, request *ModifyCdbProxyAddressVipAndVPortRequest) (response *ModifyCdbProxyAddressVipAndVPortResponse, err error)
- func (c *Client) ModifyCdbProxyParam(request *ModifyCdbProxyParamRequest) (response *ModifyCdbProxyParamResponse, err error)
- func (c *Client) ModifyCdbProxyParamWithContext(ctx context.Context, request *ModifyCdbProxyParamRequest) (response *ModifyCdbProxyParamResponse, err error)
- func (c *Client) ModifyDBInstanceName(request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)
- func (c *Client) ModifyDBInstanceNameWithContext(ctx context.Context, request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)
- func (c *Client) ModifyDBInstanceProject(request *ModifyDBInstanceProjectRequest) (response *ModifyDBInstanceProjectResponse, err error)
- func (c *Client) ModifyDBInstanceProjectWithContext(ctx context.Context, request *ModifyDBInstanceProjectRequest) (response *ModifyDBInstanceProjectResponse, err error)
- func (c *Client) ModifyDBInstanceSecurityGroups(request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
- func (c *Client) ModifyDBInstanceSecurityGroupsWithContext(ctx context.Context, request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
- func (c *Client) ModifyDBInstanceVipVport(request *ModifyDBInstanceVipVportRequest) (response *ModifyDBInstanceVipVportResponse, err error)
- func (c *Client) ModifyDBInstanceVipVportWithContext(ctx context.Context, request *ModifyDBInstanceVipVportRequest) (response *ModifyDBInstanceVipVportResponse, err error)
- func (c *Client) ModifyInstanceParam(request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error)
- func (c *Client) ModifyInstanceParamWithContext(ctx context.Context, request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error)
- func (c *Client) ModifyInstancePasswordComplexity(request *ModifyInstancePasswordComplexityRequest) (response *ModifyInstancePasswordComplexityResponse, err error)
- func (c *Client) ModifyInstancePasswordComplexityWithContext(ctx context.Context, request *ModifyInstancePasswordComplexityRequest) (response *ModifyInstancePasswordComplexityResponse, err error)
- func (c *Client) ModifyInstanceTag(request *ModifyInstanceTagRequest) (response *ModifyInstanceTagResponse, err error)
- func (c *Client) ModifyInstanceTagWithContext(ctx context.Context, request *ModifyInstanceTagRequest) (response *ModifyInstanceTagResponse, err error)
- func (c *Client) ModifyLocalBinlogConfig(request *ModifyLocalBinlogConfigRequest) (response *ModifyLocalBinlogConfigResponse, err error)
- func (c *Client) ModifyLocalBinlogConfigWithContext(ctx context.Context, request *ModifyLocalBinlogConfigRequest) (response *ModifyLocalBinlogConfigResponse, err error)
- func (c *Client) ModifyNameOrDescByDpId(request *ModifyNameOrDescByDpIdRequest) (response *ModifyNameOrDescByDpIdResponse, err error)
- func (c *Client) ModifyNameOrDescByDpIdWithContext(ctx context.Context, request *ModifyNameOrDescByDpIdRequest) (response *ModifyNameOrDescByDpIdResponse, err error)
- func (c *Client) ModifyParamTemplate(request *ModifyParamTemplateRequest) (response *ModifyParamTemplateResponse, err error)
- func (c *Client) ModifyParamTemplateWithContext(ctx context.Context, request *ModifyParamTemplateRequest) (response *ModifyParamTemplateResponse, err error)
- func (c *Client) ModifyRemoteBackupConfig(request *ModifyRemoteBackupConfigRequest) (response *ModifyRemoteBackupConfigResponse, err error)
- func (c *Client) ModifyRemoteBackupConfigWithContext(ctx context.Context, request *ModifyRemoteBackupConfigRequest) (response *ModifyRemoteBackupConfigResponse, err error)
- func (c *Client) ModifyRoGroupInfo(request *ModifyRoGroupInfoRequest) (response *ModifyRoGroupInfoResponse, err error)
- func (c *Client) ModifyRoGroupInfoWithContext(ctx context.Context, request *ModifyRoGroupInfoRequest) (response *ModifyRoGroupInfoResponse, err error)
- func (c *Client) ModifyTimeWindow(request *ModifyTimeWindowRequest) (response *ModifyTimeWindowResponse, err error)
- func (c *Client) ModifyTimeWindowWithContext(ctx context.Context, request *ModifyTimeWindowRequest) (response *ModifyTimeWindowResponse, err error)
- func (c *Client) OfflineIsolatedInstances(request *OfflineIsolatedInstancesRequest) (response *OfflineIsolatedInstancesResponse, err error)
- func (c *Client) OfflineIsolatedInstancesWithContext(ctx context.Context, request *OfflineIsolatedInstancesRequest) (response *OfflineIsolatedInstancesResponse, err error)
- func (c *Client) OpenAuditService(request *OpenAuditServiceRequest) (response *OpenAuditServiceResponse, err error)
- func (c *Client) OpenAuditServiceWithContext(ctx context.Context, request *OpenAuditServiceRequest) (response *OpenAuditServiceResponse, err error)
- func (c *Client) OpenDBInstanceEncryption(request *OpenDBInstanceEncryptionRequest) (response *OpenDBInstanceEncryptionResponse, err error)
- func (c *Client) OpenDBInstanceEncryptionWithContext(ctx context.Context, request *OpenDBInstanceEncryptionRequest) (response *OpenDBInstanceEncryptionResponse, err error)
- func (c *Client) OpenDBInstanceGTID(request *OpenDBInstanceGTIDRequest) (response *OpenDBInstanceGTIDResponse, err error)
- func (c *Client) OpenDBInstanceGTIDWithContext(ctx context.Context, request *OpenDBInstanceGTIDRequest) (response *OpenDBInstanceGTIDResponse, err error)
- func (c *Client) OpenWanService(request *OpenWanServiceRequest) (response *OpenWanServiceResponse, err error)
- func (c *Client) OpenWanServiceWithContext(ctx context.Context, request *OpenWanServiceRequest) (response *OpenWanServiceResponse, err error)
- func (c *Client) ReleaseIsolatedDBInstances(request *ReleaseIsolatedDBInstancesRequest) (response *ReleaseIsolatedDBInstancesResponse, err error)
- func (c *Client) ReleaseIsolatedDBInstancesWithContext(ctx context.Context, request *ReleaseIsolatedDBInstancesRequest) (response *ReleaseIsolatedDBInstancesResponse, err error)
- func (c *Client) ReloadBalanceProxyNode(request *ReloadBalanceProxyNodeRequest) (response *ReloadBalanceProxyNodeResponse, err error)
- func (c *Client) ReloadBalanceProxyNodeWithContext(ctx context.Context, request *ReloadBalanceProxyNodeRequest) (response *ReloadBalanceProxyNodeResponse, err error)
- func (c *Client) RenewDBInstance(request *RenewDBInstanceRequest) (response *RenewDBInstanceResponse, err error)
- func (c *Client) RenewDBInstanceWithContext(ctx context.Context, request *RenewDBInstanceRequest) (response *RenewDBInstanceResponse, err error)
- func (c *Client) ResetRootAccount(request *ResetRootAccountRequest) (response *ResetRootAccountResponse, err error)
- func (c *Client) ResetRootAccountWithContext(ctx context.Context, request *ResetRootAccountRequest) (response *ResetRootAccountResponse, err error)
- func (c *Client) RestartDBInstances(request *RestartDBInstancesRequest) (response *RestartDBInstancesResponse, err error)
- func (c *Client) RestartDBInstancesWithContext(ctx context.Context, request *RestartDBInstancesRequest) (response *RestartDBInstancesResponse, err error)
- func (c *Client) StartBatchRollback(request *StartBatchRollbackRequest) (response *StartBatchRollbackResponse, err error)
- func (c *Client) StartBatchRollbackWithContext(ctx context.Context, request *StartBatchRollbackRequest) (response *StartBatchRollbackResponse, err error)
- func (c *Client) StartCpuExpand(request *StartCpuExpandRequest) (response *StartCpuExpandResponse, err error)
- func (c *Client) StartCpuExpandWithContext(ctx context.Context, request *StartCpuExpandRequest) (response *StartCpuExpandResponse, err error)
- func (c *Client) StartReplication(request *StartReplicationRequest) (response *StartReplicationResponse, err error)
- func (c *Client) StartReplicationWithContext(ctx context.Context, request *StartReplicationRequest) (response *StartReplicationResponse, err error)
- func (c *Client) StopCpuExpand(request *StopCpuExpandRequest) (response *StopCpuExpandResponse, err error)
- func (c *Client) StopCpuExpandWithContext(ctx context.Context, request *StopCpuExpandRequest) (response *StopCpuExpandResponse, err error)
- func (c *Client) StopDBImportJob(request *StopDBImportJobRequest) (response *StopDBImportJobResponse, err error)
- func (c *Client) StopDBImportJobWithContext(ctx context.Context, request *StopDBImportJobRequest) (response *StopDBImportJobResponse, err error)
- func (c *Client) StopReplication(request *StopReplicationRequest) (response *StopReplicationResponse, err error)
- func (c *Client) StopReplicationWithContext(ctx context.Context, request *StopReplicationRequest) (response *StopReplicationResponse, err error)
- func (c *Client) StopRollback(request *StopRollbackRequest) (response *StopRollbackResponse, err error)
- func (c *Client) StopRollbackWithContext(ctx context.Context, request *StopRollbackRequest) (response *StopRollbackResponse, err error)
- func (c *Client) SwitchCDBProxy(request *SwitchCDBProxyRequest) (response *SwitchCDBProxyResponse, err error)
- func (c *Client) SwitchCDBProxyWithContext(ctx context.Context, request *SwitchCDBProxyRequest) (response *SwitchCDBProxyResponse, err error)
- func (c *Client) SwitchDBInstanceMasterSlave(request *SwitchDBInstanceMasterSlaveRequest) (response *SwitchDBInstanceMasterSlaveResponse, err error)
- func (c *Client) SwitchDBInstanceMasterSlaveWithContext(ctx context.Context, request *SwitchDBInstanceMasterSlaveRequest) (response *SwitchDBInstanceMasterSlaveResponse, err error)
- func (c *Client) SwitchDrInstanceToMaster(request *SwitchDrInstanceToMasterRequest) (response *SwitchDrInstanceToMasterResponse, err error)
- func (c *Client) SwitchDrInstanceToMasterWithContext(ctx context.Context, request *SwitchDrInstanceToMasterRequest) (response *SwitchDrInstanceToMasterResponse, err error)
- func (c *Client) SwitchForUpgrade(request *SwitchForUpgradeRequest) (response *SwitchForUpgradeResponse, err error)
- func (c *Client) SwitchForUpgradeWithContext(ctx context.Context, request *SwitchForUpgradeRequest) (response *SwitchForUpgradeResponse, err error)
- func (c *Client) UpgradeCDBProxyVersion(request *UpgradeCDBProxyVersionRequest) (response *UpgradeCDBProxyVersionResponse, err error)
- func (c *Client) UpgradeCDBProxyVersionWithContext(ctx context.Context, request *UpgradeCDBProxyVersionRequest) (response *UpgradeCDBProxyVersionResponse, err error)
- func (c *Client) UpgradeDBInstance(request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)
- func (c *Client) UpgradeDBInstanceEngineVersion(request *UpgradeDBInstanceEngineVersionRequest) (response *UpgradeDBInstanceEngineVersionResponse, err error)
- func (c *Client) UpgradeDBInstanceEngineVersionWithContext(ctx context.Context, request *UpgradeDBInstanceEngineVersionRequest) (response *UpgradeDBInstanceEngineVersionResponse, err error)
- func (c *Client) UpgradeDBInstanceWithContext(ctx context.Context, request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)
- type CloneItem
- type CloseCDBProxyRequest
- type CloseCDBProxyRequestParams
- type CloseCDBProxyResponse
- type CloseCDBProxyResponseParams
- type CloseCdbProxyAddressRequest
- type CloseCdbProxyAddressRequestParams
- type CloseCdbProxyAddressResponse
- type CloseCdbProxyAddressResponseParams
- type CloseWanServiceRequest
- type CloseWanServiceRequestParams
- type CloseWanServiceResponse
- type CloseWanServiceResponseParams
- type ColumnPrivilege
- type CommonTimeWindow
- type CreateAccountsRequest
- type CreateAccountsRequestParams
- type CreateAccountsResponse
- type CreateAccountsResponseParams
- type CreateAuditPolicyRequest
- type CreateAuditPolicyRequestParams
- type CreateAuditPolicyResponse
- type CreateAuditPolicyResponseParams
- type CreateBackupRequest
- type CreateBackupRequestParams
- type CreateBackupResponse
- type CreateBackupResponseParams
- type CreateCdbProxyAddressRequest
- type CreateCdbProxyAddressRequestParams
- type CreateCdbProxyAddressResponse
- type CreateCdbProxyAddressResponseParams
- type CreateCdbProxyRequest
- type CreateCdbProxyRequestParams
- type CreateCdbProxyResponse
- type CreateCdbProxyResponseParams
- type CreateCloneInstanceRequest
- type CreateCloneInstanceRequestParams
- type CreateCloneInstanceResponse
- type CreateCloneInstanceResponseParams
- type CreateDBImportJobRequest
- type CreateDBImportJobRequestParams
- type CreateDBImportJobResponse
- type CreateDBImportJobResponseParams
- type CreateDBInstanceHourRequest
- type CreateDBInstanceHourRequestParams
- type CreateDBInstanceHourResponse
- type CreateDBInstanceHourResponseParams
- type CreateDBInstanceRequest
- type CreateDBInstanceRequestParams
- type CreateDBInstanceResponse
- type CreateDBInstanceResponseParams
- type CreateDatabaseRequest
- type CreateDatabaseRequestParams
- type CreateDatabaseResponse
- type CreateDatabaseResponseParams
- type CreateParamTemplateRequest
- type CreateParamTemplateRequestParams
- type CreateParamTemplateResponse
- type CreateParamTemplateResponseParams
- type CreateRoInstanceIpRequest
- type CreateRoInstanceIpRequestParams
- type CreateRoInstanceIpResponse
- type CreateRoInstanceIpResponseParams
- type CustomConfig
- type DBSwitchInfo
- type DatabasePrivilege
- type DatabasesWithCharacterLists
- type DeleteAccountsRequest
- type DeleteAccountsRequestParams
- type DeleteAccountsResponse
- type DeleteAccountsResponseParams
- type DeleteBackupRequest
- type DeleteBackupRequestParams
- type DeleteBackupResponse
- type DeleteBackupResponseParams
- type DeleteParamTemplateRequest
- type DeleteParamTemplateRequestParams
- type DeleteParamTemplateResponse
- type DeleteParamTemplateResponseParams
- type DeleteTimeWindowRequest
- type DeleteTimeWindowRequestParams
- type DeleteTimeWindowResponse
- type DeleteTimeWindowResponseParams
- type DescribeAccountPrivilegesRequest
- type DescribeAccountPrivilegesRequestParams
- type DescribeAccountPrivilegesResponse
- type DescribeAccountPrivilegesResponseParams
- type DescribeAccountsRequest
- type DescribeAccountsRequestParams
- type DescribeAccountsResponse
- type DescribeAccountsResponseParams
- type DescribeAsyncRequestInfoRequest
- type DescribeAsyncRequestInfoRequestParams
- type DescribeAsyncRequestInfoResponse
- type DescribeAsyncRequestInfoResponseParams
- type DescribeAuditLogsRequest
- type DescribeAuditLogsRequestParams
- type DescribeAuditLogsResponse
- type DescribeAuditLogsResponseParams
- type DescribeAuditPoliciesRequest
- type DescribeAuditPoliciesRequestParams
- type DescribeAuditPoliciesResponse
- type DescribeAuditPoliciesResponseParams
- type DescribeAuditRulesRequest
- type DescribeAuditRulesRequestParams
- type DescribeAuditRulesResponse
- type DescribeAuditRulesResponseParams
- type DescribeBackupConfigRequest
- type DescribeBackupConfigRequestParams
- type DescribeBackupConfigResponse
- type DescribeBackupConfigResponseParams
- type DescribeBackupDecryptionKeyRequest
- type DescribeBackupDecryptionKeyRequestParams
- type DescribeBackupDecryptionKeyResponse
- type DescribeBackupDecryptionKeyResponseParams
- type DescribeBackupDownloadRestrictionRequest
- type DescribeBackupDownloadRestrictionRequestParams
- type DescribeBackupDownloadRestrictionResponse
- type DescribeBackupDownloadRestrictionResponseParams
- type DescribeBackupEncryptionStatusRequest
- type DescribeBackupEncryptionStatusRequestParams
- type DescribeBackupEncryptionStatusResponse
- type DescribeBackupEncryptionStatusResponseParams
- type DescribeBackupOverviewRequest
- type DescribeBackupOverviewRequestParams
- type DescribeBackupOverviewResponse
- type DescribeBackupOverviewResponseParams
- type DescribeBackupSummariesRequest
- type DescribeBackupSummariesRequestParams
- type DescribeBackupSummariesResponse
- type DescribeBackupSummariesResponseParams
- type DescribeBackupsRequest
- type DescribeBackupsRequestParams
- type DescribeBackupsResponse
- type DescribeBackupsResponseParams
- type DescribeBinlogBackupOverviewRequest
- type DescribeBinlogBackupOverviewRequestParams
- type DescribeBinlogBackupOverviewResponse
- type DescribeBinlogBackupOverviewResponseParams
- type DescribeBinlogsRequest
- type DescribeBinlogsRequestParams
- type DescribeBinlogsResponse
- type DescribeBinlogsResponseParams
- type DescribeCdbProxyInfoRequest
- type DescribeCdbProxyInfoRequestParams
- type DescribeCdbProxyInfoResponse
- type DescribeCdbProxyInfoResponseParams
- type DescribeCdbZoneConfigRequest
- type DescribeCdbZoneConfigRequestParams
- type DescribeCdbZoneConfigResponse
- type DescribeCdbZoneConfigResponseParams
- type DescribeCloneListRequest
- type DescribeCloneListRequestParams
- type DescribeCloneListResponse
- type DescribeCloneListResponseParams
- type DescribeCpuExpandStrategyRequest
- type DescribeCpuExpandStrategyRequestParams
- type DescribeCpuExpandStrategyResponse
- type DescribeCpuExpandStrategyResponseParams
- type DescribeDBFeaturesRequest
- type DescribeDBFeaturesRequestParams
- type DescribeDBFeaturesResponse
- type DescribeDBFeaturesResponseParams
- type DescribeDBImportRecordsRequest
- type DescribeDBImportRecordsRequestParams
- type DescribeDBImportRecordsResponse
- type DescribeDBImportRecordsResponseParams
- type DescribeDBInstanceCharsetRequest
- type DescribeDBInstanceCharsetRequestParams
- type DescribeDBInstanceCharsetResponse
- type DescribeDBInstanceCharsetResponseParams
- type DescribeDBInstanceConfigRequest
- type DescribeDBInstanceConfigRequestParams
- type DescribeDBInstanceConfigResponse
- type DescribeDBInstanceConfigResponseParams
- type DescribeDBInstanceGTIDRequest
- type DescribeDBInstanceGTIDRequestParams
- type DescribeDBInstanceGTIDResponse
- type DescribeDBInstanceGTIDResponseParams
- type DescribeDBInstanceInfoRequest
- type DescribeDBInstanceInfoRequestParams
- type DescribeDBInstanceInfoResponse
- type DescribeDBInstanceInfoResponseParams
- type DescribeDBInstanceRebootTimeRequest
- type DescribeDBInstanceRebootTimeRequestParams
- type DescribeDBInstanceRebootTimeResponse
- type DescribeDBInstanceRebootTimeResponseParams
- type DescribeDBInstancesRequest
- type DescribeDBInstancesRequestParams
- type DescribeDBInstancesResponse
- type DescribeDBInstancesResponseParams
- type DescribeDBPriceRequest
- type DescribeDBPriceRequestParams
- type DescribeDBPriceResponse
- type DescribeDBPriceResponseParams
- type DescribeDBSecurityGroupsRequest
- type DescribeDBSecurityGroupsRequestParams
- type DescribeDBSecurityGroupsResponse
- type DescribeDBSecurityGroupsResponseParams
- type DescribeDBSwitchRecordsRequest
- type DescribeDBSwitchRecordsRequestParams
- type DescribeDBSwitchRecordsResponse
- type DescribeDBSwitchRecordsResponseParams
- type DescribeDataBackupOverviewRequest
- type DescribeDataBackupOverviewRequestParams
- type DescribeDataBackupOverviewResponse
- type DescribeDataBackupOverviewResponseParams
- type DescribeDatabasesRequest
- type DescribeDatabasesRequestParams
- type DescribeDatabasesResponse
- type DescribeDatabasesResponseParams
- type DescribeDefaultParamsRequest
- type DescribeDefaultParamsRequestParams
- type DescribeDefaultParamsResponse
- type DescribeDefaultParamsResponseParams
- type DescribeDeviceMonitorInfoRequest
- type DescribeDeviceMonitorInfoRequestParams
- type DescribeDeviceMonitorInfoResponse
- type DescribeDeviceMonitorInfoResponseParams
- type DescribeErrorLogDataRequest
- type DescribeErrorLogDataRequestParams
- type DescribeErrorLogDataResponse
- type DescribeErrorLogDataResponseParams
- type DescribeInstanceParamRecordsRequest
- type DescribeInstanceParamRecordsRequestParams
- type DescribeInstanceParamRecordsResponse
- type DescribeInstanceParamRecordsResponseParams
- type DescribeInstanceParamsRequest
- type DescribeInstanceParamsRequestParams
- type DescribeInstanceParamsResponse
- type DescribeInstanceParamsResponseParams
- type DescribeLocalBinlogConfigRequest
- type DescribeLocalBinlogConfigRequestParams
- type DescribeLocalBinlogConfigResponse
- type DescribeLocalBinlogConfigResponseParams
- type DescribeParamTemplateInfoRequest
- type DescribeParamTemplateInfoRequestParams
- type DescribeParamTemplateInfoResponse
- type DescribeParamTemplateInfoResponseParams
- type DescribeParamTemplatesRequest
- type DescribeParamTemplatesRequestParams
- type DescribeParamTemplatesResponse
- type DescribeParamTemplatesResponseParams
- type DescribeProjectSecurityGroupsRequest
- type DescribeProjectSecurityGroupsRequestParams
- type DescribeProjectSecurityGroupsResponse
- type DescribeProjectSecurityGroupsResponseParams
- type DescribeProxyCustomConfRequest
- type DescribeProxyCustomConfRequestParams
- type DescribeProxyCustomConfResponse
- type DescribeProxyCustomConfResponseParams
- type DescribeProxySupportParamRequest
- type DescribeProxySupportParamRequestParams
- type DescribeProxySupportParamResponse
- type DescribeProxySupportParamResponseParams
- type DescribeRemoteBackupConfigRequest
- type DescribeRemoteBackupConfigRequestParams
- type DescribeRemoteBackupConfigResponse
- type DescribeRemoteBackupConfigResponseParams
- type DescribeRoGroupsRequest
- type DescribeRoGroupsRequestParams
- type DescribeRoGroupsResponse
- type DescribeRoGroupsResponseParams
- type DescribeRoMinScaleRequest
- type DescribeRoMinScaleRequestParams
- type DescribeRoMinScaleResponse
- type DescribeRoMinScaleResponseParams
- type DescribeRollbackRangeTimeRequest
- type DescribeRollbackRangeTimeRequestParams
- type DescribeRollbackRangeTimeResponse
- type DescribeRollbackRangeTimeResponseParams
- type DescribeRollbackTaskDetailRequest
- type DescribeRollbackTaskDetailRequestParams
- type DescribeRollbackTaskDetailResponse
- type DescribeRollbackTaskDetailResponseParams
- type DescribeSlowLogDataRequest
- type DescribeSlowLogDataRequestParams
- type DescribeSlowLogDataResponse
- type DescribeSlowLogDataResponseParams
- type DescribeSlowLogsRequest
- type DescribeSlowLogsRequestParams
- type DescribeSlowLogsResponse
- type DescribeSlowLogsResponseParams
- type DescribeSupportedPrivilegesRequest
- type DescribeSupportedPrivilegesRequestParams
- type DescribeSupportedPrivilegesResponse
- type DescribeSupportedPrivilegesResponseParams
- type DescribeTablesRequest
- type DescribeTablesRequestParams
- type DescribeTablesResponse
- type DescribeTablesResponseParams
- type DescribeTagsOfInstanceIdsRequest
- type DescribeTagsOfInstanceIdsRequestParams
- type DescribeTagsOfInstanceIdsResponse
- type DescribeTagsOfInstanceIdsResponseParams
- type DescribeTasksRequest
- type DescribeTasksRequestParams
- type DescribeTasksResponse
- type DescribeTasksResponseParams
- type DescribeTimeWindowRequest
- type DescribeTimeWindowRequestParams
- type DescribeTimeWindowResponse
- type DescribeTimeWindowResponseParams
- type DescribeUploadedFilesRequest
- type DescribeUploadedFilesRequestParams
- type DescribeUploadedFilesResponse
- type DescribeUploadedFilesResponseParams
- type DeviceCpuInfo
- type DeviceCpuRateInfo
- type DeviceDiskInfo
- type DeviceMemInfo
- type DeviceNetInfo
- type DisassociateSecurityGroupsRequest
- type DisassociateSecurityGroupsRequestParams
- type DisassociateSecurityGroupsResponse
- type DisassociateSecurityGroupsResponseParams
- type DrInfo
- type ErrlogItem
- type ImportRecord
- type Inbound
- type InitDBInstancesRequest
- type InitDBInstancesRequestParams
- type InitDBInstancesResponse
- type InitDBInstancesResponseParams
- type InstanceAuditLogFilters
- type InstanceInfo
- type InstanceRebootTime
- type InstanceRollbackRangeTime
- type IsolateDBInstanceRequest
- type IsolateDBInstanceRequestParams
- type IsolateDBInstanceResponse
- type IsolateDBInstanceResponseParams
- type LocalBinlogConfig
- type LocalBinlogConfigDefault
- type MasterInfo
- type ModifyAccountDescriptionRequest
- type ModifyAccountDescriptionRequestParams
- type ModifyAccountDescriptionResponse
- type ModifyAccountDescriptionResponseParams
- type ModifyAccountMaxUserConnectionsRequest
- type ModifyAccountMaxUserConnectionsRequestParams
- type ModifyAccountMaxUserConnectionsResponse
- type ModifyAccountMaxUserConnectionsResponseParams
- type ModifyAccountPasswordRequest
- type ModifyAccountPasswordRequestParams
- type ModifyAccountPasswordResponse
- type ModifyAccountPasswordResponseParams
- type ModifyAccountPrivilegesRequest
- type ModifyAccountPrivilegesRequestParams
- type ModifyAccountPrivilegesResponse
- type ModifyAccountPrivilegesResponseParams
- type ModifyAutoRenewFlagRequest
- type ModifyAutoRenewFlagRequestParams
- type ModifyAutoRenewFlagResponse
- type ModifyAutoRenewFlagResponseParams
- type ModifyBackupConfigRequest
- type ModifyBackupConfigRequestParams
- type ModifyBackupConfigResponse
- type ModifyBackupConfigResponseParams
- type ModifyBackupDownloadRestrictionRequest
- type ModifyBackupDownloadRestrictionRequestParams
- type ModifyBackupDownloadRestrictionResponse
- type ModifyBackupDownloadRestrictionResponseParams
- type ModifyBackupEncryptionStatusRequest
- type ModifyBackupEncryptionStatusRequestParams
- type ModifyBackupEncryptionStatusResponse
- type ModifyBackupEncryptionStatusResponseParams
- type ModifyCdbProxyAddressDescRequest
- type ModifyCdbProxyAddressDescRequestParams
- type ModifyCdbProxyAddressDescResponse
- type ModifyCdbProxyAddressDescResponseParams
- type ModifyCdbProxyAddressVipAndVPortRequest
- type ModifyCdbProxyAddressVipAndVPortRequestParams
- type ModifyCdbProxyAddressVipAndVPortResponse
- type ModifyCdbProxyAddressVipAndVPortResponseParams
- type ModifyCdbProxyParamRequest
- type ModifyCdbProxyParamRequestParams
- type ModifyCdbProxyParamResponse
- type ModifyCdbProxyParamResponseParams
- type ModifyDBInstanceNameRequest
- type ModifyDBInstanceNameRequestParams
- type ModifyDBInstanceNameResponse
- type ModifyDBInstanceNameResponseParams
- type ModifyDBInstanceProjectRequest
- type ModifyDBInstanceProjectRequestParams
- type ModifyDBInstanceProjectResponse
- type ModifyDBInstanceProjectResponseParams
- type ModifyDBInstanceSecurityGroupsRequest
- type ModifyDBInstanceSecurityGroupsRequestParams
- type ModifyDBInstanceSecurityGroupsResponse
- type ModifyDBInstanceSecurityGroupsResponseParams
- type ModifyDBInstanceVipVportRequest
- type ModifyDBInstanceVipVportRequestParams
- type ModifyDBInstanceVipVportResponse
- type ModifyDBInstanceVipVportResponseParams
- type ModifyInstanceParamRequest
- type ModifyInstanceParamRequestParams
- type ModifyInstanceParamResponse
- type ModifyInstanceParamResponseParams
- type ModifyInstancePasswordComplexityRequest
- type ModifyInstancePasswordComplexityRequestParams
- type ModifyInstancePasswordComplexityResponse
- type ModifyInstancePasswordComplexityResponseParams
- type ModifyInstanceTagRequest
- type ModifyInstanceTagRequestParams
- type ModifyInstanceTagResponse
- type ModifyInstanceTagResponseParams
- type ModifyLocalBinlogConfigRequest
- type ModifyLocalBinlogConfigRequestParams
- type ModifyLocalBinlogConfigResponse
- type ModifyLocalBinlogConfigResponseParams
- type ModifyNameOrDescByDpIdRequest
- type ModifyNameOrDescByDpIdRequestParams
- type ModifyNameOrDescByDpIdResponse
- type ModifyNameOrDescByDpIdResponseParams
- type ModifyParamTemplateRequest
- type ModifyParamTemplateRequestParams
- type ModifyParamTemplateResponse
- type ModifyParamTemplateResponseParams
- type ModifyRemoteBackupConfigRequest
- type ModifyRemoteBackupConfigRequestParams
- type ModifyRemoteBackupConfigResponse
- type ModifyRemoteBackupConfigResponseParams
- type ModifyRoGroupInfoRequest
- type ModifyRoGroupInfoRequestParams
- type ModifyRoGroupInfoResponse
- type ModifyRoGroupInfoResponseParams
- type ModifyTimeWindowRequest
- type ModifyTimeWindowRequestParams
- type ModifyTimeWindowResponse
- type ModifyTimeWindowResponseParams
- type OfflineIsolatedInstancesRequest
- type OfflineIsolatedInstancesRequestParams
- type OfflineIsolatedInstancesResponse
- type OfflineIsolatedInstancesResponseParams
- type OpenAuditServiceRequest
- type OpenAuditServiceRequestParams
- type OpenAuditServiceResponse
- type OpenAuditServiceResponseParams
- type OpenDBInstanceEncryptionRequest
- type OpenDBInstanceEncryptionRequestParams
- type OpenDBInstanceEncryptionResponse
- type OpenDBInstanceEncryptionResponseParams
- type OpenDBInstanceGTIDRequest
- type OpenDBInstanceGTIDRequestParams
- type OpenDBInstanceGTIDResponse
- type OpenDBInstanceGTIDResponseParams
- type OpenWanServiceRequest
- type OpenWanServiceRequestParams
- type OpenWanServiceResponse
- type OpenWanServiceResponseParams
- type Outbound
- type ParamInfo
- type ParamRecord
- type ParamTemplateInfo
- type Parameter
- type ParameterDetail
- type ProxyAddress
- type ProxyAllocation
- type ProxyGroupInfo
- type ProxyInst
- type ProxyNode
- type ProxyNodeCustom
- type ReleaseIsolatedDBInstancesRequest
- type ReleaseIsolatedDBInstancesRequestParams
- type ReleaseIsolatedDBInstancesResponse
- type ReleaseIsolatedDBInstancesResponseParams
- type ReleaseResult
- type ReloadBalanceProxyNodeRequest
- type ReloadBalanceProxyNodeRequestParams
- type ReloadBalanceProxyNodeResponse
- type ReloadBalanceProxyNodeResponseParams
- type RemoteBackupInfo
- type RenewDBInstanceRequest
- type RenewDBInstanceRequestParams
- type RenewDBInstanceResponse
- type RenewDBInstanceResponseParams
- type ResetRootAccountRequest
- type ResetRootAccountRequestParams
- type ResetRootAccountResponse
- type ResetRootAccountResponseParams
- type RestartDBInstancesRequest
- type RestartDBInstancesRequestParams
- type RestartDBInstancesResponse
- type RestartDBInstancesResponseParams
- type RoGroup
- type RoGroupAttr
- type RoInstanceInfo
- type RoVipInfo
- type RoWeightValue
- type RollbackDBName
- type RollbackInstancesInfo
- type RollbackTableName
- type RollbackTables
- type RollbackTask
- type RollbackTimeRange
- type Rule
- type RuleFilters
- type SecurityGroup
- type SlaveConfig
- type SlaveInfo
- type SlaveInstanceInfo
- type SlowLogInfo
- type SlowLogItem
- type SqlFileInfo
- type StartBatchRollbackRequest
- type StartBatchRollbackRequestParams
- type StartBatchRollbackResponse
- type StartBatchRollbackResponseParams
- type StartCpuExpandRequest
- type StartCpuExpandRequestParams
- type StartCpuExpandResponse
- type StartCpuExpandResponseParams
- type StartReplicationRequest
- type StartReplicationRequestParams
- type StartReplicationResponse
- type StartReplicationResponseParams
- type StopCpuExpandRequest
- type StopCpuExpandRequestParams
- type StopCpuExpandResponse
- type StopCpuExpandResponseParams
- type StopDBImportJobRequest
- type StopDBImportJobRequestParams
- type StopDBImportJobResponse
- type StopDBImportJobResponseParams
- type StopReplicationRequest
- type StopReplicationRequestParams
- type StopReplicationResponse
- type StopReplicationResponseParams
- type StopRollbackRequest
- type StopRollbackRequestParams
- type StopRollbackResponse
- type StopRollbackResponseParams
- type SwitchCDBProxyRequest
- type SwitchCDBProxyRequestParams
- type SwitchCDBProxyResponse
- type SwitchCDBProxyResponseParams
- type SwitchDBInstanceMasterSlaveRequest
- type SwitchDBInstanceMasterSlaveRequestParams
- type SwitchDBInstanceMasterSlaveResponse
- type SwitchDBInstanceMasterSlaveResponseParams
- type SwitchDrInstanceToMasterRequest
- type SwitchDrInstanceToMasterRequestParams
- type SwitchDrInstanceToMasterResponse
- type SwitchDrInstanceToMasterResponseParams
- type SwitchForUpgradeRequest
- type SwitchForUpgradeRequestParams
- type SwitchForUpgradeResponse
- type SwitchForUpgradeResponseParams
- type TablePrivilege
- type Tag
- type TagInfo
- type TagInfoItem
- type TagInfoUnit
- type TagsInfoOfInstance
- type TaskDetail
- type UpgradeCDBProxyVersionRequest
- type UpgradeCDBProxyVersionRequestParams
- type UpgradeCDBProxyVersionResponse
- type UpgradeCDBProxyVersionResponseParams
- type UpgradeDBInstanceEngineVersionRequest
- type UpgradeDBInstanceEngineVersionRequestParams
- type UpgradeDBInstanceEngineVersionResponse
- type UpgradeDBInstanceEngineVersionResponseParams
- type UpgradeDBInstanceRequest
- type UpgradeDBInstanceRequestParams
- type UpgradeDBInstanceResponse
- type UpgradeDBInstanceResponseParams
- type UploadInfo
- type ZoneConf
Constants ¶
const ( // CAM signature/authentication error. AUTHFAILURE = "AuthFailure" // Invalid authorization AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" // The sub-account has no permissions. AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" // Backend or process error. CDBERROR = "CdbError" // Backup error. CDBERROR_BACKUPERROR = "CdbError.BackupError" // Backend database error. CDBERROR_DATABASEERROR = "CdbError.DatabaseError" // Import task error. CDBERROR_IMPORTERROR = "CdbError.ImportError" // Backend task error. CDBERROR_TASKERROR = "CdbError.TaskError" // Operation failed. FAILEDOPERATION = "FailedOperation" // Async task exception. FAILEDOPERATION_ASYNCTASKSTATUSERROR = "FailedOperation.AsyncTaskStatusError" // Failed to lock the instance while performing exclusive operations. Please try again later. FAILEDOPERATION_CDBINSTANCELOCKFAILERROR = "FailedOperation.CdbInstanceLockFailError" // Creation failed. Please check whether the user already exists. FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" // Failed to create the audit rule. FAILEDOPERATION_CREATEAUDITFAILERROR = "FailedOperation.CreateAuditFailError" // Failed to assign an exclusive VIP to the read-only replica. FAILEDOPERATION_CREATEROVIPERROR = "FailedOperation.CreateRoVipError" // Database operation failed. FAILEDOPERATION_DBOPERATIONACTIONERROR = "FailedOperation.DBOperationActionError" // Failed to query database proxy. FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" // Unsupported operation FAILEDOPERATION_FAILEDOPERATIONERROR = "FailedOperation.FailedOperationError" // An error occurred while obtaining permissions. FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" // Query failed. FAILEDOPERATION_INSTANCEQUERYERROR = "FailedOperation.InstanceQueryError" // FAILEDOPERATION_INSTANCETASKCONFLICTERROR = "FailedOperation.InstanceTaskConflictError" // Failed to deserialize JSON. FAILEDOPERATION_JSONUNMARSHALERROR = "FailedOperation.JsonUnmarshalError" // No policy modification detected FAILEDOPERATION_NOTCHANGESTRATEGY = "FailedOperation.NotChangeStrategy" // It is not a read-only instance with delayed replication enabled. FAILEDOPERATION_NOTDELAYRO = "FailedOperation.NotDelayRo" // The instance has an operation in progress. Try again later. FAILEDOPERATION_OPERATIONINCONFLICTERR = "FailedOperation.OperationInConflictErr" // The executed operation to modify permissions is invalid. You can refer to product documentation for more information about permissions that can be modified for this instance. If you have any questions, please contact customer service. FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" // Database proxy in an exceptional status. FAILEDOPERATION_PROXYGROUPSTATUSERROR = "FailedOperation.ProxyGroupStatusError" // Failed to query the audit task FAILEDOPERATION_QUERYAUDITTASKFAILERROR = "FailedOperation.QueryAuditTaskFailError" // Log query failed. FAILEDOPERATION_QUERYLOGERROR = "FailedOperation.QueryLogError" // Cross-region deserialization failed for the high-availability service. FAILEDOPERATION_REMOTECALLUNMARSHALERROR = "FailedOperation.RemoteCallUnmarshalError" // The proxy is being created or already exists. You cannot create it again. FAILEDOPERATION_REPEATCREATEPROXYERROR = "FailedOperation.RepeatCreateProxyError" // Exception with the backend request for the service. Please contact customer service. FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" // FAILEDOPERATION_RESULTSETOVERLIMIT = "FailedOperation.ResultSetOverLimit" // Failed to initiate the operation. Please try again later. If the operation remains unsuccessful, please contact customer service. FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" // Task status conflict. FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" // Failed to submit the task. Please try again later. If the submission remains unsuccessful, please contact customer service. FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" // The query timed out. FAILEDOPERATION_TIMEOUTERROR = "FailedOperation.TimeoutError" // This type of operations cannot be performed. FAILEDOPERATION_TYPEINCONFLICT = "FailedOperation.TypeInConflict" // The IP has been occupied. FAILEDOPERATION_VPCIPINUSEERROR = "FailedOperation.VpcIpInUseError" // FAILEDOPERATION_VPCIPINVALIDERROR = "FailedOperation.VpcIpInvalidError" // The IP doesn’t exist in the subnet. FAILEDOPERATION_VPCIPNOTINSUBNETERROR = "FailedOperation.VpcIpNotInSubnetError" // An internal error occurred. INTERNALERROR = "InternalError" // An error occurred while querying async tasks. INTERNALERROR_ASYNCREQUESTERROR = "InternalError.AsyncRequestError" // Failed to query the audit log INTERNALERROR_AUDITDESCRIBELOGERROR = "InternalError.AuditDescribeLogError" // An error occurred in the internal service of the audit service. INTERNALERROR_AUDITERROR = "InternalError.AuditError" // Internal exception of the audit service. INTERNALERROR_AUDITOSSLOGICERROR = "InternalError.AuditOssLogicError" // Authentication failed. INTERNALERROR_AUTHERROR = "InternalError.AuthError" // Authentication failed. INTERNALERROR_CAUTHERROR = "InternalError.CauthError" // Internal system error. INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" // System error. INTERNALERROR_CDBERROR = "InternalError.CdbError" // Failed to obtain file information. INTERNALERROR_COSERROR = "InternalError.CosError" // Database exception INTERNALERROR_DBERROR = "InternalError.DBError" // Database operation failed. INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" // The database record does not exist. INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" // Internal database error. INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" // Internal system error. INTERNALERROR_DESERROR = "InternalError.DesError" // Security group operation error. INTERNALERROR_DFWERROR = "InternalError.DfwError" // SQL statement error INTERNALERROR_EXESQLERROR = "InternalError.ExeSqlError" // Failed to execute the HTTP request INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" // Failed to execute SQL statement INTERNALERROR_EXECUTESQLERROR = "InternalError.ExecuteSQLError" // File transfer exception INTERNALERROR_FTPERROR = "InternalError.FtpError" // Exceptional HTTP request INTERNALERROR_HTTPERROR = "InternalError.HttpError" // INTERNALERROR_HTTPREQUESTERROR = "InternalError.HttpRequestError" // Import failed INTERNALERROR_IMPORTERROR = "InternalError.ImportError" // Internal service error INTERNALERROR_INNERCOMMONERROR = "InternalError.InnerCommonError" // Internal service error. Please contact customer service. INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" // An exception occurred while executing the request. INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" // The backend failed to request the service. Please contact customer service. INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" // An error occurred while accessing internal service. INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" // Failed to parse JSON. INTERNALERROR_JSONERROR = "InternalError.JSONError" // Failed to enable encryption INTERNALERROR_KMSERROR = "InternalError.KmsError" // Network error INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" // An error occurred in TencentDB for MySQL High-Availability Edition database service. INTERNALERROR_OSSERROR = "InternalError.OssError" // Parameter error INTERNALERROR_PARAMERROR = "InternalError.ParamError" // Regular expression compilation error. INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" // The resource does not match. INTERNALERROR_RESOURCENOTMATCH = "InternalError.ResourceNotMatch" // The resource is not unique. INTERNALERROR_RESOURCENOTUNIQUE = "InternalError.ResourceNotUnique" // Security group error INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" // Internal error of the system. INTERNALERROR_SERVERERROR = "InternalError.ServerError" // An exception occurred in the internal service. INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" // Failed to modify the tag. Please try again later. INTERNALERROR_TAGERROR = "InternalError.TagError" // Task exception INTERNALERROR_TASKERROR = "InternalError.TaskError" // Async task error. INTERNALERROR_TASKFRAMEERROR = "InternalError.TaskFrameError" // Time window error INTERNALERROR_TIMEWINDOWERROR = "InternalError.TimeWindowError" // Transaction system error. INTERNALERROR_TRADEERROR = "InternalError.TradeError" // Operation failed INTERNALERROR_TRANSACTIONBEGINERROR = "InternalError.TransactionBeginError" // Unknown error INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" // Unknown error INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" // VPC or subnet error. INTERNALERROR_VPCERROR = "InternalError.VpcError" // Parameter error. INVALIDPARAMETER = "InvalidParameter" // This API was not found. INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" // There are resources in the placement group. INVALIDPARAMETER_DEPLOYGROUPNOTEMPTY = "InvalidParameter.DeployGroupNotEmpty" // Parameter exception. INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" // The instance is not found. INVALIDPARAMETER_INSTANCENAMENOTFOUND = "InvalidParameter.InstanceNameNotFound" // The instance does not exist. INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" // The async task does not exist. INVALIDPARAMETER_INVALIDASYNCREQUESTID = "InvalidParameter.InvalidAsyncRequestId" // Invalid name. INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" // Invalid parameter value INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" // Failed to deserialize JSON. INVALIDPARAMETER_JSONUNMARSHALERROR = "InvalidParameter.JsonUnmarshalError" // The quota of placement group resources has been exceeded. INVALIDPARAMETER_OVERDEPLOYGROUPQUOTA = "InvalidParameter.OverDeployGroupQuota" // The resource already exists. INVALIDPARAMETER_RESOURCEEXISTS = "InvalidParameter.ResourceExists" // The resource does not exist. INVALIDPARAMETER_RESOURCENOTEXISTS = "InvalidParameter.ResourceNotExists" // The resource is not found. INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" // Invalid parameter value INVALIDPARAMETERVALUE = "InvalidParameterValue" // The account description contains special characters. INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" // The account description should not exceed 255 characters. INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" // Incorrect format of the `host` parameter in the account. INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" // The account password contains invalid characters. INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" // The account password is too long or too short. INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" // The password format is incorrect. It should contain 8 to 64 characters and must contain at least two character sets of the following: letters, digits, and special symbols (_+-&=!@#$%^*()). INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" // Data conversion failed. INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" // Invalid parameter value INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" // Incorrect format of the account username. INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" // The account does not exist. INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" // No root account found. INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" // Invalid account password. INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" // The account does not have the GRANT permission. INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" // The quota limit has been reached. LIMITEXCEEDED = "LimitExceeded" // Missing parameter MISSINGPARAMETER = "MissingParameter" // Account-related parameters are missing. MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" // Required parameters are missing. MISSINGPARAMETER_MISSINGPARAMERROR = "MissingParameter.MissingParamError" // Operation denied. OPERATIONDENIED = "OperationDenied" // The Tencent Cloud account is not allowed to perform the operation due to insufficient permissions. OPERATIONDENIED_ACCOUNTOPERATIONDENIED = "OperationDenied.AccountOperationDenied" // The instance is performing another task. OPERATIONDENIED_ACTIONINPROCESS = "OperationDenied.ActionInProcess" // Unsupported operation. OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" // The audit policies conflict. OPERATIONDENIED_AUDITPOLICYCONFLICTERROR = "OperationDenied.AuditPolicyConflictError" // The audit policy already exists. OPERATIONDENIED_AUDITPOLICYEXISTERROR = "OperationDenied.AuditPolicyExistError" // The number of audit policies exceeds the limit. OPERATIONDENIED_AUDITPOLICYOVERQUOTAERROR = "OperationDenied.AuditPolicyOverQuotaError" // The audit rule has been associated. OPERATIONDENIED_AUDITRULEHASBIND = "OperationDenied.AuditRuleHasBind" // The audit rule does not exist. OPERATIONDENIED_AUDITRULENOTEXISTERROR = "OperationDenied.AuditRuleNotExistError" // Exceptional audit status. OPERATIONDENIED_AUDITSTATUSERROR = "OperationDenied.AuditStatusError" // The audit tasks conflict. OPERATIONDENIED_AUDITTASKCONFLICTERROR = "OperationDenied.AuditTaskConflictError" // The operation is not allowed as the RO group contains an invalid read-only instance. OPERATIONDENIED_CONFLICTROSTATUS = "OperationDenied.ConflictRoStatus" // The configuration of read-only group is being modified. Please do not make repeated requests. OPERATIONDENIED_CONFLICTSTATUS = "OperationDenied.ConflictStatus" // You have enabled the compliance audit feature of DBbrain, so you cannot enable the rule-based audit. OPERATIONDENIED_DBBRAINPOLICYCONFLICT = "OperationDenied.DBBrainPolicyConflict" // The operation is not allowed during the delayed replication. OPERATIONDENIED_DELAYREPLICATIONRUNNING = "OperationDenied.DelayReplicationRunning" // The root account cannot be deleted. OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" // This instance needs permissions to use this feature. OPERATIONDENIED_FUNCTIONDENIED = "OperationDenied.FunctionDenied" // The current instance type does not support this operation. OPERATIONDENIED_INSTTYPENOTSUPPORT = "OperationDenied.InstTypeNotSupport" // Instance locks are in conflict. Please try again later. OPERATIONDENIED_INSTANCELOCKERCONFLICT = "OperationDenied.InstanceLockerConflict" // Exceptional instance status OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" // Delayed replication is not allowed because the instance is executing another task. OPERATIONDENIED_INSTANCETASKRUNNING = "OperationDenied.InstanceTaskRunning" // Abnormal instance task status. OPERATIONDENIED_INSTANCETASKSTATUSERROR = "OperationDenied.InstanceTaskStatusError" // The instance does not support this operation. OPERATIONDENIED_INSTANCEUNSUPPORTEDOPERATEERROR = "OperationDenied.InstanceUnsupportedOperateError" // Basic instances do not support this operation (feature). OPERATIONDENIED_NOTSUPPORTBASIC = "OperationDenied.NotSupportBasic" // The host information of the local root account cannot be modified. OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" // Operation denied OPERATIONDENIED_OPERATIONDENIEDERROR = "OperationDenied.OperationDeniedError" // There are other orders being submitted. Please try again later. OPERATIONDENIED_OTHERODERINPROCESS = "OperationDenied.OtherOderInProcess" // The number of the proxy addresses exceeds the limit. OPERATIONDENIED_PROXYADDRESSLIMITERROR = "OperationDenied.ProxyAddressLimitError" // Proxy address is not found. OPERATIONDENIED_PROXYADDRESSNOTFUND = "OperationDenied.ProxyAddressNotFund" // The number of the proxy nodes exceeds the limit. OPERATIONDENIED_PROXYNODECOUNTLIMITERROR = "OperationDenied.ProxyNodeCountLimitError" // This operation is not allowed during database proxy upgrade task. OPERATIONDENIED_PROXYUPGRADETASKSTATUSERROR = "OperationDenied.ProxyUpgradeTaskStatusError" // Failed to query the audit log OPERATIONDENIED_QUERYAUDITLOGSERROR = "OperationDenied.QueryAuditLogsError" // The resource was not found. OPERATIONDENIED_RESOURCENOTFOUNDERROR = "OperationDenied.ResourceNotFoundError" // The resource was not found. OPERATIONDENIED_RESOURCENOTFUNDERROR = "OperationDenied.ResourceNotFundError" // The maximum number of results has been reached. Please narrow down your query. OPERATIONDENIED_RESULTOVERLIMIT = "OperationDenied.ResultOverLimit" // The Tencent Cloud sub-account is not allowed to perform the operation due to insufficient permissions. OPERATIONDENIED_SUBACCOUNTOPERATIONDENIED = "OperationDenied.SubAccountOperationDenied" // This instance is not refundable. OPERATIONDENIED_UNSUPPORTREFUNDERROR = "OperationDenied.UnSupportRefundError" // Creating a proxy address is not supported. OPERATIONDENIED_UNSUPPORTCREATEADDRESSERROR = "OperationDenied.UnsupportCreateAddressError" // The audit feature cannot be enabled. OPERATIONDENIED_UNSUPPORTOPENAUDITERROR = "OperationDenied.UnsupportOpenAuditError" // This account is not authorized to access the requested resource. OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" // Incorrect password or verification failed. OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword" // The backend task status is invalid. OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" // Limit exceeded. OVERQUOTA = "OverQuota" // The resource is occupied. RESOURCEINUSE = "ResourceInUse" // Insufficient resource. RESOURCEINSUFFICIENT = "ResourceInsufficient" // The resource does not exist. RESOURCENOTFOUND = "ResourceNotFound" // The instance cannot be found. Please check whether your instance status is normal. RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" // High-availability instance doesn’t exist. RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError" // The instance does not exist. RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError" // The resource is unavailable. RESOURCEUNAVAILABLE = "ResourceUnavailable" // Verification failed. Insufficient permissions. UNAUTHORIZEDOPERATION_NOTENOUGHPRIVILEGES = "UnauthorizedOperation.NotEnoughPrivileges" // Unsupported operation. UNSUPPORTEDOPERATION = "UnsupportedOperation" // The current operation is not supported for instances with no resource usage limit. UNSUPPORTEDOPERATION_NOTSUPPORTNORMALINSTANCE = "UnsupportedOperation.NotSupportNormalInstance" // Unsupported permission. UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError" )
const APIVersion = "2017-03-20"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AccountInfo struct { // Account remarks Notes *string `json:"Notes,omitnil" name:"Notes"` // Account domain name Host *string `json:"Host,omitnil" name:"Host"` // Account name User *string `json:"User,omitnil" name:"User"` // Account information modification time ModifyTime *string `json:"ModifyTime,omitnil" name:"ModifyTime"` // Password modification time ModifyPasswordTime *string `json:"ModifyPasswordTime,omitnil" name:"ModifyPasswordTime"` // This parameter is deprecated. CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // The maximum number of instance connections supported by an account MaxUserConnections *int64 `json:"MaxUserConnections,omitnil" name:"MaxUserConnections"` }
type AddTimeWindowRequest ¶
type AddTimeWindowRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Maintenance window on Monday. The format should be 10:00-12:00. You can set multiple time windows on a day. Each time window lasts from half an hour to three hours, and must start and end on the hour or half hour. At least one time window is required in a week. The same rule applies to the following parameters. Monday []*string `json:"Monday,omitnil" name:"Monday"` // Maintenance window on Tuesday. At least one time window is required in a week. Tuesday []*string `json:"Tuesday,omitnil" name:"Tuesday"` // Maintenance window on Wednesday. At least one time window is required in a week. Wednesday []*string `json:"Wednesday,omitnil" name:"Wednesday"` // Maintenance window on Thursday. At least one time window is required in a week. Thursday []*string `json:"Thursday,omitnil" name:"Thursday"` // Maintenance window on Friday. At least one time window is required in a week. Friday []*string `json:"Friday,omitnil" name:"Friday"` // Maintenance window on Saturday. At least one time window is required in a week. Saturday []*string `json:"Saturday,omitnil" name:"Saturday"` // Maintenance window on Sunday. At least one time window is required in a week. Sunday []*string `json:"Sunday,omitnil" name:"Sunday"` // Maximum delay threshold, which takes effect only for source instances and disaster recovery instances. MaxDelayTime *uint64 `json:"MaxDelayTime,omitnil" name:"MaxDelayTime"` }
func NewAddTimeWindowRequest ¶
func NewAddTimeWindowRequest() (request *AddTimeWindowRequest)
func (*AddTimeWindowRequest) FromJsonString ¶
func (r *AddTimeWindowRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddTimeWindowRequest) ToJsonString ¶
func (r *AddTimeWindowRequest) ToJsonString() string
type AddTimeWindowRequestParams ¶
type AddTimeWindowRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Maintenance window on Monday. The format should be 10:00-12:00. You can set multiple time windows on a day. Each time window lasts from half an hour to three hours, and must start and end on the hour or half hour. At least one time window is required in a week. The same rule applies to the following parameters. Monday []*string `json:"Monday,omitnil" name:"Monday"` // Maintenance window on Tuesday. At least one time window is required in a week. Tuesday []*string `json:"Tuesday,omitnil" name:"Tuesday"` // Maintenance window on Wednesday. At least one time window is required in a week. Wednesday []*string `json:"Wednesday,omitnil" name:"Wednesday"` // Maintenance window on Thursday. At least one time window is required in a week. Thursday []*string `json:"Thursday,omitnil" name:"Thursday"` // Maintenance window on Friday. At least one time window is required in a week. Friday []*string `json:"Friday,omitnil" name:"Friday"` // Maintenance window on Saturday. At least one time window is required in a week. Saturday []*string `json:"Saturday,omitnil" name:"Saturday"` // Maintenance window on Sunday. At least one time window is required in a week. Sunday []*string `json:"Sunday,omitnil" name:"Sunday"` // Maximum delay threshold, which takes effect only for source instances and disaster recovery instances. MaxDelayTime *uint64 `json:"MaxDelayTime,omitnil" name:"MaxDelayTime"` }
Predefined struct for user
type AddTimeWindowResponse ¶
type AddTimeWindowResponse struct { *tchttp.BaseResponse Response *AddTimeWindowResponseParams `json:"Response"` }
func NewAddTimeWindowResponse ¶
func NewAddTimeWindowResponse() (response *AddTimeWindowResponse)
func (*AddTimeWindowResponse) FromJsonString ¶
func (r *AddTimeWindowResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddTimeWindowResponse) ToJsonString ¶
func (r *AddTimeWindowResponse) ToJsonString() string
type AddTimeWindowResponseParams ¶
type AddTimeWindowResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type AdjustCdbProxyAddressRequest ¶
type AdjustCdbProxyAddressRequest struct { *tchttp.BaseRequest // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Assignment mode of weights. Valid values: `system` (auto-assigned), `custom`. WeightMode *string `json:"WeightMode,omitnil" name:"WeightMode"` // Whether to remove delayed read-only instances from the proxy group Valid values: `true`, `false`. IsKickOut *bool `json:"IsKickOut,omitnil" name:"IsKickOut"` // Least read-only instances. Minimum value: `0` MinCount *uint64 `json:"MinCount,omitnil" name:"MinCount"` // The delay threshold. Minimum value: `0` MaxDelay *uint64 `json:"MaxDelay,omitnil" name:"MaxDelay"` // Whether to enable failover. Valid values: `true`, `false`. FailOver *bool `json:"FailOver,omitnil" name:"FailOver"` // Whether to automatically add newly created read-only instances. Valid values: `true`, `false`. AutoAddRo *bool `json:"AutoAddRo,omitnil" name:"AutoAddRo"` // Whether it is read-only. Valid values: `true`, `false`. ReadOnly *bool `json:"ReadOnly,omitnil" name:"ReadOnly"` // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` // Whether to enable transaction splitting. Valid values: `true`, `false`. TransSplit *bool `json:"TransSplit,omitnil" name:"TransSplit"` // Whether to enable the connection pool ConnectionPool *bool `json:"ConnectionPool,omitnil" name:"ConnectionPool"` // Assignment of read/write weights If `system` is passed in for `WeightMode`, only the default weight assigned by the system will take effect. ProxyAllocation []*ProxyAllocation `json:"ProxyAllocation,omitnil" name:"ProxyAllocation"` }
func NewAdjustCdbProxyAddressRequest ¶
func NewAdjustCdbProxyAddressRequest() (request *AdjustCdbProxyAddressRequest)
func (*AdjustCdbProxyAddressRequest) FromJsonString ¶
func (r *AdjustCdbProxyAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AdjustCdbProxyAddressRequest) ToJsonString ¶
func (r *AdjustCdbProxyAddressRequest) ToJsonString() string
type AdjustCdbProxyAddressRequestParams ¶
type AdjustCdbProxyAddressRequestParams struct { // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Assignment mode of weights. Valid values: `system` (auto-assigned), `custom`. WeightMode *string `json:"WeightMode,omitnil" name:"WeightMode"` // Whether to remove delayed read-only instances from the proxy group Valid values: `true`, `false`. IsKickOut *bool `json:"IsKickOut,omitnil" name:"IsKickOut"` // Least read-only instances. Minimum value: `0` MinCount *uint64 `json:"MinCount,omitnil" name:"MinCount"` // The delay threshold. Minimum value: `0` MaxDelay *uint64 `json:"MaxDelay,omitnil" name:"MaxDelay"` // Whether to enable failover. Valid values: `true`, `false`. FailOver *bool `json:"FailOver,omitnil" name:"FailOver"` // Whether to automatically add newly created read-only instances. Valid values: `true`, `false`. AutoAddRo *bool `json:"AutoAddRo,omitnil" name:"AutoAddRo"` // Whether it is read-only. Valid values: `true`, `false`. ReadOnly *bool `json:"ReadOnly,omitnil" name:"ReadOnly"` // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` // Whether to enable transaction splitting. Valid values: `true`, `false`. TransSplit *bool `json:"TransSplit,omitnil" name:"TransSplit"` // Whether to enable the connection pool ConnectionPool *bool `json:"ConnectionPool,omitnil" name:"ConnectionPool"` // Assignment of read/write weights If `system` is passed in for `WeightMode`, only the default weight assigned by the system will take effect. ProxyAllocation []*ProxyAllocation `json:"ProxyAllocation,omitnil" name:"ProxyAllocation"` }
Predefined struct for user
type AdjustCdbProxyAddressResponse ¶
type AdjustCdbProxyAddressResponse struct { *tchttp.BaseResponse Response *AdjustCdbProxyAddressResponseParams `json:"Response"` }
func NewAdjustCdbProxyAddressResponse ¶
func NewAdjustCdbProxyAddressResponse() (response *AdjustCdbProxyAddressResponse)
func (*AdjustCdbProxyAddressResponse) FromJsonString ¶
func (r *AdjustCdbProxyAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AdjustCdbProxyAddressResponse) ToJsonString ¶
func (r *AdjustCdbProxyAddressResponse) ToJsonString() string
type AdjustCdbProxyAddressResponseParams ¶
type AdjustCdbProxyAddressResponseParams struct { // Async task ID Note: This field may return null, indicating that no valid values can be obtained. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type AdjustCdbProxyRequest ¶
type AdjustCdbProxyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // The specification configuration of a node ProxyNodeCustom []*ProxyNodeCustom `json:"ProxyNodeCustom,omitnil" name:"ProxyNodeCustom"` // Rebalance. Valid values: `auto` (automatic), `manual` (manual). ReloadBalance *string `json:"ReloadBalance,omitnil" name:"ReloadBalance"` // The upgrade switch time. Valid values: `nowTime` (upgrade immediately), `timeWindow` (upgrade during instance maintenance time). UpgradeTime *string `json:"UpgradeTime,omitnil" name:"UpgradeTime"` }
func NewAdjustCdbProxyRequest ¶
func NewAdjustCdbProxyRequest() (request *AdjustCdbProxyRequest)
func (*AdjustCdbProxyRequest) FromJsonString ¶
func (r *AdjustCdbProxyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AdjustCdbProxyRequest) ToJsonString ¶
func (r *AdjustCdbProxyRequest) ToJsonString() string
type AdjustCdbProxyRequestParams ¶
type AdjustCdbProxyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // The specification configuration of a node ProxyNodeCustom []*ProxyNodeCustom `json:"ProxyNodeCustom,omitnil" name:"ProxyNodeCustom"` // Rebalance. Valid values: `auto` (automatic), `manual` (manual). ReloadBalance *string `json:"ReloadBalance,omitnil" name:"ReloadBalance"` // The upgrade switch time. Valid values: `nowTime` (upgrade immediately), `timeWindow` (upgrade during instance maintenance time). UpgradeTime *string `json:"UpgradeTime,omitnil" name:"UpgradeTime"` }
Predefined struct for user
type AdjustCdbProxyResponse ¶
type AdjustCdbProxyResponse struct { *tchttp.BaseResponse Response *AdjustCdbProxyResponseParams `json:"Response"` }
func NewAdjustCdbProxyResponse ¶
func NewAdjustCdbProxyResponse() (response *AdjustCdbProxyResponse)
func (*AdjustCdbProxyResponse) FromJsonString ¶
func (r *AdjustCdbProxyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AdjustCdbProxyResponse) ToJsonString ¶
func (r *AdjustCdbProxyResponse) ToJsonString() string
type AdjustCdbProxyResponseParams ¶
type AdjustCdbProxyResponseParams struct { // Async task ID Note: This field may return null, indicating that no valid values can be obtained. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type AggregationCondition ¶
type AggregationCondition struct { // Aggregation field. Valid values: `host` (source IP), `user` (username), `dbName` (database name), `sqlType` (SQL type). AggregationField *string `json:"AggregationField,omitnil" name:"AggregationField"` // Offset Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of buckets returned under this field. Maximum value: `100`. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` }
type AnalyzeAuditLogsRequest ¶
type AnalyzeAuditLogsRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start time of the log to be analyzed in the format of `2023-02-16 00:00:20`. StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // End time of the log to be analyzed in the format of `2023-02-16 00:00:20`. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Sorting conditions for aggregation dimension AggregationConditions []*AggregationCondition `json:"AggregationConditions,omitnil" name:"AggregationConditions"` // This parameter is disused. The result set of the audit log filtered by this condition is set as the analysis log. AuditLogFilter *AuditLogFilter `json:"AuditLogFilter,omitnil" name:"AuditLogFilter"` // The result set of the audit log filtered by this condition is set as the analysis Log. LogFilter []*InstanceAuditLogFilters `json:"LogFilter,omitnil" name:"LogFilter"` }
func NewAnalyzeAuditLogsRequest ¶
func NewAnalyzeAuditLogsRequest() (request *AnalyzeAuditLogsRequest)
func (*AnalyzeAuditLogsRequest) FromJsonString ¶
func (r *AnalyzeAuditLogsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AnalyzeAuditLogsRequest) ToJsonString ¶
func (r *AnalyzeAuditLogsRequest) ToJsonString() string
type AnalyzeAuditLogsRequestParams ¶
type AnalyzeAuditLogsRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start time of the log to be analyzed in the format of `2023-02-16 00:00:20`. StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // End time of the log to be analyzed in the format of `2023-02-16 00:00:20`. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Sorting conditions for aggregation dimension AggregationConditions []*AggregationCondition `json:"AggregationConditions,omitnil" name:"AggregationConditions"` // This parameter is disused. The result set of the audit log filtered by this condition is set as the analysis log. AuditLogFilter *AuditLogFilter `json:"AuditLogFilter,omitnil" name:"AuditLogFilter"` // The result set of the audit log filtered by this condition is set as the analysis Log. LogFilter []*InstanceAuditLogFilters `json:"LogFilter,omitnil" name:"LogFilter"` }
Predefined struct for user
type AnalyzeAuditLogsResponse ¶
type AnalyzeAuditLogsResponse struct { *tchttp.BaseResponse Response *AnalyzeAuditLogsResponseParams `json:"Response"` }
func NewAnalyzeAuditLogsResponse ¶
func NewAnalyzeAuditLogsResponse() (response *AnalyzeAuditLogsResponse)
func (*AnalyzeAuditLogsResponse) FromJsonString ¶
func (r *AnalyzeAuditLogsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AnalyzeAuditLogsResponse) ToJsonString ¶
func (r *AnalyzeAuditLogsResponse) ToJsonString() string
type AnalyzeAuditLogsResponseParams ¶
type AnalyzeAuditLogsResponseParams struct { // Information set of the aggregation bucket returned // Note: This field may return null, indicating that no valid values can be obtained. Items []*AuditLogAggregationResult `json:"Items,omitnil" name:"Items"` // Number of scanned logs // Note: This field may return null, indicating that no valid values can be obtained. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type AssociateSecurityGroupsRequest ¶
type AssociateSecurityGroupsRequest struct { *tchttp.BaseRequest // Security group ID. SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"` // List of instance IDs, which is an array of one or more instance IDs. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // This parameter takes effect only when the IDs of read-only replicas are passed in. If this parameter is set to `False` or left empty, the security group will be bound to the RO groups of these read-only replicas. If this parameter is set to `True`, the security group will be bound to the read-only replicas themselves. ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitnil" name:"ForReadonlyInstance"` }
func NewAssociateSecurityGroupsRequest ¶
func NewAssociateSecurityGroupsRequest() (request *AssociateSecurityGroupsRequest)
func (*AssociateSecurityGroupsRequest) FromJsonString ¶
func (r *AssociateSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AssociateSecurityGroupsRequest) ToJsonString ¶
func (r *AssociateSecurityGroupsRequest) ToJsonString() string
type AssociateSecurityGroupsRequestParams ¶
type AssociateSecurityGroupsRequestParams struct { // Security group ID. SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"` // List of instance IDs, which is an array of one or more instance IDs. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // This parameter takes effect only when the IDs of read-only replicas are passed in. If this parameter is set to `False` or left empty, the security group will be bound to the RO groups of these read-only replicas. If this parameter is set to `True`, the security group will be bound to the read-only replicas themselves. ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitnil" name:"ForReadonlyInstance"` }
Predefined struct for user
type AssociateSecurityGroupsResponse ¶
type AssociateSecurityGroupsResponse struct { *tchttp.BaseResponse Response *AssociateSecurityGroupsResponseParams `json:"Response"` }
func NewAssociateSecurityGroupsResponse ¶
func NewAssociateSecurityGroupsResponse() (response *AssociateSecurityGroupsResponse)
func (*AssociateSecurityGroupsResponse) FromJsonString ¶
func (r *AssociateSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AssociateSecurityGroupsResponse) ToJsonString ¶
func (r *AssociateSecurityGroupsResponse) ToJsonString() string
type AssociateSecurityGroupsResponseParams ¶
type AssociateSecurityGroupsResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type AuditFilter ¶
type AuditFilter struct { // Filter parameter names. Valid values: // SrcIp: Client IP; // User: Database account; // DB: Database name. Type *string `json:"Type,omitnil" name:"Type"` // Filter match type. Valid value: // `INC`: Include; // `EXC`: Exclude; // `EQ`: Equal to; // `NEQ`: Not equal to. Compare *string `json:"Compare,omitnil" name:"Compare"` // Filter match value Value *string `json:"Value,omitnil" name:"Value"` }
type AuditLog ¶
type AuditLog struct { // Number of affected rows AffectRows *int64 `json:"AffectRows,omitnil" name:"AffectRows"` // The error code ErrCode *int64 `json:"ErrCode,omitnil" name:"ErrCode"` SqlType *string `json:"SqlType,omitnil" name:"SqlType"` // Audit policy name, which will be unavailable soon. PolicyName *string `json:"PolicyName,omitnil" name:"PolicyName"` DBName *string `json:"DBName,omitnil" name:"DBName"` Sql *string `json:"Sql,omitnil" name:"Sql"` // Client address Host *string `json:"Host,omitnil" name:"Host"` // Username User *string `json:"User,omitnil" name:"User"` // Execution time (μs) ExecTime *int64 `json:"ExecTime,omitnil" name:"ExecTime"` // Time Timestamp *string `json:"Timestamp,omitnil" name:"Timestamp"` // Number of returned rows SentRows *int64 `json:"SentRows,omitnil" name:"SentRows"` // Thread ID ThreadId *int64 `json:"ThreadId,omitnil" name:"ThreadId"` // Number of scanned rows // Note: u200dThis field may return null, indicating that no valid values can be obtained. CheckRows *int64 `json:"CheckRows,omitnil" name:"CheckRows"` // CPU u200dexecution time (μs) // Note: u200dThis field may return null, indicating that no valid values can be obtained. CpuTime *float64 `json:"CpuTime,omitnil" name:"CpuTime"` // IO wait time (μs) // Note: u200dThis field may return null, indicating that no valid values can be obtained. IoWaitTime *uint64 `json:"IoWaitTime,omitnil" name:"IoWaitTime"` // Lock wait time (μs) // Note: u200dThis field may return null, indicating that no valid values can be obtained. LockWaitTime *uint64 `json:"LockWaitTime,omitnil" name:"LockWaitTime"` // Start time, which forms a time accurate to nanoseconds with·`timestamp`. // Note: u200dThis field may return null, indicating that no valid values can be obtained. NsTime *uint64 `json:"NsTime,omitnil" name:"NsTime"` // Transaction u200dduration (μs) // Note: u200dThis field may return null, indicating that no valid values can be obtained. TrxLivingTime *uint64 `json:"TrxLivingTime,omitnil" name:"TrxLivingTime"` }
type AuditLogAggregationResult ¶
type AuditLogAggregationResult struct { // Aggregation dimension // Note: This field may return null, indicating that no valid values can be obtained. AggregationField *string `json:"AggregationField,omitnil" name:"AggregationField"` // Result set of an aggregation bucket // Note: This field may return null, indicating that no valid values can be obtained. Buckets []*Bucket `json:"Buckets,omitnil" name:"Buckets"` }
type AuditLogFilter ¶
type AuditLogFilter struct { // Client address Host []*string `json:"Host,omitnil" name:"Host"` // Username User []*string `json:"User,omitnil" name:"User"` DBName []*string `json:"DBName,omitnil" name:"DBName"` // Table name TableName []*string `json:"TableName,omitnil" name:"TableName"` // Audit policy name PolicyName []*string `json:"PolicyName,omitnil" name:"PolicyName"` Sql *string `json:"Sql,omitnil" name:"Sql"` SqlType *string `json:"SqlType,omitnil" name:"SqlType"` // Execution time in ms, which is used to filter the audit log with execution time greater than this value. ExecTime *int64 `json:"ExecTime,omitnil" name:"ExecTime"` // Number of affected rows, which is used to filter the audit log with affected rows greater than this value. AffectRows *int64 `json:"AffectRows,omitnil" name:"AffectRows"` // SQL type (Multiple types can be queried at same time). Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `ALTER`, `SET`, `REPLACE`, `EXECUTE`. SqlTypes []*string `json:"SqlTypes,omitnil" name:"SqlTypes"` // SQL statement. Multiple SQL statements can be passed in. Sqls []*string `json:"Sqls,omitnil" name:"Sqls"` // Number of rows affected in the format of M-N, such as 10-200. AffectRowsSection *string `json:"AffectRowsSection,omitnil" name:"AffectRowsSection"` // Number of rows returned in the format of M-N, such as 10-200. SentRowsSection *string `json:"SentRowsSection,omitnil" name:"SentRowsSection"` // Execution time in the format of M-N, such as 10-200. ExecTimeSection *string `json:"ExecTimeSection,omitnil" name:"ExecTimeSection"` // Lock wait time in the format of M-N, such as 10-200. LockWaitTimeSection *string `json:"LockWaitTimeSection,omitnil" name:"LockWaitTimeSection"` // IO wait time in the format of M-N, such as 10-200. IoWaitTimeSection *string `json:"IoWaitTimeSection,omitnil" name:"IoWaitTimeSection"` // Transaction duration in the format of M-N, such as 10-200. TransactionLivingTimeSection *string `json:"TransactionLivingTimeSection,omitnil" name:"TransactionLivingTimeSection"` // Thread ID ThreadId []*string `json:"ThreadId,omitnil" name:"ThreadId"` // Number of returned rows, which is used to filter the audit log with affected rows greater than this value. SentRows *int64 `json:"SentRows,omitnil" name:"SentRows"` // MySQL error codes ErrCode []*int64 `json:"ErrCode,omitnil" name:"ErrCode"` }
type AuditPolicy ¶
type AuditPolicy struct { // Audit policy ID. PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // Audit policy status. Valid values: // `creating`; // `running`, // `paused`; // `failed`. Status *string `json:"Status,omitnil" name:"Status"` // Database instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Creation time of audit policy in the format of 2019-03-20 17:09:13 CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // Last modified time of audit policy in the format of 2019-03-20 17:09:13 ModifyTime *string `json:"ModifyTime,omitnil" name:"ModifyTime"` // Audit policy name PolicyName *string `json:"PolicyName,omitnil" name:"PolicyName"` // Audit rule ID RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // Audit rule name // Note: This field may return `null`, indicating that no valid value was found. RuleName *string `json:"RuleName,omitnil" name:"RuleName"` // Database instance name // Note: This field may return `null`, indicating that no valid value was found. InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` }
type AuditRule ¶
type AuditRule struct { // Audit rule ID RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // Creation time of audit rule in the format of 2019-03-20 17:09:13 CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // Last modified time of audit rule in the format of 2019-03-20 17:09:13 ModifyTime *string `json:"ModifyTime,omitnil" name:"ModifyTime"` // Audit rule name // Note: This field may return `null`, indicating that no valid value was found. RuleName *string `json:"RuleName,omitnil" name:"RuleName"` // Audit rule description // Note: This field may return `null`, indicating that no valid value was found. Description *string `json:"Description,omitnil" name:"Description"` // Audit rule filters // Note: This field may return `null`, indicating that no valid value was found. RuleFilters []*AuditFilter `json:"RuleFilters,omitnil" name:"RuleFilters"` // Whether to enable full audit AuditAll *bool `json:"AuditAll,omitnil" name:"AuditAll"` }
type AuditRuleFilters ¶
type AuditRuleFilters struct { // Audit rule // Note: This field may return null, indicating that no valid values can be obtained. RuleFilters []*RuleFilters `json:"RuleFilters,omitnil" name:"RuleFilters"` }
type BackupConfig ¶
type BackupConfig struct { // Replication mode of secondary database 2. Value range: async, semi-sync ReplicationMode *string `json:"ReplicationMode,omitnil" name:"ReplicationMode"` // Name of the AZ of secondary database 2, such as ap-shanghai-1 Zone *string `json:"Zone,omitnil" name:"Zone"` // Private IP address of secondary database 2 Vip *string `json:"Vip,omitnil" name:"Vip"` // Access port of secondary database 2 Vport *uint64 `json:"Vport,omitnil" name:"Vport"` }
type BackupInfo ¶
type BackupInfo struct { // Backup filename Name *string `json:"Name,omitnil" name:"Name"` // Backup file size in bytes Size *int64 `json:"Size,omitnil" name:"Size"` // Backup snapshot time in the format of yyyy-MM-dd HH:mm:ss, such as 2016-03-17 02:10:37 Date *string `json:"Date,omitnil" name:"Date"` // Download address IntranetUrl *string `json:"IntranetUrl,omitnil" name:"IntranetUrl"` // Download address InternetUrl *string `json:"InternetUrl,omitnil" name:"InternetUrl"` // Log type. Valid values: `logical` (logical cold backup), `physical` (physical cold backup). Type *string `json:"Type,omitnil" name:"Type"` // Backup subtask ID, which is used when backup files are deleted BackupId *int64 `json:"BackupId,omitnil" name:"BackupId"` // Backup task status. Valid values: `SUCCESS` (backup succeeded), `FAILED` (backup failed), `RUNNING` (backup is in progress). Status *string `json:"Status,omitnil" name:"Status"` // Backup task completion time FinishTime *string `json:"FinishTime,omitnil" name:"FinishTime"` // (This field will be disused and is thus not recommended) backup creator. Valid values: `SYSTEM` (created by system), `Uin` (initiator's `Uin` value). Creator *string `json:"Creator,omitnil" name:"Creator"` // Backup task start time StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // Backup method. Valid values: `full` (full backup), `partial` (partial backup). Method *string `json:"Method,omitnil" name:"Method"` // Backup mode. Valid values: `manual` (manual backup), `automatic` (automatic backup). Way *string `json:"Way,omitnil" name:"Way"` // Manual backup alias ManualBackupName *string `json:"ManualBackupName,omitnil" name:"ManualBackupName"` // Backup retention type. Valid values: `save_mode_regular` (non-archive backup), save_mode_period`(archive backup). SaveMode *string `json:"SaveMode,omitnil" name:"SaveMode"` // The region where local backup resides Region *string `json:"Region,omitnil" name:"Region"` // Detailed information of remote backups RemoteInfo []*RemoteBackupInfo `json:"RemoteInfo,omitnil" name:"RemoteInfo"` // Storage method. Valid values: `0` (regular storage), `1`(archive storage). Default value: `0`. CosStorageType *int64 `json:"CosStorageType,omitnil" name:"CosStorageType"` // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Whether the backup file is encrypted. Valid values: `on` (encrypted), `off` (unencrypted). // Note: This field may return null, indicating that no valid values can be obtained. EncryptionFlag *string `json:"EncryptionFlag,omitnil" name:"EncryptionFlag"` }
type BackupItem ¶
type BackupItem struct { // Name of the database to be backed up Db *string `json:"Db,omitnil" name:"Db"` // Name of the table to be backed up. If this parameter is passed in, the specified table in the database will be backed up; otherwise, the database will be backed up. Table *string `json:"Table,omitnil" name:"Table"` }
type BackupLimitVpcItem ¶
type BackupLimitVpcItem struct { // The region where the backup download restrictions take effect. It must be the same as the common request parameter `Region` of the API. Region *string `json:"Region,omitnil" name:"Region"` // The list of VPCs used to restrict backup download VpcList []*string `json:"VpcList,omitnil" name:"VpcList"` }
type BackupSummaryItem ¶
type BackupSummaryItem struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Number of automatic data backups of an instance. AutoBackupCount *int64 `json:"AutoBackupCount,omitnil" name:"AutoBackupCount"` // Capacity of automatic data backups of an instance. AutoBackupVolume *int64 `json:"AutoBackupVolume,omitnil" name:"AutoBackupVolume"` // Number of manual data backups of an instance. ManualBackupCount *int64 `json:"ManualBackupCount,omitnil" name:"ManualBackupCount"` // Capacity of manual data backups of an instance. ManualBackupVolume *int64 `json:"ManualBackupVolume,omitnil" name:"ManualBackupVolume"` // Total number of data backups of an instance (including automatic backups and manual backups). DataBackupCount *int64 `json:"DataBackupCount,omitnil" name:"DataBackupCount"` // Total capacity of data backups of an instance. DataBackupVolume *int64 `json:"DataBackupVolume,omitnil" name:"DataBackupVolume"` // Number of log backups of an instance. BinlogBackupCount *int64 `json:"BinlogBackupCount,omitnil" name:"BinlogBackupCount"` // Capacity of log backups of an instance. BinlogBackupVolume *int64 `json:"BinlogBackupVolume,omitnil" name:"BinlogBackupVolume"` // Total capacity of backups of an instance (including data backups and log backups). BackupVolume *int64 `json:"BackupVolume,omitnil" name:"BackupVolume"` }
type BalanceRoGroupLoadRequest ¶
type BalanceRoGroupLoadRequest struct { *tchttp.BaseRequest // RO group ID in the format of `cdbrg-c1nl9rpv`. RoGroupId *string `json:"RoGroupId,omitnil" name:"RoGroupId"` }
func NewBalanceRoGroupLoadRequest ¶
func NewBalanceRoGroupLoadRequest() (request *BalanceRoGroupLoadRequest)
func (*BalanceRoGroupLoadRequest) FromJsonString ¶
func (r *BalanceRoGroupLoadRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BalanceRoGroupLoadRequest) ToJsonString ¶
func (r *BalanceRoGroupLoadRequest) ToJsonString() string
type BalanceRoGroupLoadRequestParams ¶
type BalanceRoGroupLoadRequestParams struct { // RO group ID in the format of `cdbrg-c1nl9rpv`. RoGroupId *string `json:"RoGroupId,omitnil" name:"RoGroupId"` }
Predefined struct for user
type BalanceRoGroupLoadResponse ¶
type BalanceRoGroupLoadResponse struct { *tchttp.BaseResponse Response *BalanceRoGroupLoadResponseParams `json:"Response"` }
func NewBalanceRoGroupLoadResponse ¶
func NewBalanceRoGroupLoadResponse() (response *BalanceRoGroupLoadResponse)
func (*BalanceRoGroupLoadResponse) FromJsonString ¶
func (r *BalanceRoGroupLoadResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BalanceRoGroupLoadResponse) ToJsonString ¶
func (r *BalanceRoGroupLoadResponse) ToJsonString() string
type BalanceRoGroupLoadResponseParams ¶
type BalanceRoGroupLoadResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type BinlogInfo ¶
type BinlogInfo struct { // Binlog backup filename Name *string `json:"Name,omitnil" name:"Name"` // Backup file size in bytes Size *int64 `json:"Size,omitnil" name:"Size"` // File stored time in the format of 2016-03-17 02:10:37 Date *string `json:"Date,omitnil" name:"Date"` // Download address IntranetUrl *string `json:"IntranetUrl,omitnil" name:"IntranetUrl"` // Download address InternetUrl *string `json:"InternetUrl,omitnil" name:"InternetUrl"` // Log type. Value range: binlog Type *string `json:"Type,omitnil" name:"Type"` // Binlog file start file BinlogStartTime *string `json:"BinlogStartTime,omitnil" name:"BinlogStartTime"` // Binlog file end time BinlogFinishTime *string `json:"BinlogFinishTime,omitnil" name:"BinlogFinishTime"` // The region where the binlog file resides Region *string `json:"Region,omitnil" name:"Region"` // Backup task status. Valid values: `SUCCESS` (backup succeeded), `FAILED` (backup failed), `RUNNING` (backup is in progress). Status *string `json:"Status,omitnil" name:"Status"` // The detailed information of remote binlog backups RemoteInfo []*RemoteBackupInfo `json:"RemoteInfo,omitnil" name:"RemoteInfo"` // Storage method. Valid values: `0` (regular storage), `1`(archive storage). Default value: `0`. CosStorageType *int64 `json:"CosStorageType,omitnil" name:"CosStorageType"` // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
type CdbRegionSellConf ¶
type CdbRegionSellConf struct { // Region name RegionName *string `json:"RegionName,omitnil" name:"RegionName"` // Area Area *string `json:"Area,omitnil" name:"Area"` // Whether it is a default region IsDefaultRegion *int64 `json:"IsDefaultRegion,omitnil" name:"IsDefaultRegion"` // Region name Region *string `json:"Region,omitnil" name:"Region"` // The purchasable configuration in an AZ in a region RegionConfig []*CdbZoneSellConf `json:"RegionConfig,omitnil" name:"RegionConfig"` }
type CdbSellConfig ¶
type CdbSellConfig struct { // Memory size in MB Memory *int64 `json:"Memory,omitnil" name:"Memory"` // CPU core count Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Minimum disk size in GB VolumeMin *int64 `json:"VolumeMin,omitnil" name:"VolumeMin"` // Maximum disk size in GB VolumeMax *int64 `json:"VolumeMax,omitnil" name:"VolumeMax"` // Disk capacity increment in GB VolumeStep *int64 `json:"VolumeStep,omitnil" name:"VolumeStep"` // IO operations per second Iops *int64 `json:"Iops,omitnil" name:"Iops"` // Application scenario description Info *string `json:"Info,omitnil" name:"Info"` // Status. The value `0` indicates that this specification is available. Status *int64 `json:"Status,omitnil" name:"Status"` // Instance type. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance), `BASIC_V2` (basic v2 instance). // Note: This field may return null, indicating that no valid values can be obtained. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // Engine type description. Valid values: `Innodb`, `RocksDB`. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` // Purchasable specifications ID Id *int64 `json:"Id,omitnil" name:"Id"` }
type CdbSellType ¶
type CdbSellType struct { // Name of the purchasable instance. Valid values: `Z3` (High-availability instance. `DeviceType`:`UNIVERSAL`, `EXCLUSIVE`; `CVM` (basic instance. `DeviceType`: `BASIC`); `TKE` (basic v2 instance. `DeviceType`: `BASIC_V2`). TypeName *string `json:"TypeName,omitnil" name:"TypeName"` // Engine version number EngineVersion []*string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Purchasable specifications ID ConfigIds []*int64 `json:"ConfigIds,omitnil" name:"ConfigIds"` }
type CdbZoneDataResult ¶
type CdbZoneDataResult struct { // List of purchasable specifications Configs []*CdbSellConfig `json:"Configs,omitnil" name:"Configs"` // List of AZs in purchasable regions Regions []*CdbRegionSellConf `json:"Regions,omitnil" name:"Regions"` }
type CdbZoneSellConf ¶
type CdbZoneSellConf struct { // AZ status, which is used to indicate whether instances are purchasable. Valid values: `1` (purchasable), `3` (not purchasable), `4` (AZ not displayed) Status *int64 `json:"Status,omitnil" name:"Status"` // AZ name ZoneName *string `json:"ZoneName,omitnil" name:"ZoneName"` // Whether it is a custom instance type IsCustom *bool `json:"IsCustom,omitnil" name:"IsCustom"` // Whether disaster recovery is supported IsSupportDr *bool `json:"IsSupportDr,omitnil" name:"IsSupportDr"` // Whether VPC is supported IsSupportVpc *bool `json:"IsSupportVpc,omitnil" name:"IsSupportVpc"` // Maximum purchasable quantity of hourly billed instances HourInstanceSaleMaxNum *int64 `json:"HourInstanceSaleMaxNum,omitnil" name:"HourInstanceSaleMaxNum"` // Whether it is a default AZ IsDefaultZone *bool `json:"IsDefaultZone,omitnil" name:"IsDefaultZone"` // Whether it is a BM zone IsBm *bool `json:"IsBm,omitnil" name:"IsBm"` // Supported billing method. Valid values: `0` (monthly subscribed), `1` (hourly billed), `2` (pay-as-you-go) PayType []*string `json:"PayType,omitnil" name:"PayType"` // Data replication type. Valid values: `0` (async), `1` (semi-sync), `2` (strong sync) ProtectMode []*string `json:"ProtectMode,omitnil" name:"ProtectMode"` // AZ name Zone *string `json:"Zone,omitnil" name:"Zone"` // Multi-AZ information ZoneConf *ZoneConf `json:"ZoneConf,omitnil" name:"ZoneConf"` // Information of supported disaster recovery AZs DrZone []*string `json:"DrZone,omitnil" name:"DrZone"` // Whether cross-AZ read-only access is supported IsSupportRemoteRo *bool `json:"IsSupportRemoteRo,omitnil" name:"IsSupportRemoteRo"` // Information of supported cross-AZ read-only zone RemoteRoZone []*string `json:"RemoteRoZone,omitnil" name:"RemoteRoZone"` // AZ status, which is used to indicate whether dedicated instances are purchasable. Valid values: `1 (purchasable), `3` (not purchasable), `4` (AZ not displayed) ExClusterStatus *int64 `json:"ExClusterStatus,omitnil" name:"ExClusterStatus"` // Information of cross-AZ read-only zones supported by a dedicated instance ExClusterRemoteRoZone []*string `json:"ExClusterRemoteRoZone,omitnil" name:"ExClusterRemoteRoZone"` // AZ information of a multi-AZ deployed dedicated instance. ExClusterZoneConf *ZoneConf `json:"ExClusterZoneConf,omitnil" name:"ExClusterZoneConf"` // Array of purchasable instance types. The value of `configIds` and `configs` have a one-to-one correspondence. SellType []*CdbSellType `json:"SellType,omitnil" name:"SellType"` // AZ ID ZoneId *int64 `json:"ZoneId,omitnil" name:"ZoneId"` // Whether IPv6 is supported IsSupportIpv6 *bool `json:"IsSupportIpv6,omitnil" name:"IsSupportIpv6"` // Supported engine types for purchasable database EngineType []*string `json:"EngineType,omitnil" name:"EngineType"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddTimeWindow ¶
func (c *Client) AddTimeWindow(request *AddTimeWindowRequest) (response *AddTimeWindowResponse, err error)
AddTimeWindow This API (AddTimeWindow) is used to add a maintenance time window for a TencentDB instance, so as to specify when the instance can automatically perform access switch operations.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_RESOURCEEXISTS = "InvalidParameter.ResourceExists"
func (*Client) AddTimeWindowWithContext ¶
func (c *Client) AddTimeWindowWithContext(ctx context.Context, request *AddTimeWindowRequest) (response *AddTimeWindowResponse, err error)
AddTimeWindow This API (AddTimeWindow) is used to add a maintenance time window for a TencentDB instance, so as to specify when the instance can automatically perform access switch operations.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_RESOURCEEXISTS = "InvalidParameter.ResourceExists"
func (*Client) AdjustCdbProxy ¶
func (c *Client) AdjustCdbProxy(request *AdjustCdbProxyRequest) (response *AdjustCdbProxyResponse, err error)
AdjustCdbProxy This API is used to adjust the configuration of database proxy.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_PROXYGROUPSTATUSERROR = "FailedOperation.ProxyGroupStatusError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_PROXYNODECOUNTLIMITERROR = "OperationDenied.ProxyNodeCountLimitError"
func (*Client) AdjustCdbProxyAddress ¶
func (c *Client) AdjustCdbProxyAddress(request *AdjustCdbProxyAddressRequest) (response *AdjustCdbProxyAddressResponse, err error)
AdjustCdbProxyAddress This API is used to adjust the database proxy address.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_FAILEDOPERATIONERROR = "FailedOperation.FailedOperationError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_UNSUPPORTCREATEADDRESSERROR = "OperationDenied.UnsupportCreateAddressError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) AdjustCdbProxyAddressWithContext ¶
func (c *Client) AdjustCdbProxyAddressWithContext(ctx context.Context, request *AdjustCdbProxyAddressRequest) (response *AdjustCdbProxyAddressResponse, err error)
AdjustCdbProxyAddress This API is used to adjust the database proxy address.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_FAILEDOPERATIONERROR = "FailedOperation.FailedOperationError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_UNSUPPORTCREATEADDRESSERROR = "OperationDenied.UnsupportCreateAddressError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) AdjustCdbProxyWithContext ¶
func (c *Client) AdjustCdbProxyWithContext(ctx context.Context, request *AdjustCdbProxyRequest) (response *AdjustCdbProxyResponse, err error)
AdjustCdbProxy This API is used to adjust the configuration of database proxy.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_PROXYGROUPSTATUSERROR = "FailedOperation.ProxyGroupStatusError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_PROXYNODECOUNTLIMITERROR = "OperationDenied.ProxyNodeCountLimitError"
func (*Client) AnalyzeAuditLogs ¶
func (c *Client) AnalyzeAuditLogs(request *AnalyzeAuditLogsRequest) (response *AnalyzeAuditLogsResponse, err error)
AnalyzeAuditLogs This API is used to aggregate the audit logs filtered by different conditions and aggregate the statistics of the specified data rows.
error code that may be returned:
INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
func (*Client) AnalyzeAuditLogsWithContext ¶
func (c *Client) AnalyzeAuditLogsWithContext(ctx context.Context, request *AnalyzeAuditLogsRequest) (response *AnalyzeAuditLogsResponse, err error)
AnalyzeAuditLogs This API is used to aggregate the audit logs filtered by different conditions and aggregate the statistics of the specified data rows.
error code that may be returned:
INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
func (*Client) AssociateSecurityGroups ¶
func (c *Client) AssociateSecurityGroups(request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
AssociateSecurityGroups This API (AssociateSecurityGroups) is used to bind security groups to instances in batches.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_RESOURCENOTMATCH = "InternalError.ResourceNotMatch" INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied"
func (*Client) AssociateSecurityGroupsWithContext ¶
func (c *Client) AssociateSecurityGroupsWithContext(ctx context.Context, request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
AssociateSecurityGroups This API (AssociateSecurityGroups) is used to bind security groups to instances in batches.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_RESOURCENOTMATCH = "InternalError.ResourceNotMatch" INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied"
func (*Client) BalanceRoGroupLoad ¶
func (c *Client) BalanceRoGroupLoad(request *BalanceRoGroupLoadRequest) (response *BalanceRoGroupLoadResponse, err error)
BalanceRoGroupLoad This API is used to rebalance the loads of instances in an RO group. Please note that the database connections to those instances will be interrupted transiently; therefore, you should ensure that your application can reconnect to the databases. This operation should be performed with caution.
error code that may be returned:
FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) BalanceRoGroupLoadWithContext ¶
func (c *Client) BalanceRoGroupLoadWithContext(ctx context.Context, request *BalanceRoGroupLoadRequest) (response *BalanceRoGroupLoadResponse, err error)
BalanceRoGroupLoad This API is used to rebalance the loads of instances in an RO group. Please note that the database connections to those instances will be interrupted transiently; therefore, you should ensure that your application can reconnect to the databases. This operation should be performed with caution.
error code that may be returned:
FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) CloseCDBProxy ¶
func (c *Client) CloseCDBProxy(request *CloseCDBProxyRequest) (response *CloseCDBProxyResponse, err error)
CloseCDBProxy This API is used to disable database proxy.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_PROXYGROUPSTATUSERROR = "FailedOperation.ProxyGroupStatusError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_PROXYUPGRADETASKSTATUSERROR = "OperationDenied.ProxyUpgradeTaskStatusError"
func (*Client) CloseCDBProxyWithContext ¶
func (c *Client) CloseCDBProxyWithContext(ctx context.Context, request *CloseCDBProxyRequest) (response *CloseCDBProxyResponse, err error)
CloseCDBProxy This API is used to disable database proxy.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_PROXYGROUPSTATUSERROR = "FailedOperation.ProxyGroupStatusError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_PROXYUPGRADETASKSTATUSERROR = "OperationDenied.ProxyUpgradeTaskStatusError"
func (*Client) CloseCdbProxyAddress ¶
func (c *Client) CloseCdbProxyAddress(request *CloseCdbProxyAddressRequest) (response *CloseCdbProxyAddressResponse, err error)
CloseCdbProxyAddress This API is used to disable the database proxy address.
error code that may be returned:
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_PROXYADDRESSLIMITERROR = "OperationDenied.ProxyAddressLimitError" OPERATIONDENIED_PROXYADDRESSNOTFUND = "OperationDenied.ProxyAddressNotFund" OPERATIONDENIED_PROXYUPGRADETASKSTATUSERROR = "OperationDenied.ProxyUpgradeTaskStatusError"
func (*Client) CloseCdbProxyAddressWithContext ¶
func (c *Client) CloseCdbProxyAddressWithContext(ctx context.Context, request *CloseCdbProxyAddressRequest) (response *CloseCdbProxyAddressResponse, err error)
CloseCdbProxyAddress This API is used to disable the database proxy address.
error code that may be returned:
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_PROXYADDRESSLIMITERROR = "OperationDenied.ProxyAddressLimitError" OPERATIONDENIED_PROXYADDRESSNOTFUND = "OperationDenied.ProxyAddressNotFund" OPERATIONDENIED_PROXYUPGRADETASKSTATUSERROR = "OperationDenied.ProxyUpgradeTaskStatusError"
func (*Client) CloseWanService ¶
func (c *Client) CloseWanService(request *CloseWanServiceRequest) (response *CloseWanServiceResponse, err error)
CloseWanService This API (CloseWanService) is used to disable public network access for TencentDB instance, which will make public IP addresses inaccessible.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) CloseWanServiceWithContext ¶
func (c *Client) CloseWanServiceWithContext(ctx context.Context, request *CloseWanServiceRequest) (response *CloseWanServiceResponse, err error)
CloseWanService This API (CloseWanService) is used to disable public network access for TencentDB instance, which will make public IP addresses inaccessible.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) CreateAccounts ¶
func (c *Client) CreateAccounts(request *CreateAccountsRequest) (response *CreateAccountsResponse, err error)
CreateAccounts This API is used to create a TencentDB account. The account name, host address, and password are required. Account remarks and maximum connections can also be configured.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_INSTTYPENOTSUPPORT = "OperationDenied.InstTypeNotSupport" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) CreateAccountsWithContext ¶
func (c *Client) CreateAccountsWithContext(ctx context.Context, request *CreateAccountsRequest) (response *CreateAccountsResponse, err error)
CreateAccounts This API is used to create a TencentDB account. The account name, host address, and password are required. Account remarks and maximum connections can also be configured.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_INSTTYPENOTSUPPORT = "OperationDenied.InstTypeNotSupport" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) CreateAuditPolicy ¶
func (c *Client) CreateAuditPolicy(request *CreateAuditPolicyRequest) (response *CreateAuditPolicyResponse, err error)
CreateAuditPolicy This API is used to create an audit policy for a TencentDB instance by associating an audit rule with the TencentDB instance.
error code that may be returned:
FAILEDOPERATION_CREATEAUDITFAILERROR = "FailedOperation.CreateAuditFailError" FAILEDOPERATION_TYPEINCONFLICT = "FailedOperation.TypeInConflict" INTERNALERROR_AUDITERROR = "InternalError.AuditError" INTERNALERROR_AUDITOSSLOGICERROR = "InternalError.AuditOssLogicError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_SERVERERROR = "InternalError.ServerError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_TRANSACTIONBEGINERROR = "InternalError.TransactionBeginError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" LIMITEXCEEDED = "LimitExceeded" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_AUDITPOLICYCONFLICTERROR = "OperationDenied.AuditPolicyConflictError" OPERATIONDENIED_AUDITPOLICYEXISTERROR = "OperationDenied.AuditPolicyExistError" OPERATIONDENIED_AUDITPOLICYOVERQUOTAERROR = "OperationDenied.AuditPolicyOverQuotaError" OPERATIONDENIED_AUDITRULEHASBIND = "OperationDenied.AuditRuleHasBind" OPERATIONDENIED_AUDITRULENOTEXISTERROR = "OperationDenied.AuditRuleNotExistError" OPERATIONDENIED_AUDITSTATUSERROR = "OperationDenied.AuditStatusError" OPERATIONDENIED_AUDITTASKCONFLICTERROR = "OperationDenied.AuditTaskConflictError" OPERATIONDENIED_DBBRAINPOLICYCONFLICT = "OperationDenied.DBBrainPolicyConflict" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" OPERATIONDENIED_UNSUPPORTOPENAUDITERROR = "OperationDenied.UnsupportOpenAuditError" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateAuditPolicyWithContext ¶
func (c *Client) CreateAuditPolicyWithContext(ctx context.Context, request *CreateAuditPolicyRequest) (response *CreateAuditPolicyResponse, err error)
CreateAuditPolicy This API is used to create an audit policy for a TencentDB instance by associating an audit rule with the TencentDB instance.
error code that may be returned:
FAILEDOPERATION_CREATEAUDITFAILERROR = "FailedOperation.CreateAuditFailError" FAILEDOPERATION_TYPEINCONFLICT = "FailedOperation.TypeInConflict" INTERNALERROR_AUDITERROR = "InternalError.AuditError" INTERNALERROR_AUDITOSSLOGICERROR = "InternalError.AuditOssLogicError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_SERVERERROR = "InternalError.ServerError" INTERNALERROR_SERVICEERROR = "InternalError.ServiceError" INTERNALERROR_TRANSACTIONBEGINERROR = "InternalError.TransactionBeginError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" LIMITEXCEEDED = "LimitExceeded" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_AUDITPOLICYCONFLICTERROR = "OperationDenied.AuditPolicyConflictError" OPERATIONDENIED_AUDITPOLICYEXISTERROR = "OperationDenied.AuditPolicyExistError" OPERATIONDENIED_AUDITPOLICYOVERQUOTAERROR = "OperationDenied.AuditPolicyOverQuotaError" OPERATIONDENIED_AUDITRULEHASBIND = "OperationDenied.AuditRuleHasBind" OPERATIONDENIED_AUDITRULENOTEXISTERROR = "OperationDenied.AuditRuleNotExistError" OPERATIONDENIED_AUDITSTATUSERROR = "OperationDenied.AuditStatusError" OPERATIONDENIED_AUDITTASKCONFLICTERROR = "OperationDenied.AuditTaskConflictError" OPERATIONDENIED_DBBRAINPOLICYCONFLICT = "OperationDenied.DBBrainPolicyConflict" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" OPERATIONDENIED_UNSUPPORTOPENAUDITERROR = "OperationDenied.UnsupportOpenAuditError" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateBackup ¶
func (c *Client) CreateBackup(request *CreateBackupRequest) (response *CreateBackupResponse, err error)
CreateBackup This API (CreateBackup) is used to create a TencentDB instance backup.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_OSSERROR = "InternalError.OssError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" OPERATIONDENIED_ACTIONINPROCESS = "OperationDenied.ActionInProcess" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OVERQUOTA = "OverQuota"
func (*Client) CreateBackupWithContext ¶
func (c *Client) CreateBackupWithContext(ctx context.Context, request *CreateBackupRequest) (response *CreateBackupResponse, err error)
CreateBackup This API (CreateBackup) is used to create a TencentDB instance backup.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_OSSERROR = "InternalError.OssError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" OPERATIONDENIED_ACTIONINPROCESS = "OperationDenied.ActionInProcess" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OVERQUOTA = "OverQuota"
func (*Client) CreateCdbProxy ¶
func (c *Client) CreateCdbProxy(request *CreateCdbProxyRequest) (response *CreateCdbProxyResponse, err error)
CreateCdbProxy This API is used create a database proxy for a source instance.
error code that may be returned:
FAILEDOPERATION_REPEATCREATEPROXYERROR = "FailedOperation.RepeatCreateProxyError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) CreateCdbProxyAddress ¶
func (c *Client) CreateCdbProxyAddress(request *CreateCdbProxyAddressRequest) (response *CreateCdbProxyAddressResponse, err error)
CreateCdbProxyAddress This API is used to create a database proxy address.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_VPCIPINUSEERROR = "FailedOperation.VpcIpInUseError" FAILEDOPERATION_VPCIPINVALIDERROR = "FailedOperation.VpcIpInvalidError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" OPERATIONDENIED_PROXYADDRESSLIMITERROR = "OperationDenied.ProxyAddressLimitError" OPERATIONDENIED_PROXYUPGRADETASKSTATUSERROR = "OperationDenied.ProxyUpgradeTaskStatusError"
func (*Client) CreateCdbProxyAddressWithContext ¶
func (c *Client) CreateCdbProxyAddressWithContext(ctx context.Context, request *CreateCdbProxyAddressRequest) (response *CreateCdbProxyAddressResponse, err error)
CreateCdbProxyAddress This API is used to create a database proxy address.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_VPCIPINUSEERROR = "FailedOperation.VpcIpInUseError" FAILEDOPERATION_VPCIPINVALIDERROR = "FailedOperation.VpcIpInvalidError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" OPERATIONDENIED_PROXYADDRESSLIMITERROR = "OperationDenied.ProxyAddressLimitError" OPERATIONDENIED_PROXYUPGRADETASKSTATUSERROR = "OperationDenied.ProxyUpgradeTaskStatusError"
func (*Client) CreateCdbProxyWithContext ¶
func (c *Client) CreateCdbProxyWithContext(ctx context.Context, request *CreateCdbProxyRequest) (response *CreateCdbProxyResponse, err error)
CreateCdbProxy This API is used create a database proxy for a source instance.
error code that may be returned:
FAILEDOPERATION_REPEATCREATEPROXYERROR = "FailedOperation.RepeatCreateProxyError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) CreateCloneInstance ¶
func (c *Client) CreateCloneInstance(request *CreateCloneInstanceRequest) (response *CreateCloneInstanceResponse, err error)
CreateCloneInstance This API is used to create a clone of a specific instance, and roll back the clone by using a physical backup file of the instance or roll back the clone to a point in time.
error code that may be returned:
CDBERROR = "CdbError" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_OTHERODERINPROCESS = "OperationDenied.OtherOderInProcess" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) CreateCloneInstanceWithContext ¶
func (c *Client) CreateCloneInstanceWithContext(ctx context.Context, request *CreateCloneInstanceRequest) (response *CreateCloneInstanceResponse, err error)
CreateCloneInstance This API is used to create a clone of a specific instance, and roll back the clone by using a physical backup file of the instance or roll back the clone to a point in time.
error code that may be returned:
CDBERROR = "CdbError" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_OTHERODERINPROCESS = "OperationDenied.OtherOderInProcess" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) CreateDBImportJob ¶
func (c *Client) CreateDBImportJob(request *CreateDBImportJobRequest) (response *CreateDBImportJobResponse, err error)
CreateDBImportJob This API (CreateDBImportJob) is used to create a data import task for a TencentDB instance.
Note that the files for a data import task must be uploaded to Tencent Cloud in advance. You need to do so in the console.
error code that may be returned:
CDBERROR = "CdbError" CDBERROR_IMPORTERROR = "CdbError.ImportError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_EXECUTESQLERROR = "InternalError.ExecuteSQLError" INTERNALERROR_IMPORTERROR = "InternalError.ImportError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) CreateDBImportJobWithContext ¶
func (c *Client) CreateDBImportJobWithContext(ctx context.Context, request *CreateDBImportJobRequest) (response *CreateDBImportJobResponse, err error)
CreateDBImportJob This API (CreateDBImportJob) is used to create a data import task for a TencentDB instance.
Note that the files for a data import task must be uploaded to Tencent Cloud in advance. You need to do so in the console.
error code that may be returned:
CDBERROR = "CdbError" CDBERROR_IMPORTERROR = "CdbError.ImportError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_EXECUTESQLERROR = "InternalError.ExecuteSQLError" INTERNALERROR_IMPORTERROR = "InternalError.ImportError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) CreateDBInstance ¶
func (c *Client) CreateDBInstance(request *CreateDBInstanceRequest) (response *CreateDBInstanceResponse, err error)
CreateDBInstance This API is used to create a monthly subscribed TencentDB instance (which can be a source, disaster recovery, or read-only instance) by passing in information such as instance specifications, MySQL version number, purchased duration, and quantity.
This is an asynchronous API. You can also use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the instance details. If the output parameter `Status` is `1` and the output parameter `TaskStatus` is `0`, the instance has been successfully delivered.
1. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the purchasable instance specifications, and then use the [DescribeDBPrice](https://intl.cloud.tencent.com/document/api/236/18566?from_cn_redirect=1) API to query the prices of the purchasable instances.
2. You can create up to 100 instances at a time, with an instance validity period of up to 36 months.
3. MySQL v5.5, v5.6, v5.7, and v8.0 are supported.
4. Source instances, read-only instances, and disaster recovery instances can be created.
5. If `Port`, `ParamList`, or `Password` is specified in the input parameters, the instance (excluding basic instances) will be initialized.
6. If `Port`, `ParamTemplateId`, or `AlarmPolicyList` is specified in the input parameters, you need to update your SDK to the latest version.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CAUTHERROR = "InternalError.CauthError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_OTHERODERINPROCESS = "OperationDenied.OtherOderInProcess" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword"
func (*Client) CreateDBInstanceHour ¶
func (c *Client) CreateDBInstanceHour(request *CreateDBInstanceHourRequest) (response *CreateDBInstanceHourResponse, err error)
CreateDBInstanceHour This API is used to create a pay-as-you-go TencentDB instance (which can be a source, disaster recovery, or read-only instance) by passing in information such as instance specifications, MySQL version number, and quantity.
This is an async API. You can also use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the instance details. If the `Status` value of an instance is `1` and `TaskStatus` is `0`, the instance has been successfully delivered.
1. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the purchasable instance specifications, and then use the [DescribeDBPrice](https://intl.cloud.tencent.com/document/api/236/18566?from_cn_redirect=1) API to query the prices of the purchasable instances.
2. You can create up to 100 instances at a time, with an instance validity period of up to 36 months.
3. MySQL 5.5, 5.6, 5.7, and 8.0 are supported.
4. Source instances, disaster recovery instances, and read-only instances can be created.
5. If `Port`, `ParamList`, or `Password` is specified in the input parameters, the instance will be initialized.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_OTHERODERINPROCESS = "OperationDenied.OtherOderInProcess" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword"
func (*Client) CreateDBInstanceHourWithContext ¶
func (c *Client) CreateDBInstanceHourWithContext(ctx context.Context, request *CreateDBInstanceHourRequest) (response *CreateDBInstanceHourResponse, err error)
CreateDBInstanceHour This API is used to create a pay-as-you-go TencentDB instance (which can be a source, disaster recovery, or read-only instance) by passing in information such as instance specifications, MySQL version number, and quantity.
This is an async API. You can also use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the instance details. If the `Status` value of an instance is `1` and `TaskStatus` is `0`, the instance has been successfully delivered.
1. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the purchasable instance specifications, and then use the [DescribeDBPrice](https://intl.cloud.tencent.com/document/api/236/18566?from_cn_redirect=1) API to query the prices of the purchasable instances.
2. You can create up to 100 instances at a time, with an instance validity period of up to 36 months.
3. MySQL 5.5, 5.6, 5.7, and 8.0 are supported.
4. Source instances, disaster recovery instances, and read-only instances can be created.
5. If `Port`, `ParamList`, or `Password` is specified in the input parameters, the instance will be initialized.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_OTHERODERINPROCESS = "OperationDenied.OtherOderInProcess" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword"
func (*Client) CreateDBInstanceWithContext ¶
func (c *Client) CreateDBInstanceWithContext(ctx context.Context, request *CreateDBInstanceRequest) (response *CreateDBInstanceResponse, err error)
CreateDBInstance This API is used to create a monthly subscribed TencentDB instance (which can be a source, disaster recovery, or read-only instance) by passing in information such as instance specifications, MySQL version number, purchased duration, and quantity.
This is an asynchronous API. You can also use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the instance details. If the output parameter `Status` is `1` and the output parameter `TaskStatus` is `0`, the instance has been successfully delivered.
1. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the purchasable instance specifications, and then use the [DescribeDBPrice](https://intl.cloud.tencent.com/document/api/236/18566?from_cn_redirect=1) API to query the prices of the purchasable instances.
2. You can create up to 100 instances at a time, with an instance validity period of up to 36 months.
3. MySQL v5.5, v5.6, v5.7, and v8.0 are supported.
4. Source instances, read-only instances, and disaster recovery instances can be created.
5. If `Port`, `ParamList`, or `Password` is specified in the input parameters, the instance (excluding basic instances) will be initialized.
6. If `Port`, `ParamTemplateId`, or `AlarmPolicyList` is specified in the input parameters, you need to update your SDK to the latest version.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CAUTHERROR = "InternalError.CauthError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_OTHERODERINPROCESS = "OperationDenied.OtherOderInProcess" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword"
func (*Client) CreateDatabase ¶
func (c *Client) CreateDatabase(request *CreateDatabaseRequest) (response *CreateDatabaseResponse, err error)
CreateDatabase This API is used to create a database in a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_EXESQLERROR = "InternalError.ExeSqlError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_JSONERROR = "InternalError.JSONError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError"
func (*Client) CreateDatabaseWithContext ¶
func (c *Client) CreateDatabaseWithContext(ctx context.Context, request *CreateDatabaseRequest) (response *CreateDatabaseResponse, err error)
CreateDatabase This API is used to create a database in a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_EXESQLERROR = "InternalError.ExeSqlError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_JSONERROR = "InternalError.JSONError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError"
func (*Client) CreateParamTemplate ¶
func (c *Client) CreateParamTemplate(request *CreateParamTemplateRequest) (response *CreateParamTemplateResponse, err error)
CreateParamTemplate This API is used to create a parameter template. The common request parameter `Region` can only be set to `ap-guangzhou`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) CreateParamTemplateWithContext ¶
func (c *Client) CreateParamTemplateWithContext(ctx context.Context, request *CreateParamTemplateRequest) (response *CreateParamTemplateResponse, err error)
CreateParamTemplate This API is used to create a parameter template. The common request parameter `Region` can only be set to `ap-guangzhou`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) CreateRoInstanceIp ¶
func (c *Client) CreateRoInstanceIp(request *CreateRoInstanceIpRequest) (response *CreateRoInstanceIpResponse, err error)
CreateRoInstanceIp This API is used to create a VIP exclusive to a TencentDB read-only instance.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_CREATEROVIPERROR = "FailedOperation.CreateRoVipError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONINPROCESS = "OperationDenied.ActionInProcess" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) CreateRoInstanceIpWithContext ¶
func (c *Client) CreateRoInstanceIpWithContext(ctx context.Context, request *CreateRoInstanceIpRequest) (response *CreateRoInstanceIpResponse, err error)
CreateRoInstanceIp This API is used to create a VIP exclusive to a TencentDB read-only instance.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_CREATEROVIPERROR = "FailedOperation.CreateRoVipError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONINPROCESS = "OperationDenied.ActionInProcess" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) DeleteAccounts ¶
func (c *Client) DeleteAccounts(request *DeleteAccountsRequest) (response *DeleteAccountsResponse, err error)
DeleteAccounts This API (DeleteAccounts) is used to delete TencentDB accounts.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_INSTTYPENOTSUPPORT = "OperationDenied.InstTypeNotSupport" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) DeleteAccountsWithContext ¶
func (c *Client) DeleteAccountsWithContext(ctx context.Context, request *DeleteAccountsRequest) (response *DeleteAccountsResponse, err error)
DeleteAccounts This API (DeleteAccounts) is used to delete TencentDB accounts.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_INSTTYPENOTSUPPORT = "OperationDenied.InstTypeNotSupport" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) DeleteBackup ¶
func (c *Client) DeleteBackup(request *DeleteBackupRequest) (response *DeleteBackupResponse, err error)
DeleteBackup This API is used to delete a database backup. It can only delete manually initiated backups.
error code that may be returned:
CDBERROR_BACKUPERROR = "CdbError.BackupError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) DeleteBackupWithContext ¶
func (c *Client) DeleteBackupWithContext(ctx context.Context, request *DeleteBackupRequest) (response *DeleteBackupResponse, err error)
DeleteBackup This API is used to delete a database backup. It can only delete manually initiated backups.
error code that may be returned:
CDBERROR_BACKUPERROR = "CdbError.BackupError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) DeleteParamTemplate ¶
func (c *Client) DeleteParamTemplate(request *DeleteParamTemplateRequest) (response *DeleteParamTemplateResponse, err error)
DeleteParamTemplate This API is used to delete a parameter template. The common request parameter `Region` can only be set to `ap-guangzhou`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DeleteParamTemplateWithContext ¶
func (c *Client) DeleteParamTemplateWithContext(ctx context.Context, request *DeleteParamTemplateRequest) (response *DeleteParamTemplateResponse, err error)
DeleteParamTemplate This API is used to delete a parameter template. The common request parameter `Region` can only be set to `ap-guangzhou`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DeleteTimeWindow ¶
func (c *Client) DeleteTimeWindow(request *DeleteTimeWindowRequest) (response *DeleteTimeWindowResponse, err error)
DeleteTimeWindow This API (DeleteTimeWindow) is used to delete a maintenance time window for a TencentDB instance. After it is deleted, the default maintenance time window will be 03:00-04:00, i.e., switch to a new instance will be performed during 03:00-04:00 by default.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) DeleteTimeWindowWithContext ¶
func (c *Client) DeleteTimeWindowWithContext(ctx context.Context, request *DeleteTimeWindowRequest) (response *DeleteTimeWindowResponse, err error)
DeleteTimeWindow This API (DeleteTimeWindow) is used to delete a maintenance time window for a TencentDB instance. After it is deleted, the default maintenance time window will be 03:00-04:00, i.e., switch to a new instance will be performed during 03:00-04:00 by default.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) DescribeAccountPrivileges ¶
func (c *Client) DescribeAccountPrivileges(request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error)
DescribeAccountPrivileges This API (DescribeAccountPrivileges) is used to query the information of TencentDB account permissions.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) DescribeAccountPrivilegesWithContext ¶
func (c *Client) DescribeAccountPrivilegesWithContext(ctx context.Context, request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error)
DescribeAccountPrivileges This API (DescribeAccountPrivileges) is used to query the information of TencentDB account permissions.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) DescribeAccounts ¶
func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
DescribeAccounts This API is used to query information of all TencentDB accounts.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_DBOPERATIONACTIONERROR = "FailedOperation.DBOperationActionError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_INSTANCEQUERYERROR = "FailedOperation.InstanceQueryError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_INSTTYPENOTSUPPORT = "OperationDenied.InstTypeNotSupport" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" OPERATIONDENIED_OPERATIONDENIEDERROR = "OperationDenied.OperationDeniedError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) DescribeAccountsWithContext ¶
func (c *Client) DescribeAccountsWithContext(ctx context.Context, request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
DescribeAccounts This API is used to query information of all TencentDB accounts.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_DBOPERATIONACTIONERROR = "FailedOperation.DBOperationActionError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_INSTANCEQUERYERROR = "FailedOperation.InstanceQueryError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_INSTTYPENOTSUPPORT = "OperationDenied.InstTypeNotSupport" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" OPERATIONDENIED_OPERATIONDENIEDERROR = "OperationDenied.OperationDeniedError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) DescribeAsyncRequestInfo ¶
func (c *Client) DescribeAsyncRequestInfo(request *DescribeAsyncRequestInfoRequest) (response *DescribeAsyncRequestInfoResponse, err error)
DescribeAsyncRequestInfo This API (DescribeAsyncRequestInfo) is used to query the async task execution result of a TencentDB instance.
error code that may be returned:
CDBERROR_TASKERROR = "CdbError.TaskError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDASYNCREQUESTID = "InvalidParameter.InvalidAsyncRequestId" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) DescribeAsyncRequestInfoWithContext ¶
func (c *Client) DescribeAsyncRequestInfoWithContext(ctx context.Context, request *DescribeAsyncRequestInfoRequest) (response *DescribeAsyncRequestInfoResponse, err error)
DescribeAsyncRequestInfo This API (DescribeAsyncRequestInfo) is used to query the async task execution result of a TencentDB instance.
error code that may be returned:
CDBERROR_TASKERROR = "CdbError.TaskError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDASYNCREQUESTID = "InvalidParameter.InvalidAsyncRequestId" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) DescribeAuditLogs ¶
func (c *Client) DescribeAuditLogs(request *DescribeAuditLogsRequest) (response *DescribeAuditLogsResponse, err error)
DescribeAuditLogs This API is used to query a database audit log.
error code that may be returned:
FAILEDOPERATION_QUERYAUDITTASKFAILERROR = "FailedOperation.QueryAuditTaskFailError" INTERNALERROR_AUDITDESCRIBELOGERROR = "InternalError.AuditDescribeLogError" INTERNALERROR_AUDITERROR = "InternalError.AuditError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_SERVERERROR = "InternalError.ServerError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_QUERYAUDITLOGSERROR = "OperationDenied.QueryAuditLogsError" OPERATIONDENIED_RESOURCENOTFOUNDERROR = "OperationDenied.ResourceNotFoundError" OPERATIONDENIED_RESOURCENOTFUNDERROR = "OperationDenied.ResourceNotFundError" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) DescribeAuditLogsWithContext ¶
func (c *Client) DescribeAuditLogsWithContext(ctx context.Context, request *DescribeAuditLogsRequest) (response *DescribeAuditLogsResponse, err error)
DescribeAuditLogs This API is used to query a database audit log.
error code that may be returned:
FAILEDOPERATION_QUERYAUDITTASKFAILERROR = "FailedOperation.QueryAuditTaskFailError" INTERNALERROR_AUDITDESCRIBELOGERROR = "InternalError.AuditDescribeLogError" INTERNALERROR_AUDITERROR = "InternalError.AuditError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_SERVERERROR = "InternalError.ServerError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_QUERYAUDITLOGSERROR = "OperationDenied.QueryAuditLogsError" OPERATIONDENIED_RESOURCENOTFOUNDERROR = "OperationDenied.ResourceNotFoundError" OPERATIONDENIED_RESOURCENOTFUNDERROR = "OperationDenied.ResourceNotFundError" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) DescribeAuditPolicies ¶
func (c *Client) DescribeAuditPolicies(request *DescribeAuditPoliciesRequest) (response *DescribeAuditPoliciesResponse, err error)
DescribeAuditPolicies This API is used to query the audit policies of a TencentDB instance.
error code that may be returned:
INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_INNERCOMMONERROR = "InternalError.InnerCommonError" INTERNALERROR_SERVERERROR = "InternalError.ServerError" INTERNALERROR_TRANSACTIONBEGINERROR = "InternalError.TransactionBeginError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_MISSINGPARAMERROR = "MissingParameter.MissingParamError"
func (*Client) DescribeAuditPoliciesWithContext ¶
func (c *Client) DescribeAuditPoliciesWithContext(ctx context.Context, request *DescribeAuditPoliciesRequest) (response *DescribeAuditPoliciesResponse, err error)
DescribeAuditPolicies This API is used to query the audit policies of a TencentDB instance.
error code that may be returned:
INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_INNERCOMMONERROR = "InternalError.InnerCommonError" INTERNALERROR_SERVERERROR = "InternalError.ServerError" INTERNALERROR_TRANSACTIONBEGINERROR = "InternalError.TransactionBeginError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_MISSINGPARAMERROR = "MissingParameter.MissingParamError"
func (*Client) DescribeAuditRules ¶
func (c *Client) DescribeAuditRules(request *DescribeAuditRulesRequest) (response *DescribeAuditRulesResponse, err error)
DescribeAuditRules This API is used to query the audit rules in the current region.
error code that may be returned:
INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_INNERCOMMONERROR = "InternalError.InnerCommonError" INTERNALERROR_SERVERERROR = "InternalError.ServerError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_AUDITRULENOTEXISTERROR = "OperationDenied.AuditRuleNotExistError"
func (*Client) DescribeAuditRulesWithContext ¶
func (c *Client) DescribeAuditRulesWithContext(ctx context.Context, request *DescribeAuditRulesRequest) (response *DescribeAuditRulesResponse, err error)
DescribeAuditRules This API is used to query the audit rules in the current region.
error code that may be returned:
INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_INNERCOMMONERROR = "InternalError.InnerCommonError" INTERNALERROR_SERVERERROR = "InternalError.ServerError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_AUDITRULENOTEXISTERROR = "OperationDenied.AuditRuleNotExistError"
func (*Client) DescribeBackupConfig ¶
func (c *Client) DescribeBackupConfig(request *DescribeBackupConfigRequest) (response *DescribeBackupConfigResponse, err error)
DescribeBackupConfig This API (DescribeBackupConfig) is used to query the configuration information of a TencentDB instance backup.
error code that may be returned:
INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) DescribeBackupConfigWithContext ¶
func (c *Client) DescribeBackupConfigWithContext(ctx context.Context, request *DescribeBackupConfigRequest) (response *DescribeBackupConfigResponse, err error)
DescribeBackupConfig This API (DescribeBackupConfig) is used to query the configuration information of a TencentDB instance backup.
error code that may be returned:
INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) DescribeBackupDecryptionKey ¶
func (c *Client) DescribeBackupDecryptionKey(request *DescribeBackupDecryptionKeyRequest) (response *DescribeBackupDecryptionKeyResponse, err error)
DescribeBackupDecryptionKey This API is used to query the decryption key of a backup file.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_NOTSUPPORTBASIC = "OperationDenied.NotSupportBasic"
func (*Client) DescribeBackupDecryptionKeyWithContext ¶
func (c *Client) DescribeBackupDecryptionKeyWithContext(ctx context.Context, request *DescribeBackupDecryptionKeyRequest) (response *DescribeBackupDecryptionKeyResponse, err error)
DescribeBackupDecryptionKey This API is used to query the decryption key of a backup file.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_NOTSUPPORTBASIC = "OperationDenied.NotSupportBasic"
func (*Client) DescribeBackupDownloadRestriction ¶
func (c *Client) DescribeBackupDownloadRestriction(request *DescribeBackupDownloadRestrictionRequest) (response *DescribeBackupDownloadRestrictionResponse, err error)
DescribeBackupDownloadRestriction This API is used to query the restrictions of downloading backups in a region.
error code that may be returned:
INTERNALERROR_AUTHERROR = "InternalError.AuthError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) DescribeBackupDownloadRestrictionWithContext ¶
func (c *Client) DescribeBackupDownloadRestrictionWithContext(ctx context.Context, request *DescribeBackupDownloadRestrictionRequest) (response *DescribeBackupDownloadRestrictionResponse, err error)
DescribeBackupDownloadRestriction This API is used to query the restrictions of downloading backups in a region.
error code that may be returned:
INTERNALERROR_AUTHERROR = "InternalError.AuthError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) DescribeBackupEncryptionStatus ¶
func (c *Client) DescribeBackupEncryptionStatus(request *DescribeBackupEncryptionStatusRequest) (response *DescribeBackupEncryptionStatusResponse, err error)
DescribeBackupEncryptionStatus This API is used to query the default encryption status of an instance backup.
error code that may be returned:
FAILEDOPERATION_INSTANCEQUERYERROR = "FailedOperation.InstanceQueryError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) DescribeBackupEncryptionStatusWithContext ¶
func (c *Client) DescribeBackupEncryptionStatusWithContext(ctx context.Context, request *DescribeBackupEncryptionStatusRequest) (response *DescribeBackupEncryptionStatusResponse, err error)
DescribeBackupEncryptionStatus This API is used to query the default encryption status of an instance backup.
error code that may be returned:
FAILEDOPERATION_INSTANCEQUERYERROR = "FailedOperation.InstanceQueryError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) DescribeBackupOverview ¶
func (c *Client) DescribeBackupOverview(request *DescribeBackupOverviewRequest) (response *DescribeBackupOverviewResponse, err error)
DescribeBackupOverview This API is used to query the backup overview of a user. It will return the user's current total number of backups, total capacity used by backups, capacity in the free tier, and paid capacity (all capacity values are in bytes).
error code that may be returned:
AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) DescribeBackupOverviewWithContext ¶
func (c *Client) DescribeBackupOverviewWithContext(ctx context.Context, request *DescribeBackupOverviewRequest) (response *DescribeBackupOverviewResponse, err error)
DescribeBackupOverview This API is used to query the backup overview of a user. It will return the user's current total number of backups, total capacity used by backups, capacity in the free tier, and paid capacity (all capacity values are in bytes).
error code that may be returned:
AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) DescribeBackupSummaries ¶
func (c *Client) DescribeBackupSummaries(request *DescribeBackupSummariesRequest) (response *DescribeBackupSummariesResponse, err error)
DescribeBackupSummaries This API is used to query the statistics of backups. It will return the capacity used by backups at the instance level and the number and used capacity of data backups and log backups of each instance (all capacity values are in bytes).
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_SUBACCOUNTOPERATIONDENIED = "OperationDenied.SubAccountOperationDenied"
func (*Client) DescribeBackupSummariesWithContext ¶
func (c *Client) DescribeBackupSummariesWithContext(ctx context.Context, request *DescribeBackupSummariesRequest) (response *DescribeBackupSummariesResponse, err error)
DescribeBackupSummaries This API is used to query the statistics of backups. It will return the capacity used by backups at the instance level and the number and used capacity of data backups and log backups of each instance (all capacity values are in bytes).
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_SUBACCOUNTOPERATIONDENIED = "OperationDenied.SubAccountOperationDenied"
func (*Client) DescribeBackups ¶
func (c *Client) DescribeBackups(request *DescribeBackupsRequest) (response *DescribeBackupsResponse, err error)
DescribeBackups This API (DescribeBackups) is used to query the backups of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeBackupsWithContext ¶
func (c *Client) DescribeBackupsWithContext(ctx context.Context, request *DescribeBackupsRequest) (response *DescribeBackupsResponse, err error)
DescribeBackups This API (DescribeBackups) is used to query the backups of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeBinlogBackupOverview ¶
func (c *Client) DescribeBinlogBackupOverview(request *DescribeBinlogBackupOverviewRequest) (response *DescribeBinlogBackupOverviewResponse, err error)
DescribeBinlogBackupOverview This API is used to query the log backup overview of a user in the current region.
error code that may be returned:
AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" INTERNALERROR_CDBERROR = "InternalError.CdbError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_SUBACCOUNTOPERATIONDENIED = "OperationDenied.SubAccountOperationDenied"
func (*Client) DescribeBinlogBackupOverviewWithContext ¶
func (c *Client) DescribeBinlogBackupOverviewWithContext(ctx context.Context, request *DescribeBinlogBackupOverviewRequest) (response *DescribeBinlogBackupOverviewResponse, err error)
DescribeBinlogBackupOverview This API is used to query the log backup overview of a user in the current region.
error code that may be returned:
AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" INTERNALERROR_CDBERROR = "InternalError.CdbError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_SUBACCOUNTOPERATIONDENIED = "OperationDenied.SubAccountOperationDenied"
func (*Client) DescribeBinlogs ¶
func (c *Client) DescribeBinlogs(request *DescribeBinlogsRequest) (response *DescribeBinlogsResponse, err error)
DescribeBinlogs This API is used to query the list of binlog files of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeBinlogsWithContext ¶
func (c *Client) DescribeBinlogsWithContext(ctx context.Context, request *DescribeBinlogsRequest) (response *DescribeBinlogsResponse, err error)
DescribeBinlogs This API is used to query the list of binlog files of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeCdbProxyInfo ¶
func (c *Client) DescribeCdbProxyInfo(request *DescribeCdbProxyInfoRequest) (response *DescribeCdbProxyInfoResponse, err error)
DescribeCdbProxyInfo This API is used to query the details of a database proxy.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError"
func (*Client) DescribeCdbProxyInfoWithContext ¶
func (c *Client) DescribeCdbProxyInfoWithContext(ctx context.Context, request *DescribeCdbProxyInfoRequest) (response *DescribeCdbProxyInfoResponse, err error)
DescribeCdbProxyInfo This API is used to query the details of a database proxy.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError"
func (*Client) DescribeCdbZoneConfig ¶
func (c *Client) DescribeCdbZoneConfig(request *DescribeCdbZoneConfigRequest) (response *DescribeCdbZoneConfigResponse, err error)
DescribeCdbZoneConfig This API is used to query the purchasable specifications of TencentDB instances in a region.
error code that may be returned:
INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" INTERNALERROR_HTTPERROR = "InternalError.HttpError"
func (*Client) DescribeCdbZoneConfigWithContext ¶
func (c *Client) DescribeCdbZoneConfigWithContext(ctx context.Context, request *DescribeCdbZoneConfigRequest) (response *DescribeCdbZoneConfigResponse, err error)
DescribeCdbZoneConfig This API is used to query the purchasable specifications of TencentDB instances in a region.
error code that may be returned:
INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" INTERNALERROR_HTTPERROR = "InternalError.HttpError"
func (*Client) DescribeCloneList ¶
func (c *Client) DescribeCloneList(request *DescribeCloneListRequest) (response *DescribeCloneListResponse, err error)
DescribeCloneList This API is used to query the clone task list of an instance.
error code that may be returned:
CDBERROR = "CdbError" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) DescribeCloneListWithContext ¶
func (c *Client) DescribeCloneListWithContext(ctx context.Context, request *DescribeCloneListRequest) (response *DescribeCloneListResponse, err error)
DescribeCloneList This API is used to query the clone task list of an instance.
error code that may be returned:
CDBERROR = "CdbError" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) DescribeCpuExpandStrategy ¶
func (c *Client) DescribeCpuExpandStrategy(request *DescribeCpuExpandStrategyRequest) (response *DescribeCpuExpandStrategyResponse, err error)
DescribeCpuExpandStrategy This API is used to query the elastic expansion policy of an instance.
error code that may be returned:
FAILEDOPERATION_REMOTECALLUNMARSHALERROR = "FailedOperation.RemoteCallUnmarshalError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_JSONUNMARSHALERROR = "InvalidParameter.JsonUnmarshalError"
func (*Client) DescribeCpuExpandStrategyWithContext ¶
func (c *Client) DescribeCpuExpandStrategyWithContext(ctx context.Context, request *DescribeCpuExpandStrategyRequest) (response *DescribeCpuExpandStrategyResponse, err error)
DescribeCpuExpandStrategy This API is used to query the elastic expansion policy of an instance.
error code that may be returned:
FAILEDOPERATION_REMOTECALLUNMARSHALERROR = "FailedOperation.RemoteCallUnmarshalError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_JSONUNMARSHALERROR = "InvalidParameter.JsonUnmarshalError"
func (*Client) DescribeDBFeatures ¶
func (c *Client) DescribeDBFeatures(request *DescribeDBFeaturesRequest) (response *DescribeDBFeaturesResponse, err error)
DescribeDBFeatures This API is used to query database version attributes, including supported features such as database encryption and audit.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_JSONERROR = "InternalError.JSONError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeDBFeaturesWithContext ¶
func (c *Client) DescribeDBFeaturesWithContext(ctx context.Context, request *DescribeDBFeaturesRequest) (response *DescribeDBFeaturesResponse, err error)
DescribeDBFeatures This API is used to query database version attributes, including supported features such as database encryption and audit.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_JSONERROR = "InternalError.JSONError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeDBImportRecords ¶
func (c *Client) DescribeDBImportRecords(request *DescribeDBImportRecordsRequest) (response *DescribeDBImportRecordsResponse, err error)
DescribeDBImportRecords This API (DescribeDBImportRecords) is used to query the records of import tasks in a TencentDB instance.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_INVALIDASYNCREQUESTID = "InvalidParameter.InvalidAsyncRequestId" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) DescribeDBImportRecordsWithContext ¶
func (c *Client) DescribeDBImportRecordsWithContext(ctx context.Context, request *DescribeDBImportRecordsRequest) (response *DescribeDBImportRecordsResponse, err error)
DescribeDBImportRecords This API (DescribeDBImportRecords) is used to query the records of import tasks in a TencentDB instance.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_INVALIDASYNCREQUESTID = "InvalidParameter.InvalidAsyncRequestId" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) DescribeDBInstanceCharset ¶
func (c *Client) DescribeDBInstanceCharset(request *DescribeDBInstanceCharsetRequest) (response *DescribeDBInstanceCharsetResponse, err error)
DescribeDBInstanceCharset This API (DescribeDBInstanceCharset) is used to query the character set and its name of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_EXESQLERROR = "InternalError.ExeSqlError" INTERNALERROR_OSSERROR = "InternalError.OssError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeDBInstanceCharsetWithContext ¶
func (c *Client) DescribeDBInstanceCharsetWithContext(ctx context.Context, request *DescribeDBInstanceCharsetRequest) (response *DescribeDBInstanceCharsetResponse, err error)
DescribeDBInstanceCharset This API (DescribeDBInstanceCharset) is used to query the character set and its name of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_EXESQLERROR = "InternalError.ExeSqlError" INTERNALERROR_OSSERROR = "InternalError.OssError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeDBInstanceConfig ¶
func (c *Client) DescribeDBInstanceConfig(request *DescribeDBInstanceConfigRequest) (response *DescribeDBInstanceConfigResponse, err error)
DescribeDBInstanceConfig This API (DescribeDBInstanceConfig) is used to query the configuration information of a TencentDB instance, such as its synchronization mode and deployment mode.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_JSONERROR = "InternalError.JSONError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeDBInstanceConfigWithContext ¶
func (c *Client) DescribeDBInstanceConfigWithContext(ctx context.Context, request *DescribeDBInstanceConfigRequest) (response *DescribeDBInstanceConfigResponse, err error)
DescribeDBInstanceConfig This API (DescribeDBInstanceConfig) is used to query the configuration information of a TencentDB instance, such as its synchronization mode and deployment mode.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_JSONERROR = "InternalError.JSONError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeDBInstanceGTID ¶
func (c *Client) DescribeDBInstanceGTID(request *DescribeDBInstanceGTIDRequest) (response *DescribeDBInstanceGTIDResponse, err error)
DescribeDBInstanceGTID This API (DescribeDBInstanceGTID) is used to query whether GTID is activated for a TencentDB instance. Instances on or below version 5.5 are not supported.
error code that may be returned:
INTERNALERROR_OSSERROR = "InternalError.OssError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeDBInstanceGTIDWithContext ¶
func (c *Client) DescribeDBInstanceGTIDWithContext(ctx context.Context, request *DescribeDBInstanceGTIDRequest) (response *DescribeDBInstanceGTIDResponse, err error)
DescribeDBInstanceGTID This API (DescribeDBInstanceGTID) is used to query whether GTID is activated for a TencentDB instance. Instances on or below version 5.5 are not supported.
error code that may be returned:
INTERNALERROR_OSSERROR = "InternalError.OssError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeDBInstanceInfo ¶
func (c *Client) DescribeDBInstanceInfo(request *DescribeDBInstanceInfoRequest) (response *DescribeDBInstanceInfoResponse, err error)
DescribeDBInstanceInfo This API is used to query the basic information of an instance (instance ID, instance name, and whether encryption is enabled).
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_JSONERROR = "InternalError.JSONError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_RESOURCENOTEXISTS = "InvalidParameter.ResourceNotExists"
func (*Client) DescribeDBInstanceInfoWithContext ¶
func (c *Client) DescribeDBInstanceInfoWithContext(ctx context.Context, request *DescribeDBInstanceInfoRequest) (response *DescribeDBInstanceInfoResponse, err error)
DescribeDBInstanceInfo This API is used to query the basic information of an instance (instance ID, instance name, and whether encryption is enabled).
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_JSONERROR = "InternalError.JSONError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_RESOURCENOTEXISTS = "InvalidParameter.ResourceNotExists"
func (*Client) DescribeDBInstanceRebootTime ¶
func (c *Client) DescribeDBInstanceRebootTime(request *DescribeDBInstanceRebootTimeRequest) (response *DescribeDBInstanceRebootTimeResponse, err error)
DescribeDBInstanceRebootTime This API (DescribeDBInstanceRebootTime) is used to query the estimated time needed for a TencentDB instance to restart.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_OSSERROR = "InternalError.OssError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeDBInstanceRebootTimeWithContext ¶
func (c *Client) DescribeDBInstanceRebootTimeWithContext(ctx context.Context, request *DescribeDBInstanceRebootTimeRequest) (response *DescribeDBInstanceRebootTimeResponse, err error)
DescribeDBInstanceRebootTime This API (DescribeDBInstanceRebootTime) is used to query the estimated time needed for a TencentDB instance to restart.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_OSSERROR = "InternalError.OssError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeDBInstances ¶
func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
DescribeDBInstances This API (DescribeDBInstances) is used to query the list of TencentDB instances (which can be primary, disaster recovery, or read-only instances). It supports filtering instances by project ID, instance ID, access address, and instance status.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDBInstancesWithContext ¶
func (c *Client) DescribeDBInstancesWithContext(ctx context.Context, request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
DescribeDBInstances This API (DescribeDBInstances) is used to query the list of TencentDB instances (which can be primary, disaster recovery, or read-only instances). It supports filtering instances by project ID, instance ID, access address, and instance status.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDBPrice ¶
func (c *Client) DescribeDBPrice(request *DescribeDBPriceRequest) (response *DescribeDBPriceResponse, err error)
DescribeDBPrice This API is used to query the purchase or renewal price of a pay-as-you-go or monthly subscribed TencentDB instance by passing in information such as instance type, purchase duration, number of instances to purchase, memory size, disk size, and AZ. For the price of instance renewal, you can pass in instance name to query.
Note: To query prices in a specific region, you need to use the access point of the region. For more information on access points, see <a href="https://www.tencentcloud.com/document/product/236/15832">Service Address</a>. For example, to query prices in Guangzhou, send a request to: cdb.ap-guangzhou.tencentcloudapi.com. Likewise, to query prices in Shanghai, send a request to: cdb.ap-shanghai.tencentcloudapi.com.
error code that may be returned:
INTERNALERROR_CAUTHERROR = "InternalError.CauthError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) DescribeDBPriceWithContext ¶
func (c *Client) DescribeDBPriceWithContext(ctx context.Context, request *DescribeDBPriceRequest) (response *DescribeDBPriceResponse, err error)
DescribeDBPrice This API is used to query the purchase or renewal price of a pay-as-you-go or monthly subscribed TencentDB instance by passing in information such as instance type, purchase duration, number of instances to purchase, memory size, disk size, and AZ. For the price of instance renewal, you can pass in instance name to query.
Note: To query prices in a specific region, you need to use the access point of the region. For more information on access points, see <a href="https://www.tencentcloud.com/document/product/236/15832">Service Address</a>. For example, to query prices in Guangzhou, send a request to: cdb.ap-guangzhou.tencentcloudapi.com. Likewise, to query prices in Shanghai, send a request to: cdb.ap-shanghai.tencentcloudapi.com.
error code that may be returned:
INTERNALERROR_CAUTHERROR = "InternalError.CauthError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) DescribeDBSecurityGroups ¶
func (c *Client) DescribeDBSecurityGroups(request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
DescribeDBSecurityGroups This API (DescribeDBSecurityGroups) is used to query the security group details of an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_RESOURCENOTUNIQUE = "InternalError.ResourceNotUnique" INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDBSecurityGroupsWithContext ¶
func (c *Client) DescribeDBSecurityGroupsWithContext(ctx context.Context, request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
DescribeDBSecurityGroups This API (DescribeDBSecurityGroups) is used to query the security group details of an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_RESOURCENOTUNIQUE = "InternalError.ResourceNotUnique" INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDBSwitchRecords ¶
func (c *Client) DescribeDBSwitchRecords(request *DescribeDBSwitchRecordsRequest) (response *DescribeDBSwitchRecordsResponse, err error)
DescribeDBSwitchRecords This API (DescribeDBSwitchRecords) is used to query the instance switch records.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) DescribeDBSwitchRecordsWithContext ¶
func (c *Client) DescribeDBSwitchRecordsWithContext(ctx context.Context, request *DescribeDBSwitchRecordsRequest) (response *DescribeDBSwitchRecordsResponse, err error)
DescribeDBSwitchRecords This API (DescribeDBSwitchRecords) is used to query the instance switch records.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) DescribeDataBackupOverview ¶
func (c *Client) DescribeDataBackupOverview(request *DescribeDataBackupOverviewRequest) (response *DescribeDataBackupOverviewResponse, err error)
DescribeDataBackupOverview This API is used to query the data backup overview of a user in the current region.
error code that may be returned:
AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" INTERNALERROR_CDBERROR = "InternalError.CdbError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) DescribeDataBackupOverviewWithContext ¶
func (c *Client) DescribeDataBackupOverviewWithContext(ctx context.Context, request *DescribeDataBackupOverviewRequest) (response *DescribeDataBackupOverviewResponse, err error)
DescribeDataBackupOverview This API is used to query the data backup overview of a user in the current region.
error code that may be returned:
AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" INTERNALERROR_CDBERROR = "InternalError.CdbError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) DescribeDatabases ¶
func (c *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
DescribeDatabases This API is used to query the information of databases in a TencentDB instance which must be a source or disaster recovery instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_EXESQLERROR = "InternalError.ExeSqlError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_JSONERROR = "InternalError.JSONError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeDatabasesWithContext ¶
func (c *Client) DescribeDatabasesWithContext(ctx context.Context, request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
DescribeDatabases This API is used to query the information of databases in a TencentDB instance which must be a source or disaster recovery instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_EXESQLERROR = "InternalError.ExeSqlError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_JSONERROR = "InternalError.JSONError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeDefaultParams ¶
func (c *Client) DescribeDefaultParams(request *DescribeDefaultParamsRequest) (response *DescribeDefaultParamsResponse, err error)
DescribeDefaultParams This API (DescribeDefaultParams) is used to query the list of default configurable parameters.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) DescribeDefaultParamsWithContext ¶
func (c *Client) DescribeDefaultParamsWithContext(ctx context.Context, request *DescribeDefaultParamsRequest) (response *DescribeDefaultParamsResponse, err error)
DescribeDefaultParams This API (DescribeDefaultParams) is used to query the list of default configurable parameters.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) DescribeDeviceMonitorInfo ¶
func (c *Client) DescribeDeviceMonitorInfo(request *DescribeDeviceMonitorInfoRequest) (response *DescribeDeviceMonitorInfoResponse, err error)
DescribeDeviceMonitorInfo This API (DescribeDeviceMonitorInfo) is used to query the monitoring information of a TencentDB physical machine on the day. Currently, it only supports instances with 488 GB memory and 6 TB disk.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_FUNCTIONDENIED = "OperationDenied.FunctionDenied" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) DescribeDeviceMonitorInfoWithContext ¶
func (c *Client) DescribeDeviceMonitorInfoWithContext(ctx context.Context, request *DescribeDeviceMonitorInfoRequest) (response *DescribeDeviceMonitorInfoResponse, err error)
DescribeDeviceMonitorInfo This API (DescribeDeviceMonitorInfo) is used to query the monitoring information of a TencentDB physical machine on the day. Currently, it only supports instances with 488 GB memory and 6 TB disk.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_FUNCTIONDENIED = "OperationDenied.FunctionDenied" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) DescribeErrorLogData ¶
func (c *Client) DescribeErrorLogData(request *DescribeErrorLogDataRequest) (response *DescribeErrorLogDataResponse, err error)
DescribeErrorLogData This API is used to query the error logs of an instance over the past month by search criteria.
Note: the HTTP response packet will be very large if it contain a single large error log, which causes the API call to time out. If this happens, we recommend you lower the value of the input parameter `Limit` to reduce the packet size so that the API can respond timely.
error code that may be returned:
FAILEDOPERATION_QUERYLOGERROR = "FailedOperation.QueryLogError" FAILEDOPERATION_TIMEOUTERROR = "FailedOperation.TimeoutError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_RESULTOVERLIMIT = "OperationDenied.ResultOverLimit" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) DescribeErrorLogDataWithContext ¶
func (c *Client) DescribeErrorLogDataWithContext(ctx context.Context, request *DescribeErrorLogDataRequest) (response *DescribeErrorLogDataResponse, err error)
DescribeErrorLogData This API is used to query the error logs of an instance over the past month by search criteria.
Note: the HTTP response packet will be very large if it contain a single large error log, which causes the API call to time out. If this happens, we recommend you lower the value of the input parameter `Limit` to reduce the packet size so that the API can respond timely.
error code that may be returned:
FAILEDOPERATION_QUERYLOGERROR = "FailedOperation.QueryLogError" FAILEDOPERATION_TIMEOUTERROR = "FailedOperation.TimeoutError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_RESULTOVERLIMIT = "OperationDenied.ResultOverLimit" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) DescribeInstanceParamRecords ¶
func (c *Client) DescribeInstanceParamRecords(request *DescribeInstanceParamRecordsRequest) (response *DescribeInstanceParamRecordsResponse, err error)
DescribeInstanceParamRecords This API (DescribeInstanceParamRecords) is used to query the parameter modification records of an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENAMENOTFOUND = "InvalidParameter.InstanceNameNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) DescribeInstanceParamRecordsWithContext ¶
func (c *Client) DescribeInstanceParamRecordsWithContext(ctx context.Context, request *DescribeInstanceParamRecordsRequest) (response *DescribeInstanceParamRecordsResponse, err error)
DescribeInstanceParamRecords This API (DescribeInstanceParamRecords) is used to query the parameter modification records of an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENAMENOTFOUND = "InvalidParameter.InstanceNameNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) DescribeInstanceParams ¶
func (c *Client) DescribeInstanceParams(request *DescribeInstanceParamsRequest) (response *DescribeInstanceParamsResponse, err error)
DescribeInstanceParams This API (DescribeInstanceParams) is used to query the list of parameters for an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeInstanceParamsWithContext ¶
func (c *Client) DescribeInstanceParamsWithContext(ctx context.Context, request *DescribeInstanceParamsRequest) (response *DescribeInstanceParamsResponse, err error)
DescribeInstanceParams This API (DescribeInstanceParams) is used to query the list of parameters for an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeLocalBinlogConfig ¶
func (c *Client) DescribeLocalBinlogConfig(request *DescribeLocalBinlogConfigRequest) (response *DescribeLocalBinlogConfigResponse, err error)
DescribeLocalBinlogConfig This API is used to query the retention policy of local binlog of an instance.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) DescribeLocalBinlogConfigWithContext ¶
func (c *Client) DescribeLocalBinlogConfigWithContext(ctx context.Context, request *DescribeLocalBinlogConfigRequest) (response *DescribeLocalBinlogConfigResponse, err error)
DescribeLocalBinlogConfig This API is used to query the retention policy of local binlog of an instance.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) DescribeParamTemplateInfo ¶
func (c *Client) DescribeParamTemplateInfo(request *DescribeParamTemplateInfoRequest) (response *DescribeParamTemplateInfoResponse, err error)
DescribeParamTemplateInfo This API is used to query parameter template details. The common request parameter `Region` can only be set to `ap-guangzhou`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeParamTemplateInfoWithContext ¶
func (c *Client) DescribeParamTemplateInfoWithContext(ctx context.Context, request *DescribeParamTemplateInfoRequest) (response *DescribeParamTemplateInfoResponse, err error)
DescribeParamTemplateInfo This API is used to query parameter template details. The common request parameter `Region` can only be set to `ap-guangzhou`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeParamTemplates ¶
func (c *Client) DescribeParamTemplates(request *DescribeParamTemplatesRequest) (response *DescribeParamTemplatesResponse, err error)
DescribeParamTemplates This API is used to query the parameter template list. The common request parameter `Region` can only be set to `ap-guangzhou`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeParamTemplatesWithContext ¶
func (c *Client) DescribeParamTemplatesWithContext(ctx context.Context, request *DescribeParamTemplatesRequest) (response *DescribeParamTemplatesResponse, err error)
DescribeParamTemplates This API is used to query the parameter template list. The common request parameter `Region` can only be set to `ap-guangzhou`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeProjectSecurityGroups ¶
func (c *Client) DescribeProjectSecurityGroups(request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
DescribeProjectSecurityGroups This API (DescribeProjectSecurityGroups) is used to query the security group details of a project.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_RESOURCENOTUNIQUE = "InternalError.ResourceNotUnique" INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeProjectSecurityGroupsWithContext ¶
func (c *Client) DescribeProjectSecurityGroupsWithContext(ctx context.Context, request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
DescribeProjectSecurityGroups This API (DescribeProjectSecurityGroups) is used to query the security group details of a project.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_RESOURCENOTUNIQUE = "InternalError.ResourceNotUnique" INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeProxyCustomConf ¶
func (c *Client) DescribeProxyCustomConf(request *DescribeProxyCustomConfRequest) (response *DescribeProxyCustomConfResponse, err error)
DescribeProxyCustomConf This API is used to query the proxy configuration.
error code that may be returned:
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) DescribeProxyCustomConfWithContext ¶
func (c *Client) DescribeProxyCustomConfWithContext(ctx context.Context, request *DescribeProxyCustomConfRequest) (response *DescribeProxyCustomConfResponse, err error)
DescribeProxyCustomConf This API is used to query the proxy configuration.
error code that may be returned:
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) DescribeProxySupportParam ¶
func (c *Client) DescribeProxySupportParam(request *DescribeProxySupportParamRequest) (response *DescribeProxySupportParamResponse, err error)
DescribeProxySupportParam This API is used to query the supported proxy versions and parameters for an instance.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" OPERATIONDENIED_OPERATIONDENIEDERROR = "OperationDenied.OperationDeniedError" RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
func (*Client) DescribeProxySupportParamWithContext ¶
func (c *Client) DescribeProxySupportParamWithContext(ctx context.Context, request *DescribeProxySupportParamRequest) (response *DescribeProxySupportParamResponse, err error)
DescribeProxySupportParam This API is used to query the supported proxy versions and parameters for an instance.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" OPERATIONDENIED_OPERATIONDENIEDERROR = "OperationDenied.OperationDeniedError" RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
func (*Client) DescribeRemoteBackupConfig ¶
func (c *Client) DescribeRemoteBackupConfig(request *DescribeRemoteBackupConfigRequest) (response *DescribeRemoteBackupConfigResponse, err error)
DescribeRemoteBackupConfig This API is used to query the configuration information of a remote TencentDB instance backup.
error code that may be returned:
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) DescribeRemoteBackupConfigWithContext ¶
func (c *Client) DescribeRemoteBackupConfigWithContext(ctx context.Context, request *DescribeRemoteBackupConfigRequest) (response *DescribeRemoteBackupConfigResponse, err error)
DescribeRemoteBackupConfig This API is used to query the configuration information of a remote TencentDB instance backup.
error code that may be returned:
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) DescribeRoGroups ¶
func (c *Client) DescribeRoGroups(request *DescribeRoGroupsRequest) (response *DescribeRoGroupsResponse, err error)
DescribeRoGroups This API is used to query the information of all RO groups of a TencentDB instance.
error code that may be returned:
CDBERROR = "CdbError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport"
func (*Client) DescribeRoGroupsWithContext ¶
func (c *Client) DescribeRoGroupsWithContext(ctx context.Context, request *DescribeRoGroupsRequest) (response *DescribeRoGroupsResponse, err error)
DescribeRoGroups This API is used to query the information of all RO groups of a TencentDB instance.
error code that may be returned:
CDBERROR = "CdbError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport"
func (*Client) DescribeRoMinScale ¶
func (c *Client) DescribeRoMinScale(request *DescribeRoMinScaleRequest) (response *DescribeRoMinScaleResponse, err error)
DescribeRoMinScale This API is used to query the minimum specification of a read-only instance that can be purchased or upgraded to.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" MISSINGPARAMETER_MISSINGPARAMERROR = "MissingParameter.MissingParamError"
func (*Client) DescribeRoMinScaleWithContext ¶
func (c *Client) DescribeRoMinScaleWithContext(ctx context.Context, request *DescribeRoMinScaleRequest) (response *DescribeRoMinScaleResponse, err error)
DescribeRoMinScale This API is used to query the minimum specification of a read-only instance that can be purchased or upgraded to.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" MISSINGPARAMETER_MISSINGPARAMERROR = "MissingParameter.MissingParamError"
func (*Client) DescribeRollbackRangeTime ¶
func (c *Client) DescribeRollbackRangeTime(request *DescribeRollbackRangeTimeRequest) (response *DescribeRollbackRangeTimeResponse, err error)
DescribeRollbackRangeTime This API (DescribeRollbackRangeTime) is used to query the time range available for instance rollback.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeRollbackRangeTimeWithContext ¶
func (c *Client) DescribeRollbackRangeTimeWithContext(ctx context.Context, request *DescribeRollbackRangeTimeRequest) (response *DescribeRollbackRangeTimeResponse, err error)
DescribeRollbackRangeTime This API (DescribeRollbackRangeTime) is used to query the time range available for instance rollback.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeRollbackTaskDetail ¶
func (c *Client) DescribeRollbackTaskDetail(request *DescribeRollbackTaskDetailRequest) (response *DescribeRollbackTaskDetailResponse, err error)
DescribeRollbackTaskDetail This API is used to query the details of a TencentDB instance rollback task.
error code that may be returned:
CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INVALIDPARAMETER_RESOURCENOTEXISTS = "InvalidParameter.ResourceNotExists" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) DescribeRollbackTaskDetailWithContext ¶
func (c *Client) DescribeRollbackTaskDetailWithContext(ctx context.Context, request *DescribeRollbackTaskDetailRequest) (response *DescribeRollbackTaskDetailResponse, err error)
DescribeRollbackTaskDetail This API is used to query the details of a TencentDB instance rollback task.
error code that may be returned:
CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INVALIDPARAMETER_RESOURCENOTEXISTS = "InvalidParameter.ResourceNotExists" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) DescribeSlowLogData ¶
func (c *Client) DescribeSlowLogData(request *DescribeSlowLogDataRequest) (response *DescribeSlowLogDataResponse, err error)
DescribeSlowLogData This API is used to query the slow logs of an instance over the past month by search criteria.
Note: the HTTP response packet will be very large if it contain a single large slow log, which causes the API call to time out. If this happens, we recommend you lower the value of the input parameter `Limit` to reduce the packet size so that the API can respond timely.
error code that may be returned:
FAILEDOPERATION_QUERYLOGERROR = "FailedOperation.QueryLogError" FAILEDOPERATION_RESULTSETOVERLIMIT = "FailedOperation.ResultSetOverLimit" FAILEDOPERATION_TIMEOUTERROR = "FailedOperation.TimeoutError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_NOTSUPPORTBASIC = "OperationDenied.NotSupportBasic" OPERATIONDENIED_RESULTOVERLIMIT = "OperationDenied.ResultOverLimit" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) DescribeSlowLogDataWithContext ¶
func (c *Client) DescribeSlowLogDataWithContext(ctx context.Context, request *DescribeSlowLogDataRequest) (response *DescribeSlowLogDataResponse, err error)
DescribeSlowLogData This API is used to query the slow logs of an instance over the past month by search criteria.
Note: the HTTP response packet will be very large if it contain a single large slow log, which causes the API call to time out. If this happens, we recommend you lower the value of the input parameter `Limit` to reduce the packet size so that the API can respond timely.
error code that may be returned:
FAILEDOPERATION_QUERYLOGERROR = "FailedOperation.QueryLogError" FAILEDOPERATION_RESULTSETOVERLIMIT = "FailedOperation.ResultSetOverLimit" FAILEDOPERATION_TIMEOUTERROR = "FailedOperation.TimeoutError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_NOTSUPPORTBASIC = "OperationDenied.NotSupportBasic" OPERATIONDENIED_RESULTOVERLIMIT = "OperationDenied.ResultOverLimit" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) DescribeSlowLogs ¶
func (c *Client) DescribeSlowLogs(request *DescribeSlowLogsRequest) (response *DescribeSlowLogsResponse, err error)
DescribeSlowLogs This API (DescribeSlowLogs) is used to query the slow logs of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" CDBERROR_TASKERROR = "CdbError.TaskError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) DescribeSlowLogsWithContext ¶
func (c *Client) DescribeSlowLogsWithContext(ctx context.Context, request *DescribeSlowLogsRequest) (response *DescribeSlowLogsResponse, err error)
DescribeSlowLogs This API (DescribeSlowLogs) is used to query the slow logs of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" CDBERROR_TASKERROR = "CdbError.TaskError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) DescribeSupportedPrivileges ¶
func (c *Client) DescribeSupportedPrivileges(request *DescribeSupportedPrivilegesRequest) (response *DescribeSupportedPrivilegesResponse, err error)
DescribeSupportedPrivileges This API (DescribeSupportedPrivileges) is used to query the information of TencentDB account permissions, including global permissions, database permissions, table permissions, and column permissions.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) DescribeSupportedPrivilegesWithContext ¶
func (c *Client) DescribeSupportedPrivilegesWithContext(ctx context.Context, request *DescribeSupportedPrivilegesRequest) (response *DescribeSupportedPrivilegesResponse, err error)
DescribeSupportedPrivileges This API (DescribeSupportedPrivileges) is used to query the information of TencentDB account permissions, including global permissions, database permissions, table permissions, and column permissions.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) DescribeTables ¶
func (c *Client) DescribeTables(request *DescribeTablesRequest) (response *DescribeTablesResponse, err error)
DescribeTables This API is used to query the information of database tables in a TencentDB instance. It only supports source or disaster recovery instances.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_EXESQLERROR = "InternalError.ExeSqlError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeTablesWithContext ¶
func (c *Client) DescribeTablesWithContext(ctx context.Context, request *DescribeTablesRequest) (response *DescribeTablesResponse, err error)
DescribeTables This API is used to query the information of database tables in a TencentDB instance. It only supports source or disaster recovery instances.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_EXESQLERROR = "InternalError.ExeSqlError" INTERNALERROR_NETWORKERROR = "InternalError.NetworkError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeTagsOfInstanceIds ¶
func (c *Client) DescribeTagsOfInstanceIds(request *DescribeTagsOfInstanceIdsRequest) (response *DescribeTagsOfInstanceIdsResponse, err error)
DescribeTagsOfInstanceIds This API (DescribeTagsOfInstanceIds) is used to query the tag information of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_AUTHERROR = "InternalError.AuthError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_TASKERROR = "InternalError.TaskError" INTERNALERROR_TIMEWINDOWERROR = "InternalError.TimeWindowError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeTagsOfInstanceIdsWithContext ¶
func (c *Client) DescribeTagsOfInstanceIdsWithContext(ctx context.Context, request *DescribeTagsOfInstanceIdsRequest) (response *DescribeTagsOfInstanceIdsResponse, err error)
DescribeTagsOfInstanceIds This API (DescribeTagsOfInstanceIds) is used to query the tag information of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" INTERNALERROR_AUTHERROR = "InternalError.AuthError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_TASKERROR = "InternalError.TaskError" INTERNALERROR_TIMEWINDOWERROR = "InternalError.TimeWindowError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied"
func (*Client) DescribeTasks ¶
func (c *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
DescribeTasks This API (DescribeTasks) is used to query the list of tasks for a TencentDB instance.
error code that may be returned:
CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) DescribeTasksWithContext ¶
func (c *Client) DescribeTasksWithContext(ctx context.Context, request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
DescribeTasks This API (DescribeTasks) is used to query the list of tasks for a TencentDB instance.
error code that may be returned:
CDBERROR = "CdbError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DESERROR = "InternalError.DesError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) DescribeTimeWindow ¶
func (c *Client) DescribeTimeWindow(request *DescribeTimeWindowRequest) (response *DescribeTimeWindowResponse, err error)
DescribeTimeWindow This API (DescribeTimeWindow) is used to query the maintenance time window of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) DescribeTimeWindowWithContext ¶
func (c *Client) DescribeTimeWindowWithContext(ctx context.Context, request *DescribeTimeWindowRequest) (response *DescribeTimeWindowResponse, err error)
DescribeTimeWindow This API (DescribeTimeWindow) is used to query the maintenance time window of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) DescribeUploadedFiles ¶
func (c *Client) DescribeUploadedFiles(request *DescribeUploadedFilesRequest) (response *DescribeUploadedFilesResponse, err error)
DescribeUploadedFiles This API is used to query the list of SQL files imported by users. The common request parameter `Region` must be `ap-shanghai`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeUploadedFilesWithContext ¶
func (c *Client) DescribeUploadedFilesWithContext(ctx context.Context, request *DescribeUploadedFilesRequest) (response *DescribeUploadedFilesResponse, err error)
DescribeUploadedFiles This API is used to query the list of SQL files imported by users. The common request parameter `Region` must be `ap-shanghai`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DisassociateSecurityGroups ¶
func (c *Client) DisassociateSecurityGroups(request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
DisassociateSecurityGroups This API (DisassociateSecurityGroups) is used to unbind security groups from instances in batches.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_RESOURCENOTMATCH = "InternalError.ResourceNotMatch" INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DisassociateSecurityGroupsWithContext ¶
func (c *Client) DisassociateSecurityGroupsWithContext(ctx context.Context, request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
DisassociateSecurityGroups This API (DisassociateSecurityGroups) is used to unbind security groups from instances in batches.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_RESOURCENOTMATCH = "InternalError.ResourceNotMatch" INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) InitDBInstances ¶
func (c *Client) InitDBInstances(request *InitDBInstancesRequest) (response *InitDBInstancesResponse, err error)
InitDBInstances 该接口不再维护,参考CreateDBInstance+API文档,在发货时即可完成初始化。
This API was disused. You can refer to the CreateDBInstance API, and initialize the instance when creating it.
This API is used to initialize a TencentDB instance, including initial password, default character set, and instance port number. But it is disused and not recommended. You can now set the instance information by using the parameter `Password`, `ParamList`, and `Port` respectively in the `CreateDBInstance` and `CreateDBInstanceHour` APIs.
error code that may be returned:
INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword"
func (*Client) InitDBInstancesWithContext ¶
func (c *Client) InitDBInstancesWithContext(ctx context.Context, request *InitDBInstancesRequest) (response *InitDBInstancesResponse, err error)
InitDBInstances 该接口不再维护,参考CreateDBInstance+API文档,在发货时即可完成初始化。
This API was disused. You can refer to the CreateDBInstance API, and initialize the instance when creating it.
This API is used to initialize a TencentDB instance, including initial password, default character set, and instance port number. But it is disused and not recommended. You can now set the instance information by using the parameter `Password`, `ParamList`, and `Port` respectively in the `CreateDBInstance` and `CreateDBInstanceHour` APIs.
error code that may be returned:
INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword"
func (*Client) IsolateDBInstance ¶
func (c *Client) IsolateDBInstance(request *IsolateDBInstanceRequest) (response *IsolateDBInstanceResponse, err error)
IsolateDBInstance This API is used to isolate a TencentDB instance, which will no longer be accessible via IP and port. The isolated instance can be started up in the recycle bin. If it is isolated due to arrears, please top up your account as soon as possible.
error code that may be returned:
FAILEDOPERATION_CDBINSTANCELOCKFAILERROR = "FailedOperation.CdbInstanceLockFailError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_JSONUNMARSHALERROR = "InvalidParameter.JsonUnmarshalError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_INSTANCELOCKERCONFLICT = "OperationDenied.InstanceLockerConflict" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" OPERATIONDENIED_UNSUPPORTREFUNDERROR = "OperationDenied.UnSupportRefundError" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) IsolateDBInstanceWithContext ¶
func (c *Client) IsolateDBInstanceWithContext(ctx context.Context, request *IsolateDBInstanceRequest) (response *IsolateDBInstanceResponse, err error)
IsolateDBInstance This API is used to isolate a TencentDB instance, which will no longer be accessible via IP and port. The isolated instance can be started up in the recycle bin. If it is isolated due to arrears, please top up your account as soon as possible.
error code that may be returned:
FAILEDOPERATION_CDBINSTANCELOCKFAILERROR = "FailedOperation.CdbInstanceLockFailError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_JSONUNMARSHALERROR = "InvalidParameter.JsonUnmarshalError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_INSTANCELOCKERCONFLICT = "OperationDenied.InstanceLockerConflict" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" OPERATIONDENIED_UNSUPPORTREFUNDERROR = "OperationDenied.UnSupportRefundError" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) ModifyAccountDescription ¶
func (c *Client) ModifyAccountDescription(request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error)
ModifyAccountDescription This API (ModifyAccountDescription) is used to modify the remarks of a TencentDB instance account.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) ModifyAccountDescriptionWithContext ¶
func (c *Client) ModifyAccountDescriptionWithContext(ctx context.Context, request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error)
ModifyAccountDescription This API (ModifyAccountDescription) is used to modify the remarks of a TencentDB instance account.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) ModifyAccountMaxUserConnections ¶
func (c *Client) ModifyAccountMaxUserConnections(request *ModifyAccountMaxUserConnectionsRequest) (response *ModifyAccountMaxUserConnectionsResponse, err error)
ModifyAccountMaxUserConnections This API is used to modify the maximum connections of one or more TencentDB instance accounts.
error code that may be returned:
FAILEDOPERATION_ASYNCTASKSTATUSERROR = "FailedOperation.AsyncTaskStatusError" FAILEDOPERATION_JSONUNMARSHALERROR = "FailedOperation.JsonUnmarshalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) ModifyAccountMaxUserConnectionsWithContext ¶
func (c *Client) ModifyAccountMaxUserConnectionsWithContext(ctx context.Context, request *ModifyAccountMaxUserConnectionsRequest) (response *ModifyAccountMaxUserConnectionsResponse, err error)
ModifyAccountMaxUserConnections This API is used to modify the maximum connections of one or more TencentDB instance accounts.
error code that may be returned:
FAILEDOPERATION_ASYNCTASKSTATUSERROR = "FailedOperation.AsyncTaskStatusError" FAILEDOPERATION_JSONUNMARSHALERROR = "FailedOperation.JsonUnmarshalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) ModifyAccountPassword ¶
func (c *Client) ModifyAccountPassword(request *ModifyAccountPasswordRequest) (response *ModifyAccountPasswordResponse, err error)
ModifyAccountPassword This API (ModifyAccountPassword) is used to modify the password of a TencentDB instance account.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_INSTTYPENOTSUPPORT = "OperationDenied.InstTypeNotSupport" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) ModifyAccountPasswordWithContext ¶
func (c *Client) ModifyAccountPasswordWithContext(ctx context.Context, request *ModifyAccountPasswordRequest) (response *ModifyAccountPasswordResponse, err error)
ModifyAccountPassword This API (ModifyAccountPassword) is used to modify the password of a TencentDB instance account.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_INSTTYPENOTSUPPORT = "OperationDenied.InstTypeNotSupport" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" OPERATIONDENIED_WRONGPASSWORD = "OperationDenied.WrongPassword" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) ModifyAccountPrivileges ¶
func (c *Client) ModifyAccountPrivileges(request *ModifyAccountPrivilegesRequest) (response *ModifyAccountPrivilegesResponse, err error)
ModifyAccountPrivileges This API is used to modify the permissions of a TencentDB instance account.
Note that when modifying account permissions, you need to pass in the full permission information of the account. You can [query the account permission information
](https://intl.cloud.tencent.com/document/api/236/17500?from_cn_redirect=1) first before modifying permissions.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) ModifyAccountPrivilegesWithContext ¶
func (c *Client) ModifyAccountPrivilegesWithContext(ctx context.Context, request *ModifyAccountPrivilegesRequest) (response *ModifyAccountPrivilegesResponse, err error)
ModifyAccountPrivileges This API is used to modify the permissions of a TencentDB instance account.
Note that when modifying account permissions, you need to pass in the full permission information of the account. You can [query the account permission information
](https://intl.cloud.tencent.com/document/api/236/17500?from_cn_redirect=1) first before modifying permissions.
error code that may be returned:
FAILEDOPERATION_CREATEACCOUNTERROR = "FailedOperation.CreateAccountError" FAILEDOPERATION_GETPRIVILEGEERROR = "FailedOperation.GetPrivilegeError" FAILEDOPERATION_PRIVILEGEDATAILLEGAL = "FailedOperation.PrivilegeDataIllegal" FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" FAILEDOPERATION_STARTFLOWERROR = "FailedOperation.StartFlowError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" FAILEDOPERATION_SUBMITASYNCTASKERROR = "FailedOperation.SubmitAsyncTaskError" INTERNALERROR_INTERNALASSERTERROR = "InternalError.InternalAssertError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALREQUESTERROR = "InternalError.InternalRequestError" INTERNALERROR_REGEXPCOMPILEERROR = "InternalError.RegexpCompileError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONCHARACTERERROR = "InvalidParameterValue.AccountDescriptionCharacterError" INVALIDPARAMETERVALUE_ACCOUNTDESCRIPTIONLENGTHERROR = "InvalidParameterValue.AccountDescriptionLengthError" INVALIDPARAMETERVALUE_ACCOUNTHOSTRULEERROR = "InvalidParameterValue.AccountHostRuleError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDCHARACTERERROR = "InvalidParameterValue.AccountPasswordCharacterError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDLENGTHERROR = "InvalidParameterValue.AccountPasswordLengthError" INVALIDPARAMETERVALUE_ACCOUNTPASSWORDRULEERROR = "InvalidParameterValue.AccountPasswordRuleError" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_USERNAMERULEERROR = "InvalidParameterValue.UserNameRuleError" INVALIDPARAMETERVALUE_USERNOTEXISTERROR = "InvalidParameterValue.UserNotExistError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPASSWORDERROR = "InvalidParameterValue.VerifyAccountPasswordError" INVALIDPARAMETERVALUE_VERIFYACCOUNTPRIVERROR = "InvalidParameterValue.VerifyAccountPrivError" MISSINGPARAMETER_ACCOUNTMISSINGPARAMETERERROR = "MissingParameter.AccountMissingParameterError" OPERATIONDENIED_DELETEROOTACCOUNTERROR = "OperationDenied.DeleteRootAccountError" OPERATIONDENIED_NOTSUPPORTMODIFYLOCALROOTHOSTERROR = "OperationDenied.NotSupportModifyLocalRootHostError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" UNSUPPORTEDOPERATION_PRIVILEGESUNSUPPORTEDERROR = "UnsupportedOperation.PrivilegesUnsupportedError"
func (*Client) ModifyAutoRenewFlag ¶
func (c *Client) ModifyAutoRenewFlag(request *ModifyAutoRenewFlagRequest) (response *ModifyAutoRenewFlagResponse, err error)
ModifyAutoRenewFlag This API is used to modify the auto-renewal flag of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) ModifyAutoRenewFlagWithContext ¶
func (c *Client) ModifyAutoRenewFlagWithContext(ctx context.Context, request *ModifyAutoRenewFlagRequest) (response *ModifyAutoRenewFlagResponse, err error)
ModifyAutoRenewFlag This API is used to modify the auto-renewal flag of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) ModifyBackupConfig ¶
func (c *Client) ModifyBackupConfig(request *ModifyBackupConfigRequest) (response *ModifyBackupConfigResponse, err error)
ModifyBackupConfig This API (ModifyBackupConfig) is used to modify the database backup configuration.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) ModifyBackupConfigWithContext ¶
func (c *Client) ModifyBackupConfigWithContext(ctx context.Context, request *ModifyBackupConfigRequest) (response *ModifyBackupConfigResponse, err error)
ModifyBackupConfig This API (ModifyBackupConfig) is used to modify the database backup configuration.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) ModifyBackupDownloadRestriction ¶
func (c *Client) ModifyBackupDownloadRestriction(request *ModifyBackupDownloadRestrictionRequest) (response *ModifyBackupDownloadRestrictionResponse, err error)
ModifyBackupDownloadRestriction This API is used to modify the restrictions of downloading backups in a region. You can specify which types of networks (private, or both private and public), VPCs, and IPs to download backups.
error code that may be returned:
INTERNALERROR_AUTHERROR = "InternalError.AuthError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyBackupDownloadRestrictionWithContext ¶
func (c *Client) ModifyBackupDownloadRestrictionWithContext(ctx context.Context, request *ModifyBackupDownloadRestrictionRequest) (response *ModifyBackupDownloadRestrictionResponse, err error)
ModifyBackupDownloadRestriction This API is used to modify the restrictions of downloading backups in a region. You can specify which types of networks (private, or both private and public), VPCs, and IPs to download backups.
error code that may be returned:
INTERNALERROR_AUTHERROR = "InternalError.AuthError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyBackupEncryptionStatus ¶
func (c *Client) ModifyBackupEncryptionStatus(request *ModifyBackupEncryptionStatusRequest) (response *ModifyBackupEncryptionStatusResponse, err error)
ModifyBackupEncryptionStatus This API is used to set the encryption status of an instance backup.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED_ACCOUNTOPERATIONDENIED = "OperationDenied.AccountOperationDenied" OPERATIONDENIED_NOTSUPPORTBASIC = "OperationDenied.NotSupportBasic"
func (*Client) ModifyBackupEncryptionStatusWithContext ¶
func (c *Client) ModifyBackupEncryptionStatusWithContext(ctx context.Context, request *ModifyBackupEncryptionStatusRequest) (response *ModifyBackupEncryptionStatusResponse, err error)
ModifyBackupEncryptionStatus This API is used to set the encryption status of an instance backup.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED_ACCOUNTOPERATIONDENIED = "OperationDenied.AccountOperationDenied" OPERATIONDENIED_NOTSUPPORTBASIC = "OperationDenied.NotSupportBasic"
func (*Client) ModifyCdbProxyAddressDesc ¶
func (c *Client) ModifyCdbProxyAddressDesc(request *ModifyCdbProxyAddressDescRequest) (response *ModifyCdbProxyAddressDescResponse, err error)
ModifyCdbProxyAddressDesc This API is used to modify the description of a proxy address.
error code that may be returned:
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) ModifyCdbProxyAddressDescWithContext ¶
func (c *Client) ModifyCdbProxyAddressDescWithContext(ctx context.Context, request *ModifyCdbProxyAddressDescRequest) (response *ModifyCdbProxyAddressDescResponse, err error)
ModifyCdbProxyAddressDesc This API is used to modify the description of a proxy address.
error code that may be returned:
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) ModifyCdbProxyAddressVipAndVPort ¶
func (c *Client) ModifyCdbProxyAddressVipAndVPort(request *ModifyCdbProxyAddressVipAndVPortRequest) (response *ModifyCdbProxyAddressVipAndVPortResponse, err error)
ModifyCdbProxyAddressVipAndVPort This API is used to modify the VPC of the database proxy address.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_VPCIPINUSEERROR = "FailedOperation.VpcIpInUseError" FAILEDOPERATION_VPCIPNOTINSUBNETERROR = "FailedOperation.VpcIpNotInSubnetError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyCdbProxyAddressVipAndVPortWithContext ¶
func (c *Client) ModifyCdbProxyAddressVipAndVPortWithContext(ctx context.Context, request *ModifyCdbProxyAddressVipAndVPortRequest) (response *ModifyCdbProxyAddressVipAndVPortResponse, err error)
ModifyCdbProxyAddressVipAndVPort This API is used to modify the VPC of the database proxy address.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_VPCIPINUSEERROR = "FailedOperation.VpcIpInUseError" FAILEDOPERATION_VPCIPNOTINSUBNETERROR = "FailedOperation.VpcIpNotInSubnetError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyCdbProxyParam ¶
func (c *Client) ModifyCdbProxyParam(request *ModifyCdbProxyParamRequest) (response *ModifyCdbProxyParamResponse, err error)
ModifyCdbProxyParam This API is used to configure the database proxy parameters.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyCdbProxyParamWithContext ¶
func (c *Client) ModifyCdbProxyParamWithContext(ctx context.Context, request *ModifyCdbProxyParamRequest) (response *ModifyCdbProxyParamResponse, err error)
ModifyCdbProxyParam This API is used to configure the database proxy parameters.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyDBInstanceName ¶
func (c *Client) ModifyDBInstanceName(request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)
ModifyDBInstanceName This API (ModifyDBInstanceName) is used to rename a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyDBInstanceNameWithContext ¶
func (c *Client) ModifyDBInstanceNameWithContext(ctx context.Context, request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)
ModifyDBInstanceName This API (ModifyDBInstanceName) is used to rename a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyDBInstanceProject ¶
func (c *Client) ModifyDBInstanceProject(request *ModifyDBInstanceProjectRequest) (response *ModifyDBInstanceProjectResponse, err error)
ModifyDBInstanceProject This API (ModifyDBInstanceProject) is used to modify the project to which a TencentDB instance belongs.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyDBInstanceProjectWithContext ¶
func (c *Client) ModifyDBInstanceProjectWithContext(ctx context.Context, request *ModifyDBInstanceProjectRequest) (response *ModifyDBInstanceProjectResponse, err error)
ModifyDBInstanceProject This API (ModifyDBInstanceProject) is used to modify the project to which a TencentDB instance belongs.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyDBInstanceSecurityGroups ¶
func (c *Client) ModifyDBInstanceSecurityGroups(request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
ModifyDBInstanceSecurityGroups This API (ModifyDBInstanceSecurityGroups) is used to modify the security groups bound to a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_RESOURCENOTUNIQUE = "InternalError.ResourceNotUnique" INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) ModifyDBInstanceSecurityGroupsWithContext ¶
func (c *Client) ModifyDBInstanceSecurityGroupsWithContext(ctx context.Context, request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
ModifyDBInstanceSecurityGroups This API (ModifyDBInstanceSecurityGroups) is used to modify the security groups bound to a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DFWERROR = "InternalError.DfwError" INTERNALERROR_RESOURCENOTUNIQUE = "InternalError.ResourceNotUnique" INTERNALERROR_SECURITYGROUPERROR = "InternalError.SecurityGroupError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) ModifyDBInstanceVipVport ¶
func (c *Client) ModifyDBInstanceVipVport(request *ModifyDBInstanceVipVportRequest) (response *ModifyDBInstanceVipVportResponse, err error)
ModifyDBInstanceVipVport This API is used to modify the IP and port number of a TencentDB instance, switch from classic network to VPC, or change VPC subnets.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) ModifyDBInstanceVipVportWithContext ¶
func (c *Client) ModifyDBInstanceVipVportWithContext(ctx context.Context, request *ModifyDBInstanceVipVportRequest) (response *ModifyDBInstanceVipVportResponse, err error)
ModifyDBInstanceVipVport This API is used to modify the IP and port number of a TencentDB instance, switch from classic network to VPC, or change VPC subnets.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) ModifyInstanceParam ¶
func (c *Client) ModifyInstanceParam(request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error)
ModifyInstanceParam This API (ModifyInstanceParam) is used to modify instance parameters.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" CDBERROR_TASKERROR = "CdbError.TaskError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_TASKFRAMEERROR = "InternalError.TaskFrameError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_INSTANCETASKSTATUSERROR = "OperationDenied.InstanceTaskStatusError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) ModifyInstanceParamWithContext ¶
func (c *Client) ModifyInstanceParamWithContext(ctx context.Context, request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error)
ModifyInstanceParam This API (ModifyInstanceParam) is used to modify instance parameters.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" CDBERROR_TASKERROR = "CdbError.TaskError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INTERNALERROR_TASKFRAMEERROR = "InternalError.TaskFrameError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_INSTANCETASKSTATUSERROR = "OperationDenied.InstanceTaskStatusError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) ModifyInstancePasswordComplexity ¶
func (c *Client) ModifyInstancePasswordComplexity(request *ModifyInstancePasswordComplexityRequest) (response *ModifyInstancePasswordComplexityResponse, err error)
ModifyInstancePasswordComplexity This API is used to modify the password complexity of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" CDBERROR = "CdbError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyInstancePasswordComplexityWithContext ¶
func (c *Client) ModifyInstancePasswordComplexityWithContext(ctx context.Context, request *ModifyInstancePasswordComplexityRequest) (response *ModifyInstancePasswordComplexityResponse, err error)
ModifyInstancePasswordComplexity This API is used to modify the password complexity of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_SUBACCOUNTDENIED = "AuthFailure.SubAccountDenied" CDBERROR = "CdbError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_INTERNALSERVICEERRORERR = "InternalError.InternalServiceErrorErr" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyInstanceTag ¶
func (c *Client) ModifyInstanceTag(request *ModifyInstanceTagRequest) (response *ModifyInstanceTagResponse, err error)
ModifyInstanceTag This API (ModifyInstanceTag) is used to add, modify, or delete an instance tag.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" CDBERROR_BACKUPERROR = "CdbError.BackupError" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" CDBERROR_IMPORTERROR = "CdbError.ImportError" CDBERROR_TASKERROR = "CdbError.TaskError" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" OPERATIONDENIED = "OperationDenied" UNAUTHORIZEDOPERATION_NOTENOUGHPRIVILEGES = "UnauthorizedOperation.NotEnoughPrivileges"
func (*Client) ModifyInstanceTagWithContext ¶
func (c *Client) ModifyInstanceTagWithContext(ctx context.Context, request *ModifyInstanceTagRequest) (response *ModifyInstanceTagResponse, err error)
ModifyInstanceTag This API (ModifyInstanceTag) is used to add, modify, or delete an instance tag.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" CDBERROR_BACKUPERROR = "CdbError.BackupError" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" CDBERROR_IMPORTERROR = "CdbError.ImportError" CDBERROR_TASKERROR = "CdbError.TaskError" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" OPERATIONDENIED = "OperationDenied" UNAUTHORIZEDOPERATION_NOTENOUGHPRIVILEGES = "UnauthorizedOperation.NotEnoughPrivileges"
func (*Client) ModifyLocalBinlogConfig ¶
func (c *Client) ModifyLocalBinlogConfig(request *ModifyLocalBinlogConfigRequest) (response *ModifyLocalBinlogConfigResponse, err error)
ModifyLocalBinlogConfig This API is used to modify the retention policy of local binlog of an instance.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_INSTANCEUNSUPPORTEDOPERATEERROR = "OperationDenied.InstanceUnsupportedOperateError"
func (*Client) ModifyLocalBinlogConfigWithContext ¶
func (c *Client) ModifyLocalBinlogConfigWithContext(ctx context.Context, request *ModifyLocalBinlogConfigRequest) (response *ModifyLocalBinlogConfigResponse, err error)
ModifyLocalBinlogConfig This API is used to modify the retention policy of local binlog of an instance.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_INSTANCEUNSUPPORTEDOPERATEERROR = "OperationDenied.InstanceUnsupportedOperateError"
func (*Client) ModifyNameOrDescByDpId ¶
func (c *Client) ModifyNameOrDescByDpId(request *ModifyNameOrDescByDpIdRequest) (response *ModifyNameOrDescByDpIdResponse, err error)
ModifyNameOrDescByDpId This API is used to modify the name or description of a placement group.
error code that may be returned:
INTERNALERROR_CDBERROR = "InternalError.CdbError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_DEPLOYGROUPNOTEMPTY = "InvalidParameter.DeployGroupNotEmpty" INVALIDPARAMETER_OVERDEPLOYGROUPQUOTA = "InvalidParameter.OverDeployGroupQuota" INVALIDPARAMETER_RESOURCEEXISTS = "InvalidParameter.ResourceExists" INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound"
func (*Client) ModifyNameOrDescByDpIdWithContext ¶
func (c *Client) ModifyNameOrDescByDpIdWithContext(ctx context.Context, request *ModifyNameOrDescByDpIdRequest) (response *ModifyNameOrDescByDpIdResponse, err error)
ModifyNameOrDescByDpId This API is used to modify the name or description of a placement group.
error code that may be returned:
INTERNALERROR_CDBERROR = "InternalError.CdbError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_DEPLOYGROUPNOTEMPTY = "InvalidParameter.DeployGroupNotEmpty" INVALIDPARAMETER_OVERDEPLOYGROUPQUOTA = "InvalidParameter.OverDeployGroupQuota" INVALIDPARAMETER_RESOURCEEXISTS = "InvalidParameter.ResourceExists" INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound"
func (*Client) ModifyParamTemplate ¶
func (c *Client) ModifyParamTemplate(request *ModifyParamTemplateRequest) (response *ModifyParamTemplateResponse, err error)
ModifyParamTemplate This API is used to modify a parameter template. The common request parameter `Region` can only be set to `ap-guangzhou`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_RESOURCEEXISTS = "InvalidParameter.ResourceExists"
func (*Client) ModifyParamTemplateWithContext ¶
func (c *Client) ModifyParamTemplateWithContext(ctx context.Context, request *ModifyParamTemplateRequest) (response *ModifyParamTemplateResponse, err error)
ModifyParamTemplate This API is used to modify a parameter template. The common request parameter `Region` can only be set to `ap-guangzhou`.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_PARAMERROR = "InternalError.ParamError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_RESOURCEEXISTS = "InvalidParameter.ResourceExists"
func (*Client) ModifyRemoteBackupConfig ¶
func (c *Client) ModifyRemoteBackupConfig(request *ModifyRemoteBackupConfigRequest) (response *ModifyRemoteBackupConfigResponse, err error)
ModifyRemoteBackupConfig This API is used to modify the configuration information of a remote TencentDB instance backup.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyRemoteBackupConfigWithContext ¶
func (c *Client) ModifyRemoteBackupConfigWithContext(ctx context.Context, request *ModifyRemoteBackupConfigRequest) (response *ModifyRemoteBackupConfigResponse, err error)
ModifyRemoteBackupConfig This API is used to modify the configuration information of a remote TencentDB instance backup.
error code that may be returned:
INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (*Client) ModifyRoGroupInfo ¶
func (c *Client) ModifyRoGroupInfo(request *ModifyRoGroupInfoRequest) (response *ModifyRoGroupInfoResponse, err error)
ModifyRoGroupInfo This API is used to update the information of a TencentDB RO group, such as configuring a read-only instance removal policy in case of excessive delay, setting read weights of read-only instances, and setting the replication delay.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_TASKFRAMEERROR = "InternalError.TaskFrameError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" MISSINGPARAMETER_MISSINGPARAMERROR = "MissingParameter.MissingParamError" OPERATIONDENIED_CONFLICTROSTATUS = "OperationDenied.ConflictRoStatus" OPERATIONDENIED_CONFLICTSTATUS = "OperationDenied.ConflictStatus" OPERATIONDENIED_DELAYREPLICATIONRUNNING = "OperationDenied.DelayReplicationRunning" OPERATIONDENIED_INSTANCELOCKERCONFLICT = "OperationDenied.InstanceLockerConflict" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) ModifyRoGroupInfoWithContext ¶
func (c *Client) ModifyRoGroupInfoWithContext(ctx context.Context, request *ModifyRoGroupInfoRequest) (response *ModifyRoGroupInfoResponse, err error)
ModifyRoGroupInfo This API is used to update the information of a TencentDB RO group, such as configuring a read-only instance removal policy in case of excessive delay, setting read weights of read-only instances, and setting the replication delay.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_TASKFRAMEERROR = "InternalError.TaskFrameError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_DATACONVERTERROR = "InvalidParameterValue.DataConvertError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" MISSINGPARAMETER_MISSINGPARAMERROR = "MissingParameter.MissingParamError" OPERATIONDENIED_CONFLICTROSTATUS = "OperationDenied.ConflictRoStatus" OPERATIONDENIED_CONFLICTSTATUS = "OperationDenied.ConflictStatus" OPERATIONDENIED_DELAYREPLICATIONRUNNING = "OperationDenied.DelayReplicationRunning" OPERATIONDENIED_INSTANCELOCKERCONFLICT = "OperationDenied.InstanceLockerConflict" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) ModifyTimeWindow ¶
func (c *Client) ModifyTimeWindow(request *ModifyTimeWindowRequest) (response *ModifyTimeWindowResponse, err error)
ModifyTimeWindow This API (ModifyTimeWindow) is used to update the maintenance time window of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) ModifyTimeWindowWithContext ¶
func (c *Client) ModifyTimeWindowWithContext(ctx context.Context, request *ModifyTimeWindowRequest) (response *ModifyTimeWindowResponse, err error)
ModifyTimeWindow This API (ModifyTimeWindow) is used to update the maintenance time window of a TencentDB instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied"
func (*Client) OfflineIsolatedInstances ¶
func (c *Client) OfflineIsolatedInstances(request *OfflineIsolatedInstancesRequest) (response *OfflineIsolatedInstancesResponse, err error)
OfflineIsolatedInstances This API (OfflineIsolatedInstances) is used to deactivate isolated TencentDB instances immediately. The instances must be in isolated status, i.e., their `Status` value is 5 in the return of the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1).
This is an asynchronous API. There may be a delay in repossessing some resources. You can query the details by using the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) and specifying the InstanceId and the `Status` value as [5, 6, 7]. If the returned instance is empty, then all its resources have been released.
Note that once an instance is deactivated, its resources and data will not be recoverable. Please do so with caution.
error code that may be returned:
INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) OfflineIsolatedInstancesWithContext ¶
func (c *Client) OfflineIsolatedInstancesWithContext(ctx context.Context, request *OfflineIsolatedInstancesRequest) (response *OfflineIsolatedInstancesResponse, err error)
OfflineIsolatedInstances This API (OfflineIsolatedInstances) is used to deactivate isolated TencentDB instances immediately. The instances must be in isolated status, i.e., their `Status` value is 5 in the return of the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1).
This is an asynchronous API. There may be a delay in repossessing some resources. You can query the details by using the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) and specifying the InstanceId and the `Status` value as [5, 6, 7]. If the returned instance is empty, then all its resources have been released.
Note that once an instance is deactivated, its resources and data will not be recoverable. Please do so with caution.
error code that may be returned:
INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) OpenAuditService ¶
func (c *Client) OpenAuditService(request *OpenAuditServiceRequest) (response *OpenAuditServiceResponse, err error)
OpenAuditService This API is used to enable the audit service.
error code that may be returned:
FAILEDOPERATION_CREATEAUDITFAILERROR = "FailedOperation.CreateAuditFailError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_AUDITSTATUSERROR = "OperationDenied.AuditStatusError" OPERATIONDENIED_AUDITTASKCONFLICTERROR = "OperationDenied.AuditTaskConflictError" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" OPERATIONDENIED_UNSUPPORTOPENAUDITERROR = "OperationDenied.UnsupportOpenAuditError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) OpenAuditServiceWithContext ¶
func (c *Client) OpenAuditServiceWithContext(ctx context.Context, request *OpenAuditServiceRequest) (response *OpenAuditServiceResponse, err error)
OpenAuditService This API is used to enable the audit service.
error code that may be returned:
FAILEDOPERATION_CREATEAUDITFAILERROR = "FailedOperation.CreateAuditFailError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED_AUDITSTATUSERROR = "OperationDenied.AuditStatusError" OPERATIONDENIED_AUDITTASKCONFLICTERROR = "OperationDenied.AuditTaskConflictError" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" OPERATIONDENIED_UNSUPPORTOPENAUDITERROR = "OperationDenied.UnsupportOpenAuditError" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) OpenDBInstanceEncryption ¶
func (c *Client) OpenDBInstanceEncryption(request *OpenDBInstanceEncryptionRequest) (response *OpenDBInstanceEncryptionResponse, err error)
OpenDBInstanceEncryption This API is used to enable the encryption feature for instance data storage, and custom keys are supported.
Note: Before enabling data storage encryption for an instance, you need to perform the following operations:
1. [Initialize an instance](https://intl.cloud.tencent.com/document/api/236/15873?from_cn_redirect=1).
2. Enable [KMS service](https://console.cloud.tencent.com/kms2)
3. [Grant permission to access KMS](https://console.cloud.tencent.com/cam/role) for TencentDB for MySQL. The role name is `MySQL_QCSRole`, and the preset policy name is `QcloudAccessForMySQLRole`.
This API calling may take up to 10 seconds, causing the client to time out. If it returns `InternalError`, call `DescribeDBInstanceInfo` to confirm whether the backend encryption is enabled successfully.
error code that may be returned:
CDBERROR = "CdbError" INTERNALERROR_HTTPREQUESTERROR = "InternalError.HttpRequestError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied"
func (*Client) OpenDBInstanceEncryptionWithContext ¶
func (c *Client) OpenDBInstanceEncryptionWithContext(ctx context.Context, request *OpenDBInstanceEncryptionRequest) (response *OpenDBInstanceEncryptionResponse, err error)
OpenDBInstanceEncryption This API is used to enable the encryption feature for instance data storage, and custom keys are supported.
Note: Before enabling data storage encryption for an instance, you need to perform the following operations:
1. [Initialize an instance](https://intl.cloud.tencent.com/document/api/236/15873?from_cn_redirect=1).
2. Enable [KMS service](https://console.cloud.tencent.com/kms2)
3. [Grant permission to access KMS](https://console.cloud.tencent.com/cam/role) for TencentDB for MySQL. The role name is `MySQL_QCSRole`, and the preset policy name is `QcloudAccessForMySQLRole`.
This API calling may take up to 10 seconds, causing the client to time out. If it returns `InternalError`, call `DescribeDBInstanceInfo` to confirm whether the backend encryption is enabled successfully.
error code that may be returned:
CDBERROR = "CdbError" INTERNALERROR_HTTPREQUESTERROR = "InternalError.HttpRequestError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied"
func (*Client) OpenDBInstanceGTID ¶
func (c *Client) OpenDBInstanceGTID(request *OpenDBInstanceGTIDRequest) (response *OpenDBInstanceGTIDResponse, err error)
OpenDBInstanceGTID This API (OpenDBInstanceGTID) is used to enable GTID for a TencentDB instance. Only instances on or above version 5.6 are supported.
error code that may be returned:
FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) OpenDBInstanceGTIDWithContext ¶
func (c *Client) OpenDBInstanceGTIDWithContext(ctx context.Context, request *OpenDBInstanceGTIDRequest) (response *OpenDBInstanceGTIDResponse, err error)
OpenDBInstanceGTID This API (OpenDBInstanceGTID) is used to enable GTID for a TencentDB instance. Only instances on or above version 5.6 are supported.
error code that may be returned:
FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) OpenWanService ¶
func (c *Client) OpenWanService(request *OpenWanServiceRequest) (response *OpenWanServiceResponse, err error)
OpenWanService This API (OpenWanService) is used to enable public network access for an instance.
Note that before enabling public network access, you need to first [initialize the instance](https://intl.cloud.tencent.com/document/api/236/15873?from_cn_redirect=1).
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) OpenWanServiceWithContext ¶
func (c *Client) OpenWanServiceWithContext(ctx context.Context, request *OpenWanServiceRequest) (response *OpenWanServiceResponse, err error)
OpenWanService This API (OpenWanService) is used to enable public network access for an instance.
Note that before enabling public network access, you need to first [initialize the instance](https://intl.cloud.tencent.com/document/api/236/15873?from_cn_redirect=1).
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) ReleaseIsolatedDBInstances ¶
func (c *Client) ReleaseIsolatedDBInstances(request *ReleaseIsolatedDBInstancesRequest) (response *ReleaseIsolatedDBInstancesResponse, err error)
ReleaseIsolatedDBInstances This API is used to deisolate an isolated TencentDB instance.
error code that may be returned:
FAILEDOPERATION_OPERATIONINCONFLICTERR = "FailedOperation.OperationInConflictErr" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_INSTANCEUNSUPPORTEDOPERATEERROR = "OperationDenied.InstanceUnsupportedOperateError" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) ReleaseIsolatedDBInstancesWithContext ¶
func (c *Client) ReleaseIsolatedDBInstancesWithContext(ctx context.Context, request *ReleaseIsolatedDBInstancesRequest) (response *ReleaseIsolatedDBInstancesResponse, err error)
ReleaseIsolatedDBInstances This API is used to deisolate an isolated TencentDB instance.
error code that may be returned:
FAILEDOPERATION_OPERATIONINCONFLICTERR = "FailedOperation.OperationInConflictErr" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_INSTANCEUNSUPPORTEDOPERATEERROR = "OperationDenied.InstanceUnsupportedOperateError" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) ReloadBalanceProxyNode ¶
func (c *Client) ReloadBalanceProxyNode(request *ReloadBalanceProxyNodeRequest) (response *ReloadBalanceProxyNodeResponse, err error)
ReloadBalanceProxyNode This API is used to rebalance the load on database proxy.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) ReloadBalanceProxyNodeWithContext ¶
func (c *Client) ReloadBalanceProxyNodeWithContext(ctx context.Context, request *ReloadBalanceProxyNodeRequest) (response *ReloadBalanceProxyNodeResponse, err error)
ReloadBalanceProxyNode This API is used to rebalance the load on database proxy.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" INTERNALERROR_HTTPERROR = "InternalError.HttpError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) RenewDBInstance ¶
func (c *Client) RenewDBInstance(request *RenewDBInstanceRequest) (response *RenewDBInstanceResponse, err error)
RenewDBInstance This API is used to renew a monthly subscribed TencentDB instance, and a pay-as-you-go instance can be renewed as a monthly subscribed one by this API.
error code that may be returned:
INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) RenewDBInstanceWithContext ¶
func (c *Client) RenewDBInstanceWithContext(ctx context.Context, request *RenewDBInstanceRequest) (response *RenewDBInstanceResponse, err error)
RenewDBInstance This API is used to renew a monthly subscribed TencentDB instance, and a pay-as-you-go instance can be renewed as a monthly subscribed one by this API.
error code that may be returned:
INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_ACTIONNOTSUPPORT = "OperationDenied.ActionNotSupport" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) ResetRootAccount ¶
func (c *Client) ResetRootAccount(request *ResetRootAccountRequest) (response *ResetRootAccountResponse, err error)
ResetRootAccount This API is used to reset the root account and initialize the account permissions.
error code that may be returned:
FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) ResetRootAccountWithContext ¶
func (c *Client) ResetRootAccountWithContext(ctx context.Context, request *ResetRootAccountRequest) (response *ResetRootAccountResponse, err error)
ResetRootAccount This API is used to reset the root account and initialize the account permissions.
error code that may be returned:
FAILEDOPERATION_RESPONSEVALUEERROR = "FailedOperation.ResponseValueError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_VERIFYACCOUNTNOROOTERROR = "InvalidParameterValue.VerifyAccountNoRootError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) RestartDBInstances ¶
func (c *Client) RestartDBInstances(request *RestartDBInstancesRequest) (response *RestartDBInstancesResponse, err error)
RestartDBInstances This API (RestartDBInstances) is used to restart TencentDB instances.
Note:
1. This API only supports restarting primary instances.
2. The instance status must be normal, and no other async tasks are in progress.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_TASKFRAMEERROR = "InternalError.TaskFrameError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) RestartDBInstancesWithContext ¶
func (c *Client) RestartDBInstancesWithContext(ctx context.Context, request *RestartDBInstancesRequest) (response *RestartDBInstancesResponse, err error)
RestartDBInstances This API (RestartDBInstances) is used to restart TencentDB instances.
Note:
1. This API only supports restarting primary instances.
2. The instance status must be normal, and no other async tasks are in progress.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_TASKFRAMEERROR = "InternalError.TaskFrameError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) StartBatchRollback ¶
func (c *Client) StartBatchRollback(request *StartBatchRollbackRequest) (response *StartBatchRollbackResponse, err error)
StartBatchRollback This API (StartBatchRollback) is used to roll back the tables of a TencentDB instance in batches.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR_TASKERROR = "CdbError.TaskError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" OVERQUOTA = "OverQuota"
func (*Client) StartBatchRollbackWithContext ¶
func (c *Client) StartBatchRollbackWithContext(ctx context.Context, request *StartBatchRollbackRequest) (response *StartBatchRollbackResponse, err error)
StartBatchRollback This API (StartBatchRollback) is used to roll back the tables of a TencentDB instance in batches.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR_TASKERROR = "CdbError.TaskError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus" OVERQUOTA = "OverQuota"
func (*Client) StartCpuExpand ¶
func (c *Client) StartCpuExpand(request *StartCpuExpandRequest) (response *StartCpuExpandResponse, err error)
StartCpuExpand u200cThis API is used to enable elastic CPU expansion manually or automatically.
error code that may be returned:
FAILEDOPERATION_INSTANCETASKCONFLICTERROR = "FailedOperation.InstanceTaskConflictError" FAILEDOPERATION_NOTCHANGESTRATEGY = "FailedOperation.NotChangeStrategy" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" UNSUPPORTEDOPERATION_NOTSUPPORTNORMALINSTANCE = "UnsupportedOperation.NotSupportNormalInstance"
func (*Client) StartCpuExpandWithContext ¶
func (c *Client) StartCpuExpandWithContext(ctx context.Context, request *StartCpuExpandRequest) (response *StartCpuExpandResponse, err error)
StartCpuExpand u200cThis API is used to enable elastic CPU expansion manually or automatically.
error code that may be returned:
FAILEDOPERATION_INSTANCETASKCONFLICTERROR = "FailedOperation.InstanceTaskConflictError" FAILEDOPERATION_NOTCHANGESTRATEGY = "FailedOperation.NotChangeStrategy" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" UNSUPPORTEDOPERATION_NOTSUPPORTNORMALINSTANCE = "UnsupportedOperation.NotSupportNormalInstance"
func (*Client) StartReplication ¶
func (c *Client) StartReplication(request *StartReplicationRequest) (response *StartReplicationResponse, err error)
StartReplication This API is used to start the data replication from the source instance to the read-only instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_INSTANCETASKRUNNING = "OperationDenied.InstanceTaskRunning" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) StartReplicationWithContext ¶
func (c *Client) StartReplicationWithContext(ctx context.Context, request *StartReplicationRequest) (response *StartReplicationResponse, err error)
StartReplication This API is used to start the data replication from the source instance to the read-only instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_INSTANCETASKRUNNING = "OperationDenied.InstanceTaskRunning" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) StopCpuExpand ¶
func (c *Client) StopCpuExpand(request *StopCpuExpandRequest) (response *StopCpuExpandResponse, err error)
StopCpuExpand This API is used to disable elastic CPU expansion.
error code that may be returned:
FAILEDOPERATION_INSTANCETASKCONFLICTERROR = "FailedOperation.InstanceTaskConflictError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError"
func (*Client) StopCpuExpandWithContext ¶
func (c *Client) StopCpuExpandWithContext(ctx context.Context, request *StopCpuExpandRequest) (response *StopCpuExpandResponse, err error)
StopCpuExpand This API is used to disable elastic CPU expansion.
error code that may be returned:
FAILEDOPERATION_INSTANCETASKCONFLICTERROR = "FailedOperation.InstanceTaskConflictError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError"
func (*Client) StopDBImportJob ¶
func (c *Client) StopDBImportJob(request *StopDBImportJobRequest) (response *StopDBImportJobResponse, err error)
StopDBImportJob This API (StopDBImportJob) is used to stop a data import task.
error code that may be returned:
CDBERROR_IMPORTERROR = "CdbError.ImportError" INTERNALERROR_IMPORTERROR = "InternalError.ImportError" INTERNALERROR_TASKFRAMEERROR = "InternalError.TaskFrameError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDASYNCREQUESTID = "InvalidParameter.InvalidAsyncRequestId" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) StopDBImportJobWithContext ¶
func (c *Client) StopDBImportJobWithContext(ctx context.Context, request *StopDBImportJobRequest) (response *StopDBImportJobResponse, err error)
StopDBImportJob This API (StopDBImportJob) is used to stop a data import task.
error code that may be returned:
CDBERROR_IMPORTERROR = "CdbError.ImportError" INTERNALERROR_IMPORTERROR = "InternalError.ImportError" INTERNALERROR_TASKFRAMEERROR = "InternalError.TaskFrameError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDASYNCREQUESTID = "InvalidParameter.InvalidAsyncRequestId" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) StopReplication ¶
func (c *Client) StopReplication(request *StopReplicationRequest) (response *StopReplicationResponse, err error)
StopReplication This API is used to stop the data replication from the source instance to the read-only instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_NOTDELAYRO = "FailedOperation.NotDelayRo" INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_INSTANCETASKRUNNING = "OperationDenied.InstanceTaskRunning" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) StopReplicationWithContext ¶
func (c *Client) StopReplicationWithContext(ctx context.Context, request *StopReplicationRequest) (response *StopReplicationResponse, err error)
StopReplication This API is used to stop the data replication from the source instance to the read-only instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_NOTDELAYRO = "FailedOperation.NotDelayRo" INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_INSTANCETASKRUNNING = "OperationDenied.InstanceTaskRunning" RESOURCENOTFOUND_INSTANCENOTFUNDERROR = "ResourceNotFound.InstanceNotFundError"
func (*Client) StopRollback ¶
func (c *Client) StopRollback(request *StopRollbackRequest) (response *StopRollbackResponse, err error)
StopRollback This API is used to cancel a rollback task in progress, and returns an async task ID. You can use the `DescribeAsyncRequestInfo` API to query the result of cancellation.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" CDBERROR_TASKERROR = "CdbError.TaskError" INTERNALERROR_ASYNCREQUESTERROR = "InternalError.AsyncRequestError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DESERROR = "InternalError.DesError" OPERATIONDENIED = "OperationDenied"
func (*Client) StopRollbackWithContext ¶
func (c *Client) StopRollbackWithContext(ctx context.Context, request *StopRollbackRequest) (response *StopRollbackResponse, err error)
StopRollback This API is used to cancel a rollback task in progress, and returns an async task ID. You can use the `DescribeAsyncRequestInfo` API to query the result of cancellation.
error code that may be returned:
AUTHFAILURE = "AuthFailure" CDBERROR = "CdbError" CDBERROR_DATABASEERROR = "CdbError.DatabaseError" CDBERROR_TASKERROR = "CdbError.TaskError" INTERNALERROR_ASYNCREQUESTERROR = "InternalError.AsyncRequestError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DESERROR = "InternalError.DesError" OPERATIONDENIED = "OperationDenied"
func (*Client) SwitchCDBProxy ¶
func (c *Client) SwitchCDBProxy(request *SwitchCDBProxyRequest) (response *SwitchCDBProxyResponse, err error)
SwitchCDBProxy This API is used to switch database proxy after the proxy configuration is modified or the proxy version is upgraded.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_PROXYUPGRADETASKSTATUSERROR = "OperationDenied.ProxyUpgradeTaskStatusError"
func (*Client) SwitchCDBProxyWithContext ¶
func (c *Client) SwitchCDBProxyWithContext(ctx context.Context, request *SwitchCDBProxyRequest) (response *SwitchCDBProxyResponse, err error)
SwitchCDBProxy This API is used to switch database proxy after the proxy configuration is modified or the proxy version is upgraded.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_PROXYUPGRADETASKSTATUSERROR = "OperationDenied.ProxyUpgradeTaskStatusError"
func (*Client) SwitchDBInstanceMasterSlave ¶
func (c *Client) SwitchDBInstanceMasterSlave(request *SwitchDBInstanceMasterSlaveRequest) (response *SwitchDBInstanceMasterSlaveResponse, err error)
SwitchDBInstanceMasterSlave This API is used for source-to-replica switch.
error code that may be returned:
CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" OPERATIONDENIED_INSTANCEUNSUPPORTEDOPERATEERROR = "OperationDenied.InstanceUnsupportedOperateError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) SwitchDBInstanceMasterSlaveWithContext ¶
func (c *Client) SwitchDBInstanceMasterSlaveWithContext(ctx context.Context, request *SwitchDBInstanceMasterSlaveRequest) (response *SwitchDBInstanceMasterSlaveResponse, err error)
SwitchDBInstanceMasterSlave This API is used for source-to-replica switch.
error code that may be returned:
CDBERROR_DATABASEERROR = "CdbError.DatabaseError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_INSTANCESTATUSERROR = "OperationDenied.InstanceStatusError" OPERATIONDENIED_INSTANCEUNSUPPORTEDOPERATEERROR = "OperationDenied.InstanceUnsupportedOperateError" RESOURCENOTFOUND_CDBINSTANCENOTFOUNDERROR = "ResourceNotFound.CdbInstanceNotFoundError"
func (*Client) SwitchDrInstanceToMaster ¶
func (c *Client) SwitchDrInstanceToMaster(request *SwitchDrInstanceToMasterRequest) (response *SwitchDrInstanceToMasterResponse, err error)
SwitchDrInstanceToMaster This API is used to promote a disaster recovery instance to source instance. The request parameter `Region` must be the region of the disaster recovery instance.
error code that may be returned:
FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) SwitchDrInstanceToMasterWithContext ¶
func (c *Client) SwitchDrInstanceToMasterWithContext(ctx context.Context, request *SwitchDrInstanceToMasterRequest) (response *SwitchDrInstanceToMasterResponse, err error)
SwitchDrInstanceToMaster This API is used to promote a disaster recovery instance to source instance. The request parameter `Region` must be the region of the disaster recovery instance.
error code that may be returned:
FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy" OPERATIONDENIED_WRONGSTATUS = "OperationDenied.WrongStatus"
func (*Client) SwitchForUpgrade ¶
func (c *Client) SwitchForUpgrade(request *SwitchForUpgradeRequest) (response *SwitchForUpgradeResponse, err error)
SwitchForUpgrade This API (SwitchForUpgrade) is used to switch to a new instance. You can initiate this process when the primary instance being upgraded is pending switch.
error code that may be returned:
CDBERROR = "CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) SwitchForUpgradeWithContext ¶
func (c *Client) SwitchForUpgradeWithContext(ctx context.Context, request *SwitchForUpgradeRequest) (response *SwitchForUpgradeResponse, err error)
SwitchForUpgrade This API (SwitchForUpgrade) is used to switch to a new instance. You can initiate this process when the primary instance being upgraded is pending switch.
error code that may be returned:
CDBERROR = "CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) UpgradeCDBProxyVersion ¶
func (c *Client) UpgradeCDBProxyVersion(request *UpgradeCDBProxyVersionRequest) (response *UpgradeCDBProxyVersionResponse, err error)
UpgradeCDBProxyVersion This API is used to upgrade the version of database proxy.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) UpgradeCDBProxyVersionWithContext ¶
func (c *Client) UpgradeCDBProxyVersionWithContext(ctx context.Context, request *UpgradeCDBProxyVersionRequest) (response *UpgradeCDBProxyVersionResponse, err error)
UpgradeCDBProxyVersion This API is used to upgrade the version of database proxy.
error code that may be returned:
FAILEDOPERATION_DESCRIBEPROXYGROUPERROR = "FailedOperation.DescribeProxyGroupError" INTERNALERROR_DBRECORDNOTEXISTERROR = "InternalError.DBRecordNotExistError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) UpgradeDBInstance ¶
func (c *Client) UpgradeDBInstance(request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)
UpgradeDBInstance This API is used to upgrade or downgrade a TencentDB instance, which can be a primary instance, disaster recovery instance, or read-only instance.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CAUTHERROR = "InternalError.CauthError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) UpgradeDBInstanceEngineVersion ¶
func (c *Client) UpgradeDBInstanceEngineVersion(request *UpgradeDBInstanceEngineVersionRequest) (response *UpgradeDBInstanceEngineVersionResponse, err error)
UpgradeDBInstanceEngineVersion This API (UpgradeDBInstanceEngineVersion) is used to upgrade the version of a TencentDB instance, which can be a primary instance, disaster recovery instance, or read-only instance.
error code that may be returned:
FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) UpgradeDBInstanceEngineVersionWithContext ¶
func (c *Client) UpgradeDBInstanceEngineVersionWithContext(ctx context.Context, request *UpgradeDBInstanceEngineVersionRequest) (response *UpgradeDBInstanceEngineVersionResponse, err error)
UpgradeDBInstanceEngineVersion This API (UpgradeDBInstanceEngineVersion) is used to upgrade the version of a TencentDB instance, which can be a primary instance, disaster recovery instance, or read-only instance.
error code that may be returned:
FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
func (*Client) UpgradeDBInstanceWithContext ¶
func (c *Client) UpgradeDBInstanceWithContext(ctx context.Context, request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)
UpgradeDBInstance This API is used to upgrade or downgrade a TencentDB instance, which can be a primary instance, disaster recovery instance, or read-only instance.
error code that may be returned:
CDBERROR = "CdbError" FAILEDOPERATION_STATUSCONFLICT = "FailedOperation.StatusConflict" INTERNALERROR_CAUTHERROR = "InternalError.CauthError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_DATABASEACCESSERROR = "InternalError.DatabaseAccessError" INTERNALERROR_FTPERROR = "InternalError.FtpError" INTERNALERROR_TRADEERROR = "InternalError.TradeError" INTERNALERROR_UNDEFINEDERROR = "InternalError.UndefinedError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
type CloneItem ¶
type CloneItem struct { // ID of the original instance in a clone task SrcInstanceId *string `json:"SrcInstanceId,omitnil" name:"SrcInstanceId"` // ID of the cloned instance in a clone task DstInstanceId *string `json:"DstInstanceId,omitnil" name:"DstInstanceId"` // Clone task ID CloneJobId *int64 `json:"CloneJobId,omitnil" name:"CloneJobId"` // The policy used in a clone task. Valid values: `timepoint` (roll back to a specific point in time), `backupset` (roll back by using a specific backup file). RollbackStrategy *string `json:"RollbackStrategy,omitnil" name:"RollbackStrategy"` // The point in time to which the cloned instance will be rolled back RollbackTargetTime *string `json:"RollbackTargetTime,omitnil" name:"RollbackTargetTime"` // Task start time StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // Task end time EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Task status. Valid values: `initial`, `running`, `wait_complete`, `success`, `failed`. TaskStatus *string `json:"TaskStatus,omitnil" name:"TaskStatus"` // Clone instance region ID NewRegionId *int64 `json:"NewRegionId,omitnil" name:"NewRegionId"` // Source instance region ID SrcRegionId *int64 `json:"SrcRegionId,omitnil" name:"SrcRegionId"` }
type CloseCDBProxyRequest ¶
type CloseCDBProxyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Whether only to disable read/write separation. Valid values: `true`, `false`. Default value: `false`. OnlyCloseRW *bool `json:"OnlyCloseRW,omitnil" name:"OnlyCloseRW"` }
func NewCloseCDBProxyRequest ¶
func NewCloseCDBProxyRequest() (request *CloseCDBProxyRequest)
func (*CloseCDBProxyRequest) FromJsonString ¶
func (r *CloseCDBProxyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CloseCDBProxyRequest) ToJsonString ¶
func (r *CloseCDBProxyRequest) ToJsonString() string
type CloseCDBProxyRequestParams ¶
type CloseCDBProxyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Whether only to disable read/write separation. Valid values: `true`, `false`. Default value: `false`. OnlyCloseRW *bool `json:"OnlyCloseRW,omitnil" name:"OnlyCloseRW"` }
Predefined struct for user
type CloseCDBProxyResponse ¶
type CloseCDBProxyResponse struct { *tchttp.BaseResponse Response *CloseCDBProxyResponseParams `json:"Response"` }
func NewCloseCDBProxyResponse ¶
func NewCloseCDBProxyResponse() (response *CloseCDBProxyResponse)
func (*CloseCDBProxyResponse) FromJsonString ¶
func (r *CloseCDBProxyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CloseCDBProxyResponse) ToJsonString ¶
func (r *CloseCDBProxyResponse) ToJsonString() string
type CloseCDBProxyResponseParams ¶
type CloseCDBProxyResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CloseCdbProxyAddressRequest ¶
type CloseCdbProxyAddressRequest struct { *tchttp.BaseRequest // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` }
func NewCloseCdbProxyAddressRequest ¶
func NewCloseCdbProxyAddressRequest() (request *CloseCdbProxyAddressRequest)
func (*CloseCdbProxyAddressRequest) FromJsonString ¶
func (r *CloseCdbProxyAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CloseCdbProxyAddressRequest) ToJsonString ¶
func (r *CloseCdbProxyAddressRequest) ToJsonString() string
type CloseCdbProxyAddressRequestParams ¶
type CloseCdbProxyAddressRequestParams struct { // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` }
Predefined struct for user
type CloseCdbProxyAddressResponse ¶
type CloseCdbProxyAddressResponse struct { *tchttp.BaseResponse Response *CloseCdbProxyAddressResponseParams `json:"Response"` }
func NewCloseCdbProxyAddressResponse ¶
func NewCloseCdbProxyAddressResponse() (response *CloseCdbProxyAddressResponse)
func (*CloseCdbProxyAddressResponse) FromJsonString ¶
func (r *CloseCdbProxyAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CloseCdbProxyAddressResponse) ToJsonString ¶
func (r *CloseCdbProxyAddressResponse) ToJsonString() string
type CloseCdbProxyAddressResponseParams ¶
type CloseCdbProxyAddressResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CloseWanServiceRequest ¶
type CloseWanServiceRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewCloseWanServiceRequest ¶
func NewCloseWanServiceRequest() (request *CloseWanServiceRequest)
func (*CloseWanServiceRequest) FromJsonString ¶
func (r *CloseWanServiceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CloseWanServiceRequest) ToJsonString ¶
func (r *CloseWanServiceRequest) ToJsonString() string
type CloseWanServiceRequestParams ¶
type CloseWanServiceRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type CloseWanServiceResponse ¶
type CloseWanServiceResponse struct { *tchttp.BaseResponse Response *CloseWanServiceResponseParams `json:"Response"` }
func NewCloseWanServiceResponse ¶
func NewCloseWanServiceResponse() (response *CloseWanServiceResponse)
func (*CloseWanServiceResponse) FromJsonString ¶
func (r *CloseWanServiceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CloseWanServiceResponse) ToJsonString ¶
func (r *CloseWanServiceResponse) ToJsonString() string
type CloseWanServiceResponseParams ¶
type CloseWanServiceResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ColumnPrivilege ¶
type ColumnPrivilege struct { // Database name Database *string `json:"Database,omitnil" name:"Database"` // Table name Table *string `json:"Table,omitnil" name:"Table"` // Column name Column *string `json:"Column,omitnil" name:"Column"` // Permission information Privileges []*string `json:"Privileges,omitnil" name:"Privileges"` }
type CommonTimeWindow ¶
type CommonTimeWindow struct { // Time window on Monday in the format of 02:00-06:00 Monday *string `json:"Monday,omitnil" name:"Monday"` // Time window on Tuesday in the format of 02:00-06:00 Tuesday *string `json:"Tuesday,omitnil" name:"Tuesday"` // Time window on Wednesday in the format of 02:00-06:00 Wednesday *string `json:"Wednesday,omitnil" name:"Wednesday"` // Time window on Thursday in the format of 02:00-06:00 Thursday *string `json:"Thursday,omitnil" name:"Thursday"` // Time window on Friday in the format of 02:00-06:00 Friday *string `json:"Friday,omitnil" name:"Friday"` // Time window on Saturday in the format of 02:00-06:00 Saturday *string `json:"Saturday,omitnil" name:"Saturday"` // Time window on Sunday in the format of 02:00-06:00 Sunday *string `json:"Sunday,omitnil" name:"Sunday"` // Non-archive backup retention policy. Valid values: `weekly` (back up by week), monthly (back up by month), default value: `weekly`. BackupPeriodStrategy *string `json:"BackupPeriodStrategy,omitnil" name:"BackupPeriodStrategy"` // If `BackupPeriodStrategy` is `monthly`, you need to pass in the specific backup dates. The time interval between any two adjacent dates cannot exceed 2 days, for example, [1,4,7,9,11,14,17,19,22,25,28,30,31]. Days []*int64 `json:"Days,omitnil" name:"Days"` // Backup time by month in the format of 02:00–06:00, which is required when `BackupPeriodStrategy` is `monthly`. BackupPeriodTime *string `json:"BackupPeriodTime,omitnil" name:"BackupPeriodTime"` }
type CreateAccountsRequest ¶
type CreateAccountsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // List of TencentDB accounts Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` // Password of the new account Password *string `json:"Password,omitnil" name:"Password"` // Remarks Description *string `json:"Description,omitnil" name:"Description"` // Maximum connections of the new account. Default value: `10240`. Maximum value: `10240`. MaxUserConnections *int64 `json:"MaxUserConnections,omitnil" name:"MaxUserConnections"` }
func NewCreateAccountsRequest ¶
func NewCreateAccountsRequest() (request *CreateAccountsRequest)
func (*CreateAccountsRequest) FromJsonString ¶
func (r *CreateAccountsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAccountsRequest) ToJsonString ¶
func (r *CreateAccountsRequest) ToJsonString() string
type CreateAccountsRequestParams ¶
type CreateAccountsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // List of TencentDB accounts Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` // Password of the new account Password *string `json:"Password,omitnil" name:"Password"` // Remarks Description *string `json:"Description,omitnil" name:"Description"` // Maximum connections of the new account. Default value: `10240`. Maximum value: `10240`. MaxUserConnections *int64 `json:"MaxUserConnections,omitnil" name:"MaxUserConnections"` }
Predefined struct for user
type CreateAccountsResponse ¶
type CreateAccountsResponse struct { *tchttp.BaseResponse Response *CreateAccountsResponseParams `json:"Response"` }
func NewCreateAccountsResponse ¶
func NewCreateAccountsResponse() (response *CreateAccountsResponse)
func (*CreateAccountsResponse) FromJsonString ¶
func (r *CreateAccountsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAccountsResponse) ToJsonString ¶
func (r *CreateAccountsResponse) ToJsonString() string
type CreateAccountsResponseParams ¶
type CreateAccountsResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateAuditPolicyRequest ¶
type CreateAuditPolicyRequest struct { *tchttp.BaseRequest // Audit policy name. Name *string `json:"Name,omitnil" name:"Name"` // Audit rule ID. RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Retention period of audit logs. Valid values: // 7: seven days (a week); // 30: 30 days (a month); // 180: 180 days (six months); // 365: 365 days (a year); // 1095: 1095 days (three years); // 1825: 1825 days (five years). // This parameter specifies the retention period (30 days by default) of audit logs, which is valid when you create the first audit policy for an instance. If the instance already has audit policies, this parameter is invalid, but you can use the `ModifyAuditConfig` API to modify the retention period. LogExpireDay *int64 `json:"LogExpireDay,omitnil" name:"LogExpireDay"` }
func NewCreateAuditPolicyRequest ¶
func NewCreateAuditPolicyRequest() (request *CreateAuditPolicyRequest)
func (*CreateAuditPolicyRequest) FromJsonString ¶
func (r *CreateAuditPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAuditPolicyRequest) ToJsonString ¶
func (r *CreateAuditPolicyRequest) ToJsonString() string
type CreateAuditPolicyRequestParams ¶
type CreateAuditPolicyRequestParams struct { // Audit policy name. Name *string `json:"Name,omitnil" name:"Name"` // Audit rule ID. RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Retention period of audit logs. Valid values: // 7: seven days (a week); // 30: 30 days (a month); // 180: 180 days (six months); // 365: 365 days (a year); // 1095: 1095 days (three years); // 1825: 1825 days (five years). // This parameter specifies the retention period (30 days by default) of audit logs, which is valid when you create the first audit policy for an instance. If the instance already has audit policies, this parameter is invalid, but you can use the `ModifyAuditConfig` API to modify the retention period. LogExpireDay *int64 `json:"LogExpireDay,omitnil" name:"LogExpireDay"` }
Predefined struct for user
type CreateAuditPolicyResponse ¶
type CreateAuditPolicyResponse struct { *tchttp.BaseResponse Response *CreateAuditPolicyResponseParams `json:"Response"` }
func NewCreateAuditPolicyResponse ¶
func NewCreateAuditPolicyResponse() (response *CreateAuditPolicyResponse)
func (*CreateAuditPolicyResponse) FromJsonString ¶
func (r *CreateAuditPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAuditPolicyResponse) ToJsonString ¶
func (r *CreateAuditPolicyResponse) ToJsonString() string
type CreateAuditPolicyResponseParams ¶
type CreateAuditPolicyResponseParams struct { // Audit policy ID. PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateBackupRequest ¶
type CreateBackupRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Target backup method. Valid values: `logical` (logical cold backup), `physical` (physical cold backup), `snapshot` (snapshot backup). Basic Edition instances only support snapshot backups. BackupMethod *string `json:"BackupMethod,omitnil" name:"BackupMethod"` // Information of the table to be backed up. If this parameter is not set, the entire instance will be backed up by default. It can be set only in logical backup (i.e., BackupMethod = logical). The specified table must exist; otherwise, backup may fail. // For example, if you want to backup tb1 and tb2 in db1 and the entire db2, you should set the parameter as [{"Db": "db1", "Table": "tb1"}, {"Db": "db1", "Table": "tb2"}, {"Db": "db2"} ]. BackupDBTableList []*BackupItem `json:"BackupDBTableList,omitnil" name:"BackupDBTableList"` // Manual backup alias ManualBackupName *string `json:"ManualBackupName,omitnil" name:"ManualBackupName"` }
func NewCreateBackupRequest ¶
func NewCreateBackupRequest() (request *CreateBackupRequest)
func (*CreateBackupRequest) FromJsonString ¶
func (r *CreateBackupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateBackupRequest) ToJsonString ¶
func (r *CreateBackupRequest) ToJsonString() string
type CreateBackupRequestParams ¶
type CreateBackupRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Target backup method. Valid values: `logical` (logical cold backup), `physical` (physical cold backup), `snapshot` (snapshot backup). Basic Edition instances only support snapshot backups. BackupMethod *string `json:"BackupMethod,omitnil" name:"BackupMethod"` // Information of the table to be backed up. If this parameter is not set, the entire instance will be backed up by default. It can be set only in logical backup (i.e., BackupMethod = logical). The specified table must exist; otherwise, backup may fail. // For example, if you want to backup tb1 and tb2 in db1 and the entire db2, you should set the parameter as [{"Db": "db1", "Table": "tb1"}, {"Db": "db1", "Table": "tb2"}, {"Db": "db2"} ]. BackupDBTableList []*BackupItem `json:"BackupDBTableList,omitnil" name:"BackupDBTableList"` // Manual backup alias ManualBackupName *string `json:"ManualBackupName,omitnil" name:"ManualBackupName"` }
Predefined struct for user
type CreateBackupResponse ¶
type CreateBackupResponse struct { *tchttp.BaseResponse Response *CreateBackupResponseParams `json:"Response"` }
func NewCreateBackupResponse ¶
func NewCreateBackupResponse() (response *CreateBackupResponse)
func (*CreateBackupResponse) FromJsonString ¶
func (r *CreateBackupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateBackupResponse) ToJsonString ¶
func (r *CreateBackupResponse) ToJsonString() string
type CreateBackupResponseParams ¶
type CreateBackupResponseParams struct { // Backup task ID BackupId *uint64 `json:"BackupId,omitnil" name:"BackupId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateCdbProxyAddressRequest ¶
type CreateCdbProxyAddressRequest struct { *tchttp.BaseRequest // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Assignment mode of weights. Valid values: `system` (auto-assigned), `custom`. WeightMode *string `json:"WeightMode,omitnil" name:"WeightMode"` // Whether to remove delayed read-only instances from the proxy group. Valid values: `true`, `false`. IsKickOut *bool `json:"IsKickOut,omitnil" name:"IsKickOut"` // Least read-only instances. Minimum value: `0` MinCount *uint64 `json:"MinCount,omitnil" name:"MinCount"` // The delay threshold. Minimum value: `0` MaxDelay *uint64 `json:"MaxDelay,omitnil" name:"MaxDelay"` // Whether to enable failover. Valid values: `true`, `false`. FailOver *bool `json:"FailOver,omitnil" name:"FailOver"` // Whether to automatically add newly created read-only instances. Valid values: `true`, `false`. AutoAddRo *bool `json:"AutoAddRo,omitnil" name:"AutoAddRo"` // Whether it is read-only. Valid values: `true`, `false`. ReadOnly *bool `json:"ReadOnly,omitnil" name:"ReadOnly"` // Whether to enable transaction splitting. Valid values: `true`, `false`. TransSplit *bool `json:"TransSplit,omitnil" name:"TransSplit"` // Assignment of read/write weights ProxyAllocation []*ProxyAllocation `json:"ProxyAllocation,omitnil" name:"ProxyAllocation"` // VPC ID UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Whether to enable the connection pool. Valid values: ConnectionPool *bool `json:"ConnectionPool,omitnil" name:"ConnectionPool"` // Description Desc *string `json:"Desc,omitnil" name:"Desc"` // IP address Vip *string `json:"Vip,omitnil" name:"Vip"` // Port VPort *uint64 `json:"VPort,omitnil" name:"VPort"` // Security group SecurityGroup []*string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Connection pool type, which will take effect only when `ConnectionPool` is `true`. Valid values: `transaction` (transaction-level), `connection` (session-level). ConnectionPoolType *string `json:"ConnectionPoolType,omitnil" name:"ConnectionPoolType"` }
func NewCreateCdbProxyAddressRequest ¶
func NewCreateCdbProxyAddressRequest() (request *CreateCdbProxyAddressRequest)
func (*CreateCdbProxyAddressRequest) FromJsonString ¶
func (r *CreateCdbProxyAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCdbProxyAddressRequest) ToJsonString ¶
func (r *CreateCdbProxyAddressRequest) ToJsonString() string
type CreateCdbProxyAddressRequestParams ¶
type CreateCdbProxyAddressRequestParams struct { // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Assignment mode of weights. Valid values: `system` (auto-assigned), `custom`. WeightMode *string `json:"WeightMode,omitnil" name:"WeightMode"` // Whether to remove delayed read-only instances from the proxy group. Valid values: `true`, `false`. IsKickOut *bool `json:"IsKickOut,omitnil" name:"IsKickOut"` // Least read-only instances. Minimum value: `0` MinCount *uint64 `json:"MinCount,omitnil" name:"MinCount"` // The delay threshold. Minimum value: `0` MaxDelay *uint64 `json:"MaxDelay,omitnil" name:"MaxDelay"` // Whether to enable failover. Valid values: `true`, `false`. FailOver *bool `json:"FailOver,omitnil" name:"FailOver"` // Whether to automatically add newly created read-only instances. Valid values: `true`, `false`. AutoAddRo *bool `json:"AutoAddRo,omitnil" name:"AutoAddRo"` // Whether it is read-only. Valid values: `true`, `false`. ReadOnly *bool `json:"ReadOnly,omitnil" name:"ReadOnly"` // Whether to enable transaction splitting. Valid values: `true`, `false`. TransSplit *bool `json:"TransSplit,omitnil" name:"TransSplit"` // Assignment of read/write weights ProxyAllocation []*ProxyAllocation `json:"ProxyAllocation,omitnil" name:"ProxyAllocation"` // VPC ID UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Whether to enable the connection pool. Valid values: ConnectionPool *bool `json:"ConnectionPool,omitnil" name:"ConnectionPool"` // Description Desc *string `json:"Desc,omitnil" name:"Desc"` // IP address Vip *string `json:"Vip,omitnil" name:"Vip"` // Port VPort *uint64 `json:"VPort,omitnil" name:"VPort"` // Security group SecurityGroup []*string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Connection pool type, which will take effect only when `ConnectionPool` is `true`. Valid values: `transaction` (transaction-level), `connection` (session-level). ConnectionPoolType *string `json:"ConnectionPoolType,omitnil" name:"ConnectionPoolType"` }
Predefined struct for user
type CreateCdbProxyAddressResponse ¶
type CreateCdbProxyAddressResponse struct { *tchttp.BaseResponse Response *CreateCdbProxyAddressResponseParams `json:"Response"` }
func NewCreateCdbProxyAddressResponse ¶
func NewCreateCdbProxyAddressResponse() (response *CreateCdbProxyAddressResponse)
func (*CreateCdbProxyAddressResponse) FromJsonString ¶
func (r *CreateCdbProxyAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCdbProxyAddressResponse) ToJsonString ¶
func (r *CreateCdbProxyAddressResponse) ToJsonString() string
type CreateCdbProxyAddressResponseParams ¶
type CreateCdbProxyAddressResponseParams struct { // Async task ID Note: This field may return null, indicating that no valid values can be obtained. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateCdbProxyRequest ¶
type CreateCdbProxyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // VPC ID UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // The specification configuration of a node ProxyNodeCustom []*ProxyNodeCustom `json:"ProxyNodeCustom,omitnil" name:"ProxyNodeCustom"` // Security group SecurityGroup []*string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Description Desc *string `json:"Desc,omitnil" name:"Desc"` // Connection pool threshold ConnectionPoolLimit *uint64 `json:"ConnectionPoolLimit,omitnil" name:"ConnectionPoolLimit"` }
func NewCreateCdbProxyRequest ¶
func NewCreateCdbProxyRequest() (request *CreateCdbProxyRequest)
func (*CreateCdbProxyRequest) FromJsonString ¶
func (r *CreateCdbProxyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCdbProxyRequest) ToJsonString ¶
func (r *CreateCdbProxyRequest) ToJsonString() string
type CreateCdbProxyRequestParams ¶
type CreateCdbProxyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // VPC ID UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // The specification configuration of a node ProxyNodeCustom []*ProxyNodeCustom `json:"ProxyNodeCustom,omitnil" name:"ProxyNodeCustom"` // Security group SecurityGroup []*string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Description Desc *string `json:"Desc,omitnil" name:"Desc"` // Connection pool threshold ConnectionPoolLimit *uint64 `json:"ConnectionPoolLimit,omitnil" name:"ConnectionPoolLimit"` }
Predefined struct for user
type CreateCdbProxyResponse ¶
type CreateCdbProxyResponse struct { *tchttp.BaseResponse Response *CreateCdbProxyResponseParams `json:"Response"` }
func NewCreateCdbProxyResponse ¶
func NewCreateCdbProxyResponse() (response *CreateCdbProxyResponse)
func (*CreateCdbProxyResponse) FromJsonString ¶
func (r *CreateCdbProxyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCdbProxyResponse) ToJsonString ¶
func (r *CreateCdbProxyResponse) ToJsonString() string
type CreateCdbProxyResponseParams ¶
type CreateCdbProxyResponseParams struct { // Async task ID Note: This field may return null, indicating that no valid values can be obtained. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateCloneInstanceRequest ¶
type CreateCloneInstanceRequest struct { *tchttp.BaseRequest // ID of the instance to be cloned from InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // To roll back the cloned instance to a specific point in time, set this parameter to a value in the format of "yyyy-mm-dd hh:mm:ss". SpecifiedRollbackTime *string `json:"SpecifiedRollbackTime,omitnil" name:"SpecifiedRollbackTime"` // To roll back the cloned instance to a specific physical backup file, set this parameter to the ID of the physical backup file. The ID can be obtained by the [DescribeBackups](https://intl.cloud.tencent.com/document/api/236/15842?from_cn_redirect=1) API. SpecifiedBackupId *int64 `json:"SpecifiedBackupId,omitnil" name:"SpecifiedBackupId"` // VPC ID, which can be obtained by the [DescribeVpcs](https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) API. If this parameter is left empty, the classic network will be used by default. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID, which can be obtained by the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API. If `UniqVpcId` is set, `UniqSubnetId` will be required. UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Memory of the cloned instance in MB, which should be equal to (by default) or larger than that of the original instance Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Disk capacity of the cloned instance in GB, which should be equal to (by default) or larger than that of the original instance Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Name of the cloned instance InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Security group parameter, which can be obtained by the [DescribeProjectSecurityGroups](https://intl.cloud.tencent.com/document/api/236/15850?from_cn_redirect=1) API SecurityGroup []*string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Information of the cloned instance tag ResourceTags []*TagInfo `json:"ResourceTags,omitnil" name:"ResourceTags"` // The number of CPU cores of the cloned instance. It should be equal to (by default) or larger than that of the original instance. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). Default value: 0. ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Multi-AZ or single-AZ. Valid values: 0 (single-AZ), 1 (multi-AZ). Default value: 0. DeployMode *int64 `json:"DeployMode,omitnil" name:"DeployMode"` // Availability zone information of replica 1 of the cloned instance, which is the same as the value of `Zone` of the original instance by default SlaveZone *string `json:"SlaveZone,omitnil" name:"SlaveZone"` // Availability zone information of replica 2 of the cloned instance, // which is left empty by default. Specify this parameter when cloning a strong sync source instance. BackupZone *string `json:"BackupZone,omitnil" name:"BackupZone"` // Resource isolation type of the clone. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance). Default value: `UNIVERSAL`. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // The number of nodes of the clone. If this parameter is set to `3` or the `BackupZone` parameter is specified, the clone will have three nodes. If this parameter is set to `2` or left empty, the clone will have two nodes. InstanceNodes *int64 `json:"InstanceNodes,omitnil" name:"InstanceNodes"` // Placement group ID. DeployGroupId *string `json:"DeployGroupId,omitnil" name:"DeployGroupId"` // Whether to check the request without creating any instance. Valid values: `true`, `false` (default). After being submitted, the request will be checked to see if it is in correct format and has all required parameters with valid values. An error code is returned if the check failed, and `RequestId` is returned if the check succeeded. After a successful check, no instance will be created if this parameter is set to `true`, whereas an instance will be created and if it is set to `false`. DryRun *bool `json:"DryRun,omitnil" name:"DryRun"` // Financial cage ID. CageId *string `json:"CageId,omitnil" name:"CageId"` // Project ID. Default value: 0. ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` }
func NewCreateCloneInstanceRequest ¶
func NewCreateCloneInstanceRequest() (request *CreateCloneInstanceRequest)
func (*CreateCloneInstanceRequest) FromJsonString ¶
func (r *CreateCloneInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCloneInstanceRequest) ToJsonString ¶
func (r *CreateCloneInstanceRequest) ToJsonString() string
type CreateCloneInstanceRequestParams ¶
type CreateCloneInstanceRequestParams struct { // ID of the instance to be cloned from InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // To roll back the cloned instance to a specific point in time, set this parameter to a value in the format of "yyyy-mm-dd hh:mm:ss". SpecifiedRollbackTime *string `json:"SpecifiedRollbackTime,omitnil" name:"SpecifiedRollbackTime"` // To roll back the cloned instance to a specific physical backup file, set this parameter to the ID of the physical backup file. The ID can be obtained by the [DescribeBackups](https://intl.cloud.tencent.com/document/api/236/15842?from_cn_redirect=1) API. SpecifiedBackupId *int64 `json:"SpecifiedBackupId,omitnil" name:"SpecifiedBackupId"` // VPC ID, which can be obtained by the [DescribeVpcs](https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) API. If this parameter is left empty, the classic network will be used by default. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID, which can be obtained by the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API. If `UniqVpcId` is set, `UniqSubnetId` will be required. UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Memory of the cloned instance in MB, which should be equal to (by default) or larger than that of the original instance Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Disk capacity of the cloned instance in GB, which should be equal to (by default) or larger than that of the original instance Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Name of the cloned instance InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Security group parameter, which can be obtained by the [DescribeProjectSecurityGroups](https://intl.cloud.tencent.com/document/api/236/15850?from_cn_redirect=1) API SecurityGroup []*string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Information of the cloned instance tag ResourceTags []*TagInfo `json:"ResourceTags,omitnil" name:"ResourceTags"` // The number of CPU cores of the cloned instance. It should be equal to (by default) or larger than that of the original instance. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). Default value: 0. ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Multi-AZ or single-AZ. Valid values: 0 (single-AZ), 1 (multi-AZ). Default value: 0. DeployMode *int64 `json:"DeployMode,omitnil" name:"DeployMode"` // Availability zone information of replica 1 of the cloned instance, which is the same as the value of `Zone` of the original instance by default SlaveZone *string `json:"SlaveZone,omitnil" name:"SlaveZone"` // Availability zone information of replica 2 of the cloned instance, // which is left empty by default. Specify this parameter when cloning a strong sync source instance. BackupZone *string `json:"BackupZone,omitnil" name:"BackupZone"` // Resource isolation type of the clone. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance). Default value: `UNIVERSAL`. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // The number of nodes of the clone. If this parameter is set to `3` or the `BackupZone` parameter is specified, the clone will have three nodes. If this parameter is set to `2` or left empty, the clone will have two nodes. InstanceNodes *int64 `json:"InstanceNodes,omitnil" name:"InstanceNodes"` // Placement group ID. DeployGroupId *string `json:"DeployGroupId,omitnil" name:"DeployGroupId"` // Whether to check the request without creating any instance. Valid values: `true`, `false` (default). After being submitted, the request will be checked to see if it is in correct format and has all required parameters with valid values. An error code is returned if the check failed, and `RequestId` is returned if the check succeeded. After a successful check, no instance will be created if this parameter is set to `true`, whereas an instance will be created and if it is set to `false`. DryRun *bool `json:"DryRun,omitnil" name:"DryRun"` // Financial cage ID. CageId *string `json:"CageId,omitnil" name:"CageId"` // Project ID. Default value: 0. ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` }
Predefined struct for user
type CreateCloneInstanceResponse ¶
type CreateCloneInstanceResponse struct { *tchttp.BaseResponse Response *CreateCloneInstanceResponseParams `json:"Response"` }
func NewCreateCloneInstanceResponse ¶
func NewCreateCloneInstanceResponse() (response *CreateCloneInstanceResponse)
func (*CreateCloneInstanceResponse) FromJsonString ¶
func (r *CreateCloneInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCloneInstanceResponse) ToJsonString ¶
func (r *CreateCloneInstanceResponse) ToJsonString() string
type CreateCloneInstanceResponseParams ¶
type CreateCloneInstanceResponseParams struct { // LimitAsync task request ID, which can be used to query the execution result of an async task AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateDBImportJobRequest ¶
type CreateDBImportJobRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // TencentDB username User *string `json:"User,omitnil" name:"User"` // Filename. The file must be a .sql file uploaded to Tencent Cloud. FileName *string `json:"FileName,omitnil" name:"FileName"` // Password of a TencentDB instance user account Password *string `json:"Password,omitnil" name:"Password"` // Name of the target database. If this parameter is not passed in, no database is specified. DbName *string `json:"DbName,omitnil" name:"DbName"` // URL of a .sql file stored in COS. Either `FileName` or `CosUrl` must be specified. CosUrl *string `json:"CosUrl,omitnil" name:"CosUrl"` }
func NewCreateDBImportJobRequest ¶
func NewCreateDBImportJobRequest() (request *CreateDBImportJobRequest)
func (*CreateDBImportJobRequest) FromJsonString ¶
func (r *CreateDBImportJobRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDBImportJobRequest) ToJsonString ¶
func (r *CreateDBImportJobRequest) ToJsonString() string
type CreateDBImportJobRequestParams ¶
type CreateDBImportJobRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // TencentDB username User *string `json:"User,omitnil" name:"User"` // Filename. The file must be a .sql file uploaded to Tencent Cloud. FileName *string `json:"FileName,omitnil" name:"FileName"` // Password of a TencentDB instance user account Password *string `json:"Password,omitnil" name:"Password"` // Name of the target database. If this parameter is not passed in, no database is specified. DbName *string `json:"DbName,omitnil" name:"DbName"` // URL of a .sql file stored in COS. Either `FileName` or `CosUrl` must be specified. CosUrl *string `json:"CosUrl,omitnil" name:"CosUrl"` }
Predefined struct for user
type CreateDBImportJobResponse ¶
type CreateDBImportJobResponse struct { *tchttp.BaseResponse Response *CreateDBImportJobResponseParams `json:"Response"` }
func NewCreateDBImportJobResponse ¶
func NewCreateDBImportJobResponse() (response *CreateDBImportJobResponse)
func (*CreateDBImportJobResponse) FromJsonString ¶
func (r *CreateDBImportJobResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDBImportJobResponse) ToJsonString ¶
func (r *CreateDBImportJobResponse) ToJsonString() string
type CreateDBImportJobResponseParams ¶
type CreateDBImportJobResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateDBInstanceHourRequest ¶
type CreateDBInstanceHourRequest struct { *tchttp.BaseRequest // Number of instances. Value range: 1-100. Default value: 1. GoodsNum *int64 `json:"GoodsNum,omitnil" name:"GoodsNum"` // Instance memory size in MB. Please use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported memory specifications. Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Instance disk size in GB. Please use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported disk specifications. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // MySQL version. Valid values: `5.5`, `5.6`, `5.7`, `8.0`. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported versions. EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // VPC ID. If this parameter is not passed in, the basic network will be selected by default. Please use the [DescribeVpcs](https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) API to query the VPCs. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID. If `UniqVpcId` is set, then `UniqSubnetId` will be required. Please use the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API to query the subnet lists. UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Project ID. If this is left empty, the default project will be used. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // AZ information. By default, the system will automatically select an AZ. Please use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported AZs. Zone *string `json:"Zone,omitnil" name:"Zone"` // Instance ID, which is required and the same as the primary instance ID when purchasing read-only or disaster recovery instances. Please use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the instance IDs. MasterInstanceId *string `json:"MasterInstanceId,omitnil" name:"MasterInstanceId"` // Instance type. Valid values: master (primary instance), dr (disaster recovery instance), ro (read-only instance). Default value: master. InstanceRole *string `json:"InstanceRole,omitnil" name:"InstanceRole"` // Region information of the source instance, which is required when purchasing a read-only or disaster recovery instance. MasterRegion *string `json:"MasterRegion,omitnil" name:"MasterRegion"` // Custom port. Value range: [1024-65535]. Port *int64 `json:"Port,omitnil" name:"Port"` // Sets the root account password. Rule: the password can contain 8-64 characters and must contain at least two of the following types of characters: letters, digits, and special symbols (_+-&=!@#$%^*()). This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances. Password *string `json:"Password,omitnil" name:"Password"` // List of parameters in the format of `ParamList.0.Name=auto_increment&ParamList.0.Value=1`. You can use the [DescribeDefaultParams](https://intl.cloud.tencent.com/document/api/236/32662?from_cn_redirect=1) API to query the configurable parameters. ParamList []*ParamInfo `json:"ParamList,omitnil" name:"ParamList"` // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). Default value: 0. This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances. ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Multi-AZ. Valid value: 0 (single-AZ), 1 (multi-AZ). Default value: 0. This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances. DeployMode *int64 `json:"DeployMode,omitnil" name:"DeployMode"` // AZ information of secondary database 1, which is the `Zone` value by default. This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances. SlaveZone *string `json:"SlaveZone,omitnil" name:"SlaveZone"` // The availability zone information of Replica 2, which is left empty by default. Specify this parameter when purchasing a source instance in the one-source-two-replica architecture. BackupZone *string `json:"BackupZone,omitnil" name:"BackupZone"` // Security group parameter. You can use the [DescribeProjectSecurityGroups](https://intl.cloud.tencent.com/document/api/236/15850?from_cn_redirect=1) API to query the security group details of a project. SecurityGroup []*string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Read-only instance information. This parameter must be passed in when purchasing read-only instances. RoGroup *RoGroup `json:"RoGroup,omitnil" name:"RoGroup"` // This field is meaningless when purchasing pay-as-you-go instances. AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil" name:"AutoRenewFlag"` // Instance name For multiple instances purchased at one time, they will be distinguished by the name suffix number, such as instnaceName=db and goodsNum=3, and their instance names are db1, db2, and db3, respectively. InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Instance tag information. ResourceTags []*TagInfo `json:"ResourceTags,omitnil" name:"ResourceTags"` // Placement group ID. DeployGroupId *string `json:"DeployGroupId,omitnil" name:"DeployGroupId"` // A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Instance resource isolation type. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). Default value: `UNIVERSAL`. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // Parameter template ID. ParamTemplateId *int64 `json:"ParamTemplateId,omitnil" name:"ParamTemplateId"` // Array of alarm policy IDs, which is `OriginId` obtained through the `DescribeAlarmPolicy` API. AlarmPolicyList []*int64 `json:"AlarmPolicyList,omitnil" name:"AlarmPolicyList"` // The number of nodes of the instance. To purchase a read-only replica or a basic instance, set this parameter to `1` or leave it empty. To purchase a three-node instance, set this parameter to `3` or specify the `BackupZone` parameter. If the instance to be purchased is a source instance and both `BackupZone` and this parameter are left empty, the value `2` will be used, which indicates the source instance will have two nodes. InstanceNodes *int64 `json:"InstanceNodes,omitnil" name:"InstanceNodes"` // The number of CPU cores of the instance. If this parameter is left empty, the number of CPU cores depends on the `Memory` value. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Whether to automatically start disaster recovery synchronization. This parameter takes effect only for disaster recovery instances. Valid values: `0` (no), `1` (yes). Default value: `0`. AutoSyncFlag *int64 `json:"AutoSyncFlag,omitnil" name:"AutoSyncFlag"` // Financial cage ID. CageId *string `json:"CageId,omitnil" name:"CageId"` // Type of the default parameter template. Valid values: `HIGH_STABILITY` (high-stability template), `HIGH_PERFORMANCE` (high-performance template). Default value: `HIGH_STABILITY`. ParamTemplateType *string `json:"ParamTemplateType,omitnil" name:"ParamTemplateType"` // The array of alarm policy names, such as ["policy-uyoee9wg"]. If the `AlarmPolicyList` parameter is specified, this parameter is invalid. AlarmPolicyIdList []*string `json:"AlarmPolicyIdList,omitnil" name:"AlarmPolicyIdList"` // Whether to check the request without creating any instance. Valid values: `true`, `false` (default). After being submitted, the request will be checked to see if it is in correct format and has all required parameters with valid values. An error code is returned if the check failed, and `RequestId` is returned if the check succeeded. After a successful check, no instance will be created if this parameter is set to `true`, whereas an instance will be created and if it is set to `false`. DryRun *bool `json:"DryRun,omitnil" name:"DryRun"` // Instance engine type. Valid values: `InnoDB` (default); `RocksDB`. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` // The list of IPs for sources instances. Only one IP address can be assigned to a single source instance. If all IPs are used up, the system will automatically assign IPs to the remaining source instances that do not have one. Vips []*string `json:"Vips,omitnil" name:"Vips"` }
func NewCreateDBInstanceHourRequest ¶
func NewCreateDBInstanceHourRequest() (request *CreateDBInstanceHourRequest)
func (*CreateDBInstanceHourRequest) FromJsonString ¶
func (r *CreateDBInstanceHourRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDBInstanceHourRequest) ToJsonString ¶
func (r *CreateDBInstanceHourRequest) ToJsonString() string
type CreateDBInstanceHourRequestParams ¶
type CreateDBInstanceHourRequestParams struct { // Number of instances. Value range: 1-100. Default value: 1. GoodsNum *int64 `json:"GoodsNum,omitnil" name:"GoodsNum"` // Instance memory size in MB. Please use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported memory specifications. Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Instance disk size in GB. Please use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported disk specifications. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // MySQL version. Valid values: `5.5`, `5.6`, `5.7`, `8.0`. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported versions. EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // VPC ID. If this parameter is not passed in, the basic network will be selected by default. Please use the [DescribeVpcs](https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) API to query the VPCs. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID. If `UniqVpcId` is set, then `UniqSubnetId` will be required. Please use the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API to query the subnet lists. UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Project ID. If this is left empty, the default project will be used. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // AZ information. By default, the system will automatically select an AZ. Please use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported AZs. Zone *string `json:"Zone,omitnil" name:"Zone"` // Instance ID, which is required and the same as the primary instance ID when purchasing read-only or disaster recovery instances. Please use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the instance IDs. MasterInstanceId *string `json:"MasterInstanceId,omitnil" name:"MasterInstanceId"` // Instance type. Valid values: master (primary instance), dr (disaster recovery instance), ro (read-only instance). Default value: master. InstanceRole *string `json:"InstanceRole,omitnil" name:"InstanceRole"` // Region information of the source instance, which is required when purchasing a read-only or disaster recovery instance. MasterRegion *string `json:"MasterRegion,omitnil" name:"MasterRegion"` // Custom port. Value range: [1024-65535]. Port *int64 `json:"Port,omitnil" name:"Port"` // Sets the root account password. Rule: the password can contain 8-64 characters and must contain at least two of the following types of characters: letters, digits, and special symbols (_+-&=!@#$%^*()). This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances. Password *string `json:"Password,omitnil" name:"Password"` // List of parameters in the format of `ParamList.0.Name=auto_increment&ParamList.0.Value=1`. You can use the [DescribeDefaultParams](https://intl.cloud.tencent.com/document/api/236/32662?from_cn_redirect=1) API to query the configurable parameters. ParamList []*ParamInfo `json:"ParamList,omitnil" name:"ParamList"` // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). Default value: 0. This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances. ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Multi-AZ. Valid value: 0 (single-AZ), 1 (multi-AZ). Default value: 0. This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances. DeployMode *int64 `json:"DeployMode,omitnil" name:"DeployMode"` // AZ information of secondary database 1, which is the `Zone` value by default. This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances. SlaveZone *string `json:"SlaveZone,omitnil" name:"SlaveZone"` // The availability zone information of Replica 2, which is left empty by default. Specify this parameter when purchasing a source instance in the one-source-two-replica architecture. BackupZone *string `json:"BackupZone,omitnil" name:"BackupZone"` // Security group parameter. You can use the [DescribeProjectSecurityGroups](https://intl.cloud.tencent.com/document/api/236/15850?from_cn_redirect=1) API to query the security group details of a project. SecurityGroup []*string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Read-only instance information. This parameter must be passed in when purchasing read-only instances. RoGroup *RoGroup `json:"RoGroup,omitnil" name:"RoGroup"` // This field is meaningless when purchasing pay-as-you-go instances. AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil" name:"AutoRenewFlag"` // Instance name For multiple instances purchased at one time, they will be distinguished by the name suffix number, such as instnaceName=db and goodsNum=3, and their instance names are db1, db2, and db3, respectively. InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Instance tag information. ResourceTags []*TagInfo `json:"ResourceTags,omitnil" name:"ResourceTags"` // Placement group ID. DeployGroupId *string `json:"DeployGroupId,omitnil" name:"DeployGroupId"` // A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Instance resource isolation type. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). Default value: `UNIVERSAL`. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // Parameter template ID. ParamTemplateId *int64 `json:"ParamTemplateId,omitnil" name:"ParamTemplateId"` // Array of alarm policy IDs, which is `OriginId` obtained through the `DescribeAlarmPolicy` API. AlarmPolicyList []*int64 `json:"AlarmPolicyList,omitnil" name:"AlarmPolicyList"` // The number of nodes of the instance. To purchase a read-only replica or a basic instance, set this parameter to `1` or leave it empty. To purchase a three-node instance, set this parameter to `3` or specify the `BackupZone` parameter. If the instance to be purchased is a source instance and both `BackupZone` and this parameter are left empty, the value `2` will be used, which indicates the source instance will have two nodes. InstanceNodes *int64 `json:"InstanceNodes,omitnil" name:"InstanceNodes"` // The number of CPU cores of the instance. If this parameter is left empty, the number of CPU cores depends on the `Memory` value. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Whether to automatically start disaster recovery synchronization. This parameter takes effect only for disaster recovery instances. Valid values: `0` (no), `1` (yes). Default value: `0`. AutoSyncFlag *int64 `json:"AutoSyncFlag,omitnil" name:"AutoSyncFlag"` // Financial cage ID. CageId *string `json:"CageId,omitnil" name:"CageId"` // Type of the default parameter template. Valid values: `HIGH_STABILITY` (high-stability template), `HIGH_PERFORMANCE` (high-performance template). Default value: `HIGH_STABILITY`. ParamTemplateType *string `json:"ParamTemplateType,omitnil" name:"ParamTemplateType"` // The array of alarm policy names, such as ["policy-uyoee9wg"]. If the `AlarmPolicyList` parameter is specified, this parameter is invalid. AlarmPolicyIdList []*string `json:"AlarmPolicyIdList,omitnil" name:"AlarmPolicyIdList"` // Whether to check the request without creating any instance. Valid values: `true`, `false` (default). After being submitted, the request will be checked to see if it is in correct format and has all required parameters with valid values. An error code is returned if the check failed, and `RequestId` is returned if the check succeeded. After a successful check, no instance will be created if this parameter is set to `true`, whereas an instance will be created and if it is set to `false`. DryRun *bool `json:"DryRun,omitnil" name:"DryRun"` // Instance engine type. Valid values: `InnoDB` (default); `RocksDB`. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` // The list of IPs for sources instances. Only one IP address can be assigned to a single source instance. If all IPs are used up, the system will automatically assign IPs to the remaining source instances that do not have one. Vips []*string `json:"Vips,omitnil" name:"Vips"` }
Predefined struct for user
type CreateDBInstanceHourResponse ¶
type CreateDBInstanceHourResponse struct { *tchttp.BaseResponse Response *CreateDBInstanceHourResponseParams `json:"Response"` }
func NewCreateDBInstanceHourResponse ¶
func NewCreateDBInstanceHourResponse() (response *CreateDBInstanceHourResponse)
func (*CreateDBInstanceHourResponse) FromJsonString ¶
func (r *CreateDBInstanceHourResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDBInstanceHourResponse) ToJsonString ¶
func (r *CreateDBInstanceHourResponse) ToJsonString() string
type CreateDBInstanceHourResponseParams ¶
type CreateDBInstanceHourResponseParams struct { // Short order ID. DealIds []*string `json:"DealIds,omitnil" name:"DealIds"` // Instance ID list InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateDBInstanceRequest ¶
type CreateDBInstanceRequest struct { *tchttp.BaseRequest // Instance memory size in MB. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported memory specifications. Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Instance disk size in GB. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported disk specifications. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Instance validity period in months. Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. Period *int64 `json:"Period,omitnil" name:"Period"` // Number of instances. Value range: 1-100. Default value: `1`. GoodsNum *int64 `json:"GoodsNum,omitnil" name:"GoodsNum"` // AZ information. The system will automatically select an AZ by default. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported AZs. Zone *string `json:"Zone,omitnil" name:"Zone"` // VPC ID. If this parameter is not passed in, the basic network will be selected by default. You can use the [DescribeVpcs](https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) API to query the VPCs. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID. If `UniqVpcId` is set, then `UniqSubnetId` will be required. You can use the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API to query the subnet lists. UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Project ID. If this parameter is left empty, the default project will be used. When you purchase read-only instances and disaster recovery instances, the project ID is the same as that of the source instance by default. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Custom port. Value range: 1024-65535. Port *int64 `json:"Port,omitnil" name:"Port"` // Instance typeA. Valid values: `master` (source instance), `dr` (disaster recovery instance), `ro` (read-only instance). InstanceRole *string `json:"InstanceRole,omitnil" name:"InstanceRole"` // Instance ID. It is required when purchasing a read-only instance, which is the same as the source instance ID. You can use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the instance ID. MasterInstanceId *string `json:"MasterInstanceId,omitnil" name:"MasterInstanceId"` // MySQL version. Valid values: `5.5`, `5.6`, `5.7`, and `8.0`. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported instance versions. EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // The root account password, which can contain 8-64 characters and must contain at least two of the following types of characters: letters, digits, and symbols `_+-&=!@#$%^*()`. This parameter applies to source instances but not to read-only or disaster recovery instances. Password *string `json:"Password,omitnil" name:"Password"` // Data replication mode. Valid values: `0` (async replication), `1` (semi-sync replication), `2` (strong sync replication). Default value: `0`. ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Multi-AZ or single-AZ. Valid values: `0` (single-AZ), `1` (multi-AZ). Default value: `0`. DeployMode *int64 `json:"DeployMode,omitnil" name:"DeployMode"` // Information of replica AZ 1, which is the `Zone` value by default. SlaveZone *string `json:"SlaveZone,omitnil" name:"SlaveZone"` // List of parameters in the format of ParamList.0.Name=auto_increment&ParamList.0.Value=1. You can use the [DescribeDefaultParams](https://intl.cloud.tencent.com/document/api/236/32662?from_cn_redirect=1) API to query the configurable parameters. ParamList []*ParamInfo `json:"ParamList,omitnil" name:"ParamList"` // Information of replica AZ 2, which is left empty by default. Specify this parameter when purchasing a source instance in the one-source-two-replica architecture. BackupZone *string `json:"BackupZone,omitnil" name:"BackupZone"` // Auto-renewal flag. Valid values: `0` (auto-renewal not enabled), `1` (auto-renewal enabled). AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil" name:"AutoRenewFlag"` // Region information of the source instance, which is required when purchasing a read-only or disaster recovery instance. MasterRegion *string `json:"MasterRegion,omitnil" name:"MasterRegion"` // Security group parameter. You can use the [DescribeProjectSecurityGroups](https://intl.cloud.tencent.com/document/api/236/15850?from_cn_redirect=1) API to query the security group details of a project. SecurityGroup []*string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Read-only instance parameter. This parameter must be passed in when purchasing read-only instances. RoGroup *RoGroup `json:"RoGroup,omitnil" name:"RoGroup"` // Instance name. For multiple instances purchased at one time, they will be distinguished by the name suffix number, such as instnaceName=db and goodsNum=3, and their instance names are db1, db2, and db3, respectively. InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Instance tag information ResourceTags []*TagInfo `json:"ResourceTags,omitnil" name:"ResourceTags"` // Placement group ID DeployGroupId *string `json:"DeployGroupId,omitnil" name:"DeployGroupId"` // A string unique in 48 hours, which is supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Instance isolation type. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). Default value: `UNIVERSAL`. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // Parameter template ID ParamTemplateId *int64 `json:"ParamTemplateId,omitnil" name:"ParamTemplateId"` // Array of alarm policy IDs, which can be obtained through the `OriginId` field in the return value of the `DescribeAlarmPolicy` API of TCOP. AlarmPolicyList []*int64 `json:"AlarmPolicyList,omitnil" name:"AlarmPolicyList"` // The number of nodes of the instance. To purchase a read-only instance or a basic instance, set this parameter to `1` or leave it empty. To purchase a three-node instance, set this parameter to `3` or specify the `BackupZone` parameter. If the instance to be purchased is a source instance and both `BackupZone` and this parameter are left empty, the value `2` will be used, which indicates the source instance will have two nodes. InstanceNodes *int64 `json:"InstanceNodes,omitnil" name:"InstanceNodes"` // The number of the instance CPU cores. If this parameter is left empty, it will be subject to the `Memory` value. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Whether to automatically start disaster recovery synchronization. This parameter takes effect only for disaster recovery instances. Valid values: `0` (no), `1` (yes). Default value: `0`. AutoSyncFlag *int64 `json:"AutoSyncFlag,omitnil" name:"AutoSyncFlag"` // Financial cage ID. CageId *string `json:"CageId,omitnil" name:"CageId"` // Type of the default parameter template. Valid values: `HIGH_STABILITY` (high-stability template), `HIGH_PERFORMANCE` (high-performance template). ParamTemplateType *string `json:"ParamTemplateType,omitnil" name:"ParamTemplateType"` // The array of alarm policy names, such as ["policy-uyoee9wg"]. If the `AlarmPolicyList` parameter is specified, this parameter is invalid. AlarmPolicyIdList []*string `json:"AlarmPolicyIdList,omitnil" name:"AlarmPolicyIdList"` // Whether to check the request without creating any instance. Valid values: `true`, `false` (default). After being submitted, the request will be checked to see if it is in correct format and has all required parameters with valid values. An error code is returned if the check failed, and `RequestId` is returned if the check succeeded. After a successful check, no instance will be created if this parameter is set to `true`, whereas an instance will be created and if it is set to `false`. DryRun *bool `json:"DryRun,omitnil" name:"DryRun"` // Instance engine type. Valid values: `InnoDB` (default), `RocksDB`. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` // The list of IPs for sources instances. Only one IP address can be assigned to a single source instance. If all IPs are used up, the system will automatically assign IPs to the remaining source instances that do not have one. Vips []*string `json:"Vips,omitnil" name:"Vips"` }
func NewCreateDBInstanceRequest ¶
func NewCreateDBInstanceRequest() (request *CreateDBInstanceRequest)
func (*CreateDBInstanceRequest) FromJsonString ¶
func (r *CreateDBInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDBInstanceRequest) ToJsonString ¶
func (r *CreateDBInstanceRequest) ToJsonString() string
type CreateDBInstanceRequestParams ¶
type CreateDBInstanceRequestParams struct { // Instance memory size in MB. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported memory specifications. Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Instance disk size in GB. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported disk specifications. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Instance validity period in months. Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. Period *int64 `json:"Period,omitnil" name:"Period"` // Number of instances. Value range: 1-100. Default value: `1`. GoodsNum *int64 `json:"GoodsNum,omitnil" name:"GoodsNum"` // AZ information. The system will automatically select an AZ by default. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported AZs. Zone *string `json:"Zone,omitnil" name:"Zone"` // VPC ID. If this parameter is not passed in, the basic network will be selected by default. You can use the [DescribeVpcs](https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) API to query the VPCs. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID. If `UniqVpcId` is set, then `UniqSubnetId` will be required. You can use the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API to query the subnet lists. UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Project ID. If this parameter is left empty, the default project will be used. When you purchase read-only instances and disaster recovery instances, the project ID is the same as that of the source instance by default. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Custom port. Value range: 1024-65535. Port *int64 `json:"Port,omitnil" name:"Port"` // Instance typeA. Valid values: `master` (source instance), `dr` (disaster recovery instance), `ro` (read-only instance). InstanceRole *string `json:"InstanceRole,omitnil" name:"InstanceRole"` // Instance ID. It is required when purchasing a read-only instance, which is the same as the source instance ID. You can use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the instance ID. MasterInstanceId *string `json:"MasterInstanceId,omitnil" name:"MasterInstanceId"` // MySQL version. Valid values: `5.5`, `5.6`, `5.7`, and `8.0`. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported instance versions. EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // The root account password, which can contain 8-64 characters and must contain at least two of the following types of characters: letters, digits, and symbols `_+-&=!@#$%^*()`. This parameter applies to source instances but not to read-only or disaster recovery instances. Password *string `json:"Password,omitnil" name:"Password"` // Data replication mode. Valid values: `0` (async replication), `1` (semi-sync replication), `2` (strong sync replication). Default value: `0`. ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Multi-AZ or single-AZ. Valid values: `0` (single-AZ), `1` (multi-AZ). Default value: `0`. DeployMode *int64 `json:"DeployMode,omitnil" name:"DeployMode"` // Information of replica AZ 1, which is the `Zone` value by default. SlaveZone *string `json:"SlaveZone,omitnil" name:"SlaveZone"` // List of parameters in the format of ParamList.0.Name=auto_increment&ParamList.0.Value=1. You can use the [DescribeDefaultParams](https://intl.cloud.tencent.com/document/api/236/32662?from_cn_redirect=1) API to query the configurable parameters. ParamList []*ParamInfo `json:"ParamList,omitnil" name:"ParamList"` // Information of replica AZ 2, which is left empty by default. Specify this parameter when purchasing a source instance in the one-source-two-replica architecture. BackupZone *string `json:"BackupZone,omitnil" name:"BackupZone"` // Auto-renewal flag. Valid values: `0` (auto-renewal not enabled), `1` (auto-renewal enabled). AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil" name:"AutoRenewFlag"` // Region information of the source instance, which is required when purchasing a read-only or disaster recovery instance. MasterRegion *string `json:"MasterRegion,omitnil" name:"MasterRegion"` // Security group parameter. You can use the [DescribeProjectSecurityGroups](https://intl.cloud.tencent.com/document/api/236/15850?from_cn_redirect=1) API to query the security group details of a project. SecurityGroup []*string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Read-only instance parameter. This parameter must be passed in when purchasing read-only instances. RoGroup *RoGroup `json:"RoGroup,omitnil" name:"RoGroup"` // Instance name. For multiple instances purchased at one time, they will be distinguished by the name suffix number, such as instnaceName=db and goodsNum=3, and their instance names are db1, db2, and db3, respectively. InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Instance tag information ResourceTags []*TagInfo `json:"ResourceTags,omitnil" name:"ResourceTags"` // Placement group ID DeployGroupId *string `json:"DeployGroupId,omitnil" name:"DeployGroupId"` // A string unique in 48 hours, which is supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Instance isolation type. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). Default value: `UNIVERSAL`. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // Parameter template ID ParamTemplateId *int64 `json:"ParamTemplateId,omitnil" name:"ParamTemplateId"` // Array of alarm policy IDs, which can be obtained through the `OriginId` field in the return value of the `DescribeAlarmPolicy` API of TCOP. AlarmPolicyList []*int64 `json:"AlarmPolicyList,omitnil" name:"AlarmPolicyList"` // The number of nodes of the instance. To purchase a read-only instance or a basic instance, set this parameter to `1` or leave it empty. To purchase a three-node instance, set this parameter to `3` or specify the `BackupZone` parameter. If the instance to be purchased is a source instance and both `BackupZone` and this parameter are left empty, the value `2` will be used, which indicates the source instance will have two nodes. InstanceNodes *int64 `json:"InstanceNodes,omitnil" name:"InstanceNodes"` // The number of the instance CPU cores. If this parameter is left empty, it will be subject to the `Memory` value. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Whether to automatically start disaster recovery synchronization. This parameter takes effect only for disaster recovery instances. Valid values: `0` (no), `1` (yes). Default value: `0`. AutoSyncFlag *int64 `json:"AutoSyncFlag,omitnil" name:"AutoSyncFlag"` // Financial cage ID. CageId *string `json:"CageId,omitnil" name:"CageId"` // Type of the default parameter template. Valid values: `HIGH_STABILITY` (high-stability template), `HIGH_PERFORMANCE` (high-performance template). ParamTemplateType *string `json:"ParamTemplateType,omitnil" name:"ParamTemplateType"` // The array of alarm policy names, such as ["policy-uyoee9wg"]. If the `AlarmPolicyList` parameter is specified, this parameter is invalid. AlarmPolicyIdList []*string `json:"AlarmPolicyIdList,omitnil" name:"AlarmPolicyIdList"` // Whether to check the request without creating any instance. Valid values: `true`, `false` (default). After being submitted, the request will be checked to see if it is in correct format and has all required parameters with valid values. An error code is returned if the check failed, and `RequestId` is returned if the check succeeded. After a successful check, no instance will be created if this parameter is set to `true`, whereas an instance will be created and if it is set to `false`. DryRun *bool `json:"DryRun,omitnil" name:"DryRun"` // Instance engine type. Valid values: `InnoDB` (default), `RocksDB`. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` // The list of IPs for sources instances. Only one IP address can be assigned to a single source instance. If all IPs are used up, the system will automatically assign IPs to the remaining source instances that do not have one. Vips []*string `json:"Vips,omitnil" name:"Vips"` }
Predefined struct for user
type CreateDBInstanceResponse ¶
type CreateDBInstanceResponse struct { *tchttp.BaseResponse Response *CreateDBInstanceResponseParams `json:"Response"` }
func NewCreateDBInstanceResponse ¶
func NewCreateDBInstanceResponse() (response *CreateDBInstanceResponse)
func (*CreateDBInstanceResponse) FromJsonString ¶
func (r *CreateDBInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDBInstanceResponse) ToJsonString ¶
func (r *CreateDBInstanceResponse) ToJsonString() string
type CreateDBInstanceResponseParams ¶
type CreateDBInstanceResponseParams struct { // Billing sub-order ID DealIds []*string `json:"DealIds,omitnil" name:"DealIds"` // List of instance IDs InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateDatabaseRequest ¶
type CreateDatabaseRequest struct { *tchttp.BaseRequest // Instance ID in the format of `cdb-c1nl9rpv`, which is the same as the one displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` DBName *string `json:"DBName,omitnil" name:"DBName"` // Character set. Valid values: `utf8`, `gbk`, `latin1`, `utf8mb4`. CharacterSetName *string `json:"CharacterSetName,omitnil" name:"CharacterSetName"` }
func NewCreateDatabaseRequest ¶
func NewCreateDatabaseRequest() (request *CreateDatabaseRequest)
func (*CreateDatabaseRequest) FromJsonString ¶
func (r *CreateDatabaseRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDatabaseRequest) ToJsonString ¶
func (r *CreateDatabaseRequest) ToJsonString() string
type CreateDatabaseRequestParams ¶
type CreateDatabaseRequestParams struct { // Instance ID in the format of `cdb-c1nl9rpv`, which is the same as the one displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` DBName *string `json:"DBName,omitnil" name:"DBName"` // Character set. Valid values: `utf8`, `gbk`, `latin1`, `utf8mb4`. CharacterSetName *string `json:"CharacterSetName,omitnil" name:"CharacterSetName"` }
Predefined struct for user
type CreateDatabaseResponse ¶
type CreateDatabaseResponse struct { *tchttp.BaseResponse Response *CreateDatabaseResponseParams `json:"Response"` }
func NewCreateDatabaseResponse ¶
func NewCreateDatabaseResponse() (response *CreateDatabaseResponse)
func (*CreateDatabaseResponse) FromJsonString ¶
func (r *CreateDatabaseResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDatabaseResponse) ToJsonString ¶
func (r *CreateDatabaseResponse) ToJsonString() string
type CreateDatabaseResponseParams ¶
type CreateDatabaseResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateParamTemplateRequest ¶
type CreateParamTemplateRequest struct { *tchttp.BaseRequest // Parameter template name. Name *string `json:"Name,omitnil" name:"Name"` // Parameter template description. Description *string `json:"Description,omitnil" name:"Description"` // MySQL version number. EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Source parameter template ID. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` // List of parameters. ParamList []*Parameter `json:"ParamList,omitnil" name:"ParamList"` // Type of the default parameter template. Valid values: `HIGH_STABILITY` (high-stability template), `HIGH_PERFORMANCE` (high-performance template). TemplateType *string `json:"TemplateType,omitnil" name:"TemplateType"` // Instance engine type. Valid values: `InnoDB` (default), `RocksDB`. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` }
func NewCreateParamTemplateRequest ¶
func NewCreateParamTemplateRequest() (request *CreateParamTemplateRequest)
func (*CreateParamTemplateRequest) FromJsonString ¶
func (r *CreateParamTemplateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateParamTemplateRequest) ToJsonString ¶
func (r *CreateParamTemplateRequest) ToJsonString() string
type CreateParamTemplateRequestParams ¶
type CreateParamTemplateRequestParams struct { // Parameter template name. Name *string `json:"Name,omitnil" name:"Name"` // Parameter template description. Description *string `json:"Description,omitnil" name:"Description"` // MySQL version number. EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Source parameter template ID. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` // List of parameters. ParamList []*Parameter `json:"ParamList,omitnil" name:"ParamList"` // Type of the default parameter template. Valid values: `HIGH_STABILITY` (high-stability template), `HIGH_PERFORMANCE` (high-performance template). TemplateType *string `json:"TemplateType,omitnil" name:"TemplateType"` // Instance engine type. Valid values: `InnoDB` (default), `RocksDB`. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` }
Predefined struct for user
type CreateParamTemplateResponse ¶
type CreateParamTemplateResponse struct { *tchttp.BaseResponse Response *CreateParamTemplateResponseParams `json:"Response"` }
func NewCreateParamTemplateResponse ¶
func NewCreateParamTemplateResponse() (response *CreateParamTemplateResponse)
func (*CreateParamTemplateResponse) FromJsonString ¶
func (r *CreateParamTemplateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateParamTemplateResponse) ToJsonString ¶
func (r *CreateParamTemplateResponse) ToJsonString() string
type CreateParamTemplateResponseParams ¶
type CreateParamTemplateResponseParams struct { // Parameter template ID. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateRoInstanceIpRequest ¶
type CreateRoInstanceIpRequest struct { *tchttp.BaseRequest // Read-only instance ID in the format of "cdbro-3i70uj0k". Its value is the same as the read-only instance ID in the TencentDB Console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Subnet descriptor, such as "subnet-1typ0s7d". UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // VPC descriptor, such as "vpc-a23yt67j". If this field is passed in, `UniqSubnetId` will be required. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` }
func NewCreateRoInstanceIpRequest ¶
func NewCreateRoInstanceIpRequest() (request *CreateRoInstanceIpRequest)
func (*CreateRoInstanceIpRequest) FromJsonString ¶
func (r *CreateRoInstanceIpRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateRoInstanceIpRequest) ToJsonString ¶
func (r *CreateRoInstanceIpRequest) ToJsonString() string
type CreateRoInstanceIpRequestParams ¶
type CreateRoInstanceIpRequestParams struct { // Read-only instance ID in the format of "cdbro-3i70uj0k". Its value is the same as the read-only instance ID in the TencentDB Console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Subnet descriptor, such as "subnet-1typ0s7d". UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // VPC descriptor, such as "vpc-a23yt67j". If this field is passed in, `UniqSubnetId` will be required. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` }
Predefined struct for user
type CreateRoInstanceIpResponse ¶
type CreateRoInstanceIpResponse struct { *tchttp.BaseResponse Response *CreateRoInstanceIpResponseParams `json:"Response"` }
func NewCreateRoInstanceIpResponse ¶
func NewCreateRoInstanceIpResponse() (response *CreateRoInstanceIpResponse)
func (*CreateRoInstanceIpResponse) FromJsonString ¶
func (r *CreateRoInstanceIpResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateRoInstanceIpResponse) ToJsonString ¶
func (r *CreateRoInstanceIpResponse) ToJsonString() string
type CreateRoInstanceIpResponseParams ¶
type CreateRoInstanceIpResponseParams struct { // VPC ID of the read-only instance. RoVpcId *int64 `json:"RoVpcId,omitnil" name:"RoVpcId"` // Subnet ID of the read-only instance. RoSubnetId *int64 `json:"RoSubnetId,omitnil" name:"RoSubnetId"` // Private IP address of the read-only instance. RoVip *string `json:"RoVip,omitnil" name:"RoVip"` // Private port number of the read-only instance. RoVport *int64 `json:"RoVport,omitnil" name:"RoVport"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CustomConfig ¶
type CustomConfig struct { // Device // Note: this field may return `null`, indicating that no valid value can be found. Device *string `json:"Device,omitnil" name:"Device"` // Type // Note: this field may return `null`, indicating that no valid value can be found. Type *string `json:"Type,omitnil" name:"Type"` // Device type // Note: this field may return `null`, indicating that no valid value can be found. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // Memory // Note: this field may return `null`, indicating that no valid value can be found. Memory *uint64 `json:"Memory,omitnil" name:"Memory"` // Number of CPU cores // Note: this field may return `null`, indicating that no valid value can be found. Cpu *uint64 `json:"Cpu,omitnil" name:"Cpu"` }
type DBSwitchInfo ¶
type DBSwitchInfo struct { // Switch time in the format of yyyy-MM-dd HH:mm:ss, such as 2017-09-03 01:34:31 SwitchTime *string `json:"SwitchTime,omitnil" name:"SwitchTime"` // Switch type. Value range: TRANSFER (data migration), MASTER2SLAVE (primary/secondary switch), RECOVERY (primary/secondary recovery) SwitchType *string `json:"SwitchType,omitnil" name:"SwitchType"` }
type DatabasePrivilege ¶
type DeleteAccountsRequest ¶
type DeleteAccountsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // TencentDB account. Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` }
func NewDeleteAccountsRequest ¶
func NewDeleteAccountsRequest() (request *DeleteAccountsRequest)
func (*DeleteAccountsRequest) FromJsonString ¶
func (r *DeleteAccountsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAccountsRequest) ToJsonString ¶
func (r *DeleteAccountsRequest) ToJsonString() string
type DeleteAccountsRequestParams ¶
type DeleteAccountsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // TencentDB account. Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` }
Predefined struct for user
type DeleteAccountsResponse ¶
type DeleteAccountsResponse struct { *tchttp.BaseResponse Response *DeleteAccountsResponseParams `json:"Response"` }
func NewDeleteAccountsResponse ¶
func NewDeleteAccountsResponse() (response *DeleteAccountsResponse)
func (*DeleteAccountsResponse) FromJsonString ¶
func (r *DeleteAccountsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAccountsResponse) ToJsonString ¶
func (r *DeleteAccountsResponse) ToJsonString() string
type DeleteAccountsResponseParams ¶
type DeleteAccountsResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeleteBackupRequest ¶
type DeleteBackupRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Backup task ID, which is the task ID returned by the [TencentDB instance backup creating API](https://intl.cloud.tencent.com/document/api/236/15844?from_cn_redirect=1). BackupId *int64 `json:"BackupId,omitnil" name:"BackupId"` }
func NewDeleteBackupRequest ¶
func NewDeleteBackupRequest() (request *DeleteBackupRequest)
func (*DeleteBackupRequest) FromJsonString ¶
func (r *DeleteBackupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteBackupRequest) ToJsonString ¶
func (r *DeleteBackupRequest) ToJsonString() string
type DeleteBackupRequestParams ¶
type DeleteBackupRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Backup task ID, which is the task ID returned by the [TencentDB instance backup creating API](https://intl.cloud.tencent.com/document/api/236/15844?from_cn_redirect=1). BackupId *int64 `json:"BackupId,omitnil" name:"BackupId"` }
Predefined struct for user
type DeleteBackupResponse ¶
type DeleteBackupResponse struct { *tchttp.BaseResponse Response *DeleteBackupResponseParams `json:"Response"` }
func NewDeleteBackupResponse ¶
func NewDeleteBackupResponse() (response *DeleteBackupResponse)
func (*DeleteBackupResponse) FromJsonString ¶
func (r *DeleteBackupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteBackupResponse) ToJsonString ¶
func (r *DeleteBackupResponse) ToJsonString() string
type DeleteBackupResponseParams ¶
type DeleteBackupResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeleteParamTemplateRequest ¶
type DeleteParamTemplateRequest struct { *tchttp.BaseRequest // Parameter template ID. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` }
func NewDeleteParamTemplateRequest ¶
func NewDeleteParamTemplateRequest() (request *DeleteParamTemplateRequest)
func (*DeleteParamTemplateRequest) FromJsonString ¶
func (r *DeleteParamTemplateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteParamTemplateRequest) ToJsonString ¶
func (r *DeleteParamTemplateRequest) ToJsonString() string
type DeleteParamTemplateRequestParams ¶
type DeleteParamTemplateRequestParams struct { // Parameter template ID. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` }
Predefined struct for user
type DeleteParamTemplateResponse ¶
type DeleteParamTemplateResponse struct { *tchttp.BaseResponse Response *DeleteParamTemplateResponseParams `json:"Response"` }
func NewDeleteParamTemplateResponse ¶
func NewDeleteParamTemplateResponse() (response *DeleteParamTemplateResponse)
func (*DeleteParamTemplateResponse) FromJsonString ¶
func (r *DeleteParamTemplateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteParamTemplateResponse) ToJsonString ¶
func (r *DeleteParamTemplateResponse) ToJsonString() string
type DeleteParamTemplateResponseParams ¶
type DeleteParamTemplateResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeleteTimeWindowRequest ¶
type DeleteTimeWindowRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDeleteTimeWindowRequest ¶
func NewDeleteTimeWindowRequest() (request *DeleteTimeWindowRequest)
func (*DeleteTimeWindowRequest) FromJsonString ¶
func (r *DeleteTimeWindowRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteTimeWindowRequest) ToJsonString ¶
func (r *DeleteTimeWindowRequest) ToJsonString() string
type DeleteTimeWindowRequestParams ¶
type DeleteTimeWindowRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DeleteTimeWindowResponse ¶
type DeleteTimeWindowResponse struct { *tchttp.BaseResponse Response *DeleteTimeWindowResponseParams `json:"Response"` }
func NewDeleteTimeWindowResponse ¶
func NewDeleteTimeWindowResponse() (response *DeleteTimeWindowResponse)
func (*DeleteTimeWindowResponse) FromJsonString ¶
func (r *DeleteTimeWindowResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteTimeWindowResponse) ToJsonString ¶
func (r *DeleteTimeWindowResponse) ToJsonString() string
type DeleteTimeWindowResponseParams ¶
type DeleteTimeWindowResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeAccountPrivilegesRequest ¶
type DescribeAccountPrivilegesRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Database user account. User *string `json:"User,omitnil" name:"User"` // Database account domain name. Host *string `json:"Host,omitnil" name:"Host"` }
func NewDescribeAccountPrivilegesRequest ¶
func NewDescribeAccountPrivilegesRequest() (request *DescribeAccountPrivilegesRequest)
func (*DescribeAccountPrivilegesRequest) FromJsonString ¶
func (r *DescribeAccountPrivilegesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountPrivilegesRequest) ToJsonString ¶
func (r *DescribeAccountPrivilegesRequest) ToJsonString() string
type DescribeAccountPrivilegesRequestParams ¶
type DescribeAccountPrivilegesRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Database user account. User *string `json:"User,omitnil" name:"User"` // Database account domain name. Host *string `json:"Host,omitnil" name:"Host"` }
Predefined struct for user
type DescribeAccountPrivilegesResponse ¶
type DescribeAccountPrivilegesResponse struct { *tchttp.BaseResponse Response *DescribeAccountPrivilegesResponseParams `json:"Response"` }
func NewDescribeAccountPrivilegesResponse ¶
func NewDescribeAccountPrivilegesResponse() (response *DescribeAccountPrivilegesResponse)
func (*DescribeAccountPrivilegesResponse) FromJsonString ¶
func (r *DescribeAccountPrivilegesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountPrivilegesResponse) ToJsonString ¶
func (r *DescribeAccountPrivilegesResponse) ToJsonString() string
type DescribeAccountPrivilegesResponseParams ¶
type DescribeAccountPrivilegesResponseParams struct { // Array of global permissions. GlobalPrivileges []*string `json:"GlobalPrivileges,omitnil" name:"GlobalPrivileges"` // Array of database permissions. DatabasePrivileges []*DatabasePrivilege `json:"DatabasePrivileges,omitnil" name:"DatabasePrivileges"` // Array of table permissions in the database. TablePrivileges []*TablePrivilege `json:"TablePrivileges,omitnil" name:"TablePrivileges"` // Array of column permissions in the table. ColumnPrivileges []*ColumnPrivilege `json:"ColumnPrivileges,omitnil" name:"ColumnPrivileges"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeAccountsRequest ¶
type DescribeAccountsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Record offset. Default value: `0`. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Value range: 1-100. Default value: `20`. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Regex for matching account names, which complies with the rules at MySQL's official website AccountRegexp *string `json:"AccountRegexp,omitnil" name:"AccountRegexp"` }
func NewDescribeAccountsRequest ¶
func NewDescribeAccountsRequest() (request *DescribeAccountsRequest)
func (*DescribeAccountsRequest) FromJsonString ¶
func (r *DescribeAccountsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountsRequest) ToJsonString ¶
func (r *DescribeAccountsRequest) ToJsonString() string
type DescribeAccountsRequestParams ¶
type DescribeAccountsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Record offset. Default value: `0`. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Value range: 1-100. Default value: `20`. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Regex for matching account names, which complies with the rules at MySQL's official website AccountRegexp *string `json:"AccountRegexp,omitnil" name:"AccountRegexp"` }
Predefined struct for user
type DescribeAccountsResponse ¶
type DescribeAccountsResponse struct { *tchttp.BaseResponse Response *DescribeAccountsResponseParams `json:"Response"` }
func NewDescribeAccountsResponse ¶
func NewDescribeAccountsResponse() (response *DescribeAccountsResponse)
func (*DescribeAccountsResponse) FromJsonString ¶
func (r *DescribeAccountsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountsResponse) ToJsonString ¶
func (r *DescribeAccountsResponse) ToJsonString() string
type DescribeAccountsResponseParams ¶
type DescribeAccountsResponseParams struct { // Number of eligible accounts TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Details of eligible accounts Items []*AccountInfo `json:"Items,omitnil" name:"Items"` // The maximum number of instance connections MaxUserConnections *int64 `json:"MaxUserConnections,omitnil" name:"MaxUserConnections"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeAsyncRequestInfoRequest ¶
type DescribeAsyncRequestInfoRequest struct { *tchttp.BaseRequest // Async task request ID. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` }
func NewDescribeAsyncRequestInfoRequest ¶
func NewDescribeAsyncRequestInfoRequest() (request *DescribeAsyncRequestInfoRequest)
func (*DescribeAsyncRequestInfoRequest) FromJsonString ¶
func (r *DescribeAsyncRequestInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAsyncRequestInfoRequest) ToJsonString ¶
func (r *DescribeAsyncRequestInfoRequest) ToJsonString() string
type DescribeAsyncRequestInfoRequestParams ¶
type DescribeAsyncRequestInfoRequestParams struct { // Async task request ID. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` }
Predefined struct for user
type DescribeAsyncRequestInfoResponse ¶
type DescribeAsyncRequestInfoResponse struct { *tchttp.BaseResponse Response *DescribeAsyncRequestInfoResponseParams `json:"Response"` }
func NewDescribeAsyncRequestInfoResponse ¶
func NewDescribeAsyncRequestInfoResponse() (response *DescribeAsyncRequestInfoResponse)
func (*DescribeAsyncRequestInfoResponse) FromJsonString ¶
func (r *DescribeAsyncRequestInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAsyncRequestInfoResponse) ToJsonString ¶
func (r *DescribeAsyncRequestInfoResponse) ToJsonString() string
type DescribeAsyncRequestInfoResponseParams ¶
type DescribeAsyncRequestInfoResponseParams struct { // Task execution result. Valid values: INITIAL, RUNNING, SUCCESS, FAILED, KILLED, REMOVED, PAUSED. // Note: This field may return null, indicating that no valid values can be obtained. Status *string `json:"Status,omitnil" name:"Status"` // Task execution information. // Note: This field may return null, indicating that no valid values can be obtained. Info *string `json:"Info,omitnil" name:"Info"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeAuditLogsRequest ¶
type DescribeAuditLogsRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start time StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // End time EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // The pagination parameter, which specifies the number of entries per page. Maximum value: 100 (default). Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Pagination offset Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Sorting order Valid values: `ASC (ascending), `DESC` (descending). Order *string `json:"Order,omitnil" name:"Order"` // Sorting field Valid values: // `timestamp`: Timestamp, // `affectRows`: Number of affected rows, // `execTime`: Execution time. OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // Filter. Multiple values are in `AND` relationship. LogFilter []*InstanceAuditLogFilters `json:"LogFilter,omitnil" name:"LogFilter"` }
func NewDescribeAuditLogsRequest ¶
func NewDescribeAuditLogsRequest() (request *DescribeAuditLogsRequest)
func (*DescribeAuditLogsRequest) FromJsonString ¶
func (r *DescribeAuditLogsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditLogsRequest) ToJsonString ¶
func (r *DescribeAuditLogsRequest) ToJsonString() string
type DescribeAuditLogsRequestParams ¶
type DescribeAuditLogsRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start time StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // End time EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // The pagination parameter, which specifies the number of entries per page. Maximum value: 100 (default). Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Pagination offset Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Sorting order Valid values: `ASC (ascending), `DESC` (descending). Order *string `json:"Order,omitnil" name:"Order"` // Sorting field Valid values: // `timestamp`: Timestamp, // `affectRows`: Number of affected rows, // `execTime`: Execution time. OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // Filter. Multiple values are in `AND` relationship. LogFilter []*InstanceAuditLogFilters `json:"LogFilter,omitnil" name:"LogFilter"` }
Predefined struct for user
type DescribeAuditLogsResponse ¶
type DescribeAuditLogsResponse struct { *tchttp.BaseResponse Response *DescribeAuditLogsResponseParams `json:"Response"` }
func NewDescribeAuditLogsResponse ¶
func NewDescribeAuditLogsResponse() (response *DescribeAuditLogsResponse)
func (*DescribeAuditLogsResponse) FromJsonString ¶
func (r *DescribeAuditLogsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditLogsResponse) ToJsonString ¶
func (r *DescribeAuditLogsResponse) ToJsonString() string
type DescribeAuditLogsResponseParams ¶
type DescribeAuditLogsResponseParams struct { // Number of eligible audit logs TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Audit log details // Note: u200dThis field may return null, indicating that no valid values can be obtained. Items []*AuditLog `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeAuditPoliciesRequest ¶
type DescribeAuditPoliciesRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Audit policy ID. PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // Audit policy name. Fuzzy match query is supported. PolicyName *string `json:"PolicyName,omitnil" name:"PolicyName"` // Number of entries per page. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Pagination offset Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Audit rule ID, which can be used to query its associated audit policies. // Note: At least one of the parameters (“RuleId”, “PolicyId”, PolicyId”, or “PolicyName”) must be passed in. RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // Instance name InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` }
func NewDescribeAuditPoliciesRequest ¶
func NewDescribeAuditPoliciesRequest() (request *DescribeAuditPoliciesRequest)
func (*DescribeAuditPoliciesRequest) FromJsonString ¶
func (r *DescribeAuditPoliciesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditPoliciesRequest) ToJsonString ¶
func (r *DescribeAuditPoliciesRequest) ToJsonString() string
type DescribeAuditPoliciesRequestParams ¶
type DescribeAuditPoliciesRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Audit policy ID. PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // Audit policy name. Fuzzy match query is supported. PolicyName *string `json:"PolicyName,omitnil" name:"PolicyName"` // Number of entries per page. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Pagination offset Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Audit rule ID, which can be used to query its associated audit policies. // Note: At least one of the parameters (“RuleId”, “PolicyId”, PolicyId”, or “PolicyName”) must be passed in. RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // Instance name InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` }
Predefined struct for user
type DescribeAuditPoliciesResponse ¶
type DescribeAuditPoliciesResponse struct { *tchttp.BaseResponse Response *DescribeAuditPoliciesResponseParams `json:"Response"` }
func NewDescribeAuditPoliciesResponse ¶
func NewDescribeAuditPoliciesResponse() (response *DescribeAuditPoliciesResponse)
func (*DescribeAuditPoliciesResponse) FromJsonString ¶
func (r *DescribeAuditPoliciesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditPoliciesResponse) ToJsonString ¶
func (r *DescribeAuditPoliciesResponse) ToJsonString() string
type DescribeAuditPoliciesResponseParams ¶
type DescribeAuditPoliciesResponseParams struct { // Number of eligible audit policies TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Audit policy details // Note: This field may return `null`, indicating that no valid value was found. Items []*AuditPolicy `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeAuditRulesRequest ¶
type DescribeAuditRulesRequest struct { *tchttp.BaseRequest // Audit rule ID. RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // Audit rule name. Fuzzy match query is supported. RuleName *string `json:"RuleName,omitnil" name:"RuleName"` // Number of entries per page. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Pagination offset. Default value: 0 Offset *int64 `json:"Offset,omitnil" name:"Offset"` }
func NewDescribeAuditRulesRequest ¶
func NewDescribeAuditRulesRequest() (request *DescribeAuditRulesRequest)
func (*DescribeAuditRulesRequest) FromJsonString ¶
func (r *DescribeAuditRulesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditRulesRequest) ToJsonString ¶
func (r *DescribeAuditRulesRequest) ToJsonString() string
type DescribeAuditRulesRequestParams ¶
type DescribeAuditRulesRequestParams struct { // Audit rule ID. RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // Audit rule name. Fuzzy match query is supported. RuleName *string `json:"RuleName,omitnil" name:"RuleName"` // Number of entries per page. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Pagination offset. Default value: 0 Offset *int64 `json:"Offset,omitnil" name:"Offset"` }
Predefined struct for user
type DescribeAuditRulesResponse ¶
type DescribeAuditRulesResponse struct { *tchttp.BaseResponse Response *DescribeAuditRulesResponseParams `json:"Response"` }
func NewDescribeAuditRulesResponse ¶
func NewDescribeAuditRulesResponse() (response *DescribeAuditRulesResponse)
func (*DescribeAuditRulesResponse) FromJsonString ¶
func (r *DescribeAuditRulesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditRulesResponse) ToJsonString ¶
func (r *DescribeAuditRulesResponse) ToJsonString() string
type DescribeAuditRulesResponseParams ¶
type DescribeAuditRulesResponseParams struct { // Number of eligible audit rules TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Audit rule details // Note: This field may return `null`, indicating that no valid value was found. Items []*AuditRule `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBackupConfigRequest ¶
type DescribeBackupConfigRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeBackupConfigRequest ¶
func NewDescribeBackupConfigRequest() (request *DescribeBackupConfigRequest)
func (*DescribeBackupConfigRequest) FromJsonString ¶
func (r *DescribeBackupConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupConfigRequest) ToJsonString ¶
func (r *DescribeBackupConfigRequest) ToJsonString() string
type DescribeBackupConfigRequestParams ¶
type DescribeBackupConfigRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeBackupConfigResponse ¶
type DescribeBackupConfigResponse struct { *tchttp.BaseResponse Response *DescribeBackupConfigResponseParams `json:"Response"` }
func NewDescribeBackupConfigResponse ¶
func NewDescribeBackupConfigResponse() (response *DescribeBackupConfigResponse)
func (*DescribeBackupConfigResponse) FromJsonString ¶
func (r *DescribeBackupConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupConfigResponse) ToJsonString ¶
func (r *DescribeBackupConfigResponse) ToJsonString() string
type DescribeBackupConfigResponseParams ¶
type DescribeBackupConfigResponseParams struct { // Earliest start time point of automatic backup, such as 2 (for 2:00 AM). (This field has been disused. You are recommended to use the `BackupTimeWindow` field) StartTimeMin *int64 `json:"StartTimeMin,omitnil" name:"StartTimeMin"` // Latest start time point of automatic backup, such as 6 (for 6:00 AM). (This field has been disused. You are recommended to use the `BackupTimeWindow` field) StartTimeMax *int64 `json:"StartTimeMax,omitnil" name:"StartTimeMax"` // Backup file retention period in days. BackupExpireDays *int64 `json:"BackupExpireDays,omitnil" name:"BackupExpireDays"` // Backup mode. Value range: physical, logical BackupMethod *string `json:"BackupMethod,omitnil" name:"BackupMethod"` // Binlog file retention period in days. BinlogExpireDays *int64 `json:"BinlogExpireDays,omitnil" name:"BinlogExpireDays"` // Time window for automatic instance backup. BackupTimeWindow *CommonTimeWindow `json:"BackupTimeWindow,omitnil" name:"BackupTimeWindow"` // Switch for archive backup retention. Valid values: `off` (disable), `on` (enable). Default value:`off`. EnableBackupPeriodSave *string `json:"EnableBackupPeriodSave,omitnil" name:"EnableBackupPeriodSave"` // Maximum days of archive backup retention. Valid range: 90-3650. Default value: 1080. BackupPeriodSaveDays *int64 `json:"BackupPeriodSaveDays,omitnil" name:"BackupPeriodSaveDays"` // Archive backup retention period. Valid values: `weekly` (a week), `monthly` (a month), `quarterly` (a quarter), `yearly` (a year). Default value: `monthly`. BackupPeriodSaveInterval *string `json:"BackupPeriodSaveInterval,omitnil" name:"BackupPeriodSaveInterval"` // Number of archive backups. Minimum value: `1`, Maximum value: Number of non-archive backups in archive backup retention period. Default value: `1`. BackupPeriodSaveCount *int64 `json:"BackupPeriodSaveCount,omitnil" name:"BackupPeriodSaveCount"` // The start time in the format: yyyy-mm-dd HH:MM:SS, which is used to enable archive backup retention policy. StartBackupPeriodSaveDate *string `json:"StartBackupPeriodSaveDate,omitnil" name:"StartBackupPeriodSaveDate"` // Whether to enable the archive backup. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBackupArchive *string `json:"EnableBackupArchive,omitnil" name:"EnableBackupArchive"` // The period (in days) of how long a data backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires. BackupArchiveDays *int64 `json:"BackupArchiveDays,omitnil" name:"BackupArchiveDays"` // Whether to enable the archive backup of logs. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBinlogArchive *string `json:"EnableBinlogArchive,omitnil" name:"EnableBinlogArchive"` // The period (in days) of how long a log backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires. BinlogArchiveDays *int64 `json:"BinlogArchiveDays,omitnil" name:"BinlogArchiveDays"` // Whether to enable the standard storage policy for data backup. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBackupStandby *string `json:"EnableBackupStandby,omitnil" name:"EnableBackupStandby"` // The period (in days) of how long a data backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires. If the archive backup is enabled, this period cannot be greater than archive backup period. BackupStandbyDays *int64 `json:"BackupStandbyDays,omitnil" name:"BackupStandbyDays"` // Whether to enable the standard storage policy for log backup. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBinlogStandby *string `json:"EnableBinlogStandby,omitnil" name:"EnableBinlogStandby"` // The period (in days) of how long a log backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires. If the archive backup is enabled, this period cannot be greater than archive backup period. BinlogStandbyDays *int64 `json:"BinlogStandbyDays,omitnil" name:"BinlogStandbyDays"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBackupDecryptionKeyRequest ¶
type DescribeBackupDecryptionKeyRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-XXXX, which is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Instance backup ID, which can be obtained by the `DescribeBackups` API. BackupId *int64 `json:"BackupId,omitnil" name:"BackupId"` }
func NewDescribeBackupDecryptionKeyRequest ¶
func NewDescribeBackupDecryptionKeyRequest() (request *DescribeBackupDecryptionKeyRequest)
func (*DescribeBackupDecryptionKeyRequest) FromJsonString ¶
func (r *DescribeBackupDecryptionKeyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupDecryptionKeyRequest) ToJsonString ¶
func (r *DescribeBackupDecryptionKeyRequest) ToJsonString() string
type DescribeBackupDecryptionKeyRequestParams ¶
type DescribeBackupDecryptionKeyRequestParams struct { // Instance ID in the format of cdb-XXXX, which is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Instance backup ID, which can be obtained by the `DescribeBackups` API. BackupId *int64 `json:"BackupId,omitnil" name:"BackupId"` }
Predefined struct for user
type DescribeBackupDecryptionKeyResponse ¶
type DescribeBackupDecryptionKeyResponse struct { *tchttp.BaseResponse Response *DescribeBackupDecryptionKeyResponseParams `json:"Response"` }
func NewDescribeBackupDecryptionKeyResponse ¶
func NewDescribeBackupDecryptionKeyResponse() (response *DescribeBackupDecryptionKeyResponse)
func (*DescribeBackupDecryptionKeyResponse) FromJsonString ¶
func (r *DescribeBackupDecryptionKeyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupDecryptionKeyResponse) ToJsonString ¶
func (r *DescribeBackupDecryptionKeyResponse) ToJsonString() string
type DescribeBackupDecryptionKeyResponseParams ¶
type DescribeBackupDecryptionKeyResponseParams struct { // The decryption key of a backup file DecryptionKey *string `json:"DecryptionKey,omitnil" name:"DecryptionKey"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBackupDownloadRestrictionRequest ¶
type DescribeBackupDownloadRestrictionRequest struct {
*tchttp.BaseRequest
}
func NewDescribeBackupDownloadRestrictionRequest ¶
func NewDescribeBackupDownloadRestrictionRequest() (request *DescribeBackupDownloadRestrictionRequest)
func (*DescribeBackupDownloadRestrictionRequest) FromJsonString ¶
func (r *DescribeBackupDownloadRestrictionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupDownloadRestrictionRequest) ToJsonString ¶
func (r *DescribeBackupDownloadRestrictionRequest) ToJsonString() string
type DescribeBackupDownloadRestrictionRequestParams ¶
type DescribeBackupDownloadRestrictionRequestParams struct { }
Predefined struct for user
type DescribeBackupDownloadRestrictionResponse ¶
type DescribeBackupDownloadRestrictionResponse struct { *tchttp.BaseResponse Response *DescribeBackupDownloadRestrictionResponseParams `json:"Response"` }
func NewDescribeBackupDownloadRestrictionResponse ¶
func NewDescribeBackupDownloadRestrictionResponse() (response *DescribeBackupDownloadRestrictionResponse)
func (*DescribeBackupDownloadRestrictionResponse) FromJsonString ¶
func (r *DescribeBackupDownloadRestrictionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupDownloadRestrictionResponse) ToJsonString ¶
func (r *DescribeBackupDownloadRestrictionResponse) ToJsonString() string
type DescribeBackupDownloadRestrictionResponseParams ¶
type DescribeBackupDownloadRestrictionResponseParams struct { // Valid values: `NoLimit` (backups can be downloaded over both private and public networks with any IPs), `LimitOnlyIntranet` (backups can be downloaded over the private network with any private IPs), `Customize` (backups can be downloaded over specified VPCs with specified IPs). The `LimitVpc` and `LimitIp` parameters are valid only when this parameter is set to `Customize`. LimitType *string `json:"LimitType,omitnil" name:"LimitType"` // Valid value: `In` (backups can only be downloaded over the VPCs specified in `LimitVpc`). VpcComparisonSymbol *string `json:"VpcComparisonSymbol,omitnil" name:"VpcComparisonSymbol"` // Valid values: `In` (backups can only be downloaded with the IPs specified in `LimitIp`), `NotIn` (backups cannot be downloaded with the IPs specified in `LimitIp`). IpComparisonSymbol *string `json:"IpComparisonSymbol,omitnil" name:"IpComparisonSymbol"` // VPCs used to restrict backup download. LimitVpc []*BackupLimitVpcItem `json:"LimitVpc,omitnil" name:"LimitVpc"` // IPs used to restrict backup download. LimitIp []*string `json:"LimitIp,omitnil" name:"LimitIp"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBackupEncryptionStatusRequest ¶
type DescribeBackupEncryptionStatusRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-XXXX, which is the same as that displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeBackupEncryptionStatusRequest ¶
func NewDescribeBackupEncryptionStatusRequest() (request *DescribeBackupEncryptionStatusRequest)
func (*DescribeBackupEncryptionStatusRequest) FromJsonString ¶
func (r *DescribeBackupEncryptionStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupEncryptionStatusRequest) ToJsonString ¶
func (r *DescribeBackupEncryptionStatusRequest) ToJsonString() string
type DescribeBackupEncryptionStatusRequestParams ¶
type DescribeBackupEncryptionStatusRequestParams struct { // Instance ID in the format of cdb-XXXX, which is the same as that displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeBackupEncryptionStatusResponse ¶
type DescribeBackupEncryptionStatusResponse struct { *tchttp.BaseResponse Response *DescribeBackupEncryptionStatusResponseParams `json:"Response"` }
func NewDescribeBackupEncryptionStatusResponse ¶
func NewDescribeBackupEncryptionStatusResponse() (response *DescribeBackupEncryptionStatusResponse)
func (*DescribeBackupEncryptionStatusResponse) FromJsonString ¶
func (r *DescribeBackupEncryptionStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupEncryptionStatusResponse) ToJsonString ¶
func (r *DescribeBackupEncryptionStatusResponse) ToJsonString() string
type DescribeBackupEncryptionStatusResponseParams ¶
type DescribeBackupEncryptionStatusResponseParams struct { // Whether the physical cold backup is enabled for the instance. Valid values: `on`, `off`. EncryptionStatus *string `json:"EncryptionStatus,omitnil" name:"EncryptionStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBackupOverviewRequest ¶
type DescribeBackupOverviewRequest struct { *tchttp.BaseRequest // TencentDB product type to be queried. Currently, only `mysql` is supported. Product *string `json:"Product,omitnil" name:"Product"` }
func NewDescribeBackupOverviewRequest ¶
func NewDescribeBackupOverviewRequest() (request *DescribeBackupOverviewRequest)
func (*DescribeBackupOverviewRequest) FromJsonString ¶
func (r *DescribeBackupOverviewRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupOverviewRequest) ToJsonString ¶
func (r *DescribeBackupOverviewRequest) ToJsonString() string
type DescribeBackupOverviewRequestParams ¶
type DescribeBackupOverviewRequestParams struct { // TencentDB product type to be queried. Currently, only `mysql` is supported. Product *string `json:"Product,omitnil" name:"Product"` }
Predefined struct for user
type DescribeBackupOverviewResponse ¶
type DescribeBackupOverviewResponse struct { *tchttp.BaseResponse Response *DescribeBackupOverviewResponseParams `json:"Response"` }
func NewDescribeBackupOverviewResponse ¶
func NewDescribeBackupOverviewResponse() (response *DescribeBackupOverviewResponse)
func (*DescribeBackupOverviewResponse) FromJsonString ¶
func (r *DescribeBackupOverviewResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupOverviewResponse) ToJsonString ¶
func (r *DescribeBackupOverviewResponse) ToJsonString() string
type DescribeBackupOverviewResponseParams ¶
type DescribeBackupOverviewResponseParams struct { // Total number of backups of a user in the current region (including data backups and log backups). BackupCount *int64 `json:"BackupCount,omitnil" name:"BackupCount"` // Total capacity of backups of a user in the current region. BackupVolume *int64 `json:"BackupVolume,omitnil" name:"BackupVolume"` // Paid capacity of backups of a user in the current region, i.e., capacity that exceeds the free tier. BillingVolume *int64 `json:"BillingVolume,omitnil" name:"BillingVolume"` // Backup capacity in the free tier of a user in the current region. FreeVolume *int64 `json:"FreeVolume,omitnil" name:"FreeVolume"` // Total capacity of backups of a user in the current region // Note: This field may return null, indicating that no valid value can be obtained. RemoteBackupVolume *int64 `json:"RemoteBackupVolume,omitnil" name:"RemoteBackupVolume"` // Archive backup capacity, which includes data backups and log backups. // Note: This field may return null, indicating that no valid value can be obtained. BackupArchiveVolume *int64 `json:"BackupArchiveVolume,omitnil" name:"BackupArchiveVolume"` // Backup capacity of standard storage, which includes data backups and log backups. // Note: This field may return null, indicating that no valid value can be obtained. BackupStandbyVolume *int64 `json:"BackupStandbyVolume,omitnil" name:"BackupStandbyVolume"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBackupSummariesRequest ¶
type DescribeBackupSummariesRequest struct { *tchttp.BaseRequest // TencentDB product type to be queried. Currently, only `mysql` is supported. Product *string `json:"Product,omitnil" name:"Product"` // Paginated query offset. Default value: `0`. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Maximum entries returned per page, which ranges from 1 to 100. Default value: `20`. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Sorting criterion. Valid values: `BackupVolume` (backup capacity), `DataBackupVolume` (data backup capacity), `BinlogBackupVolume` (log backup capacity), `AutoBackupVolume` (automatic backup capacity), `ManualBackupVolume` (manual backup capacity). Default value: `BackupVolume`. OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // Sorting order. Valid values: `ASC` (ascending), `DESC` (descending). Default value: `ASC`. OrderDirection *string `json:"OrderDirection,omitnil" name:"OrderDirection"` }
func NewDescribeBackupSummariesRequest ¶
func NewDescribeBackupSummariesRequest() (request *DescribeBackupSummariesRequest)
func (*DescribeBackupSummariesRequest) FromJsonString ¶
func (r *DescribeBackupSummariesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupSummariesRequest) ToJsonString ¶
func (r *DescribeBackupSummariesRequest) ToJsonString() string
type DescribeBackupSummariesRequestParams ¶
type DescribeBackupSummariesRequestParams struct { // TencentDB product type to be queried. Currently, only `mysql` is supported. Product *string `json:"Product,omitnil" name:"Product"` // Paginated query offset. Default value: `0`. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Maximum entries returned per page, which ranges from 1 to 100. Default value: `20`. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Sorting criterion. Valid values: `BackupVolume` (backup capacity), `DataBackupVolume` (data backup capacity), `BinlogBackupVolume` (log backup capacity), `AutoBackupVolume` (automatic backup capacity), `ManualBackupVolume` (manual backup capacity). Default value: `BackupVolume`. OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // Sorting order. Valid values: `ASC` (ascending), `DESC` (descending). Default value: `ASC`. OrderDirection *string `json:"OrderDirection,omitnil" name:"OrderDirection"` }
Predefined struct for user
type DescribeBackupSummariesResponse ¶
type DescribeBackupSummariesResponse struct { *tchttp.BaseResponse Response *DescribeBackupSummariesResponseParams `json:"Response"` }
func NewDescribeBackupSummariesResponse ¶
func NewDescribeBackupSummariesResponse() (response *DescribeBackupSummariesResponse)
func (*DescribeBackupSummariesResponse) FromJsonString ¶
func (r *DescribeBackupSummariesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupSummariesResponse) ToJsonString ¶
func (r *DescribeBackupSummariesResponse) ToJsonString() string
type DescribeBackupSummariesResponseParams ¶
type DescribeBackupSummariesResponseParams struct { // Statistical items of instance backup. Items []*BackupSummaryItem `json:"Items,omitnil" name:"Items"` // Total number of instance backups. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBackupsRequest ¶
type DescribeBackupsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Offset. Minimum value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeBackupsRequest ¶
func NewDescribeBackupsRequest() (request *DescribeBackupsRequest)
func (*DescribeBackupsRequest) FromJsonString ¶
func (r *DescribeBackupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupsRequest) ToJsonString ¶
func (r *DescribeBackupsRequest) ToJsonString() string
type DescribeBackupsRequestParams ¶
type DescribeBackupsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Offset. Minimum value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeBackupsResponse ¶
type DescribeBackupsResponse struct { *tchttp.BaseResponse Response *DescribeBackupsResponseParams `json:"Response"` }
func NewDescribeBackupsResponse ¶
func NewDescribeBackupsResponse() (response *DescribeBackupsResponse)
func (*DescribeBackupsResponse) FromJsonString ¶
func (r *DescribeBackupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupsResponse) ToJsonString ¶
func (r *DescribeBackupsResponse) ToJsonString() string
type DescribeBackupsResponseParams ¶
type DescribeBackupsResponseParams struct { // Number of eligible instances. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Details of eligible backups. Items []*BackupInfo `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBinlogBackupOverviewRequest ¶
type DescribeBinlogBackupOverviewRequest struct { *tchttp.BaseRequest // TencentDB product type to be queried. Currently, only `mysql` is supported. Product *string `json:"Product,omitnil" name:"Product"` }
func NewDescribeBinlogBackupOverviewRequest ¶
func NewDescribeBinlogBackupOverviewRequest() (request *DescribeBinlogBackupOverviewRequest)
func (*DescribeBinlogBackupOverviewRequest) FromJsonString ¶
func (r *DescribeBinlogBackupOverviewRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBinlogBackupOverviewRequest) ToJsonString ¶
func (r *DescribeBinlogBackupOverviewRequest) ToJsonString() string
type DescribeBinlogBackupOverviewRequestParams ¶
type DescribeBinlogBackupOverviewRequestParams struct { // TencentDB product type to be queried. Currently, only `mysql` is supported. Product *string `json:"Product,omitnil" name:"Product"` }
Predefined struct for user
type DescribeBinlogBackupOverviewResponse ¶
type DescribeBinlogBackupOverviewResponse struct { *tchttp.BaseResponse Response *DescribeBinlogBackupOverviewResponseParams `json:"Response"` }
func NewDescribeBinlogBackupOverviewResponse ¶
func NewDescribeBinlogBackupOverviewResponse() (response *DescribeBinlogBackupOverviewResponse)
func (*DescribeBinlogBackupOverviewResponse) FromJsonString ¶
func (r *DescribeBinlogBackupOverviewResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBinlogBackupOverviewResponse) ToJsonString ¶
func (r *DescribeBinlogBackupOverviewResponse) ToJsonString() string
type DescribeBinlogBackupOverviewResponseParams ¶
type DescribeBinlogBackupOverviewResponseParams struct { // Total capacity of log backups in bytes (including remote log backups) BinlogBackupVolume *int64 `json:"BinlogBackupVolume,omitnil" name:"BinlogBackupVolume"` // Total number of log backups (include remote log backups) BinlogBackupCount *int64 `json:"BinlogBackupCount,omitnil" name:"BinlogBackupCount"` // Capacity of remote log backups in bytes RemoteBinlogVolume *int64 `json:"RemoteBinlogVolume,omitnil" name:"RemoteBinlogVolume"` // Number of remote backups RemoteBinlogCount *int64 `json:"RemoteBinlogCount,omitnil" name:"RemoteBinlogCount"` // Capacity of archive log backups in bytes BinlogArchiveVolume *int64 `json:"BinlogArchiveVolume,omitnil" name:"BinlogArchiveVolume"` // Number of archived log backups BinlogArchiveCount *int64 `json:"BinlogArchiveCount,omitnil" name:"BinlogArchiveCount"` // Log backup capacity of standard storage in bytes BinlogStandbyVolume *int64 `json:"BinlogStandbyVolume,omitnil" name:"BinlogStandbyVolume"` // Number of log backups of standard storage BinlogStandbyCount *int64 `json:"BinlogStandbyCount,omitnil" name:"BinlogStandbyCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBinlogsRequest ¶
type DescribeBinlogsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Offset. Minimum value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // The earliest start time of binlog in the format of 2016-03-17 02:10:37. MinStartTime *string `json:"MinStartTime,omitnil" name:"MinStartTime"` // The latest start time of binlog in the format of 2016-03-17 02:10:37. MaxStartTime *string `json:"MaxStartTime,omitnil" name:"MaxStartTime"` }
func NewDescribeBinlogsRequest ¶
func NewDescribeBinlogsRequest() (request *DescribeBinlogsRequest)
func (*DescribeBinlogsRequest) FromJsonString ¶
func (r *DescribeBinlogsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBinlogsRequest) ToJsonString ¶
func (r *DescribeBinlogsRequest) ToJsonString() string
type DescribeBinlogsRequestParams ¶
type DescribeBinlogsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Offset. Minimum value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // The earliest start time of binlog in the format of 2016-03-17 02:10:37. MinStartTime *string `json:"MinStartTime,omitnil" name:"MinStartTime"` // The latest start time of binlog in the format of 2016-03-17 02:10:37. MaxStartTime *string `json:"MaxStartTime,omitnil" name:"MaxStartTime"` }
Predefined struct for user
type DescribeBinlogsResponse ¶
type DescribeBinlogsResponse struct { *tchttp.BaseResponse Response *DescribeBinlogsResponseParams `json:"Response"` }
func NewDescribeBinlogsResponse ¶
func NewDescribeBinlogsResponse() (response *DescribeBinlogsResponse)
func (*DescribeBinlogsResponse) FromJsonString ¶
func (r *DescribeBinlogsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBinlogsResponse) ToJsonString ¶
func (r *DescribeBinlogsResponse) ToJsonString() string
type DescribeBinlogsResponseParams ¶
type DescribeBinlogsResponseParams struct { // Number of eligible log files. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Number of eligible binlog files. Items []*BinlogInfo `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeCdbProxyInfoRequest ¶
type DescribeCdbProxyInfoRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` }
func NewDescribeCdbProxyInfoRequest ¶
func NewDescribeCdbProxyInfoRequest() (request *DescribeCdbProxyInfoRequest)
func (*DescribeCdbProxyInfoRequest) FromJsonString ¶
func (r *DescribeCdbProxyInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdbProxyInfoRequest) ToJsonString ¶
func (r *DescribeCdbProxyInfoRequest) ToJsonString() string
type DescribeCdbProxyInfoRequestParams ¶
type DescribeCdbProxyInfoRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` }
Predefined struct for user
type DescribeCdbProxyInfoResponse ¶
type DescribeCdbProxyInfoResponse struct { *tchttp.BaseResponse Response *DescribeCdbProxyInfoResponseParams `json:"Response"` }
func NewDescribeCdbProxyInfoResponse ¶
func NewDescribeCdbProxyInfoResponse() (response *DescribeCdbProxyInfoResponse)
func (*DescribeCdbProxyInfoResponse) FromJsonString ¶
func (r *DescribeCdbProxyInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdbProxyInfoResponse) ToJsonString ¶
func (r *DescribeCdbProxyInfoResponse) ToJsonString() string
type DescribeCdbProxyInfoResponseParams ¶
type DescribeCdbProxyInfoResponseParams struct { // Number of proxy groups Note: This field may return null, indicating that no valid values can be obtained. Count *uint64 `json:"Count,omitnil" name:"Count"` // Proxy group information Note: This field may return null, indicating that no valid values can be obtained. ProxyInfos []*ProxyGroupInfo `json:"ProxyInfos,omitnil" name:"ProxyInfos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeCdbZoneConfigRequest ¶
type DescribeCdbZoneConfigRequest struct {
*tchttp.BaseRequest
}
func NewDescribeCdbZoneConfigRequest ¶
func NewDescribeCdbZoneConfigRequest() (request *DescribeCdbZoneConfigRequest)
func (*DescribeCdbZoneConfigRequest) FromJsonString ¶
func (r *DescribeCdbZoneConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdbZoneConfigRequest) ToJsonString ¶
func (r *DescribeCdbZoneConfigRequest) ToJsonString() string
type DescribeCdbZoneConfigRequestParams ¶
type DescribeCdbZoneConfigRequestParams struct { }
Predefined struct for user
type DescribeCdbZoneConfigResponse ¶
type DescribeCdbZoneConfigResponse struct { *tchttp.BaseResponse Response *DescribeCdbZoneConfigResponseParams `json:"Response"` }
func NewDescribeCdbZoneConfigResponse ¶
func NewDescribeCdbZoneConfigResponse() (response *DescribeCdbZoneConfigResponse)
func (*DescribeCdbZoneConfigResponse) FromJsonString ¶
func (r *DescribeCdbZoneConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdbZoneConfigResponse) ToJsonString ¶
func (r *DescribeCdbZoneConfigResponse) ToJsonString() string
type DescribeCdbZoneConfigResponseParams ¶
type DescribeCdbZoneConfigResponseParams struct { // List of purchasable specification and region information DataResult *CdbZoneDataResult `json:"DataResult,omitnil" name:"DataResult"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeCloneListRequest ¶
type DescribeCloneListRequest struct { *tchttp.BaseRequest // ID of the original instance. This parameter is used to query the clone task list of a specific original instance. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Paginated query offset. Default value: `0`. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results per page. Default value: `20`. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeCloneListRequest ¶
func NewDescribeCloneListRequest() (request *DescribeCloneListRequest)
func (*DescribeCloneListRequest) FromJsonString ¶
func (r *DescribeCloneListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCloneListRequest) ToJsonString ¶
func (r *DescribeCloneListRequest) ToJsonString() string
type DescribeCloneListRequestParams ¶
type DescribeCloneListRequestParams struct { // ID of the original instance. This parameter is used to query the clone task list of a specific original instance. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Paginated query offset. Default value: `0`. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results per page. Default value: `20`. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeCloneListResponse ¶
type DescribeCloneListResponse struct { *tchttp.BaseResponse Response *DescribeCloneListResponseParams `json:"Response"` }
func NewDescribeCloneListResponse ¶
func NewDescribeCloneListResponse() (response *DescribeCloneListResponse)
func (*DescribeCloneListResponse) FromJsonString ¶
func (r *DescribeCloneListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCloneListResponse) ToJsonString ¶
func (r *DescribeCloneListResponse) ToJsonString() string
type DescribeCloneListResponseParams ¶
type DescribeCloneListResponseParams struct { // The number of results which meet the conditions TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Clone task list Items []*CloneItem `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeCpuExpandStrategyRequest ¶
type DescribeCpuExpandStrategyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeCpuExpandStrategyRequest ¶
func NewDescribeCpuExpandStrategyRequest() (request *DescribeCpuExpandStrategyRequest)
func (*DescribeCpuExpandStrategyRequest) FromJsonString ¶
func (r *DescribeCpuExpandStrategyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCpuExpandStrategyRequest) ToJsonString ¶
func (r *DescribeCpuExpandStrategyRequest) ToJsonString() string
type DescribeCpuExpandStrategyRequestParams ¶
type DescribeCpuExpandStrategyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeCpuExpandStrategyResponse ¶
type DescribeCpuExpandStrategyResponse struct { *tchttp.BaseResponse Response *DescribeCpuExpandStrategyResponseParams `json:"Response"` }
func NewDescribeCpuExpandStrategyResponse ¶
func NewDescribeCpuExpandStrategyResponse() (response *DescribeCpuExpandStrategyResponse)
func (*DescribeCpuExpandStrategyResponse) FromJsonString ¶
func (r *DescribeCpuExpandStrategyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCpuExpandStrategyResponse) ToJsonString ¶
func (r *DescribeCpuExpandStrategyResponse) ToJsonString() string
type DescribeCpuExpandStrategyResponseParams ¶
type DescribeCpuExpandStrategyResponseParams struct { // Policy type. Valid values: `auto`, `manual`. // Note: u200dThis field may return null, indicating that no valid values can be obtained. Type *string `json:"Type,omitnil" name:"Type"` // Manually expanded CPU, which is valid when `Type` is `manual`. // Note: u200dThis field may return null, indicating that no valid values can be obtained. ExpandCpu *string `json:"ExpandCpu,omitnil" name:"ExpandCpu"` // Automatic expansion policy, which is valid when `Type` is `auto`. // Note: u200dThis field may return null, indicating that no valid values can be obtained. AutoStrategy *string `json:"AutoStrategy,omitnil" name:"AutoStrategy"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBFeaturesRequest ¶
type DescribeDBFeaturesRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeDBFeaturesRequest ¶
func NewDescribeDBFeaturesRequest() (request *DescribeDBFeaturesRequest)
func (*DescribeDBFeaturesRequest) FromJsonString ¶
func (r *DescribeDBFeaturesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBFeaturesRequest) ToJsonString ¶
func (r *DescribeDBFeaturesRequest) ToJsonString() string
type DescribeDBFeaturesRequestParams ¶
type DescribeDBFeaturesRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeDBFeaturesResponse ¶
type DescribeDBFeaturesResponse struct { *tchttp.BaseResponse Response *DescribeDBFeaturesResponseParams `json:"Response"` }
func NewDescribeDBFeaturesResponse ¶
func NewDescribeDBFeaturesResponse() (response *DescribeDBFeaturesResponse)
func (*DescribeDBFeaturesResponse) FromJsonString ¶
func (r *DescribeDBFeaturesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBFeaturesResponse) ToJsonString ¶
func (r *DescribeDBFeaturesResponse) ToJsonString() string
type DescribeDBFeaturesResponseParams ¶
type DescribeDBFeaturesResponseParams struct { // Whether database audit is supported IsSupportAudit *bool `json:"IsSupportAudit,omitnil" name:"IsSupportAudit"` // Whether enabling audit requires a kernel version upgrade AuditNeedUpgrade *bool `json:"AuditNeedUpgrade,omitnil" name:"AuditNeedUpgrade"` // Whether database encryption is supported IsSupportEncryption *bool `json:"IsSupportEncryption,omitnil" name:"IsSupportEncryption"` // Whether enabling encryption requires a kernel version upgrade EncryptionNeedUpgrade *bool `json:"EncryptionNeedUpgrade,omitnil" name:"EncryptionNeedUpgrade"` // Whether the instance is a remote read-only instance IsRemoteRo *bool `json:"IsRemoteRo,omitnil" name:"IsRemoteRo"` // Region of the source instance MasterRegion *string `json:"MasterRegion,omitnil" name:"MasterRegion"` // Whether minor version upgrade is supported IsSupportUpdateSubVersion *bool `json:"IsSupportUpdateSubVersion,omitnil" name:"IsSupportUpdateSubVersion"` // The current kernel version CurrentSubVersion *string `json:"CurrentSubVersion,omitnil" name:"CurrentSubVersion"` // Available kernel version for upgrade TargetSubVersion *string `json:"TargetSubVersion,omitnil" name:"TargetSubVersion"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBImportRecordsRequest ¶
type DescribeDBImportRecordsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start time in the format of yyyy-MM-dd HH:mm:ss, such as 2016-01-01 00:00:01. StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // End time in the format of yyyy-MM-dd HH:mm:ss, such as 2016-01-01 23:59:59. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Pagination parameter indicating the offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Pagination parameter indicating the number of results to be returned for a single request. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeDBImportRecordsRequest ¶
func NewDescribeDBImportRecordsRequest() (request *DescribeDBImportRecordsRequest)
func (*DescribeDBImportRecordsRequest) FromJsonString ¶
func (r *DescribeDBImportRecordsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBImportRecordsRequest) ToJsonString ¶
func (r *DescribeDBImportRecordsRequest) ToJsonString() string
type DescribeDBImportRecordsRequestParams ¶
type DescribeDBImportRecordsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start time in the format of yyyy-MM-dd HH:mm:ss, such as 2016-01-01 00:00:01. StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // End time in the format of yyyy-MM-dd HH:mm:ss, such as 2016-01-01 23:59:59. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Pagination parameter indicating the offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Pagination parameter indicating the number of results to be returned for a single request. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeDBImportRecordsResponse ¶
type DescribeDBImportRecordsResponse struct { *tchttp.BaseResponse Response *DescribeDBImportRecordsResponseParams `json:"Response"` }
func NewDescribeDBImportRecordsResponse ¶
func NewDescribeDBImportRecordsResponse() (response *DescribeDBImportRecordsResponse)
func (*DescribeDBImportRecordsResponse) FromJsonString ¶
func (r *DescribeDBImportRecordsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBImportRecordsResponse) ToJsonString ¶
func (r *DescribeDBImportRecordsResponse) ToJsonString() string
type DescribeDBImportRecordsResponseParams ¶
type DescribeDBImportRecordsResponseParams struct { // Number of eligible import task operation logs. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // List of import operation records. Items []*ImportRecord `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBInstanceCharsetRequest ¶
type DescribeDBInstanceCharsetRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeDBInstanceCharsetRequest ¶
func NewDescribeDBInstanceCharsetRequest() (request *DescribeDBInstanceCharsetRequest)
func (*DescribeDBInstanceCharsetRequest) FromJsonString ¶
func (r *DescribeDBInstanceCharsetRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceCharsetRequest) ToJsonString ¶
func (r *DescribeDBInstanceCharsetRequest) ToJsonString() string
type DescribeDBInstanceCharsetRequestParams ¶
type DescribeDBInstanceCharsetRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeDBInstanceCharsetResponse ¶
type DescribeDBInstanceCharsetResponse struct { *tchttp.BaseResponse Response *DescribeDBInstanceCharsetResponseParams `json:"Response"` }
func NewDescribeDBInstanceCharsetResponse ¶
func NewDescribeDBInstanceCharsetResponse() (response *DescribeDBInstanceCharsetResponse)
func (*DescribeDBInstanceCharsetResponse) FromJsonString ¶
func (r *DescribeDBInstanceCharsetResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceCharsetResponse) ToJsonString ¶
func (r *DescribeDBInstanceCharsetResponse) ToJsonString() string
type DescribeDBInstanceCharsetResponseParams ¶
type DescribeDBInstanceCharsetResponseParams struct { // Default character set of the instance, such as "latin1" and "utf8". Charset *string `json:"Charset,omitnil" name:"Charset"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBInstanceConfigRequest ¶
type DescribeDBInstanceConfigRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeDBInstanceConfigRequest ¶
func NewDescribeDBInstanceConfigRequest() (request *DescribeDBInstanceConfigRequest)
func (*DescribeDBInstanceConfigRequest) FromJsonString ¶
func (r *DescribeDBInstanceConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceConfigRequest) ToJsonString ¶
func (r *DescribeDBInstanceConfigRequest) ToJsonString() string
type DescribeDBInstanceConfigRequestParams ¶
type DescribeDBInstanceConfigRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeDBInstanceConfigResponse ¶
type DescribeDBInstanceConfigResponse struct { *tchttp.BaseResponse Response *DescribeDBInstanceConfigResponseParams `json:"Response"` }
func NewDescribeDBInstanceConfigResponse ¶
func NewDescribeDBInstanceConfigResponse() (response *DescribeDBInstanceConfigResponse)
func (*DescribeDBInstanceConfigResponse) FromJsonString ¶
func (r *DescribeDBInstanceConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceConfigResponse) ToJsonString ¶
func (r *DescribeDBInstanceConfigResponse) ToJsonString() string
type DescribeDBInstanceConfigResponseParams ¶
type DescribeDBInstanceConfigResponseParams struct { // Data protection mode of the primary instance. Value range: 0 (async replication), 1 (semi-sync replication), 2 (strong sync replication). ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Master instance deployment mode. Value range: 0 (single-AZ), 1 (multi-AZ) DeployMode *int64 `json:"DeployMode,omitnil" name:"DeployMode"` // Instance AZ information in the format of "ap-shanghai-1". Zone *string `json:"Zone,omitnil" name:"Zone"` // Configurations of the replica node // Note: `null` may be returned for this field, indicating that no valid values can be obtained. SlaveConfig *SlaveConfig `json:"SlaveConfig,omitnil" name:"SlaveConfig"` // Configurations of the second replica node of a strong-sync instance // Note: `null` may be returned for this field, indicating that no valid values can be obtained. BackupConfig *BackupConfig `json:"BackupConfig,omitnil" name:"BackupConfig"` // This parameter is only available for multi-AZ instances. It indicates whether the source AZ is the same as the one specified upon purchase. `true`: not the same, `false`: the same. Switched *bool `json:"Switched,omitnil" name:"Switched"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBInstanceGTIDRequest ¶
type DescribeDBInstanceGTIDRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeDBInstanceGTIDRequest ¶
func NewDescribeDBInstanceGTIDRequest() (request *DescribeDBInstanceGTIDRequest)
func (*DescribeDBInstanceGTIDRequest) FromJsonString ¶
func (r *DescribeDBInstanceGTIDRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceGTIDRequest) ToJsonString ¶
func (r *DescribeDBInstanceGTIDRequest) ToJsonString() string
type DescribeDBInstanceGTIDRequestParams ¶
type DescribeDBInstanceGTIDRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeDBInstanceGTIDResponse ¶
type DescribeDBInstanceGTIDResponse struct { *tchttp.BaseResponse Response *DescribeDBInstanceGTIDResponseParams `json:"Response"` }
func NewDescribeDBInstanceGTIDResponse ¶
func NewDescribeDBInstanceGTIDResponse() (response *DescribeDBInstanceGTIDResponse)
func (*DescribeDBInstanceGTIDResponse) FromJsonString ¶
func (r *DescribeDBInstanceGTIDResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceGTIDResponse) ToJsonString ¶
func (r *DescribeDBInstanceGTIDResponse) ToJsonString() string
type DescribeDBInstanceGTIDResponseParams ¶
type DescribeDBInstanceGTIDResponseParams struct { // GTID enablement flag. Value range: 0 (not enabled), 1 (enabled). IsGTIDOpen *int64 `json:"IsGTIDOpen,omitnil" name:"IsGTIDOpen"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBInstanceInfoRequest ¶
type DescribeDBInstanceInfoRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeDBInstanceInfoRequest ¶
func NewDescribeDBInstanceInfoRequest() (request *DescribeDBInstanceInfoRequest)
func (*DescribeDBInstanceInfoRequest) FromJsonString ¶
func (r *DescribeDBInstanceInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceInfoRequest) ToJsonString ¶
func (r *DescribeDBInstanceInfoRequest) ToJsonString() string
type DescribeDBInstanceInfoRequestParams ¶
type DescribeDBInstanceInfoRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeDBInstanceInfoResponse ¶
type DescribeDBInstanceInfoResponse struct { *tchttp.BaseResponse Response *DescribeDBInstanceInfoResponseParams `json:"Response"` }
func NewDescribeDBInstanceInfoResponse ¶
func NewDescribeDBInstanceInfoResponse() (response *DescribeDBInstanceInfoResponse)
func (*DescribeDBInstanceInfoResponse) FromJsonString ¶
func (r *DescribeDBInstanceInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceInfoResponse) ToJsonString ¶
func (r *DescribeDBInstanceInfoResponse) ToJsonString() string
type DescribeDBInstanceInfoResponseParams ¶
type DescribeDBInstanceInfoResponseParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Instance name. InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Whether encryption is enabled. YES: enabled, NO: not enabled. Encryption *string `json:"Encryption,omitnil" name:"Encryption"` // Encryption key ID. // Note: this field may return null, indicating that no valid values can be obtained. KeyId *string `json:"KeyId,omitnil" name:"KeyId"` // Key region. // Note: this field may return null, indicating that no valid values can be obtained. KeyRegion *string `json:"KeyRegion,omitnil" name:"KeyRegion"` // The default region of the KMS service currently used by the TencentDB backend service. // Note: this field may return `null`, indicating that no valid value can be found. DefaultKmsRegion *string `json:"DefaultKmsRegion,omitnil" name:"DefaultKmsRegion"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBInstanceRebootTimeRequest ¶
type DescribeDBInstanceRebootTimeRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` }
func NewDescribeDBInstanceRebootTimeRequest ¶
func NewDescribeDBInstanceRebootTimeRequest() (request *DescribeDBInstanceRebootTimeRequest)
func (*DescribeDBInstanceRebootTimeRequest) FromJsonString ¶
func (r *DescribeDBInstanceRebootTimeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceRebootTimeRequest) ToJsonString ¶
func (r *DescribeDBInstanceRebootTimeRequest) ToJsonString() string
type DescribeDBInstanceRebootTimeRequestParams ¶
type DescribeDBInstanceRebootTimeRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` }
Predefined struct for user
type DescribeDBInstanceRebootTimeResponse ¶
type DescribeDBInstanceRebootTimeResponse struct { *tchttp.BaseResponse Response *DescribeDBInstanceRebootTimeResponseParams `json:"Response"` }
func NewDescribeDBInstanceRebootTimeResponse ¶
func NewDescribeDBInstanceRebootTimeResponse() (response *DescribeDBInstanceRebootTimeResponse)
func (*DescribeDBInstanceRebootTimeResponse) FromJsonString ¶
func (r *DescribeDBInstanceRebootTimeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceRebootTimeResponse) ToJsonString ¶
func (r *DescribeDBInstanceRebootTimeResponse) ToJsonString() string
type DescribeDBInstanceRebootTimeResponseParams ¶
type DescribeDBInstanceRebootTimeResponseParams struct { // Number of eligible instances. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Returned parameter information. Items []*InstanceRebootTime `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBInstancesRequest ¶
type DescribeDBInstancesRequest struct { *tchttp.BaseRequest // Project ID. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Instance type. Value range: 1 (primary), 2 (disaster recovery), 3 (read-only). InstanceTypes []*uint64 `json:"InstanceTypes,omitnil" name:"InstanceTypes"` // Private IP address of the instance. Vips []*string `json:"Vips,omitnil" name:"Vips"` // Instance status. Valid values: <br>`0` (creating) <br>`1` (running) <br>`4` (isolating) <br>`5` (isolated; the instance can be restored and started in the recycle bin) Status []*uint64 `json:"Status,omitnil" name:"Status"` // Offset. Default value: 0. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Default value: 20. Maximum value: 2,000. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Security group ID. When it is used as a filter, the `WithSecurityGroup` parameter should be set to 1. SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"` // Billing method. Value range: 0 (monthly subscribed), 1 (hourly). PayTypes []*uint64 `json:"PayTypes,omitnil" name:"PayTypes"` // Instance name. InstanceNames []*string `json:"InstanceNames,omitnil" name:"InstanceNames"` // Instance task status. Valid values: <br>0 - no task <br>1 - upgrading <br>2 - importing data <br>3 - enabling secondary instance access <br>4 - enabling public network access <br>5 - batch operation in progress <br>6 - rolling back <br>7 - disabling public network access <br>8 - modifying password <br>9 - renaming instance <br>10 - restarting <br>12 - migrating self-built database <br>13 - dropping tables <br>14 - Disaster recovery instance creating sync task <br>15 - waiting for switch <br>16 - switching <br>17 - upgrade and switch completed <br>19 - parameter settings to be executed TaskStatus []*uint64 `json:"TaskStatus,omitnil" name:"TaskStatus"` // Version of the instance database engine. Value range: 5.1, 5.5, 5.6, 5.7. EngineVersions []*string `json:"EngineVersions,omitnil" name:"EngineVersions"` // VPC ID. VpcIds []*uint64 `json:"VpcIds,omitnil" name:"VpcIds"` // AZ ID. ZoneIds []*uint64 `json:"ZoneIds,omitnil" name:"ZoneIds"` // Subnet ID. SubnetIds []*uint64 `json:"SubnetIds,omitnil" name:"SubnetIds"` // Whether to lock disk write. Valid values: `0`(unlock), `1`(lock). Default value: 0. CdbErrors []*int64 `json:"CdbErrors,omitnil" name:"CdbErrors"` // Sort by field of the returned result set. Currently, supported values include "InstanceId", "InstanceName", "CreateTime", and "DeadlineTime". OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // Sorting method of the returned result set. Currently, "ASC" or "DESC" is supported. OrderDirection *string `json:"OrderDirection,omitnil" name:"OrderDirection"` // Whether security group ID is used as a filter WithSecurityGroup *int64 `json:"WithSecurityGroup,omitnil" name:"WithSecurityGroup"` // Whether dedicated cluster details are included. Value range: 0 (not included), 1 (included) WithExCluster *int64 `json:"WithExCluster,omitnil" name:"WithExCluster"` // Exclusive cluster ID. ExClusterId *string `json:"ExClusterId,omitnil" name:"ExClusterId"` // Instance ID. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Initialization flag. Value range: 0 (not initialized), 1 (initialized). InitFlag *int64 `json:"InitFlag,omitnil" name:"InitFlag"` // Whether instances corresponding to the disaster recovery relationship are included. Valid values: 0 (not included), 1 (included). Default value: 1. If a primary instance is pulled, the data of the disaster recovery relationship will be in the `DrInfo` field. If a disaster recovery instance is pulled, the data of the disaster recovery relationship will be in the `MasterInfo` field. The disaster recovery relationship contains only partial basic data. To get the detailed data, you need to call an API to pull it. WithDr *int64 `json:"WithDr,omitnil" name:"WithDr"` // Whether read-only instances are included. Valid values: 0 (not included), 1 (included). Default value: 1. WithRo *int64 `json:"WithRo,omitnil" name:"WithRo"` // Whether primary instances are included. Valid values: 0 (not included), 1 (included). Default value: 1. WithMaster *int64 `json:"WithMaster,omitnil" name:"WithMaster"` // Placement group ID list. DeployGroupIds []*string `json:"DeployGroupIds,omitnil" name:"DeployGroupIds"` // Whether to use the tag key as a filter condition TagKeysForSearch []*string `json:"TagKeysForSearch,omitnil" name:"TagKeysForSearch"` // Financial cage IDs. CageIds []*string `json:"CageIds,omitnil" name:"CageIds"` // Tag value TagValues []*string `json:"TagValues,omitnil" name:"TagValues"` // VPC character vpcId UniqueVpcIds []*string `json:"UniqueVpcIds,omitnil" name:"UniqueVpcIds"` // VPC character subnetId UniqSubnetIds []*string `json:"UniqSubnetIds,omitnil" name:"UniqSubnetIds"` // Tag key value Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Database proxy IP ProxyVips []*string `json:"ProxyVips,omitnil" name:"ProxyVips"` // Database proxy ID ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` // Database engine type EngineTypes []*string `json:"EngineTypes,omitnil" name:"EngineTypes"` }
func NewDescribeDBInstancesRequest ¶
func NewDescribeDBInstancesRequest() (request *DescribeDBInstancesRequest)
func (*DescribeDBInstancesRequest) FromJsonString ¶
func (r *DescribeDBInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstancesRequest) ToJsonString ¶
func (r *DescribeDBInstancesRequest) ToJsonString() string
type DescribeDBInstancesRequestParams ¶
type DescribeDBInstancesRequestParams struct { // Project ID. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Instance type. Value range: 1 (primary), 2 (disaster recovery), 3 (read-only). InstanceTypes []*uint64 `json:"InstanceTypes,omitnil" name:"InstanceTypes"` // Private IP address of the instance. Vips []*string `json:"Vips,omitnil" name:"Vips"` // Instance status. Valid values: <br>`0` (creating) <br>`1` (running) <br>`4` (isolating) <br>`5` (isolated; the instance can be restored and started in the recycle bin) Status []*uint64 `json:"Status,omitnil" name:"Status"` // Offset. Default value: 0. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Default value: 20. Maximum value: 2,000. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Security group ID. When it is used as a filter, the `WithSecurityGroup` parameter should be set to 1. SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"` // Billing method. Value range: 0 (monthly subscribed), 1 (hourly). PayTypes []*uint64 `json:"PayTypes,omitnil" name:"PayTypes"` // Instance name. InstanceNames []*string `json:"InstanceNames,omitnil" name:"InstanceNames"` // Instance task status. Valid values: <br>0 - no task <br>1 - upgrading <br>2 - importing data <br>3 - enabling secondary instance access <br>4 - enabling public network access <br>5 - batch operation in progress <br>6 - rolling back <br>7 - disabling public network access <br>8 - modifying password <br>9 - renaming instance <br>10 - restarting <br>12 - migrating self-built database <br>13 - dropping tables <br>14 - Disaster recovery instance creating sync task <br>15 - waiting for switch <br>16 - switching <br>17 - upgrade and switch completed <br>19 - parameter settings to be executed TaskStatus []*uint64 `json:"TaskStatus,omitnil" name:"TaskStatus"` // Version of the instance database engine. Value range: 5.1, 5.5, 5.6, 5.7. EngineVersions []*string `json:"EngineVersions,omitnil" name:"EngineVersions"` // VPC ID. VpcIds []*uint64 `json:"VpcIds,omitnil" name:"VpcIds"` // AZ ID. ZoneIds []*uint64 `json:"ZoneIds,omitnil" name:"ZoneIds"` // Subnet ID. SubnetIds []*uint64 `json:"SubnetIds,omitnil" name:"SubnetIds"` // Whether to lock disk write. Valid values: `0`(unlock), `1`(lock). Default value: 0. CdbErrors []*int64 `json:"CdbErrors,omitnil" name:"CdbErrors"` // Sort by field of the returned result set. Currently, supported values include "InstanceId", "InstanceName", "CreateTime", and "DeadlineTime". OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // Sorting method of the returned result set. Currently, "ASC" or "DESC" is supported. OrderDirection *string `json:"OrderDirection,omitnil" name:"OrderDirection"` // Whether security group ID is used as a filter WithSecurityGroup *int64 `json:"WithSecurityGroup,omitnil" name:"WithSecurityGroup"` // Whether dedicated cluster details are included. Value range: 0 (not included), 1 (included) WithExCluster *int64 `json:"WithExCluster,omitnil" name:"WithExCluster"` // Exclusive cluster ID. ExClusterId *string `json:"ExClusterId,omitnil" name:"ExClusterId"` // Instance ID. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Initialization flag. Value range: 0 (not initialized), 1 (initialized). InitFlag *int64 `json:"InitFlag,omitnil" name:"InitFlag"` // Whether instances corresponding to the disaster recovery relationship are included. Valid values: 0 (not included), 1 (included). Default value: 1. If a primary instance is pulled, the data of the disaster recovery relationship will be in the `DrInfo` field. If a disaster recovery instance is pulled, the data of the disaster recovery relationship will be in the `MasterInfo` field. The disaster recovery relationship contains only partial basic data. To get the detailed data, you need to call an API to pull it. WithDr *int64 `json:"WithDr,omitnil" name:"WithDr"` // Whether read-only instances are included. Valid values: 0 (not included), 1 (included). Default value: 1. WithRo *int64 `json:"WithRo,omitnil" name:"WithRo"` // Whether primary instances are included. Valid values: 0 (not included), 1 (included). Default value: 1. WithMaster *int64 `json:"WithMaster,omitnil" name:"WithMaster"` // Placement group ID list. DeployGroupIds []*string `json:"DeployGroupIds,omitnil" name:"DeployGroupIds"` // Whether to use the tag key as a filter condition TagKeysForSearch []*string `json:"TagKeysForSearch,omitnil" name:"TagKeysForSearch"` // Financial cage IDs. CageIds []*string `json:"CageIds,omitnil" name:"CageIds"` // Tag value TagValues []*string `json:"TagValues,omitnil" name:"TagValues"` // VPC character vpcId UniqueVpcIds []*string `json:"UniqueVpcIds,omitnil" name:"UniqueVpcIds"` // VPC character subnetId UniqSubnetIds []*string `json:"UniqSubnetIds,omitnil" name:"UniqSubnetIds"` // Tag key value Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Database proxy IP ProxyVips []*string `json:"ProxyVips,omitnil" name:"ProxyVips"` // Database proxy ID ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` // Database engine type EngineTypes []*string `json:"EngineTypes,omitnil" name:"EngineTypes"` }
Predefined struct for user
type DescribeDBInstancesResponse ¶
type DescribeDBInstancesResponse struct { *tchttp.BaseResponse Response *DescribeDBInstancesResponseParams `json:"Response"` }
func NewDescribeDBInstancesResponse ¶
func NewDescribeDBInstancesResponse() (response *DescribeDBInstancesResponse)
func (*DescribeDBInstancesResponse) FromJsonString ¶
func (r *DescribeDBInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstancesResponse) ToJsonString ¶
func (r *DescribeDBInstancesResponse) ToJsonString() string
type DescribeDBInstancesResponseParams ¶
type DescribeDBInstancesResponseParams struct { // Number of eligible instances. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // List of instance details Items []*InstanceInfo `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBPriceRequest ¶
type DescribeDBPriceRequest struct { *tchttp.BaseRequest // Instance validity period in months. Value range: 1-36. This field is invalid when querying the prices of pay-as-you-go instances. Period *int64 `json:"Period,omitnil" name:"Period"` // AZ information in the format of "ap-guangzhou-2". You can use the <a href="https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1">DescribeDBZoneConfig</a> API to query the configurable values. This parameter is required when `InstanceId` is empty. Zone *string `json:"Zone,omitnil" name:"Zone"` // Number of instances. Value range: 1-100. Default value: 1. This parameter is required when `InstanceId` is empty. GoodsNum *int64 `json:"GoodsNum,omitnil" name:"GoodsNum"` // Instance memory size in MB. This parameter is required when `InstanceId` is empty. Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Instance disk size in GB. This parameter is required when `InstanceId` is empty. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Instance type. Valid values: `master` (source instance), `dr` (disaster recovery instance), `ro` (read-only instance). Default value: `master`. This parameter is required when `InstanceId` is empty. InstanceRole *string `json:"InstanceRole,omitnil" name:"InstanceRole"` // Billing mode. Valid values: `PRE_PAID` (monthly subscribed), `HOUR_PAID` (pay-as-you-go). This parameter is required when `InstanceId` is empty. PayType *string `json:"PayType,omitnil" name:"PayType"` // Data replication mode. Valid values: `0` (async), 1 (semi-sync), `2` (strong sync). Default value: `0`. ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Instance isolation types Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). Default value: `UNIVERSAL`. Default value: `UNIVERSAL`. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // The number of the instance. Valid values: `1` (for read-only and basic instances), `2` (for other source instances). To query the price of a three-node instance, set this value to `3`. InstanceNodes *int64 `json:"InstanceNodes,omitnil" name:"InstanceNodes"` // CPU core count of the price-queried instance. To ensure that the CPU value to be passed in is valid, use the [DescribeDBZoneConfig](https://www.tencentcloud.com/document/product/236/17229) API to query the number of purchasable cores. If this value is not specified, a default value based on memory size will be set. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Instance ID for querying renewal price. To query the renewal price of the instance, pass in the values of `InstanceId` and `Period`. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Tiered pay-as-you-go pricing, which is valid only when `PayType` is set to `HOUR_PAID`. Valid values: `1`, `2`, `3`. For more information on tiered duration, visit https://intl.cloud.tencent.com/document/product/236/18335.?from_cn_redirect=1 Ladder *uint64 `json:"Ladder,omitnil" name:"Ladder"` }
func NewDescribeDBPriceRequest ¶
func NewDescribeDBPriceRequest() (request *DescribeDBPriceRequest)
func (*DescribeDBPriceRequest) FromJsonString ¶
func (r *DescribeDBPriceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBPriceRequest) ToJsonString ¶
func (r *DescribeDBPriceRequest) ToJsonString() string
type DescribeDBPriceRequestParams ¶
type DescribeDBPriceRequestParams struct { // Instance validity period in months. Value range: 1-36. This field is invalid when querying the prices of pay-as-you-go instances. Period *int64 `json:"Period,omitnil" name:"Period"` // AZ information in the format of "ap-guangzhou-2". You can use the <a href="https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1">DescribeDBZoneConfig</a> API to query the configurable values. This parameter is required when `InstanceId` is empty. Zone *string `json:"Zone,omitnil" name:"Zone"` // Number of instances. Value range: 1-100. Default value: 1. This parameter is required when `InstanceId` is empty. GoodsNum *int64 `json:"GoodsNum,omitnil" name:"GoodsNum"` // Instance memory size in MB. This parameter is required when `InstanceId` is empty. Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Instance disk size in GB. This parameter is required when `InstanceId` is empty. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Instance type. Valid values: `master` (source instance), `dr` (disaster recovery instance), `ro` (read-only instance). Default value: `master`. This parameter is required when `InstanceId` is empty. InstanceRole *string `json:"InstanceRole,omitnil" name:"InstanceRole"` // Billing mode. Valid values: `PRE_PAID` (monthly subscribed), `HOUR_PAID` (pay-as-you-go). This parameter is required when `InstanceId` is empty. PayType *string `json:"PayType,omitnil" name:"PayType"` // Data replication mode. Valid values: `0` (async), 1 (semi-sync), `2` (strong sync). Default value: `0`. ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Instance isolation types Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). Default value: `UNIVERSAL`. Default value: `UNIVERSAL`. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // The number of the instance. Valid values: `1` (for read-only and basic instances), `2` (for other source instances). To query the price of a three-node instance, set this value to `3`. InstanceNodes *int64 `json:"InstanceNodes,omitnil" name:"InstanceNodes"` // CPU core count of the price-queried instance. To ensure that the CPU value to be passed in is valid, use the [DescribeDBZoneConfig](https://www.tencentcloud.com/document/product/236/17229) API to query the number of purchasable cores. If this value is not specified, a default value based on memory size will be set. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Instance ID for querying renewal price. To query the renewal price of the instance, pass in the values of `InstanceId` and `Period`. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Tiered pay-as-you-go pricing, which is valid only when `PayType` is set to `HOUR_PAID`. Valid values: `1`, `2`, `3`. For more information on tiered duration, visit https://intl.cloud.tencent.com/document/product/236/18335.?from_cn_redirect=1 Ladder *uint64 `json:"Ladder,omitnil" name:"Ladder"` }
Predefined struct for user
type DescribeDBPriceResponse ¶
type DescribeDBPriceResponse struct { *tchttp.BaseResponse Response *DescribeDBPriceResponseParams `json:"Response"` }
func NewDescribeDBPriceResponse ¶
func NewDescribeDBPriceResponse() (response *DescribeDBPriceResponse)
func (*DescribeDBPriceResponse) FromJsonString ¶
func (r *DescribeDBPriceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBPriceResponse) ToJsonString ¶
func (r *DescribeDBPriceResponse) ToJsonString() string
type DescribeDBPriceResponseParams ¶
type DescribeDBPriceResponseParams struct { // Instance price. If `Currency` is set to `CNY`, the unit will be 0.01 CNY. If `Currency` is set to `USD`, the unit will be US Cent. Price *int64 `json:"Price,omitnil" name:"Price"` // Original price of the instance. If `Currency` is set to `CNY`, the unit will be 0.01 CNY. If `Currency` is set to `USD`, the unit will be US Cent. OriginalPrice *int64 `json:"OriginalPrice,omitnil" name:"OriginalPrice"` // Currency: `CNY`, `USD`. Currency *string `json:"Currency,omitnil" name:"Currency"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBSecurityGroupsRequest ¶
type DescribeDBSecurityGroupsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // This parameter takes effect only when the ID of a read-only instance is passed in. If the parameter is set to `False` or left empty, the security groups bound with the RO groups of the read-only instance can only be queried. If it is set to `True`, the security groups can be modified. ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitnil" name:"ForReadonlyInstance"` }
func NewDescribeDBSecurityGroupsRequest ¶
func NewDescribeDBSecurityGroupsRequest() (request *DescribeDBSecurityGroupsRequest)
func (*DescribeDBSecurityGroupsRequest) FromJsonString ¶
func (r *DescribeDBSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBSecurityGroupsRequest) ToJsonString ¶
func (r *DescribeDBSecurityGroupsRequest) ToJsonString() string
type DescribeDBSecurityGroupsRequestParams ¶
type DescribeDBSecurityGroupsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // This parameter takes effect only when the ID of a read-only instance is passed in. If the parameter is set to `False` or left empty, the security groups bound with the RO groups of the read-only instance can only be queried. If it is set to `True`, the security groups can be modified. ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitnil" name:"ForReadonlyInstance"` }
Predefined struct for user
type DescribeDBSecurityGroupsResponse ¶
type DescribeDBSecurityGroupsResponse struct { *tchttp.BaseResponse Response *DescribeDBSecurityGroupsResponseParams `json:"Response"` }
func NewDescribeDBSecurityGroupsResponse ¶
func NewDescribeDBSecurityGroupsResponse() (response *DescribeDBSecurityGroupsResponse)
func (*DescribeDBSecurityGroupsResponse) FromJsonString ¶
func (r *DescribeDBSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBSecurityGroupsResponse) ToJsonString ¶
func (r *DescribeDBSecurityGroupsResponse) ToJsonString() string
type DescribeDBSecurityGroupsResponseParams ¶
type DescribeDBSecurityGroupsResponseParams struct { // Security group details. Groups []*SecurityGroup `json:"Groups,omitnil" name:"Groups"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDBSwitchRecordsRequest ¶
type DescribeDBSwitchRecordsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Pagination offset. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Value range: 1-2,000. Default value: 50. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeDBSwitchRecordsRequest ¶
func NewDescribeDBSwitchRecordsRequest() (request *DescribeDBSwitchRecordsRequest)
func (*DescribeDBSwitchRecordsRequest) FromJsonString ¶
func (r *DescribeDBSwitchRecordsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBSwitchRecordsRequest) ToJsonString ¶
func (r *DescribeDBSwitchRecordsRequest) ToJsonString() string
type DescribeDBSwitchRecordsRequestParams ¶
type DescribeDBSwitchRecordsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Pagination offset. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Value range: 1-2,000. Default value: 50. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeDBSwitchRecordsResponse ¶
type DescribeDBSwitchRecordsResponse struct { *tchttp.BaseResponse Response *DescribeDBSwitchRecordsResponseParams `json:"Response"` }
func NewDescribeDBSwitchRecordsResponse ¶
func NewDescribeDBSwitchRecordsResponse() (response *DescribeDBSwitchRecordsResponse)
func (*DescribeDBSwitchRecordsResponse) FromJsonString ¶
func (r *DescribeDBSwitchRecordsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBSwitchRecordsResponse) ToJsonString ¶
func (r *DescribeDBSwitchRecordsResponse) ToJsonString() string
type DescribeDBSwitchRecordsResponseParams ¶
type DescribeDBSwitchRecordsResponseParams struct { // Number of instance switches. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Details of instance switches. Items []*DBSwitchInfo `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDataBackupOverviewRequest ¶
type DescribeDataBackupOverviewRequest struct { *tchttp.BaseRequest // TencentDB product type to be queried. Currently, only `mysql` is supported. Product *string `json:"Product,omitnil" name:"Product"` }
func NewDescribeDataBackupOverviewRequest ¶
func NewDescribeDataBackupOverviewRequest() (request *DescribeDataBackupOverviewRequest)
func (*DescribeDataBackupOverviewRequest) FromJsonString ¶
func (r *DescribeDataBackupOverviewRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDataBackupOverviewRequest) ToJsonString ¶
func (r *DescribeDataBackupOverviewRequest) ToJsonString() string
type DescribeDataBackupOverviewRequestParams ¶
type DescribeDataBackupOverviewRequestParams struct { // TencentDB product type to be queried. Currently, only `mysql` is supported. Product *string `json:"Product,omitnil" name:"Product"` }
Predefined struct for user
type DescribeDataBackupOverviewResponse ¶
type DescribeDataBackupOverviewResponse struct { *tchttp.BaseResponse Response *DescribeDataBackupOverviewResponseParams `json:"Response"` }
func NewDescribeDataBackupOverviewResponse ¶
func NewDescribeDataBackupOverviewResponse() (response *DescribeDataBackupOverviewResponse)
func (*DescribeDataBackupOverviewResponse) FromJsonString ¶
func (r *DescribeDataBackupOverviewResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDataBackupOverviewResponse) ToJsonString ¶
func (r *DescribeDataBackupOverviewResponse) ToJsonString() string
type DescribeDataBackupOverviewResponseParams ¶
type DescribeDataBackupOverviewResponseParams struct { // Total capacity of data backups in bytes in the current region (including automatic backups and manual backups). DataBackupVolume *int64 `json:"DataBackupVolume,omitnil" name:"DataBackupVolume"` // Total number of data backups in the current region. DataBackupCount *int64 `json:"DataBackupCount,omitnil" name:"DataBackupCount"` // Total capacity of automatic backups in the current region. AutoBackupVolume *int64 `json:"AutoBackupVolume,omitnil" name:"AutoBackupVolume"` // Total number of automatic backups in the current region. AutoBackupCount *int64 `json:"AutoBackupCount,omitnil" name:"AutoBackupCount"` // Total capacity of manual backups in the current region. ManualBackupVolume *int64 `json:"ManualBackupVolume,omitnil" name:"ManualBackupVolume"` // Total number of manual backups in the current region. ManualBackupCount *int64 `json:"ManualBackupCount,omitnil" name:"ManualBackupCount"` // Total capacity of remote backups RemoteBackupVolume *int64 `json:"RemoteBackupVolume,omitnil" name:"RemoteBackupVolume"` // Total number of remote backups RemoteBackupCount *int64 `json:"RemoteBackupCount,omitnil" name:"RemoteBackupCount"` // Total capacity of archive backups in the current region DataBackupArchiveVolume *int64 `json:"DataBackupArchiveVolume,omitnil" name:"DataBackupArchiveVolume"` // Total number of archive backups in the current region DataBackupArchiveCount *int64 `json:"DataBackupArchiveCount,omitnil" name:"DataBackupArchiveCount"` // Total backup capacity of standard storage in current region DataBackupStandbyVolume *int64 `json:"DataBackupStandbyVolume,omitnil" name:"DataBackupStandbyVolume"` // Total number of standard storage backups in current region DataBackupStandbyCount *int64 `json:"DataBackupStandbyCount,omitnil" name:"DataBackupStandbyCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDatabasesRequest ¶
type DescribeDatabasesRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Offset. Minimum value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Value range: 1-100. Maximum value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Regular expression for matching database names. DatabaseRegexp *string `json:"DatabaseRegexp,omitnil" name:"DatabaseRegexp"` }
func NewDescribeDatabasesRequest ¶
func NewDescribeDatabasesRequest() (request *DescribeDatabasesRequest)
func (*DescribeDatabasesRequest) FromJsonString ¶
func (r *DescribeDatabasesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDatabasesRequest) ToJsonString ¶
func (r *DescribeDatabasesRequest) ToJsonString() string
type DescribeDatabasesRequestParams ¶
type DescribeDatabasesRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Offset. Minimum value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Value range: 1-100. Maximum value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Regular expression for matching database names. DatabaseRegexp *string `json:"DatabaseRegexp,omitnil" name:"DatabaseRegexp"` }
Predefined struct for user
type DescribeDatabasesResponse ¶
type DescribeDatabasesResponse struct { *tchttp.BaseResponse Response *DescribeDatabasesResponseParams `json:"Response"` }
func NewDescribeDatabasesResponse ¶
func NewDescribeDatabasesResponse() (response *DescribeDatabasesResponse)
func (*DescribeDatabasesResponse) FromJsonString ¶
func (r *DescribeDatabasesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDatabasesResponse) ToJsonString ¶
func (r *DescribeDatabasesResponse) ToJsonString() string
type DescribeDatabasesResponseParams ¶
type DescribeDatabasesResponseParams struct { // Number of eligible instances. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Information of an instance. Items []*string `json:"Items,omitnil" name:"Items"` // Database name and character set DatabaseList []*DatabasesWithCharacterLists `json:"DatabaseList,omitnil" name:"DatabaseList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDefaultParamsRequest ¶
type DescribeDefaultParamsRequest struct { *tchttp.BaseRequest // Engine version. Currently, the supported versions are `5.1`, `5.5`, `5.6`, `5.7`, and `8.0`. EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Type of the default parameter template. Valid values: `HIGH_STABILITY` (high-stability template), `HIGH_PERFORMANCE` (high-performance template). TemplateType *string `json:"TemplateType,omitnil" name:"TemplateType"` // Parameter template engine. Default value: `InnoDB`. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` }
func NewDescribeDefaultParamsRequest ¶
func NewDescribeDefaultParamsRequest() (request *DescribeDefaultParamsRequest)
func (*DescribeDefaultParamsRequest) FromJsonString ¶
func (r *DescribeDefaultParamsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDefaultParamsRequest) ToJsonString ¶
func (r *DescribeDefaultParamsRequest) ToJsonString() string
type DescribeDefaultParamsRequestParams ¶
type DescribeDefaultParamsRequestParams struct { // Engine version. Currently, the supported versions are `5.1`, `5.5`, `5.6`, `5.7`, and `8.0`. EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Type of the default parameter template. Valid values: `HIGH_STABILITY` (high-stability template), `HIGH_PERFORMANCE` (high-performance template). TemplateType *string `json:"TemplateType,omitnil" name:"TemplateType"` // Parameter template engine. Default value: `InnoDB`. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` }
Predefined struct for user
type DescribeDefaultParamsResponse ¶
type DescribeDefaultParamsResponse struct { *tchttp.BaseResponse Response *DescribeDefaultParamsResponseParams `json:"Response"` }
func NewDescribeDefaultParamsResponse ¶
func NewDescribeDefaultParamsResponse() (response *DescribeDefaultParamsResponse)
func (*DescribeDefaultParamsResponse) FromJsonString ¶
func (r *DescribeDefaultParamsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDefaultParamsResponse) ToJsonString ¶
func (r *DescribeDefaultParamsResponse) ToJsonString() string
type DescribeDefaultParamsResponseParams ¶
type DescribeDefaultParamsResponseParams struct { // Number of parameters TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Parameter details. Items []*ParameterDetail `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDeviceMonitorInfoRequest ¶
type DescribeDeviceMonitorInfoRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // This parameter is used to return the monitoring data of Count 5-minute time periods on the day. Value range: 1-288. If this parameter is not passed in, all monitoring data in a 5-minute granularity on the day will be returned by default. Count *uint64 `json:"Count,omitnil" name:"Count"` }
func NewDescribeDeviceMonitorInfoRequest ¶
func NewDescribeDeviceMonitorInfoRequest() (request *DescribeDeviceMonitorInfoRequest)
func (*DescribeDeviceMonitorInfoRequest) FromJsonString ¶
func (r *DescribeDeviceMonitorInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDeviceMonitorInfoRequest) ToJsonString ¶
func (r *DescribeDeviceMonitorInfoRequest) ToJsonString() string
type DescribeDeviceMonitorInfoRequestParams ¶
type DescribeDeviceMonitorInfoRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // This parameter is used to return the monitoring data of Count 5-minute time periods on the day. Value range: 1-288. If this parameter is not passed in, all monitoring data in a 5-minute granularity on the day will be returned by default. Count *uint64 `json:"Count,omitnil" name:"Count"` }
Predefined struct for user
type DescribeDeviceMonitorInfoResponse ¶
type DescribeDeviceMonitorInfoResponse struct { *tchttp.BaseResponse Response *DescribeDeviceMonitorInfoResponseParams `json:"Response"` }
func NewDescribeDeviceMonitorInfoResponse ¶
func NewDescribeDeviceMonitorInfoResponse() (response *DescribeDeviceMonitorInfoResponse)
func (*DescribeDeviceMonitorInfoResponse) FromJsonString ¶
func (r *DescribeDeviceMonitorInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDeviceMonitorInfoResponse) ToJsonString ¶
func (r *DescribeDeviceMonitorInfoResponse) ToJsonString() string
type DescribeDeviceMonitorInfoResponseParams ¶
type DescribeDeviceMonitorInfoResponseParams struct { // CPU monitoring data of the instance Cpu *DeviceCpuInfo `json:"Cpu,omitnil" name:"Cpu"` // Memory monitoring data of the instance Mem *DeviceMemInfo `json:"Mem,omitnil" name:"Mem"` // Network monitoring data of the instance Net *DeviceNetInfo `json:"Net,omitnil" name:"Net"` // Disk monitoring data of the instance Disk *DeviceDiskInfo `json:"Disk,omitnil" name:"Disk"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeErrorLogDataRequest ¶
type DescribeErrorLogDataRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start timestamp, such as 1585142640. StartTime *uint64 `json:"StartTime,omitnil" name:"StartTime"` // End timestamp, such as 1585142640. EndTime *uint64 `json:"EndTime,omitnil" name:"EndTime"` // List of keywords to match. Up to 15 keywords are supported. KeyWords []*string `json:"KeyWords,omitnil" name:"KeyWords"` // The number of results per page in paginated queries. Default value: 100. Maximum value: 400. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // This parameter is valid only for source or disaster recovery instances. Valid value: `slave`, which indicates pulling logs from the replica. InstType *string `json:"InstType,omitnil" name:"InstType"` }
func NewDescribeErrorLogDataRequest ¶
func NewDescribeErrorLogDataRequest() (request *DescribeErrorLogDataRequest)
func (*DescribeErrorLogDataRequest) FromJsonString ¶
func (r *DescribeErrorLogDataRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeErrorLogDataRequest) ToJsonString ¶
func (r *DescribeErrorLogDataRequest) ToJsonString() string
type DescribeErrorLogDataRequestParams ¶
type DescribeErrorLogDataRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start timestamp, such as 1585142640. StartTime *uint64 `json:"StartTime,omitnil" name:"StartTime"` // End timestamp, such as 1585142640. EndTime *uint64 `json:"EndTime,omitnil" name:"EndTime"` // List of keywords to match. Up to 15 keywords are supported. KeyWords []*string `json:"KeyWords,omitnil" name:"KeyWords"` // The number of results per page in paginated queries. Default value: 100. Maximum value: 400. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // This parameter is valid only for source or disaster recovery instances. Valid value: `slave`, which indicates pulling logs from the replica. InstType *string `json:"InstType,omitnil" name:"InstType"` }
Predefined struct for user
type DescribeErrorLogDataResponse ¶
type DescribeErrorLogDataResponse struct { *tchttp.BaseResponse Response *DescribeErrorLogDataResponseParams `json:"Response"` }
func NewDescribeErrorLogDataResponse ¶
func NewDescribeErrorLogDataResponse() (response *DescribeErrorLogDataResponse)
func (*DescribeErrorLogDataResponse) FromJsonString ¶
func (r *DescribeErrorLogDataResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeErrorLogDataResponse) ToJsonString ¶
func (r *DescribeErrorLogDataResponse) ToJsonString() string
type DescribeErrorLogDataResponseParams ¶
type DescribeErrorLogDataResponseParams struct { // Number of eligible entries. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Returned result. // Note: this field may return null, indicating that no valid values can be obtained. Items []*ErrlogItem `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceParamRecordsRequest ¶
type DescribeInstanceParamRecordsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Pagination offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeInstanceParamRecordsRequest ¶
func NewDescribeInstanceParamRecordsRequest() (request *DescribeInstanceParamRecordsRequest)
func (*DescribeInstanceParamRecordsRequest) FromJsonString ¶
func (r *DescribeInstanceParamRecordsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceParamRecordsRequest) ToJsonString ¶
func (r *DescribeInstanceParamRecordsRequest) ToJsonString() string
type DescribeInstanceParamRecordsRequestParams ¶
type DescribeInstanceParamRecordsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Pagination offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeInstanceParamRecordsResponse ¶
type DescribeInstanceParamRecordsResponse struct { *tchttp.BaseResponse Response *DescribeInstanceParamRecordsResponseParams `json:"Response"` }
func NewDescribeInstanceParamRecordsResponse ¶
func NewDescribeInstanceParamRecordsResponse() (response *DescribeInstanceParamRecordsResponse)
func (*DescribeInstanceParamRecordsResponse) FromJsonString ¶
func (r *DescribeInstanceParamRecordsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceParamRecordsResponse) ToJsonString ¶
func (r *DescribeInstanceParamRecordsResponse) ToJsonString() string
type DescribeInstanceParamRecordsResponseParams ¶
type DescribeInstanceParamRecordsResponseParams struct { // Number of eligible records. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Parameter modification records. Items []*ParamRecord `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceParamsRequest ¶
type DescribeInstanceParamsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeInstanceParamsRequest ¶
func NewDescribeInstanceParamsRequest() (request *DescribeInstanceParamsRequest)
func (*DescribeInstanceParamsRequest) FromJsonString ¶
func (r *DescribeInstanceParamsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceParamsRequest) ToJsonString ¶
func (r *DescribeInstanceParamsRequest) ToJsonString() string
type DescribeInstanceParamsRequestParams ¶
type DescribeInstanceParamsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeInstanceParamsResponse ¶
type DescribeInstanceParamsResponse struct { *tchttp.BaseResponse Response *DescribeInstanceParamsResponseParams `json:"Response"` }
func NewDescribeInstanceParamsResponse ¶
func NewDescribeInstanceParamsResponse() (response *DescribeInstanceParamsResponse)
func (*DescribeInstanceParamsResponse) FromJsonString ¶
func (r *DescribeInstanceParamsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceParamsResponse) ToJsonString ¶
func (r *DescribeInstanceParamsResponse) ToJsonString() string
type DescribeInstanceParamsResponseParams ¶
type DescribeInstanceParamsResponseParams struct { // Number of instance parameters. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Parameter details. Items []*ParameterDetail `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeLocalBinlogConfigRequest ¶
type DescribeLocalBinlogConfigRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeLocalBinlogConfigRequest ¶
func NewDescribeLocalBinlogConfigRequest() (request *DescribeLocalBinlogConfigRequest)
func (*DescribeLocalBinlogConfigRequest) FromJsonString ¶
func (r *DescribeLocalBinlogConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLocalBinlogConfigRequest) ToJsonString ¶
func (r *DescribeLocalBinlogConfigRequest) ToJsonString() string
type DescribeLocalBinlogConfigRequestParams ¶
type DescribeLocalBinlogConfigRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeLocalBinlogConfigResponse ¶
type DescribeLocalBinlogConfigResponse struct { *tchttp.BaseResponse Response *DescribeLocalBinlogConfigResponseParams `json:"Response"` }
func NewDescribeLocalBinlogConfigResponse ¶
func NewDescribeLocalBinlogConfigResponse() (response *DescribeLocalBinlogConfigResponse)
func (*DescribeLocalBinlogConfigResponse) FromJsonString ¶
func (r *DescribeLocalBinlogConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLocalBinlogConfigResponse) ToJsonString ¶
func (r *DescribeLocalBinlogConfigResponse) ToJsonString() string
type DescribeLocalBinlogConfigResponseParams ¶
type DescribeLocalBinlogConfigResponseParams struct { // Binlog retention policy of the instance. LocalBinlogConfig *LocalBinlogConfig `json:"LocalBinlogConfig,omitnil" name:"LocalBinlogConfig"` // Default binlog retention policy in the region. LocalBinlogConfigDefault *LocalBinlogConfigDefault `json:"LocalBinlogConfigDefault,omitnil" name:"LocalBinlogConfigDefault"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeParamTemplateInfoRequest ¶
type DescribeParamTemplateInfoRequest struct { *tchttp.BaseRequest // Parameter template ID. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` }
func NewDescribeParamTemplateInfoRequest ¶
func NewDescribeParamTemplateInfoRequest() (request *DescribeParamTemplateInfoRequest)
func (*DescribeParamTemplateInfoRequest) FromJsonString ¶
func (r *DescribeParamTemplateInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeParamTemplateInfoRequest) ToJsonString ¶
func (r *DescribeParamTemplateInfoRequest) ToJsonString() string
type DescribeParamTemplateInfoRequestParams ¶
type DescribeParamTemplateInfoRequestParams struct { // Parameter template ID. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` }
Predefined struct for user
type DescribeParamTemplateInfoResponse ¶
type DescribeParamTemplateInfoResponse struct { *tchttp.BaseResponse Response *DescribeParamTemplateInfoResponseParams `json:"Response"` }
func NewDescribeParamTemplateInfoResponse ¶
func NewDescribeParamTemplateInfoResponse() (response *DescribeParamTemplateInfoResponse)
func (*DescribeParamTemplateInfoResponse) FromJsonString ¶
func (r *DescribeParamTemplateInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeParamTemplateInfoResponse) ToJsonString ¶
func (r *DescribeParamTemplateInfoResponse) ToJsonString() string
type DescribeParamTemplateInfoResponseParams ¶
type DescribeParamTemplateInfoResponseParams struct { // Parameter template ID. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` // Parameter template name. Name *string `json:"Name,omitnil" name:"Name"` // Database engine version specified in the parameter template EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Number of parameters in the parameter template TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Parameter details Items []*ParameterDetail `json:"Items,omitnil" name:"Items"` // Parameter template description Description *string `json:"Description,omitnil" name:"Description"` // Type of the parameter template. Valid values: `HIGH_STABILITY` (high-stability template), `HIGH_PERFORMANCE` (high-performance template). TemplateType *string `json:"TemplateType,omitnil" name:"TemplateType"` // Parameter template engine. Valid values: `InnoDB`, `RocksDB`. // Note: This field may return null, indicating that no valid values can be obtained. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeParamTemplatesRequest ¶
type DescribeParamTemplatesRequest struct { *tchttp.BaseRequest // Engine version. If it is left empty, all parameter templates will be queried. EngineVersions []*string `json:"EngineVersions,omitnil" name:"EngineVersions"` // Engine type. If it is left empty, all engine types will be queried. EngineTypes []*string `json:"EngineTypes,omitnil" name:"EngineTypes"` // Template name. If it is left empty, all template names will be queried. TemplateNames []*string `json:"TemplateNames,omitnil" name:"TemplateNames"` // Template ID. If it is left empty, all template IDs will be queried. TemplateIds []*int64 `json:"TemplateIds,omitnil" name:"TemplateIds"` }
func NewDescribeParamTemplatesRequest ¶
func NewDescribeParamTemplatesRequest() (request *DescribeParamTemplatesRequest)
func (*DescribeParamTemplatesRequest) FromJsonString ¶
func (r *DescribeParamTemplatesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeParamTemplatesRequest) ToJsonString ¶
func (r *DescribeParamTemplatesRequest) ToJsonString() string
type DescribeParamTemplatesRequestParams ¶
type DescribeParamTemplatesRequestParams struct { // Engine version. If it is left empty, all parameter templates will be queried. EngineVersions []*string `json:"EngineVersions,omitnil" name:"EngineVersions"` // Engine type. If it is left empty, all engine types will be queried. EngineTypes []*string `json:"EngineTypes,omitnil" name:"EngineTypes"` // Template name. If it is left empty, all template names will be queried. TemplateNames []*string `json:"TemplateNames,omitnil" name:"TemplateNames"` // Template ID. If it is left empty, all template IDs will be queried. TemplateIds []*int64 `json:"TemplateIds,omitnil" name:"TemplateIds"` }
Predefined struct for user
type DescribeParamTemplatesResponse ¶
type DescribeParamTemplatesResponse struct { *tchttp.BaseResponse Response *DescribeParamTemplatesResponseParams `json:"Response"` }
func NewDescribeParamTemplatesResponse ¶
func NewDescribeParamTemplatesResponse() (response *DescribeParamTemplatesResponse)
func (*DescribeParamTemplatesResponse) FromJsonString ¶
func (r *DescribeParamTemplatesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeParamTemplatesResponse) ToJsonString ¶
func (r *DescribeParamTemplatesResponse) ToJsonString() string
type DescribeParamTemplatesResponseParams ¶
type DescribeParamTemplatesResponseParams struct { // Number of parameter templates of the user. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Parameter template details. Items []*ParamTemplateInfo `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeProjectSecurityGroupsRequest ¶
type DescribeProjectSecurityGroupsRequest struct { *tchttp.BaseRequest // Project ID. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` }
func NewDescribeProjectSecurityGroupsRequest ¶
func NewDescribeProjectSecurityGroupsRequest() (request *DescribeProjectSecurityGroupsRequest)
func (*DescribeProjectSecurityGroupsRequest) FromJsonString ¶
func (r *DescribeProjectSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProjectSecurityGroupsRequest) ToJsonString ¶
func (r *DescribeProjectSecurityGroupsRequest) ToJsonString() string
type DescribeProjectSecurityGroupsRequestParams ¶
type DescribeProjectSecurityGroupsRequestParams struct { // Project ID. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` }
Predefined struct for user
type DescribeProjectSecurityGroupsResponse ¶
type DescribeProjectSecurityGroupsResponse struct { *tchttp.BaseResponse Response *DescribeProjectSecurityGroupsResponseParams `json:"Response"` }
func NewDescribeProjectSecurityGroupsResponse ¶
func NewDescribeProjectSecurityGroupsResponse() (response *DescribeProjectSecurityGroupsResponse)
func (*DescribeProjectSecurityGroupsResponse) FromJsonString ¶
func (r *DescribeProjectSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProjectSecurityGroupsResponse) ToJsonString ¶
func (r *DescribeProjectSecurityGroupsResponse) ToJsonString() string
type DescribeProjectSecurityGroupsResponseParams ¶
type DescribeProjectSecurityGroupsResponseParams struct { // Security group details. Groups []*SecurityGroup `json:"Groups,omitnil" name:"Groups"` // Number of security group rules TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeProxyCustomConfRequest ¶
type DescribeProxyCustomConfRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Paginated query offset Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Maximum entries returned per page Limit *uint64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeProxyCustomConfRequest ¶
func NewDescribeProxyCustomConfRequest() (request *DescribeProxyCustomConfRequest)
func (*DescribeProxyCustomConfRequest) FromJsonString ¶
func (r *DescribeProxyCustomConfRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProxyCustomConfRequest) ToJsonString ¶
func (r *DescribeProxyCustomConfRequest) ToJsonString() string
type DescribeProxyCustomConfRequestParams ¶
type DescribeProxyCustomConfRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Paginated query offset Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Maximum entries returned per page Limit *uint64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeProxyCustomConfResponse ¶
type DescribeProxyCustomConfResponse struct { *tchttp.BaseResponse Response *DescribeProxyCustomConfResponseParams `json:"Response"` }
func NewDescribeProxyCustomConfResponse ¶
func NewDescribeProxyCustomConfResponse() (response *DescribeProxyCustomConfResponse)
func (*DescribeProxyCustomConfResponse) FromJsonString ¶
func (r *DescribeProxyCustomConfResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProxyCustomConfResponse) ToJsonString ¶
func (r *DescribeProxyCustomConfResponse) ToJsonString() string
type DescribeProxyCustomConfResponseParams ¶
type DescribeProxyCustomConfResponseParams struct { // Number of queried proxy configurations // Note: this field may return `null`, indicating that no valid value can be found. Count *uint64 `json:"Count,omitnil" name:"Count"` // Proxy configuration details // Note: this field may return `null`, indicating that no valid value can be found. CustomConf *CustomConfig `json:"CustomConf,omitnil" name:"CustomConf"` // Weight rule // Note: this field may return `null`, indicating that no valid value can be found. WeightRule *Rule `json:"WeightRule,omitnil" name:"WeightRule"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeProxySupportParamRequest ¶
type DescribeProxySupportParamRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeProxySupportParamRequest ¶
func NewDescribeProxySupportParamRequest() (request *DescribeProxySupportParamRequest)
func (*DescribeProxySupportParamRequest) FromJsonString ¶
func (r *DescribeProxySupportParamRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProxySupportParamRequest) ToJsonString ¶
func (r *DescribeProxySupportParamRequest) ToJsonString() string
type DescribeProxySupportParamRequestParams ¶
type DescribeProxySupportParamRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeProxySupportParamResponse ¶
type DescribeProxySupportParamResponse struct { *tchttp.BaseResponse Response *DescribeProxySupportParamResponseParams `json:"Response"` }
func NewDescribeProxySupportParamResponse ¶
func NewDescribeProxySupportParamResponse() (response *DescribeProxySupportParamResponse)
func (*DescribeProxySupportParamResponse) FromJsonString ¶
func (r *DescribeProxySupportParamResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProxySupportParamResponse) ToJsonString ¶
func (r *DescribeProxySupportParamResponse) ToJsonString() string
type DescribeProxySupportParamResponseParams ¶
type DescribeProxySupportParamResponseParams struct { // The supported maximum proxy version Note: This field may return null, indicating that no valid values can be obtained. ProxyVersion *string `json:"ProxyVersion,omitnil" name:"ProxyVersion"` // Whether to support the connection pool Note: This field may return null, indicating that no valid values can be obtained. SupportPool *bool `json:"SupportPool,omitnil" name:"SupportPool"` // Minimum connections in the connection pool Note: This field may return null, indicating that no valid values can be obtained. PoolMin *uint64 `json:"PoolMin,omitnil" name:"PoolMin"` // Maximum connections in the connection pool Note: This field may return null, indicating that no valid values can be obtained. PoolMax *uint64 `json:"PoolMax,omitnil" name:"PoolMax"` // Whether to support transaction splitting Note: This field may return null, indicating that no valid values can be obtained. SupportTransSplit *bool `json:"SupportTransSplit,omitnil" name:"SupportTransSplit"` // Minimum proxy version supporting connection pool Note: This field may return null, indicating that no valid values can be obtained. SupportPoolMinVersion *string `json:"SupportPoolMinVersion,omitnil" name:"SupportPoolMinVersion"` // Minimum proxy version supporting transaction splitting Note: This field may return null, indicating that no valid values can be obtained. SupportTransSplitMinVersion *string `json:"SupportTransSplitMinVersion,omitnil" name:"SupportTransSplitMinVersion"` // Whether read-only mode is supported Note: This field may return null, indicating that no valid values can be obtained. SupportReadOnly *bool `json:"SupportReadOnly,omitnil" name:"SupportReadOnly"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeRemoteBackupConfigRequest ¶
type DescribeRemoteBackupConfigRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeRemoteBackupConfigRequest ¶
func NewDescribeRemoteBackupConfigRequest() (request *DescribeRemoteBackupConfigRequest)
func (*DescribeRemoteBackupConfigRequest) FromJsonString ¶
func (r *DescribeRemoteBackupConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRemoteBackupConfigRequest) ToJsonString ¶
func (r *DescribeRemoteBackupConfigRequest) ToJsonString() string
type DescribeRemoteBackupConfigRequestParams ¶
type DescribeRemoteBackupConfigRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeRemoteBackupConfigResponse ¶
type DescribeRemoteBackupConfigResponse struct { *tchttp.BaseResponse Response *DescribeRemoteBackupConfigResponseParams `json:"Response"` }
func NewDescribeRemoteBackupConfigResponse ¶
func NewDescribeRemoteBackupConfigResponse() (response *DescribeRemoteBackupConfigResponse)
func (*DescribeRemoteBackupConfigResponse) FromJsonString ¶
func (r *DescribeRemoteBackupConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRemoteBackupConfigResponse) ToJsonString ¶
func (r *DescribeRemoteBackupConfigResponse) ToJsonString() string
type DescribeRemoteBackupConfigResponseParams ¶
type DescribeRemoteBackupConfigResponseParams struct { // Remote backup retention period in days ExpireDays *int64 `json:"ExpireDays,omitnil" name:"ExpireDays"` // Remote data backup. Valid values:`off` (disable), `on` (enable). RemoteBackupSave *string `json:"RemoteBackupSave,omitnil" name:"RemoteBackupSave"` // Remote log backup. Valid values: `off` (disable), `on` (enable). Only when the parameter `RemoteBackupSave` is `on`, the `RemoteBinlogSave` parameter can be set to `on`. RemoteBinlogSave *string `json:"RemoteBinlogSave,omitnil" name:"RemoteBinlogSave"` // List of configured remote backup regions RemoteRegion []*string `json:"RemoteRegion,omitnil" name:"RemoteRegion"` // List of remote backup regions RegionList []*string `json:"RegionList,omitnil" name:"RegionList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeRoGroupsRequest ¶
type DescribeRoGroupsRequest struct { *tchttp.BaseRequest // Instance ID in the format of `cdb-c1nl9rpv` or `cdb-c1nl9rpv`. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeRoGroupsRequest ¶
func NewDescribeRoGroupsRequest() (request *DescribeRoGroupsRequest)
func (*DescribeRoGroupsRequest) FromJsonString ¶
func (r *DescribeRoGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRoGroupsRequest) ToJsonString ¶
func (r *DescribeRoGroupsRequest) ToJsonString() string
type DescribeRoGroupsRequestParams ¶
type DescribeRoGroupsRequestParams struct { // Instance ID in the format of `cdb-c1nl9rpv` or `cdb-c1nl9rpv`. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeRoGroupsResponse ¶
type DescribeRoGroupsResponse struct { *tchttp.BaseResponse Response *DescribeRoGroupsResponseParams `json:"Response"` }
func NewDescribeRoGroupsResponse ¶
func NewDescribeRoGroupsResponse() (response *DescribeRoGroupsResponse)
func (*DescribeRoGroupsResponse) FromJsonString ¶
func (r *DescribeRoGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRoGroupsResponse) ToJsonString ¶
func (r *DescribeRoGroupsResponse) ToJsonString() string
type DescribeRoGroupsResponseParams ¶
type DescribeRoGroupsResponseParams struct { // RO group information array. An instance can be associated with multiple RO groups. RoGroups []*RoGroup `json:"RoGroups,omitnil" name:"RoGroups"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeRoMinScaleRequest ¶
type DescribeRoMinScaleRequest struct { *tchttp.BaseRequest // Read-only instance ID in the format of "cdbro-c1nl9rpv". Its value is the same as the instance ID in the TencentDB Console. This parameter and the `MasterInstanceId` parameter cannot both be empty. RoInstanceId *string `json:"RoInstanceId,omitnil" name:"RoInstanceId"` // Primary instance ID in the format of "cdbro-c1nl9rpv". Its value is the same as the instance ID in the TencentDB Console. This parameter and the `RoInstanceId` parameter cannot both be empty. Note: when the parameters are passed in with `RoInstanceId`, the return value refers to the minimum specification to which a read-only instance can be upgraded; when the parameters are passed in with `MasterInstanceId` but without `RoInstanceId`, the return value refers to the minimum purchasable specification for a read-only instance. MasterInstanceId *string `json:"MasterInstanceId,omitnil" name:"MasterInstanceId"` }
func NewDescribeRoMinScaleRequest ¶
func NewDescribeRoMinScaleRequest() (request *DescribeRoMinScaleRequest)
func (*DescribeRoMinScaleRequest) FromJsonString ¶
func (r *DescribeRoMinScaleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRoMinScaleRequest) ToJsonString ¶
func (r *DescribeRoMinScaleRequest) ToJsonString() string
type DescribeRoMinScaleRequestParams ¶
type DescribeRoMinScaleRequestParams struct { // Read-only instance ID in the format of "cdbro-c1nl9rpv". Its value is the same as the instance ID in the TencentDB Console. This parameter and the `MasterInstanceId` parameter cannot both be empty. RoInstanceId *string `json:"RoInstanceId,omitnil" name:"RoInstanceId"` // Primary instance ID in the format of "cdbro-c1nl9rpv". Its value is the same as the instance ID in the TencentDB Console. This parameter and the `RoInstanceId` parameter cannot both be empty. Note: when the parameters are passed in with `RoInstanceId`, the return value refers to the minimum specification to which a read-only instance can be upgraded; when the parameters are passed in with `MasterInstanceId` but without `RoInstanceId`, the return value refers to the minimum purchasable specification for a read-only instance. MasterInstanceId *string `json:"MasterInstanceId,omitnil" name:"MasterInstanceId"` }
Predefined struct for user
type DescribeRoMinScaleResponse ¶
type DescribeRoMinScaleResponse struct { *tchttp.BaseResponse Response *DescribeRoMinScaleResponseParams `json:"Response"` }
func NewDescribeRoMinScaleResponse ¶
func NewDescribeRoMinScaleResponse() (response *DescribeRoMinScaleResponse)
func (*DescribeRoMinScaleResponse) FromJsonString ¶
func (r *DescribeRoMinScaleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRoMinScaleResponse) ToJsonString ¶
func (r *DescribeRoMinScaleResponse) ToJsonString() string
type DescribeRoMinScaleResponseParams ¶
type DescribeRoMinScaleResponseParams struct { // Memory size in MB. Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Disk size in GB. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeRollbackRangeTimeRequest ¶
type DescribeRollbackRangeTimeRequest struct { *tchttp.BaseRequest // Instance ID list. An instance ID is in the format of cdb-c1nl9rpv, which is the same as the instance ID displayed on the TencentDB Console page. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Whether the clone instance and the source instance are in one AZ. Valid values: `true` (yes), `false` (no). IsRemoteZone *string `json:"IsRemoteZone,omitnil" name:"IsRemoteZone"` // The region of the clone instance, such as `ap-guangzhou`. BackupRegion *string `json:"BackupRegion,omitnil" name:"BackupRegion"` }
func NewDescribeRollbackRangeTimeRequest ¶
func NewDescribeRollbackRangeTimeRequest() (request *DescribeRollbackRangeTimeRequest)
func (*DescribeRollbackRangeTimeRequest) FromJsonString ¶
func (r *DescribeRollbackRangeTimeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRollbackRangeTimeRequest) ToJsonString ¶
func (r *DescribeRollbackRangeTimeRequest) ToJsonString() string
type DescribeRollbackRangeTimeRequestParams ¶
type DescribeRollbackRangeTimeRequestParams struct { // Instance ID list. An instance ID is in the format of cdb-c1nl9rpv, which is the same as the instance ID displayed on the TencentDB Console page. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Whether the clone instance and the source instance are in one AZ. Valid values: `true` (yes), `false` (no). IsRemoteZone *string `json:"IsRemoteZone,omitnil" name:"IsRemoteZone"` // The region of the clone instance, such as `ap-guangzhou`. BackupRegion *string `json:"BackupRegion,omitnil" name:"BackupRegion"` }
Predefined struct for user
type DescribeRollbackRangeTimeResponse ¶
type DescribeRollbackRangeTimeResponse struct { *tchttp.BaseResponse Response *DescribeRollbackRangeTimeResponseParams `json:"Response"` }
func NewDescribeRollbackRangeTimeResponse ¶
func NewDescribeRollbackRangeTimeResponse() (response *DescribeRollbackRangeTimeResponse)
func (*DescribeRollbackRangeTimeResponse) FromJsonString ¶
func (r *DescribeRollbackRangeTimeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRollbackRangeTimeResponse) ToJsonString ¶
func (r *DescribeRollbackRangeTimeResponse) ToJsonString() string
type DescribeRollbackRangeTimeResponseParams ¶
type DescribeRollbackRangeTimeResponseParams struct { // Number of eligible instances. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Returned parameter information. Items []*InstanceRollbackRangeTime `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeRollbackTaskDetailRequest ¶
type DescribeRollbackTaskDetailRequest struct { *tchttp.BaseRequest // Instance ID, which is the same as the instance ID displayed in the TencentDB Console. You can use the [DescribeDBInstances API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Async task ID. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // Pagination parameter, i.e., the number of entries to be returned for a single request. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Pagination offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` }
func NewDescribeRollbackTaskDetailRequest ¶
func NewDescribeRollbackTaskDetailRequest() (request *DescribeRollbackTaskDetailRequest)
func (*DescribeRollbackTaskDetailRequest) FromJsonString ¶
func (r *DescribeRollbackTaskDetailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRollbackTaskDetailRequest) ToJsonString ¶
func (r *DescribeRollbackTaskDetailRequest) ToJsonString() string
type DescribeRollbackTaskDetailRequestParams ¶
type DescribeRollbackTaskDetailRequestParams struct { // Instance ID, which is the same as the instance ID displayed in the TencentDB Console. You can use the [DescribeDBInstances API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Async task ID. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // Pagination parameter, i.e., the number of entries to be returned for a single request. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Pagination offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` }
Predefined struct for user
type DescribeRollbackTaskDetailResponse ¶
type DescribeRollbackTaskDetailResponse struct { *tchttp.BaseResponse Response *DescribeRollbackTaskDetailResponseParams `json:"Response"` }
func NewDescribeRollbackTaskDetailResponse ¶
func NewDescribeRollbackTaskDetailResponse() (response *DescribeRollbackTaskDetailResponse)
func (*DescribeRollbackTaskDetailResponse) FromJsonString ¶
func (r *DescribeRollbackTaskDetailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRollbackTaskDetailResponse) ToJsonString ¶
func (r *DescribeRollbackTaskDetailResponse) ToJsonString() string
type DescribeRollbackTaskDetailResponseParams ¶
type DescribeRollbackTaskDetailResponseParams struct { // Number of eligible entries. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Rollback task details. // Note: this field may return null, indicating that no valid values can be obtained. Items []*RollbackTask `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeSlowLogDataRequest ¶
type DescribeSlowLogDataRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start timestamp, such as 1585142640. StartTime *uint64 `json:"StartTime,omitnil" name:"StartTime"` // End timestamp, such as 1585142640. EndTime *uint64 `json:"EndTime,omitnil" name:"EndTime"` // Client `Host` list. UserHosts []*string `json:"UserHosts,omitnil" name:"UserHosts"` // Client username list. UserNames []*string `json:"UserNames,omitnil" name:"UserNames"` // Accessed database list. DataBases []*string `json:"DataBases,omitnil" name:"DataBases"` // Sort by field. Valid values: Timestamp, QueryTime, LockTime, RowsExamined, RowsSent. SortBy *string `json:"SortBy,omitnil" name:"SortBy"` // Sorting order. Valid values: ASC (ascending), DESC (descending). OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // The number of results per page in paginated queries. Default value: 100. Maximum value: 400. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // This parameter is valid only for source or disaster recovery instances. Valid value: `slave`, which indicates pulling logs from the replica. InstType *string `json:"InstType,omitnil" name:"InstType"` }
func NewDescribeSlowLogDataRequest ¶
func NewDescribeSlowLogDataRequest() (request *DescribeSlowLogDataRequest)
func (*DescribeSlowLogDataRequest) FromJsonString ¶
func (r *DescribeSlowLogDataRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSlowLogDataRequest) ToJsonString ¶
func (r *DescribeSlowLogDataRequest) ToJsonString() string
type DescribeSlowLogDataRequestParams ¶
type DescribeSlowLogDataRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start timestamp, such as 1585142640. StartTime *uint64 `json:"StartTime,omitnil" name:"StartTime"` // End timestamp, such as 1585142640. EndTime *uint64 `json:"EndTime,omitnil" name:"EndTime"` // Client `Host` list. UserHosts []*string `json:"UserHosts,omitnil" name:"UserHosts"` // Client username list. UserNames []*string `json:"UserNames,omitnil" name:"UserNames"` // Accessed database list. DataBases []*string `json:"DataBases,omitnil" name:"DataBases"` // Sort by field. Valid values: Timestamp, QueryTime, LockTime, RowsExamined, RowsSent. SortBy *string `json:"SortBy,omitnil" name:"SortBy"` // Sorting order. Valid values: ASC (ascending), DESC (descending). OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // The number of results per page in paginated queries. Default value: 100. Maximum value: 400. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // This parameter is valid only for source or disaster recovery instances. Valid value: `slave`, which indicates pulling logs from the replica. InstType *string `json:"InstType,omitnil" name:"InstType"` }
Predefined struct for user
type DescribeSlowLogDataResponse ¶
type DescribeSlowLogDataResponse struct { *tchttp.BaseResponse Response *DescribeSlowLogDataResponseParams `json:"Response"` }
func NewDescribeSlowLogDataResponse ¶
func NewDescribeSlowLogDataResponse() (response *DescribeSlowLogDataResponse)
func (*DescribeSlowLogDataResponse) FromJsonString ¶
func (r *DescribeSlowLogDataResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSlowLogDataResponse) ToJsonString ¶
func (r *DescribeSlowLogDataResponse) ToJsonString() string
type DescribeSlowLogDataResponseParams ¶
type DescribeSlowLogDataResponseParams struct { // Number of eligible entries. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Queried results. // Note: this field may return null, indicating that no valid values can be obtained. Items []*SlowLogItem `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeSlowLogsRequest ¶
type DescribeSlowLogsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Pagination offset, starting from `0`. Default value: `0`. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeSlowLogsRequest ¶
func NewDescribeSlowLogsRequest() (request *DescribeSlowLogsRequest)
func (*DescribeSlowLogsRequest) FromJsonString ¶
func (r *DescribeSlowLogsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSlowLogsRequest) ToJsonString ¶
func (r *DescribeSlowLogsRequest) ToJsonString() string
type DescribeSlowLogsRequestParams ¶
type DescribeSlowLogsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Pagination offset, starting from `0`. Default value: `0`. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Value range: 1-100. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeSlowLogsResponse ¶
type DescribeSlowLogsResponse struct { *tchttp.BaseResponse Response *DescribeSlowLogsResponseParams `json:"Response"` }
func NewDescribeSlowLogsResponse ¶
func NewDescribeSlowLogsResponse() (response *DescribeSlowLogsResponse)
func (*DescribeSlowLogsResponse) FromJsonString ¶
func (r *DescribeSlowLogsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSlowLogsResponse) ToJsonString ¶
func (r *DescribeSlowLogsResponse) ToJsonString() string
type DescribeSlowLogsResponseParams ¶
type DescribeSlowLogsResponseParams struct { // Number of eligible slow logs. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Details of eligible slow logs. Items []*SlowLogInfo `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeSupportedPrivilegesRequest ¶
type DescribeSupportedPrivilegesRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeSupportedPrivilegesRequest ¶
func NewDescribeSupportedPrivilegesRequest() (request *DescribeSupportedPrivilegesRequest)
func (*DescribeSupportedPrivilegesRequest) FromJsonString ¶
func (r *DescribeSupportedPrivilegesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSupportedPrivilegesRequest) ToJsonString ¶
func (r *DescribeSupportedPrivilegesRequest) ToJsonString() string
type DescribeSupportedPrivilegesRequestParams ¶
type DescribeSupportedPrivilegesRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeSupportedPrivilegesResponse ¶
type DescribeSupportedPrivilegesResponse struct { *tchttp.BaseResponse Response *DescribeSupportedPrivilegesResponseParams `json:"Response"` }
func NewDescribeSupportedPrivilegesResponse ¶
func NewDescribeSupportedPrivilegesResponse() (response *DescribeSupportedPrivilegesResponse)
func (*DescribeSupportedPrivilegesResponse) FromJsonString ¶
func (r *DescribeSupportedPrivilegesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSupportedPrivilegesResponse) ToJsonString ¶
func (r *DescribeSupportedPrivilegesResponse) ToJsonString() string
type DescribeSupportedPrivilegesResponseParams ¶
type DescribeSupportedPrivilegesResponseParams struct { // Global permissions supported by the instance GlobalSupportedPrivileges []*string `json:"GlobalSupportedPrivileges,omitnil" name:"GlobalSupportedPrivileges"` // Database permissions supported by the instance. DatabaseSupportedPrivileges []*string `json:"DatabaseSupportedPrivileges,omitnil" name:"DatabaseSupportedPrivileges"` // Table permissions supported by the instance. TableSupportedPrivileges []*string `json:"TableSupportedPrivileges,omitnil" name:"TableSupportedPrivileges"` // Column permissions supported by the instance. ColumnSupportedPrivileges []*string `json:"ColumnSupportedPrivileges,omitnil" name:"ColumnSupportedPrivileges"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeTablesRequest ¶
type DescribeTablesRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Database name. Database *string `json:"Database,omitnil" name:"Database"` // Record offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Default value: 20. Maximum value: 2,000. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Regular expression for matching table names, which complies with the rules at MySQL's official website TableRegexp *string `json:"TableRegexp,omitnil" name:"TableRegexp"` }
func NewDescribeTablesRequest ¶
func NewDescribeTablesRequest() (request *DescribeTablesRequest)
func (*DescribeTablesRequest) FromJsonString ¶
func (r *DescribeTablesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTablesRequest) ToJsonString ¶
func (r *DescribeTablesRequest) ToJsonString() string
type DescribeTablesRequestParams ¶
type DescribeTablesRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Database name. Database *string `json:"Database,omitnil" name:"Database"` // Record offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Default value: 20. Maximum value: 2,000. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Regular expression for matching table names, which complies with the rules at MySQL's official website TableRegexp *string `json:"TableRegexp,omitnil" name:"TableRegexp"` }
Predefined struct for user
type DescribeTablesResponse ¶
type DescribeTablesResponse struct { *tchttp.BaseResponse Response *DescribeTablesResponseParams `json:"Response"` }
func NewDescribeTablesResponse ¶
func NewDescribeTablesResponse() (response *DescribeTablesResponse)
func (*DescribeTablesResponse) FromJsonString ¶
func (r *DescribeTablesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTablesResponse) ToJsonString ¶
func (r *DescribeTablesResponse) ToJsonString() string
type DescribeTablesResponseParams ¶
type DescribeTablesResponseParams struct { // Number of eligible tables. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Information of a table. Items []*string `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeTagsOfInstanceIdsRequest ¶
type DescribeTagsOfInstanceIdsRequest struct { *tchttp.BaseRequest // List of instances. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Pagination offset. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeTagsOfInstanceIdsRequest ¶
func NewDescribeTagsOfInstanceIdsRequest() (request *DescribeTagsOfInstanceIdsRequest)
func (*DescribeTagsOfInstanceIdsRequest) FromJsonString ¶
func (r *DescribeTagsOfInstanceIdsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagsOfInstanceIdsRequest) ToJsonString ¶
func (r *DescribeTagsOfInstanceIdsRequest) ToJsonString() string
type DescribeTagsOfInstanceIdsRequestParams ¶
type DescribeTagsOfInstanceIdsRequestParams struct { // List of instances. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Pagination offset. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeTagsOfInstanceIdsResponse ¶
type DescribeTagsOfInstanceIdsResponse struct { *tchttp.BaseResponse Response *DescribeTagsOfInstanceIdsResponseParams `json:"Response"` }
func NewDescribeTagsOfInstanceIdsResponse ¶
func NewDescribeTagsOfInstanceIdsResponse() (response *DescribeTagsOfInstanceIdsResponse)
func (*DescribeTagsOfInstanceIdsResponse) FromJsonString ¶
func (r *DescribeTagsOfInstanceIdsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagsOfInstanceIdsResponse) ToJsonString ¶
func (r *DescribeTagsOfInstanceIdsResponse) ToJsonString() string
type DescribeTagsOfInstanceIdsResponseParams ¶
type DescribeTagsOfInstanceIdsResponseParams struct { // Pagination offset. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of entries per page. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Instance tag information. Rows []*TagsInfoOfInstance `json:"Rows,omitnil" name:"Rows"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeTasksRequest ¶
type DescribeTasksRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // ID of an async task request, i.e., `AsyncRequestId` returned by relevant TencentDB operations. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // Task type. If no value is passed in, all task types will be queried. Valid values: // 1 - rolling back a database; // 2 - performing an SQL operation; // 3 - importing data; // 5 - setting a parameter; // 6 - initializing a TencentDB instance; // 7 - restarting a TencentDB instance; // 8 - enabling GTID of a TencentDB instance; // 9 - upgrading a read-only instance; // 10 - rolling back databases in batches; // 11 - upgrading a primary instance; // 12 - deleting a TencentDB table; // 13 - promoting a disaster recovery instance. TaskTypes []*int64 `json:"TaskTypes,omitnil" name:"TaskTypes"` // Task status. If no value is passed in, all task statuses will be queried. Valid values: // -1 - undefined; // 0 - initializing; // 1 - running; // 2 - succeeded; // 3 - failed; // 4 - terminated; // 5 - deleted; // 6 - paused. TaskStatus []*int64 `json:"TaskStatus,omitnil" name:"TaskStatus"` // Start time of the first task in the format of yyyy-MM-dd HH:mm:ss, such as 2017-12-31 10:40:01. It is used for queries by time range. StartTimeBegin *string `json:"StartTimeBegin,omitnil" name:"StartTimeBegin"` // End time of the last task in the format of yyyy-MM-dd HH:mm:ss, such as 2017-12-31 10:40:01. It is used for queries by time range. StartTimeEnd *string `json:"StartTimeEnd,omitnil" name:"StartTimeEnd"` // Record offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeTasksRequest ¶
func NewDescribeTasksRequest() (request *DescribeTasksRequest)
func (*DescribeTasksRequest) FromJsonString ¶
func (r *DescribeTasksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTasksRequest) ToJsonString ¶
func (r *DescribeTasksRequest) ToJsonString() string
type DescribeTasksRequestParams ¶
type DescribeTasksRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // ID of an async task request, i.e., `AsyncRequestId` returned by relevant TencentDB operations. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // Task type. If no value is passed in, all task types will be queried. Valid values: // 1 - rolling back a database; // 2 - performing an SQL operation; // 3 - importing data; // 5 - setting a parameter; // 6 - initializing a TencentDB instance; // 7 - restarting a TencentDB instance; // 8 - enabling GTID of a TencentDB instance; // 9 - upgrading a read-only instance; // 10 - rolling back databases in batches; // 11 - upgrading a primary instance; // 12 - deleting a TencentDB table; // 13 - promoting a disaster recovery instance. TaskTypes []*int64 `json:"TaskTypes,omitnil" name:"TaskTypes"` // Task status. If no value is passed in, all task statuses will be queried. Valid values: // -1 - undefined; // 0 - initializing; // 1 - running; // 2 - succeeded; // 3 - failed; // 4 - terminated; // 5 - deleted; // 6 - paused. TaskStatus []*int64 `json:"TaskStatus,omitnil" name:"TaskStatus"` // Start time of the first task in the format of yyyy-MM-dd HH:mm:ss, such as 2017-12-31 10:40:01. It is used for queries by time range. StartTimeBegin *string `json:"StartTimeBegin,omitnil" name:"StartTimeBegin"` // End time of the last task in the format of yyyy-MM-dd HH:mm:ss, such as 2017-12-31 10:40:01. It is used for queries by time range. StartTimeEnd *string `json:"StartTimeEnd,omitnil" name:"StartTimeEnd"` // Record offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeTasksResponse ¶
type DescribeTasksResponse struct { *tchttp.BaseResponse Response *DescribeTasksResponseParams `json:"Response"` }
func NewDescribeTasksResponse ¶
func NewDescribeTasksResponse() (response *DescribeTasksResponse)
func (*DescribeTasksResponse) FromJsonString ¶
func (r *DescribeTasksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTasksResponse) ToJsonString ¶
func (r *DescribeTasksResponse) ToJsonString() string
type DescribeTasksResponseParams ¶
type DescribeTasksResponseParams struct { // Number of eligible instances. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Information of an instance task. Items []*TaskDetail `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeTimeWindowRequest ¶
type DescribeTimeWindowRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeTimeWindowRequest ¶
func NewDescribeTimeWindowRequest() (request *DescribeTimeWindowRequest)
func (*DescribeTimeWindowRequest) FromJsonString ¶
func (r *DescribeTimeWindowRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTimeWindowRequest) ToJsonString ¶
func (r *DescribeTimeWindowRequest) ToJsonString() string
type DescribeTimeWindowRequestParams ¶
type DescribeTimeWindowRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeTimeWindowResponse ¶
type DescribeTimeWindowResponse struct { *tchttp.BaseResponse Response *DescribeTimeWindowResponseParams `json:"Response"` }
func NewDescribeTimeWindowResponse ¶
func NewDescribeTimeWindowResponse() (response *DescribeTimeWindowResponse)
func (*DescribeTimeWindowResponse) FromJsonString ¶
func (r *DescribeTimeWindowResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTimeWindowResponse) ToJsonString ¶
func (r *DescribeTimeWindowResponse) ToJsonString() string
type DescribeTimeWindowResponseParams ¶
type DescribeTimeWindowResponseParams struct { // List of maintenance time windows on Monday. Monday []*string `json:"Monday,omitnil" name:"Monday"` // List of maintenance time windows on Tuesday. Tuesday []*string `json:"Tuesday,omitnil" name:"Tuesday"` // List of maintenance time windows on Wednesday. Wednesday []*string `json:"Wednesday,omitnil" name:"Wednesday"` // List of maintenance time windows on Thursday. Thursday []*string `json:"Thursday,omitnil" name:"Thursday"` // List of maintenance time windows on Friday. Friday []*string `json:"Friday,omitnil" name:"Friday"` // List of maintenance time windows on Saturday. Saturday []*string `json:"Saturday,omitnil" name:"Saturday"` // List of maintenance time windows on Sunday. Sunday []*string `json:"Sunday,omitnil" name:"Sunday"` // Maximum data delay threshold MaxDelayTime *uint64 `json:"MaxDelayTime,omitnil" name:"MaxDelayTime"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeUploadedFilesRequest ¶
type DescribeUploadedFilesRequest struct { *tchttp.BaseRequest // File path. `OwnerUin` information of the root account should be entered in this field. Path *string `json:"Path,omitnil" name:"Path"` // Record offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeUploadedFilesRequest ¶
func NewDescribeUploadedFilesRequest() (request *DescribeUploadedFilesRequest)
func (*DescribeUploadedFilesRequest) FromJsonString ¶
func (r *DescribeUploadedFilesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUploadedFilesRequest) ToJsonString ¶
func (r *DescribeUploadedFilesRequest) ToJsonString() string
type DescribeUploadedFilesRequestParams ¶
type DescribeUploadedFilesRequestParams struct { // File path. `OwnerUin` information of the root account should be entered in this field. Path *string `json:"Path,omitnil" name:"Path"` // Record offset. Default value: 0. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of results to be returned for a single request. Default value: 20. Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeUploadedFilesResponse ¶
type DescribeUploadedFilesResponse struct { *tchttp.BaseResponse Response *DescribeUploadedFilesResponseParams `json:"Response"` }
func NewDescribeUploadedFilesResponse ¶
func NewDescribeUploadedFilesResponse() (response *DescribeUploadedFilesResponse)
func (*DescribeUploadedFilesResponse) FromJsonString ¶
func (r *DescribeUploadedFilesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUploadedFilesResponse) ToJsonString ¶
func (r *DescribeUploadedFilesResponse) ToJsonString() string
type DescribeUploadedFilesResponseParams ¶
type DescribeUploadedFilesResponseParams struct { // Number of eligible SQL files. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // List of returned SQL files. Items []*SqlFileInfo `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeviceCpuInfo ¶
type DeviceCpuInfo struct { // Average instance CPU utilization Rate []*DeviceCpuRateInfo `json:"Rate,omitnil" name:"Rate"` // CPU monitoring data of the instance Load []*int64 `json:"Load,omitnil" name:"Load"` }
type DeviceCpuRateInfo ¶
type DeviceDiskInfo ¶
type DeviceDiskInfo struct { // Time percentage of IO operations per second IoRatioPerSec []*int64 `json:"IoRatioPerSec,omitnil" name:"IoRatioPerSec"` // Average wait time of device I/O operations * 100 in milliseconds. For example, if the value is 201, the average wait time of I/O operations is 201/100 = 2.1 milliseconds. IoWaitTime []*int64 `json:"IoWaitTime,omitnil" name:"IoWaitTime"` // Average number of read operations completed by the disk per second * 100. For example, if the value is 2,002, the average number of read operations completed by the disk per second is 2,002/100=20.2. Read []*int64 `json:"Read,omitnil" name:"Read"` // Average number of write operations completed by the disk per second * 100. For example, if the value is 30,001, the average number of write operations completed by the disk per second is 30,001/100=300.01. Write []*int64 `json:"Write,omitnil" name:"Write"` // Disk capacity. Each value is comprised of two data, with the first data representing the used capacity and the second one representing the total disk capacity. CapacityRatio []*int64 `json:"CapacityRatio,omitnil" name:"CapacityRatio"` }
type DeviceMemInfo ¶
type DeviceMemInfo struct { // Total memory size in KB, which is the value of `total` in the `Mem:` in the `free` command Total []*int64 `json:"Total,omitnil" name:"Total"` // Used memory size in KB, which is the value of `used` in the `Mem:` row in the `free` command Used []*int64 `json:"Used,omitnil" name:"Used"` }
type DeviceNetInfo ¶
type DeviceNetInfo struct { // Number of TCP connections Conn []*int64 `json:"Conn,omitnil" name:"Conn"` // ENI inbound packets per second PackageIn []*int64 `json:"PackageIn,omitnil" name:"PackageIn"` // ENI outbound packets per second PackageOut []*int64 `json:"PackageOut,omitnil" name:"PackageOut"` // Inbound traffic in Kbps FlowIn []*int64 `json:"FlowIn,omitnil" name:"FlowIn"` // Outbound traffic in Kbps FlowOut []*int64 `json:"FlowOut,omitnil" name:"FlowOut"` }
type DisassociateSecurityGroupsRequest ¶
type DisassociateSecurityGroupsRequest struct { *tchttp.BaseRequest // Security group ID. SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"` // List of instance IDs, which is an array of one or more instance IDs. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // This parameter takes effect only when the IDs of read-only replicas are passed in. If this parameter is set to `False` or left empty, the security group will be unbound from the RO groups of these read-only replicas. If this parameter is set to `True`, the security group will be unbound from the read-only replicas themselves. ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitnil" name:"ForReadonlyInstance"` }
func NewDisassociateSecurityGroupsRequest ¶
func NewDisassociateSecurityGroupsRequest() (request *DisassociateSecurityGroupsRequest)
func (*DisassociateSecurityGroupsRequest) FromJsonString ¶
func (r *DisassociateSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisassociateSecurityGroupsRequest) ToJsonString ¶
func (r *DisassociateSecurityGroupsRequest) ToJsonString() string
type DisassociateSecurityGroupsRequestParams ¶
type DisassociateSecurityGroupsRequestParams struct { // Security group ID. SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"` // List of instance IDs, which is an array of one or more instance IDs. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // This parameter takes effect only when the IDs of read-only replicas are passed in. If this parameter is set to `False` or left empty, the security group will be unbound from the RO groups of these read-only replicas. If this parameter is set to `True`, the security group will be unbound from the read-only replicas themselves. ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitnil" name:"ForReadonlyInstance"` }
Predefined struct for user
type DisassociateSecurityGroupsResponse ¶
type DisassociateSecurityGroupsResponse struct { *tchttp.BaseResponse Response *DisassociateSecurityGroupsResponseParams `json:"Response"` }
func NewDisassociateSecurityGroupsResponse ¶
func NewDisassociateSecurityGroupsResponse() (response *DisassociateSecurityGroupsResponse)
func (*DisassociateSecurityGroupsResponse) FromJsonString ¶
func (r *DisassociateSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisassociateSecurityGroupsResponse) ToJsonString ¶
func (r *DisassociateSecurityGroupsResponse) ToJsonString() string
type DisassociateSecurityGroupsResponseParams ¶
type DisassociateSecurityGroupsResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DrInfo ¶
type DrInfo struct { // Disaster recovery instance status Status *int64 `json:"Status,omitnil" name:"Status"` // AZ information Zone *string `json:"Zone,omitnil" name:"Zone"` // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Region information Region *string `json:"Region,omitnil" name:"Region"` // Instance sync status. Possible returned values include: // 0 - disaster recovery not synced; // 1 - disaster recovery syncing; // 2 - disaster recovery synced successfully; // 3 - disaster recovery sync failed; // 4 - repairing disaster recovery sync; SyncStatus *int64 `json:"SyncStatus,omitnil" name:"SyncStatus"` // Instance name InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Instance type InstanceType *int64 `json:"InstanceType,omitnil" name:"InstanceType"` }
type ErrlogItem ¶
type ErrlogItem struct { // Error occurrence time. // Note: this field may return null, indicating that no valid values can be obtained. Timestamp *uint64 `json:"Timestamp,omitnil" name:"Timestamp"` // Error details // Note: this field may return null, indicating that no valid values can be obtained. Content *string `json:"Content,omitnil" name:"Content"` }
type ImportRecord ¶
type ImportRecord struct { // Status value Status *int64 `json:"Status,omitnil" name:"Status"` // Status value Code *int64 `json:"Code,omitnil" name:"Code"` // Execution duration CostTime *int64 `json:"CostTime,omitnil" name:"CostTime"` // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Backend task ID WorkId *string `json:"WorkId,omitnil" name:"WorkId"` // Name of the file to be imported FileName *string `json:"FileName,omitnil" name:"FileName"` // Execution progress Process *int64 `json:"Process,omitnil" name:"Process"` // Task creation time CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // File size FileSize *string `json:"FileSize,omitnil" name:"FileSize"` // Task execution information Message *string `json:"Message,omitnil" name:"Message"` // Task ID JobId *int64 `json:"JobId,omitnil" name:"JobId"` // Name of the table to be imported DbName *string `json:"DbName,omitnil" name:"DbName"` // Async task request ID AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` }
type Inbound ¶
type Inbound struct { // Policy, which can be ACCEPT or DROP Action *string `json:"Action,omitnil" name:"Action"` // Source IP or IP range, such as 192.168.0.0/16 CidrIp *string `json:"CidrIp,omitnil" name:"CidrIp"` // Port PortRange *string `json:"PortRange,omitnil" name:"PortRange"` // Network protocol. UDP and TCP are supported. IpProtocol *string `json:"IpProtocol,omitnil" name:"IpProtocol"` // The direction of the rule, which is INPUT for inbound rules Dir *string `json:"Dir,omitnil" name:"Dir"` // Address module AddressModule *string `json:"AddressModule,omitnil" name:"AddressModule"` // Rule description Desc *string `json:"Desc,omitnil" name:"Desc"` }
type InitDBInstancesRequest ¶
type InitDBInstancesRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // New password of the instance. Rule: It can only contain 8-64 characters and must contain at least two of the following types of characters: letters, digits, and special characters (!@#$%^*()). NewPassword *string `json:"NewPassword,omitnil" name:"NewPassword"` // List of instance parameters. Currently, "character_set_server" and "lower_case_table_names" are supported, whose value ranges are ["utf8","latin1","gbk","utf8mb4"] and ["0","1"], respectively. Parameters []*ParamInfo `json:"Parameters,omitnil" name:"Parameters"` // Instance port. Value range: [1024, 65535]. Vport *int64 `json:"Vport,omitnil" name:"Vport"` }
func NewInitDBInstancesRequest ¶
func NewInitDBInstancesRequest() (request *InitDBInstancesRequest)
func (*InitDBInstancesRequest) FromJsonString ¶
func (r *InitDBInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InitDBInstancesRequest) ToJsonString ¶
func (r *InitDBInstancesRequest) ToJsonString() string
type InitDBInstancesRequestParams ¶
type InitDBInstancesRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // New password of the instance. Rule: It can only contain 8-64 characters and must contain at least two of the following types of characters: letters, digits, and special characters (!@#$%^*()). NewPassword *string `json:"NewPassword,omitnil" name:"NewPassword"` // List of instance parameters. Currently, "character_set_server" and "lower_case_table_names" are supported, whose value ranges are ["utf8","latin1","gbk","utf8mb4"] and ["0","1"], respectively. Parameters []*ParamInfo `json:"Parameters,omitnil" name:"Parameters"` // Instance port. Value range: [1024, 65535]. Vport *int64 `json:"Vport,omitnil" name:"Vport"` }
Predefined struct for user
type InitDBInstancesResponse ¶
type InitDBInstancesResponse struct { *tchttp.BaseResponse Response *InitDBInstancesResponseParams `json:"Response"` }
func NewInitDBInstancesResponse ¶
func NewInitDBInstancesResponse() (response *InitDBInstancesResponse)
func (*InitDBInstancesResponse) FromJsonString ¶
func (r *InitDBInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InitDBInstancesResponse) ToJsonString ¶
func (r *InitDBInstancesResponse) ToJsonString() string
type InitDBInstancesResponseParams ¶
type InitDBInstancesResponseParams struct { // Array of async task request IDs, which can be used to query the execution results of async tasks. AsyncRequestIds []*string `json:"AsyncRequestIds,omitnil" name:"AsyncRequestIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type InstanceAuditLogFilters ¶
type InstanceAuditLogFilters struct { // Filter condition. The search conditions are supported as follows: // // Include/Exclude, and Include/Exclude (segment dimension) can be used to search for: // `sql` - SQL details. // // `Equal to`, `Not equal to`, `Include`, and `Exclude` can be used to search for: // `host` - Client IP, // `user` - Username, // `DBName` - Database name. // // `Equal to` and `Not equal to` can be used to search for: // `sqlType` - SQL u200dtype, // `errCode` - Error code, // `threadId` - Thread ID. // // Range search is supported for: // `execTime`- Execution time (μs), // `lockWaitTime`u200d - Lock wait time (μs), // `ioWaitTime` - IO wait time (μs), // `trxLivingTime` - Transaction duration (μs), // `cpuTime` - CPU time (μs), // `checkRows` - Number of scanned rows, // `affectRows` - Number of affected rows, // `sentRows` - Number of returned rows. Type *string `json:"Type,omitnil" name:"Type"` // Filter. Valid values: // `WINC` - Include (segment dimension) // `WEXC` - Exclude (segment dimension) // `INC` - Include, // `EXC` - Exclude, // `EQS` - Equal to, // `NEQ` - Not equal to. // u200d`RA` - Range Compare *string `json:"Compare,omitnil" name:"Compare"` // The filter value. In a reverse query, multiple values are in an "AND" relationship; while in a forward query, multiple values are in an "OR" relationship. Value []*string `json:"Value,omitnil" name:"Value"` }
type InstanceInfo ¶
type InstanceInfo struct { // Public network access status. Value range: 0 (not enabled), 1 (enabled), 2 (disabled) WanStatus *int64 `json:"WanStatus,omitnil" name:"WanStatus"` // AZ information Zone *string `json:"Zone,omitnil" name:"Zone"` // Initialization flag. Value range: 0 (not initialized), 1 (initialized) InitFlag *int64 `json:"InitFlag,omitnil" name:"InitFlag"` // VIP information of a read-only instance. This field is exclusive to read-only instances where read-only access is enabled separately // Note: This field may return null, indicating that no valid values can be obtained. RoVipInfo *RoVipInfo `json:"RoVipInfo,omitnil" name:"RoVipInfo"` // Memory capacity in MB Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Instance status. Valid values: `0` (creating), `1` (running), `4` (isolating), `5` (isolated). Status *int64 `json:"Status,omitnil" name:"Status"` // VPC ID, such as 51102 VpcId *int64 `json:"VpcId,omitnil" name:"VpcId"` // Information of a secondary server // Note: This field may return null, indicating that no valid values can be obtained. SlaveInfo *SlaveInfo `json:"SlaveInfo,omitnil" name:"SlaveInfo"` // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Disk capacity in GB Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Auto-renewal flag. Value range: 0 (auto-renewal not enabled), 1 (auto-renewal enabled), 2 (auto-renewal disabled) AutoRenew *int64 `json:"AutoRenew,omitnil" name:"AutoRenew"` // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync) ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Details of a read-only group // Note: This field may return null, indicating that no valid values can be obtained. RoGroups []*RoGroup `json:"RoGroups,omitnil" name:"RoGroups"` // Subnet ID, such as 2333 SubnetId *int64 `json:"SubnetId,omitnil" name:"SubnetId"` // Instance type. Value range: 1 (primary), 2 (disaster recovery), 3 (read-only) InstanceType *int64 `json:"InstanceType,omitnil" name:"InstanceType"` // Project ID ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Region information Region *string `json:"Region,omitnil" name:"Region"` // Instance expiration time DeadlineTime *string `json:"DeadlineTime,omitnil" name:"DeadlineTime"` // AZ deployment mode. Valid values: 0 (single-AZ), 1 (multi-AZ) DeployMode *int64 `json:"DeployMode,omitnil" name:"DeployMode"` // Instance task status. 0 - no task; 1 - upgrading; 2 - importing data; 3 - activating secondary; 4 - enabling public network access; 5 - batch operation in progress; 6 - rolling back; 7 - disabling public network access; 8 - changing password; 9 - renaming instance; 10 - restarting; 12 - migrating self-built instance; 13 - dropping table; 14 - creating and syncing disaster recovery instance; 15 - pending upgrade and switch; 16 - upgrade and switch in progress; 17 - upgrade and switch completed TaskStatus *int64 `json:"TaskStatus,omitnil" name:"TaskStatus"` // Details of a primary instance // Note: This field may return null, indicating that no valid values can be obtained. MasterInfo *MasterInfo `json:"MasterInfo,omitnil" name:"MasterInfo"` // Instance type DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // Kernel version EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Instance name InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Details of a disaster recovery instance // Note: This field may return null, indicating that no valid values can be obtained. DrInfo []*DrInfo `json:"DrInfo,omitnil" name:"DrInfo"` // Public domain name WanDomain *string `json:"WanDomain,omitnil" name:"WanDomain"` // Public network port number WanPort *int64 `json:"WanPort,omitnil" name:"WanPort"` // Billing type PayType *int64 `json:"PayType,omitnil" name:"PayType"` // Instance creation time CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // Instance IP Vip *string `json:"Vip,omitnil" name:"Vip"` // Port number Vport *int64 `json:"Vport,omitnil" name:"Vport"` // Whether the disk write is locked (It depends on whether the instance data in disk exceeds its quota). Valid values: `0` (unlocked), `1` (locked). CdbError *int64 `json:"CdbError,omitnil" name:"CdbError"` // VPC descriptor, such as "vpc-5v8wn9mg" UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // Subnet descriptor, such as "subnet-1typ0s7d" UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Physical ID PhysicalId *string `json:"PhysicalId,omitnil" name:"PhysicalId"` // Number of cores Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Queries per second Qps *int64 `json:"Qps,omitnil" name:"Qps"` // AZ name ZoneName *string `json:"ZoneName,omitnil" name:"ZoneName"` // Physical machine model // Note: This field may return null, indicating that no valid values can be obtained. DeviceClass *string `json:"DeviceClass,omitnil" name:"DeviceClass"` // Placement group ID // Note: this field may return null, indicating that no valid values can be obtained. DeployGroupId *string `json:"DeployGroupId,omitnil" name:"DeployGroupId"` // AZ ID // Note: this field may return null, indicating that no valid values can be obtained. ZoneId *int64 `json:"ZoneId,omitnil" name:"ZoneId"` // Number of nodes InstanceNodes *int64 `json:"InstanceNodes,omitnil" name:"InstanceNodes"` // List of tags // Note: this field may return `null`, indicating that no valid values can be obtained. TagList []*TagInfoItem `json:"TagList,omitnil" name:"TagList"` // Engine type // Note: This field may return null, indicating that no valid values can be obtained. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` // Maximum delay threshold // Note: This field may return null, indicating that no valid values can be obtained. MaxDelayTime *int64 `json:"MaxDelayTime,omitnil" name:"MaxDelayTime"` // Instance disk type, which is returned only for the instances of cloud disk edition. Valid values: `CLOUD_SSD` (SSD), `CLOUD_HSSD` (Enhanced SSD). DiskType *string `json:"DiskType,omitnil" name:"DiskType"` }
type InstanceRebootTime ¶
type InstanceRebootTime struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Estimated restart time TimeInSeconds *int64 `json:"TimeInSeconds,omitnil" name:"TimeInSeconds"` }
type InstanceRollbackRangeTime ¶
type InstanceRollbackRangeTime struct { // Queries database error code Code *int64 `json:"Code,omitnil" name:"Code"` // Queries database error message Message *string `json:"Message,omitnil" name:"Message"` // List of instance IDs. An instance ID is in the format of cdb-c1nl9rpv, which is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Time range available for rollback Times []*RollbackTimeRange `json:"Times,omitnil" name:"Times"` }
type IsolateDBInstanceRequest ¶
type IsolateDBInstanceRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewIsolateDBInstanceRequest ¶
func NewIsolateDBInstanceRequest() (request *IsolateDBInstanceRequest)
func (*IsolateDBInstanceRequest) FromJsonString ¶
func (r *IsolateDBInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IsolateDBInstanceRequest) ToJsonString ¶
func (r *IsolateDBInstanceRequest) ToJsonString() string
type IsolateDBInstanceRequestParams ¶
type IsolateDBInstanceRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type IsolateDBInstanceResponse ¶
type IsolateDBInstanceResponse struct { *tchttp.BaseResponse Response *IsolateDBInstanceResponseParams `json:"Response"` }
func NewIsolateDBInstanceResponse ¶
func NewIsolateDBInstanceResponse() (response *IsolateDBInstanceResponse)
func (*IsolateDBInstanceResponse) FromJsonString ¶
func (r *IsolateDBInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IsolateDBInstanceResponse) ToJsonString ¶
func (r *IsolateDBInstanceResponse) ToJsonString() string
type IsolateDBInstanceResponseParams ¶
type IsolateDBInstanceResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. (This returned field has been disused. You can query the isolation status of an instance through the `DescribeDBInstances` API.) // Note: this field may return null, indicating that no valid values can be obtained. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type LocalBinlogConfig ¶
type MasterInfo ¶
type MasterInfo struct { // Region information Region *string `json:"Region,omitnil" name:"Region"` // Region ID RegionId *int64 `json:"RegionId,omitnil" name:"RegionId"` // AZ ID ZoneId *int64 `json:"ZoneId,omitnil" name:"ZoneId"` // AZ information Zone *string `json:"Zone,omitnil" name:"Zone"` // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Long instance ID ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // Instance status Status *int64 `json:"Status,omitnil" name:"Status"` // Instance name InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Instance type InstanceType *int64 `json:"InstanceType,omitnil" name:"InstanceType"` // Task status TaskStatus *int64 `json:"TaskStatus,omitnil" name:"TaskStatus"` // Memory capacity Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Disk capacity Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Instance model DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // Queries per second Qps *int64 `json:"Qps,omitnil" name:"Qps"` // VPC ID VpcId *int64 `json:"VpcId,omitnil" name:"VpcId"` // Subnet ID SubnetId *int64 `json:"SubnetId,omitnil" name:"SubnetId"` // Dedicated cluster ID ExClusterId *string `json:"ExClusterId,omitnil" name:"ExClusterId"` // Dedicated cluster name ExClusterName *string `json:"ExClusterName,omitnil" name:"ExClusterName"` }
type ModifyAccountDescriptionRequest ¶
type ModifyAccountDescriptionRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // TencentDB account Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` // Database account remarks Description *string `json:"Description,omitnil" name:"Description"` }
func NewModifyAccountDescriptionRequest ¶
func NewModifyAccountDescriptionRequest() (request *ModifyAccountDescriptionRequest)
func (*ModifyAccountDescriptionRequest) FromJsonString ¶
func (r *ModifyAccountDescriptionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAccountDescriptionRequest) ToJsonString ¶
func (r *ModifyAccountDescriptionRequest) ToJsonString() string
type ModifyAccountDescriptionRequestParams ¶
type ModifyAccountDescriptionRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // TencentDB account Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` // Database account remarks Description *string `json:"Description,omitnil" name:"Description"` }
Predefined struct for user
type ModifyAccountDescriptionResponse ¶
type ModifyAccountDescriptionResponse struct { *tchttp.BaseResponse Response *ModifyAccountDescriptionResponseParams `json:"Response"` }
func NewModifyAccountDescriptionResponse ¶
func NewModifyAccountDescriptionResponse() (response *ModifyAccountDescriptionResponse)
func (*ModifyAccountDescriptionResponse) FromJsonString ¶
func (r *ModifyAccountDescriptionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAccountDescriptionResponse) ToJsonString ¶
func (r *ModifyAccountDescriptionResponse) ToJsonString() string
type ModifyAccountDescriptionResponseParams ¶
type ModifyAccountDescriptionResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyAccountMaxUserConnectionsRequest ¶
type ModifyAccountMaxUserConnectionsRequest struct { *tchttp.BaseRequest // List of TencentDB accounts Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Maximum connections of the account. Maximum value: `10240`. MaxUserConnections *int64 `json:"MaxUserConnections,omitnil" name:"MaxUserConnections"` }
func NewModifyAccountMaxUserConnectionsRequest ¶
func NewModifyAccountMaxUserConnectionsRequest() (request *ModifyAccountMaxUserConnectionsRequest)
func (*ModifyAccountMaxUserConnectionsRequest) FromJsonString ¶
func (r *ModifyAccountMaxUserConnectionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAccountMaxUserConnectionsRequest) ToJsonString ¶
func (r *ModifyAccountMaxUserConnectionsRequest) ToJsonString() string
type ModifyAccountMaxUserConnectionsRequestParams ¶
type ModifyAccountMaxUserConnectionsRequestParams struct { // List of TencentDB accounts Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Maximum connections of the account. Maximum value: `10240`. MaxUserConnections *int64 `json:"MaxUserConnections,omitnil" name:"MaxUserConnections"` }
Predefined struct for user
type ModifyAccountMaxUserConnectionsResponse ¶
type ModifyAccountMaxUserConnectionsResponse struct { *tchttp.BaseResponse Response *ModifyAccountMaxUserConnectionsResponseParams `json:"Response"` }
func NewModifyAccountMaxUserConnectionsResponse ¶
func NewModifyAccountMaxUserConnectionsResponse() (response *ModifyAccountMaxUserConnectionsResponse)
func (*ModifyAccountMaxUserConnectionsResponse) FromJsonString ¶
func (r *ModifyAccountMaxUserConnectionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAccountMaxUserConnectionsResponse) ToJsonString ¶
func (r *ModifyAccountMaxUserConnectionsResponse) ToJsonString() string
type ModifyAccountMaxUserConnectionsResponseParams ¶
type ModifyAccountMaxUserConnectionsResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyAccountPasswordRequest ¶
type ModifyAccountPasswordRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // New password of the database account. It can only contain 8-64 characters and must contain at least two of the following types of characters: letters, digits, and special characters (_+-&=!@#$%^*()). NewPassword *string `json:"NewPassword,omitnil" name:"NewPassword"` // TencentDB account Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` }
func NewModifyAccountPasswordRequest ¶
func NewModifyAccountPasswordRequest() (request *ModifyAccountPasswordRequest)
func (*ModifyAccountPasswordRequest) FromJsonString ¶
func (r *ModifyAccountPasswordRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAccountPasswordRequest) ToJsonString ¶
func (r *ModifyAccountPasswordRequest) ToJsonString() string
type ModifyAccountPasswordRequestParams ¶
type ModifyAccountPasswordRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // New password of the database account. It can only contain 8-64 characters and must contain at least two of the following types of characters: letters, digits, and special characters (_+-&=!@#$%^*()). NewPassword *string `json:"NewPassword,omitnil" name:"NewPassword"` // TencentDB account Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` }
Predefined struct for user
type ModifyAccountPasswordResponse ¶
type ModifyAccountPasswordResponse struct { *tchttp.BaseResponse Response *ModifyAccountPasswordResponseParams `json:"Response"` }
func NewModifyAccountPasswordResponse ¶
func NewModifyAccountPasswordResponse() (response *ModifyAccountPasswordResponse)
func (*ModifyAccountPasswordResponse) FromJsonString ¶
func (r *ModifyAccountPasswordResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAccountPasswordResponse) ToJsonString ¶
func (r *ModifyAccountPasswordResponse) ToJsonString() string
type ModifyAccountPasswordResponseParams ¶
type ModifyAccountPasswordResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyAccountPrivilegesRequest ¶
type ModifyAccountPrivilegesRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Database account, including username and domain name. Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` // Global permission. Valid values: "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "PROCESS", "DROP", "REFERENCES", "INDEX", "ALTER", "SHOW DATABASES", "CREATE TEMPORARY TABLES", "LOCK TABLES", "EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER", "CREATE USER", "RELOAD", "REPLICATION CLIENT", "REPLICATION SLAVE". // Note: When “ModifyAction” is empty, if `GlobalPrivileges` is not passed in, it indicates the global permission will become ineffective. GlobalPrivileges []*string `json:"GlobalPrivileges,omitnil" name:"GlobalPrivileges"` // Database permission. Valid values: "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". // Note: When “ModifyAction” is empty, if `DatabasePrivileges` is not passed in, it indicates the permission of the database will become ineffective. DatabasePrivileges []*DatabasePrivilege `json:"DatabasePrivileges,omitnil" name:"DatabasePrivileges"` // Table permission in the database. Valid values: "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "REFERENCES", "INDEX", "ALTER", "CREATE VIEW", "SHOW VIEW", "TRIGGER". // Note: When “ModifyAction” is empty, if `TablePrivileges` is not passed in, it indicates the permission of the table will become ineffective. TablePrivileges []*TablePrivilege `json:"TablePrivileges,omitnil" name:"TablePrivileges"` // Column permission in the table. Valid values: "SELECT", "INSERT", "UPDATE", "REFERENCES". // Note: When “ModifyAction” is empty, if `ColumnPrivileges` is not passed in, it indicates the permission of the column will become ineffective. ColumnPrivileges []*ColumnPrivilege `json:"ColumnPrivileges,omitnil" name:"ColumnPrivileges"` // When this parameter is not empty, it indicates that the permission will be modified. Valid values: `grant` (grant permission), `revoke` (revoke permission) ModifyAction *string `json:"ModifyAction,omitnil" name:"ModifyAction"` }
func NewModifyAccountPrivilegesRequest ¶
func NewModifyAccountPrivilegesRequest() (request *ModifyAccountPrivilegesRequest)
func (*ModifyAccountPrivilegesRequest) FromJsonString ¶
func (r *ModifyAccountPrivilegesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAccountPrivilegesRequest) ToJsonString ¶
func (r *ModifyAccountPrivilegesRequest) ToJsonString() string
type ModifyAccountPrivilegesRequestParams ¶
type ModifyAccountPrivilegesRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Database account, including username and domain name. Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"` // Global permission. Valid values: "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "PROCESS", "DROP", "REFERENCES", "INDEX", "ALTER", "SHOW DATABASES", "CREATE TEMPORARY TABLES", "LOCK TABLES", "EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER", "CREATE USER", "RELOAD", "REPLICATION CLIENT", "REPLICATION SLAVE". // Note: When “ModifyAction” is empty, if `GlobalPrivileges` is not passed in, it indicates the global permission will become ineffective. GlobalPrivileges []*string `json:"GlobalPrivileges,omitnil" name:"GlobalPrivileges"` // Database permission. Valid values: "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". // Note: When “ModifyAction” is empty, if `DatabasePrivileges` is not passed in, it indicates the permission of the database will become ineffective. DatabasePrivileges []*DatabasePrivilege `json:"DatabasePrivileges,omitnil" name:"DatabasePrivileges"` // Table permission in the database. Valid values: "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "REFERENCES", "INDEX", "ALTER", "CREATE VIEW", "SHOW VIEW", "TRIGGER". // Note: When “ModifyAction” is empty, if `TablePrivileges` is not passed in, it indicates the permission of the table will become ineffective. TablePrivileges []*TablePrivilege `json:"TablePrivileges,omitnil" name:"TablePrivileges"` // Column permission in the table. Valid values: "SELECT", "INSERT", "UPDATE", "REFERENCES". // Note: When “ModifyAction” is empty, if `ColumnPrivileges` is not passed in, it indicates the permission of the column will become ineffective. ColumnPrivileges []*ColumnPrivilege `json:"ColumnPrivileges,omitnil" name:"ColumnPrivileges"` // When this parameter is not empty, it indicates that the permission will be modified. Valid values: `grant` (grant permission), `revoke` (revoke permission) ModifyAction *string `json:"ModifyAction,omitnil" name:"ModifyAction"` }
Predefined struct for user
type ModifyAccountPrivilegesResponse ¶
type ModifyAccountPrivilegesResponse struct { *tchttp.BaseResponse Response *ModifyAccountPrivilegesResponseParams `json:"Response"` }
func NewModifyAccountPrivilegesResponse ¶
func NewModifyAccountPrivilegesResponse() (response *ModifyAccountPrivilegesResponse)
func (*ModifyAccountPrivilegesResponse) FromJsonString ¶
func (r *ModifyAccountPrivilegesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAccountPrivilegesResponse) ToJsonString ¶
func (r *ModifyAccountPrivilegesResponse) ToJsonString() string
type ModifyAccountPrivilegesResponseParams ¶
type ModifyAccountPrivilegesResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyAutoRenewFlagRequest ¶
type ModifyAutoRenewFlagRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Auto-renewal flag. Value range: 0 (auto-renewal not enabled), 1 (auto-renewal enabled). AutoRenew *int64 `json:"AutoRenew,omitnil" name:"AutoRenew"` }
func NewModifyAutoRenewFlagRequest ¶
func NewModifyAutoRenewFlagRequest() (request *ModifyAutoRenewFlagRequest)
func (*ModifyAutoRenewFlagRequest) FromJsonString ¶
func (r *ModifyAutoRenewFlagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAutoRenewFlagRequest) ToJsonString ¶
func (r *ModifyAutoRenewFlagRequest) ToJsonString() string
type ModifyAutoRenewFlagRequestParams ¶
type ModifyAutoRenewFlagRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Auto-renewal flag. Value range: 0 (auto-renewal not enabled), 1 (auto-renewal enabled). AutoRenew *int64 `json:"AutoRenew,omitnil" name:"AutoRenew"` }
Predefined struct for user
type ModifyAutoRenewFlagResponse ¶
type ModifyAutoRenewFlagResponse struct { *tchttp.BaseResponse Response *ModifyAutoRenewFlagResponseParams `json:"Response"` }
func NewModifyAutoRenewFlagResponse ¶
func NewModifyAutoRenewFlagResponse() (response *ModifyAutoRenewFlagResponse)
func (*ModifyAutoRenewFlagResponse) FromJsonString ¶
func (r *ModifyAutoRenewFlagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAutoRenewFlagResponse) ToJsonString ¶
func (r *ModifyAutoRenewFlagResponse) ToJsonString() string
type ModifyAutoRenewFlagResponseParams ¶
type ModifyAutoRenewFlagResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyBackupConfigRequest ¶
type ModifyBackupConfigRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Backup file retention period in days. Value range: 7-1830. ExpireDays *int64 `json:"ExpireDays,omitnil" name:"ExpireDays"` // (This parameter will be disused. The `BackupTimeWindow` parameter is recommended.) Backup time range in the format of 02:00-06:00, with the start time and end time on the hour. Valid values: 00:00-12:00, 02:00-06:00, 06:00-10:00, 10:00-14:00, 14:00-18:00, 18:00-22:00, 22:00-02:00. StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // Automatic backup mode. Only `physical` (physical cold backup) is supported BackupMethod *string `json:"BackupMethod,omitnil" name:"BackupMethod"` // Binlog retention period in days. Value range: 7-1830. It can’t be greater than the retention period of backup files. BinlogExpireDays *int64 `json:"BinlogExpireDays,omitnil" name:"BinlogExpireDays"` // Backup time window; for example, to set up backup between 10:00 and 14:00 on every Tuesday and Sunday, you should set this parameter as follows: {"Monday": "", "Tuesday": "10:00-14:00", "Wednesday": "", "Thursday": "", "Friday": "", "Saturday": "", "Sunday": "10:00-14:00"} (Note: You can set up backup on different days, but the backup time windows need to be the same. If this field is set, the `StartTime` field will be ignored) BackupTimeWindow *CommonTimeWindow `json:"BackupTimeWindow,omitnil" name:"BackupTimeWindow"` // Switch for periodic archive. Valid values: `off` (disable), `on` (enable). Default value:`off`. When you enable the periodic archive policy for the first time, you need to enter the `BackupPeriodSaveDays`, `BackupPeriodSaveInterval`, `BackupPeriodSaveCount`, and `StartBackupPeriodSaveDate` parameters; otherwise, the policy will not take effect. EnableBackupPeriodSave *string `json:"EnableBackupPeriodSave,omitnil" name:"EnableBackupPeriodSave"` // Switch for long-term backup retention (This field can be ignored, for its feature hasn’t been launched). Valid values: `off` (disable), `on` (enable). Default value: `off`. Once enabled, the parameters (BackupPeriodSaveDays, BackupPeriodSaveInterval, and BackupPeriodSaveCount) will be invalid. EnableBackupPeriodLongTermSave *string `json:"EnableBackupPeriodLongTermSave,omitnil" name:"EnableBackupPeriodLongTermSave"` // Maximum days of archive backup retention. Valid range: 90-3650. Default value: 1080. BackupPeriodSaveDays *int64 `json:"BackupPeriodSaveDays,omitnil" name:"BackupPeriodSaveDays"` // Archive backup retention period. Valid values: `weekly` (a week), `monthly` (a month), `quarterly` (a quarter), `yearly` (a year). Default value: `monthly`. BackupPeriodSaveInterval *string `json:"BackupPeriodSaveInterval,omitnil" name:"BackupPeriodSaveInterval"` // Number of archive backups. Minimum value: `1`, Maximum value: Number of non-archive backups in archive backup retention period. Default value: `1`. BackupPeriodSaveCount *int64 `json:"BackupPeriodSaveCount,omitnil" name:"BackupPeriodSaveCount"` // The start time in the format of yyyy-mm-dd HH:MM:SS, which is used to enable archive backup retention policy. StartBackupPeriodSaveDate *string `json:"StartBackupPeriodSaveDate,omitnil" name:"StartBackupPeriodSaveDate"` // Whether to enable the archive backup. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBackupArchive *string `json:"EnableBackupArchive,omitnil" name:"EnableBackupArchive"` // The period (in days) of how long a data backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires. BackupArchiveDays *int64 `json:"BackupArchiveDays,omitnil" name:"BackupArchiveDays"` // The period (in days) of how long a log backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires. BinlogArchiveDays *int64 `json:"BinlogArchiveDays,omitnil" name:"BinlogArchiveDays"` // Whether to enable the archive backup of the log. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBinlogArchive *string `json:"EnableBinlogArchive,omitnil" name:"EnableBinlogArchive"` // Whether to enable the standard storage policy for data backup. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBackupStandby *string `json:"EnableBackupStandby,omitnil" name:"EnableBackupStandby"` // The period (in days) of how long a data backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires. If the archive backup is enabled, this period cannot be greater than archive backup period. BackupStandbyDays *int64 `json:"BackupStandbyDays,omitnil" name:"BackupStandbyDays"` // Whether to enable the standard storage policy for log backup. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBinlogStandby *string `json:"EnableBinlogStandby,omitnil" name:"EnableBinlogStandby"` // The period (in days) of how long a log backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires. If the archive backup is enabled, this period cannot be greater than archive backup period. BinlogStandbyDays *int64 `json:"BinlogStandbyDays,omitnil" name:"BinlogStandbyDays"` }
func NewModifyBackupConfigRequest ¶
func NewModifyBackupConfigRequest() (request *ModifyBackupConfigRequest)
func (*ModifyBackupConfigRequest) FromJsonString ¶
func (r *ModifyBackupConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBackupConfigRequest) ToJsonString ¶
func (r *ModifyBackupConfigRequest) ToJsonString() string
type ModifyBackupConfigRequestParams ¶
type ModifyBackupConfigRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Backup file retention period in days. Value range: 7-1830. ExpireDays *int64 `json:"ExpireDays,omitnil" name:"ExpireDays"` // (This parameter will be disused. The `BackupTimeWindow` parameter is recommended.) Backup time range in the format of 02:00-06:00, with the start time and end time on the hour. Valid values: 00:00-12:00, 02:00-06:00, 06:00-10:00, 10:00-14:00, 14:00-18:00, 18:00-22:00, 22:00-02:00. StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // Automatic backup mode. Only `physical` (physical cold backup) is supported BackupMethod *string `json:"BackupMethod,omitnil" name:"BackupMethod"` // Binlog retention period in days. Value range: 7-1830. It can’t be greater than the retention period of backup files. BinlogExpireDays *int64 `json:"BinlogExpireDays,omitnil" name:"BinlogExpireDays"` // Backup time window; for example, to set up backup between 10:00 and 14:00 on every Tuesday and Sunday, you should set this parameter as follows: {"Monday": "", "Tuesday": "10:00-14:00", "Wednesday": "", "Thursday": "", "Friday": "", "Saturday": "", "Sunday": "10:00-14:00"} (Note: You can set up backup on different days, but the backup time windows need to be the same. If this field is set, the `StartTime` field will be ignored) BackupTimeWindow *CommonTimeWindow `json:"BackupTimeWindow,omitnil" name:"BackupTimeWindow"` // Switch for periodic archive. Valid values: `off` (disable), `on` (enable). Default value:`off`. When you enable the periodic archive policy for the first time, you need to enter the `BackupPeriodSaveDays`, `BackupPeriodSaveInterval`, `BackupPeriodSaveCount`, and `StartBackupPeriodSaveDate` parameters; otherwise, the policy will not take effect. EnableBackupPeriodSave *string `json:"EnableBackupPeriodSave,omitnil" name:"EnableBackupPeriodSave"` // Switch for long-term backup retention (This field can be ignored, for its feature hasn’t been launched). Valid values: `off` (disable), `on` (enable). Default value: `off`. Once enabled, the parameters (BackupPeriodSaveDays, BackupPeriodSaveInterval, and BackupPeriodSaveCount) will be invalid. EnableBackupPeriodLongTermSave *string `json:"EnableBackupPeriodLongTermSave,omitnil" name:"EnableBackupPeriodLongTermSave"` // Maximum days of archive backup retention. Valid range: 90-3650. Default value: 1080. BackupPeriodSaveDays *int64 `json:"BackupPeriodSaveDays,omitnil" name:"BackupPeriodSaveDays"` // Archive backup retention period. Valid values: `weekly` (a week), `monthly` (a month), `quarterly` (a quarter), `yearly` (a year). Default value: `monthly`. BackupPeriodSaveInterval *string `json:"BackupPeriodSaveInterval,omitnil" name:"BackupPeriodSaveInterval"` // Number of archive backups. Minimum value: `1`, Maximum value: Number of non-archive backups in archive backup retention period. Default value: `1`. BackupPeriodSaveCount *int64 `json:"BackupPeriodSaveCount,omitnil" name:"BackupPeriodSaveCount"` // The start time in the format of yyyy-mm-dd HH:MM:SS, which is used to enable archive backup retention policy. StartBackupPeriodSaveDate *string `json:"StartBackupPeriodSaveDate,omitnil" name:"StartBackupPeriodSaveDate"` // Whether to enable the archive backup. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBackupArchive *string `json:"EnableBackupArchive,omitnil" name:"EnableBackupArchive"` // The period (in days) of how long a data backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires. BackupArchiveDays *int64 `json:"BackupArchiveDays,omitnil" name:"BackupArchiveDays"` // The period (in days) of how long a log backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires. BinlogArchiveDays *int64 `json:"BinlogArchiveDays,omitnil" name:"BinlogArchiveDays"` // Whether to enable the archive backup of the log. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBinlogArchive *string `json:"EnableBinlogArchive,omitnil" name:"EnableBinlogArchive"` // Whether to enable the standard storage policy for data backup. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBackupStandby *string `json:"EnableBackupStandby,omitnil" name:"EnableBackupStandby"` // The period (in days) of how long a data backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires. If the archive backup is enabled, this period cannot be greater than archive backup period. BackupStandbyDays *int64 `json:"BackupStandbyDays,omitnil" name:"BackupStandbyDays"` // Whether to enable the standard storage policy for log backup. Valid values: `off` (disable), `on` (enable). Default value: `off`. EnableBinlogStandby *string `json:"EnableBinlogStandby,omitnil" name:"EnableBinlogStandby"` // The period (in days) of how long a log backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires. If the archive backup is enabled, this period cannot be greater than archive backup period. BinlogStandbyDays *int64 `json:"BinlogStandbyDays,omitnil" name:"BinlogStandbyDays"` }
Predefined struct for user
type ModifyBackupConfigResponse ¶
type ModifyBackupConfigResponse struct { *tchttp.BaseResponse Response *ModifyBackupConfigResponseParams `json:"Response"` }
func NewModifyBackupConfigResponse ¶
func NewModifyBackupConfigResponse() (response *ModifyBackupConfigResponse)
func (*ModifyBackupConfigResponse) FromJsonString ¶
func (r *ModifyBackupConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBackupConfigResponse) ToJsonString ¶
func (r *ModifyBackupConfigResponse) ToJsonString() string
type ModifyBackupConfigResponseParams ¶
type ModifyBackupConfigResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyBackupDownloadRestrictionRequest ¶
type ModifyBackupDownloadRestrictionRequest struct { *tchttp.BaseRequest // Valid values: `NoLimit` (backups can be downloaded over both private and public networks with any IPs), `LimitOnlyIntranet` (backups can be downloaded over the private network with any private IPs), `Customize` (backups can be downloaded over specified VPCs with specified IPs). The `LimitVpc` and `LimitIp` parameters are valid only when this parameter is set to `Customize`. LimitType *string `json:"LimitType,omitnil" name:"LimitType"` // Valid value: `In` (backups can only be downloaded over the VPCs specified in `LimitVpc`). Default value: `In`. VpcComparisonSymbol *string `json:"VpcComparisonSymbol,omitnil" name:"VpcComparisonSymbol"` // Valid values: `In` (backups can only be downloaded with the IPs specified in `LimitIp`), `NotIn` (backups cannot be downloaded with the IPs specified in `LimitIp`). Default value: `In`. IpComparisonSymbol *string `json:"IpComparisonSymbol,omitnil" name:"IpComparisonSymbol"` // VPCs used to restrict backup download. LimitVpc []*BackupLimitVpcItem `json:"LimitVpc,omitnil" name:"LimitVpc"` // IPs used to restrict backup download. LimitIp []*string `json:"LimitIp,omitnil" name:"LimitIp"` }
func NewModifyBackupDownloadRestrictionRequest ¶
func NewModifyBackupDownloadRestrictionRequest() (request *ModifyBackupDownloadRestrictionRequest)
func (*ModifyBackupDownloadRestrictionRequest) FromJsonString ¶
func (r *ModifyBackupDownloadRestrictionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBackupDownloadRestrictionRequest) ToJsonString ¶
func (r *ModifyBackupDownloadRestrictionRequest) ToJsonString() string
type ModifyBackupDownloadRestrictionRequestParams ¶
type ModifyBackupDownloadRestrictionRequestParams struct { // Valid values: `NoLimit` (backups can be downloaded over both private and public networks with any IPs), `LimitOnlyIntranet` (backups can be downloaded over the private network with any private IPs), `Customize` (backups can be downloaded over specified VPCs with specified IPs). The `LimitVpc` and `LimitIp` parameters are valid only when this parameter is set to `Customize`. LimitType *string `json:"LimitType,omitnil" name:"LimitType"` // Valid value: `In` (backups can only be downloaded over the VPCs specified in `LimitVpc`). Default value: `In`. VpcComparisonSymbol *string `json:"VpcComparisonSymbol,omitnil" name:"VpcComparisonSymbol"` // Valid values: `In` (backups can only be downloaded with the IPs specified in `LimitIp`), `NotIn` (backups cannot be downloaded with the IPs specified in `LimitIp`). Default value: `In`. IpComparisonSymbol *string `json:"IpComparisonSymbol,omitnil" name:"IpComparisonSymbol"` // VPCs used to restrict backup download. LimitVpc []*BackupLimitVpcItem `json:"LimitVpc,omitnil" name:"LimitVpc"` // IPs used to restrict backup download. LimitIp []*string `json:"LimitIp,omitnil" name:"LimitIp"` }
Predefined struct for user
type ModifyBackupDownloadRestrictionResponse ¶
type ModifyBackupDownloadRestrictionResponse struct { *tchttp.BaseResponse Response *ModifyBackupDownloadRestrictionResponseParams `json:"Response"` }
func NewModifyBackupDownloadRestrictionResponse ¶
func NewModifyBackupDownloadRestrictionResponse() (response *ModifyBackupDownloadRestrictionResponse)
func (*ModifyBackupDownloadRestrictionResponse) FromJsonString ¶
func (r *ModifyBackupDownloadRestrictionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBackupDownloadRestrictionResponse) ToJsonString ¶
func (r *ModifyBackupDownloadRestrictionResponse) ToJsonString() string
type ModifyBackupDownloadRestrictionResponseParams ¶
type ModifyBackupDownloadRestrictionResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyBackupEncryptionStatusRequest ¶
type ModifyBackupEncryptionStatusRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-XXXX, which is the same as that displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Default encryption status for the new auto-generated physical backup files. Valid values: `on`, `off`. EncryptionStatus *string `json:"EncryptionStatus,omitnil" name:"EncryptionStatus"` }
func NewModifyBackupEncryptionStatusRequest ¶
func NewModifyBackupEncryptionStatusRequest() (request *ModifyBackupEncryptionStatusRequest)
func (*ModifyBackupEncryptionStatusRequest) FromJsonString ¶
func (r *ModifyBackupEncryptionStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBackupEncryptionStatusRequest) ToJsonString ¶
func (r *ModifyBackupEncryptionStatusRequest) ToJsonString() string
type ModifyBackupEncryptionStatusRequestParams ¶
type ModifyBackupEncryptionStatusRequestParams struct { // Instance ID in the format of cdb-XXXX, which is the same as that displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Default encryption status for the new auto-generated physical backup files. Valid values: `on`, `off`. EncryptionStatus *string `json:"EncryptionStatus,omitnil" name:"EncryptionStatus"` }
Predefined struct for user
type ModifyBackupEncryptionStatusResponse ¶
type ModifyBackupEncryptionStatusResponse struct { *tchttp.BaseResponse Response *ModifyBackupEncryptionStatusResponseParams `json:"Response"` }
func NewModifyBackupEncryptionStatusResponse ¶
func NewModifyBackupEncryptionStatusResponse() (response *ModifyBackupEncryptionStatusResponse)
func (*ModifyBackupEncryptionStatusResponse) FromJsonString ¶
func (r *ModifyBackupEncryptionStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBackupEncryptionStatusResponse) ToJsonString ¶
func (r *ModifyBackupEncryptionStatusResponse) ToJsonString() string
type ModifyBackupEncryptionStatusResponseParams ¶
type ModifyBackupEncryptionStatusResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyCdbProxyAddressDescRequest ¶
type ModifyCdbProxyAddressDescRequest struct { *tchttp.BaseRequest // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` // Description Desc *string `json:"Desc,omitnil" name:"Desc"` }
func NewModifyCdbProxyAddressDescRequest ¶
func NewModifyCdbProxyAddressDescRequest() (request *ModifyCdbProxyAddressDescRequest)
func (*ModifyCdbProxyAddressDescRequest) FromJsonString ¶
func (r *ModifyCdbProxyAddressDescRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCdbProxyAddressDescRequest) ToJsonString ¶
func (r *ModifyCdbProxyAddressDescRequest) ToJsonString() string
type ModifyCdbProxyAddressDescRequestParams ¶
type ModifyCdbProxyAddressDescRequestParams struct { // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` // Description Desc *string `json:"Desc,omitnil" name:"Desc"` }
Predefined struct for user
type ModifyCdbProxyAddressDescResponse ¶
type ModifyCdbProxyAddressDescResponse struct { *tchttp.BaseResponse Response *ModifyCdbProxyAddressDescResponseParams `json:"Response"` }
func NewModifyCdbProxyAddressDescResponse ¶
func NewModifyCdbProxyAddressDescResponse() (response *ModifyCdbProxyAddressDescResponse)
func (*ModifyCdbProxyAddressDescResponse) FromJsonString ¶
func (r *ModifyCdbProxyAddressDescResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCdbProxyAddressDescResponse) ToJsonString ¶
func (r *ModifyCdbProxyAddressDescResponse) ToJsonString() string
type ModifyCdbProxyAddressDescResponseParams ¶
type ModifyCdbProxyAddressDescResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyCdbProxyAddressVipAndVPortRequest ¶
type ModifyCdbProxyAddressVipAndVPortRequest struct { *tchttp.BaseRequest // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` // VPC ID UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // IP address Vip *string `json:"Vip,omitnil" name:"Vip"` // Port VPort *uint64 `json:"VPort,omitnil" name:"VPort"` // Valid Hours of Old IP ReleaseDuration *uint64 `json:"ReleaseDuration,omitnil" name:"ReleaseDuration"` }
func NewModifyCdbProxyAddressVipAndVPortRequest ¶
func NewModifyCdbProxyAddressVipAndVPortRequest() (request *ModifyCdbProxyAddressVipAndVPortRequest)
func (*ModifyCdbProxyAddressVipAndVPortRequest) FromJsonString ¶
func (r *ModifyCdbProxyAddressVipAndVPortRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCdbProxyAddressVipAndVPortRequest) ToJsonString ¶
func (r *ModifyCdbProxyAddressVipAndVPortRequest) ToJsonString() string
type ModifyCdbProxyAddressVipAndVPortRequestParams ¶
type ModifyCdbProxyAddressVipAndVPortRequestParams struct { // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` // VPC ID UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // IP address Vip *string `json:"Vip,omitnil" name:"Vip"` // Port VPort *uint64 `json:"VPort,omitnil" name:"VPort"` // Valid Hours of Old IP ReleaseDuration *uint64 `json:"ReleaseDuration,omitnil" name:"ReleaseDuration"` }
Predefined struct for user
type ModifyCdbProxyAddressVipAndVPortResponse ¶
type ModifyCdbProxyAddressVipAndVPortResponse struct { *tchttp.BaseResponse Response *ModifyCdbProxyAddressVipAndVPortResponseParams `json:"Response"` }
func NewModifyCdbProxyAddressVipAndVPortResponse ¶
func NewModifyCdbProxyAddressVipAndVPortResponse() (response *ModifyCdbProxyAddressVipAndVPortResponse)
func (*ModifyCdbProxyAddressVipAndVPortResponse) FromJsonString ¶
func (r *ModifyCdbProxyAddressVipAndVPortResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCdbProxyAddressVipAndVPortResponse) ToJsonString ¶
func (r *ModifyCdbProxyAddressVipAndVPortResponse) ToJsonString() string
type ModifyCdbProxyAddressVipAndVPortResponseParams ¶
type ModifyCdbProxyAddressVipAndVPortResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyCdbProxyParamRequest ¶
type ModifyCdbProxyParamRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Connection pool threshold ConnectionPoolLimit *uint64 `json:"ConnectionPoolLimit,omitnil" name:"ConnectionPoolLimit"` }
func NewModifyCdbProxyParamRequest ¶
func NewModifyCdbProxyParamRequest() (request *ModifyCdbProxyParamRequest)
func (*ModifyCdbProxyParamRequest) FromJsonString ¶
func (r *ModifyCdbProxyParamRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCdbProxyParamRequest) ToJsonString ¶
func (r *ModifyCdbProxyParamRequest) ToJsonString() string
type ModifyCdbProxyParamRequestParams ¶
type ModifyCdbProxyParamRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Connection pool threshold ConnectionPoolLimit *uint64 `json:"ConnectionPoolLimit,omitnil" name:"ConnectionPoolLimit"` }
Predefined struct for user
type ModifyCdbProxyParamResponse ¶
type ModifyCdbProxyParamResponse struct { *tchttp.BaseResponse Response *ModifyCdbProxyParamResponseParams `json:"Response"` }
func NewModifyCdbProxyParamResponse ¶
func NewModifyCdbProxyParamResponse() (response *ModifyCdbProxyParamResponse)
func (*ModifyCdbProxyParamResponse) FromJsonString ¶
func (r *ModifyCdbProxyParamResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCdbProxyParamResponse) ToJsonString ¶
func (r *ModifyCdbProxyParamResponse) ToJsonString() string
type ModifyCdbProxyParamResponseParams ¶
type ModifyCdbProxyParamResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyDBInstanceNameRequest ¶
type ModifyDBInstanceNameRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The modified instance name. InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` }
func NewModifyDBInstanceNameRequest ¶
func NewModifyDBInstanceNameRequest() (request *ModifyDBInstanceNameRequest)
func (*ModifyDBInstanceNameRequest) FromJsonString ¶
func (r *ModifyDBInstanceNameRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceNameRequest) ToJsonString ¶
func (r *ModifyDBInstanceNameRequest) ToJsonString() string
type ModifyDBInstanceNameRequestParams ¶
type ModifyDBInstanceNameRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The modified instance name. InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` }
Predefined struct for user
type ModifyDBInstanceNameResponse ¶
type ModifyDBInstanceNameResponse struct { *tchttp.BaseResponse Response *ModifyDBInstanceNameResponseParams `json:"Response"` }
func NewModifyDBInstanceNameResponse ¶
func NewModifyDBInstanceNameResponse() (response *ModifyDBInstanceNameResponse)
func (*ModifyDBInstanceNameResponse) FromJsonString ¶
func (r *ModifyDBInstanceNameResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceNameResponse) ToJsonString ¶
func (r *ModifyDBInstanceNameResponse) ToJsonString() string
type ModifyDBInstanceNameResponseParams ¶
type ModifyDBInstanceNameResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyDBInstanceProjectRequest ¶
type ModifyDBInstanceProjectRequest struct { *tchttp.BaseRequest // Array of instance IDs in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Project ID. NewProjectId *int64 `json:"NewProjectId,omitnil" name:"NewProjectId"` }
func NewModifyDBInstanceProjectRequest ¶
func NewModifyDBInstanceProjectRequest() (request *ModifyDBInstanceProjectRequest)
func (*ModifyDBInstanceProjectRequest) FromJsonString ¶
func (r *ModifyDBInstanceProjectRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceProjectRequest) ToJsonString ¶
func (r *ModifyDBInstanceProjectRequest) ToJsonString() string
type ModifyDBInstanceProjectRequestParams ¶
type ModifyDBInstanceProjectRequestParams struct { // Array of instance IDs in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Project ID. NewProjectId *int64 `json:"NewProjectId,omitnil" name:"NewProjectId"` }
Predefined struct for user
type ModifyDBInstanceProjectResponse ¶
type ModifyDBInstanceProjectResponse struct { *tchttp.BaseResponse Response *ModifyDBInstanceProjectResponseParams `json:"Response"` }
func NewModifyDBInstanceProjectResponse ¶
func NewModifyDBInstanceProjectResponse() (response *ModifyDBInstanceProjectResponse)
func (*ModifyDBInstanceProjectResponse) FromJsonString ¶
func (r *ModifyDBInstanceProjectResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceProjectResponse) ToJsonString ¶
func (r *ModifyDBInstanceProjectResponse) ToJsonString() string
type ModifyDBInstanceProjectResponseParams ¶
type ModifyDBInstanceProjectResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyDBInstanceSecurityGroupsRequest ¶
type ModifyDBInstanceSecurityGroupsRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // List of IDs of security groups to be modified, which is an array of one or more security group IDs. SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"` // This parameter takes effect only when the ID of read-only replica is passed in. If this parameter is set to `False` or left empty, the security groups bound with the RO group of the read-only replicas will be modified. If this parameter is set to `True`, the security groups bound with the read-only replica itself will be modified. ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitnil" name:"ForReadonlyInstance"` }
func NewModifyDBInstanceSecurityGroupsRequest ¶
func NewModifyDBInstanceSecurityGroupsRequest() (request *ModifyDBInstanceSecurityGroupsRequest)
func (*ModifyDBInstanceSecurityGroupsRequest) FromJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceSecurityGroupsRequest) ToJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsRequest) ToJsonString() string
type ModifyDBInstanceSecurityGroupsRequestParams ¶
type ModifyDBInstanceSecurityGroupsRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // List of IDs of security groups to be modified, which is an array of one or more security group IDs. SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"` // This parameter takes effect only when the ID of read-only replica is passed in. If this parameter is set to `False` or left empty, the security groups bound with the RO group of the read-only replicas will be modified. If this parameter is set to `True`, the security groups bound with the read-only replica itself will be modified. ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitnil" name:"ForReadonlyInstance"` }
Predefined struct for user
type ModifyDBInstanceSecurityGroupsResponse ¶
type ModifyDBInstanceSecurityGroupsResponse struct { *tchttp.BaseResponse Response *ModifyDBInstanceSecurityGroupsResponseParams `json:"Response"` }
func NewModifyDBInstanceSecurityGroupsResponse ¶
func NewModifyDBInstanceSecurityGroupsResponse() (response *ModifyDBInstanceSecurityGroupsResponse)
func (*ModifyDBInstanceSecurityGroupsResponse) FromJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceSecurityGroupsResponse) ToJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsResponse) ToJsonString() string
type ModifyDBInstanceSecurityGroupsResponseParams ¶
type ModifyDBInstanceSecurityGroupsResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyDBInstanceVipVportRequest ¶
type ModifyDBInstanceVipVportRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv, cdbro-c2nl9rpv, or cdbrg-c3nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [DescribeDBInstances](https://www.tencentcloud.com/document/product/236/15872) API to query the ID, which is the value of the `InstanceId` output parameter. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Target IP. Either this parameter or `DstPort` must be passed in. DstIp *string `json:"DstIp,omitnil" name:"DstIp"` // Target port number. Value range: 1024-65535. Either this parameter or `DstIp` must be passed in. DstPort *int64 `json:"DstPort,omitnil" name:"DstPort"` // Unified VPC ID UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // Unified subnet ID UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Repossession duration in hours for old IP in the original network when changing from classic network to VPC or changing the VPC subnet. Value range: 0–168. Default value: `24`. ReleaseDuration *int64 `json:"ReleaseDuration,omitnil" name:"ReleaseDuration"` }
func NewModifyDBInstanceVipVportRequest ¶
func NewModifyDBInstanceVipVportRequest() (request *ModifyDBInstanceVipVportRequest)
func (*ModifyDBInstanceVipVportRequest) FromJsonString ¶
func (r *ModifyDBInstanceVipVportRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceVipVportRequest) ToJsonString ¶
func (r *ModifyDBInstanceVipVportRequest) ToJsonString() string
type ModifyDBInstanceVipVportRequestParams ¶
type ModifyDBInstanceVipVportRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv, cdbro-c2nl9rpv, or cdbrg-c3nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [DescribeDBInstances](https://www.tencentcloud.com/document/product/236/15872) API to query the ID, which is the value of the `InstanceId` output parameter. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Target IP. Either this parameter or `DstPort` must be passed in. DstIp *string `json:"DstIp,omitnil" name:"DstIp"` // Target port number. Value range: 1024-65535. Either this parameter or `DstIp` must be passed in. DstPort *int64 `json:"DstPort,omitnil" name:"DstPort"` // Unified VPC ID UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // Unified subnet ID UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Repossession duration in hours for old IP in the original network when changing from classic network to VPC or changing the VPC subnet. Value range: 0–168. Default value: `24`. ReleaseDuration *int64 `json:"ReleaseDuration,omitnil" name:"ReleaseDuration"` }
Predefined struct for user
type ModifyDBInstanceVipVportResponse ¶
type ModifyDBInstanceVipVportResponse struct { *tchttp.BaseResponse Response *ModifyDBInstanceVipVportResponseParams `json:"Response"` }
func NewModifyDBInstanceVipVportResponse ¶
func NewModifyDBInstanceVipVportResponse() (response *ModifyDBInstanceVipVportResponse)
func (*ModifyDBInstanceVipVportResponse) FromJsonString ¶
func (r *ModifyDBInstanceVipVportResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceVipVportResponse) ToJsonString ¶
func (r *ModifyDBInstanceVipVportResponse) ToJsonString() string
type ModifyDBInstanceVipVportResponseParams ¶
type ModifyDBInstanceVipVportResponseParams struct { // Async task ID. This parameter is deprecated. // Note: This field may return null, indicating that no valid values can be obtained. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyInstanceParamRequest ¶
type ModifyInstanceParamRequest struct { *tchttp.BaseRequest // List of short instance IDs. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // List of parameters to be modified. Every element is a combination of `Name` (parameter name) and `CurrentValue` (new value). ParamList []*Parameter `json:"ParamList,omitnil" name:"ParamList"` // Template ID. At least one of `ParamList` and `TemplateId` must be passed in. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` // When to perform the parameter adjustment task. Default value: 0. Valid values: 0 - execute immediately, 1 - execute during window. When its value is 1, only one instance ID can be passed in (i.e., only one `InstanceIds` can be passed in). WaitSwitch *int64 `json:"WaitSwitch,omitnil" name:"WaitSwitch"` // Whether to sync the parameters to read-only instance of the source instance. Valid values: `true` (not sync), `false` (sync). Default value: `false`. NotSyncRo *bool `json:"NotSyncRo,omitnil" name:"NotSyncRo"` // Whether to sync the parameters to disaster recovery instance of the source instance. Valid values: `true` (not sync), `false` (sync). Default value: `false`. NotSyncDr *bool `json:"NotSyncDr,omitnil" name:"NotSyncDr"` }
func NewModifyInstanceParamRequest ¶
func NewModifyInstanceParamRequest() (request *ModifyInstanceParamRequest)
func (*ModifyInstanceParamRequest) FromJsonString ¶
func (r *ModifyInstanceParamRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceParamRequest) ToJsonString ¶
func (r *ModifyInstanceParamRequest) ToJsonString() string
type ModifyInstanceParamRequestParams ¶
type ModifyInstanceParamRequestParams struct { // List of short instance IDs. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // List of parameters to be modified. Every element is a combination of `Name` (parameter name) and `CurrentValue` (new value). ParamList []*Parameter `json:"ParamList,omitnil" name:"ParamList"` // Template ID. At least one of `ParamList` and `TemplateId` must be passed in. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` // When to perform the parameter adjustment task. Default value: 0. Valid values: 0 - execute immediately, 1 - execute during window. When its value is 1, only one instance ID can be passed in (i.e., only one `InstanceIds` can be passed in). WaitSwitch *int64 `json:"WaitSwitch,omitnil" name:"WaitSwitch"` // Whether to sync the parameters to read-only instance of the source instance. Valid values: `true` (not sync), `false` (sync). Default value: `false`. NotSyncRo *bool `json:"NotSyncRo,omitnil" name:"NotSyncRo"` // Whether to sync the parameters to disaster recovery instance of the source instance. Valid values: `true` (not sync), `false` (sync). Default value: `false`. NotSyncDr *bool `json:"NotSyncDr,omitnil" name:"NotSyncDr"` }
Predefined struct for user
type ModifyInstanceParamResponse ¶
type ModifyInstanceParamResponse struct { *tchttp.BaseResponse Response *ModifyInstanceParamResponseParams `json:"Response"` }
func NewModifyInstanceParamResponse ¶
func NewModifyInstanceParamResponse() (response *ModifyInstanceParamResponse)
func (*ModifyInstanceParamResponse) FromJsonString ¶
func (r *ModifyInstanceParamResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceParamResponse) ToJsonString ¶
func (r *ModifyInstanceParamResponse) ToJsonString() string
type ModifyInstanceParamResponseParams ¶
type ModifyInstanceParamResponseParams struct { // Async task ID, which can be used to query task progress. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyInstancePasswordComplexityRequest ¶
type ModifyInstancePasswordComplexityRequest struct { *tchttp.BaseRequest // Instance ID list InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // List of parameters to be modified. Every element is a combination of `Name` (parameter name) and `CurrentValue` (new value). Valid values for `Name` of version 8.0: `validate_password.policy`, `validate_password.lengt`, `validate_password.mixed_case_coun`, `validate_password.number_coun`, `validate_password.special_char_count`. Valid values for `Name` of version 5.6 and 5.7: `validate_password_polic`, `validate_password_lengt` `validate_password_mixed_case_coun`, `validate_password_number_coun`, `validate_password_special_char_coun`. ParamList []*Parameter `json:"ParamList,omitnil" name:"ParamList"` }
func NewModifyInstancePasswordComplexityRequest ¶
func NewModifyInstancePasswordComplexityRequest() (request *ModifyInstancePasswordComplexityRequest)
func (*ModifyInstancePasswordComplexityRequest) FromJsonString ¶
func (r *ModifyInstancePasswordComplexityRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstancePasswordComplexityRequest) ToJsonString ¶
func (r *ModifyInstancePasswordComplexityRequest) ToJsonString() string
type ModifyInstancePasswordComplexityRequestParams ¶
type ModifyInstancePasswordComplexityRequestParams struct { // Instance ID list InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // List of parameters to be modified. Every element is a combination of `Name` (parameter name) and `CurrentValue` (new value). Valid values for `Name` of version 8.0: `validate_password.policy`, `validate_password.lengt`, `validate_password.mixed_case_coun`, `validate_password.number_coun`, `validate_password.special_char_count`. Valid values for `Name` of version 5.6 and 5.7: `validate_password_polic`, `validate_password_lengt` `validate_password_mixed_case_coun`, `validate_password_number_coun`, `validate_password_special_char_coun`. ParamList []*Parameter `json:"ParamList,omitnil" name:"ParamList"` }
Predefined struct for user
type ModifyInstancePasswordComplexityResponse ¶
type ModifyInstancePasswordComplexityResponse struct { *tchttp.BaseResponse Response *ModifyInstancePasswordComplexityResponseParams `json:"Response"` }
func NewModifyInstancePasswordComplexityResponse ¶
func NewModifyInstancePasswordComplexityResponse() (response *ModifyInstancePasswordComplexityResponse)
func (*ModifyInstancePasswordComplexityResponse) FromJsonString ¶
func (r *ModifyInstancePasswordComplexityResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstancePasswordComplexityResponse) ToJsonString ¶
func (r *ModifyInstancePasswordComplexityResponse) ToJsonString() string
type ModifyInstancePasswordComplexityResponseParams ¶
type ModifyInstancePasswordComplexityResponseParams struct { // Async task ID, which can be used to query task progress. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyInstanceTagRequest ¶
type ModifyInstanceTagRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Tag to be added or modified. ReplaceTags []*TagInfo `json:"ReplaceTags,omitnil" name:"ReplaceTags"` // Tag to be deleted. DeleteTags []*TagInfo `json:"DeleteTags,omitnil" name:"DeleteTags"` }
func NewModifyInstanceTagRequest ¶
func NewModifyInstanceTagRequest() (request *ModifyInstanceTagRequest)
func (*ModifyInstanceTagRequest) FromJsonString ¶
func (r *ModifyInstanceTagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceTagRequest) ToJsonString ¶
func (r *ModifyInstanceTagRequest) ToJsonString() string
type ModifyInstanceTagRequestParams ¶
type ModifyInstanceTagRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Tag to be added or modified. ReplaceTags []*TagInfo `json:"ReplaceTags,omitnil" name:"ReplaceTags"` // Tag to be deleted. DeleteTags []*TagInfo `json:"DeleteTags,omitnil" name:"DeleteTags"` }
Predefined struct for user
type ModifyInstanceTagResponse ¶
type ModifyInstanceTagResponse struct { *tchttp.BaseResponse Response *ModifyInstanceTagResponseParams `json:"Response"` }
func NewModifyInstanceTagResponse ¶
func NewModifyInstanceTagResponse() (response *ModifyInstanceTagResponse)
func (*ModifyInstanceTagResponse) FromJsonString ¶
func (r *ModifyInstanceTagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyInstanceTagResponse) ToJsonString ¶
func (r *ModifyInstanceTagResponse) ToJsonString() string
type ModifyInstanceTagResponseParams ¶
type ModifyInstanceTagResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyLocalBinlogConfigRequest ¶
type ModifyLocalBinlogConfigRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Retention period of local binlog. Valid range: 72-168 hours. When there is disaster recovery instance, the valid range will be 120-168 hours. SaveHours *int64 `json:"SaveHours,omitnil" name:"SaveHours"` // Space utilization of local binlog. Value range: [30,50]. MaxUsage *int64 `json:"MaxUsage,omitnil" name:"MaxUsage"` }
func NewModifyLocalBinlogConfigRequest ¶
func NewModifyLocalBinlogConfigRequest() (request *ModifyLocalBinlogConfigRequest)
func (*ModifyLocalBinlogConfigRequest) FromJsonString ¶
func (r *ModifyLocalBinlogConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLocalBinlogConfigRequest) ToJsonString ¶
func (r *ModifyLocalBinlogConfigRequest) ToJsonString() string
type ModifyLocalBinlogConfigRequestParams ¶
type ModifyLocalBinlogConfigRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Retention period of local binlog. Valid range: 72-168 hours. When there is disaster recovery instance, the valid range will be 120-168 hours. SaveHours *int64 `json:"SaveHours,omitnil" name:"SaveHours"` // Space utilization of local binlog. Value range: [30,50]. MaxUsage *int64 `json:"MaxUsage,omitnil" name:"MaxUsage"` }
Predefined struct for user
type ModifyLocalBinlogConfigResponse ¶
type ModifyLocalBinlogConfigResponse struct { *tchttp.BaseResponse Response *ModifyLocalBinlogConfigResponseParams `json:"Response"` }
func NewModifyLocalBinlogConfigResponse ¶
func NewModifyLocalBinlogConfigResponse() (response *ModifyLocalBinlogConfigResponse)
func (*ModifyLocalBinlogConfigResponse) FromJsonString ¶
func (r *ModifyLocalBinlogConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLocalBinlogConfigResponse) ToJsonString ¶
func (r *ModifyLocalBinlogConfigResponse) ToJsonString() string
type ModifyLocalBinlogConfigResponseParams ¶
type ModifyLocalBinlogConfigResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyNameOrDescByDpIdRequest ¶
type ModifyNameOrDescByDpIdRequest struct { *tchttp.BaseRequest // Placement group ID DeployGroupId *string `json:"DeployGroupId,omitnil" name:"DeployGroupId"` // Name of a placement group, which can contain up to 60 characters. The placement group name and description can’t be empty. DeployGroupName *string `json:"DeployGroupName,omitnil" name:"DeployGroupName"` // Description of a placement group, which can contain up to 200 characters. The placement group name and description can’t be empty. Description *string `json:"Description,omitnil" name:"Description"` }
func NewModifyNameOrDescByDpIdRequest ¶
func NewModifyNameOrDescByDpIdRequest() (request *ModifyNameOrDescByDpIdRequest)
func (*ModifyNameOrDescByDpIdRequest) FromJsonString ¶
func (r *ModifyNameOrDescByDpIdRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyNameOrDescByDpIdRequest) ToJsonString ¶
func (r *ModifyNameOrDescByDpIdRequest) ToJsonString() string
type ModifyNameOrDescByDpIdRequestParams ¶
type ModifyNameOrDescByDpIdRequestParams struct { // Placement group ID DeployGroupId *string `json:"DeployGroupId,omitnil" name:"DeployGroupId"` // Name of a placement group, which can contain up to 60 characters. The placement group name and description can’t be empty. DeployGroupName *string `json:"DeployGroupName,omitnil" name:"DeployGroupName"` // Description of a placement group, which can contain up to 200 characters. The placement group name and description can’t be empty. Description *string `json:"Description,omitnil" name:"Description"` }
Predefined struct for user
type ModifyNameOrDescByDpIdResponse ¶
type ModifyNameOrDescByDpIdResponse struct { *tchttp.BaseResponse Response *ModifyNameOrDescByDpIdResponseParams `json:"Response"` }
func NewModifyNameOrDescByDpIdResponse ¶
func NewModifyNameOrDescByDpIdResponse() (response *ModifyNameOrDescByDpIdResponse)
func (*ModifyNameOrDescByDpIdResponse) FromJsonString ¶
func (r *ModifyNameOrDescByDpIdResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyNameOrDescByDpIdResponse) ToJsonString ¶
func (r *ModifyNameOrDescByDpIdResponse) ToJsonString() string
type ModifyNameOrDescByDpIdResponseParams ¶
type ModifyNameOrDescByDpIdResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyParamTemplateRequest ¶
type ModifyParamTemplateRequest struct { *tchttp.BaseRequest // Template ID. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` // Template name (up to 64 characters) Name *string `json:"Name,omitnil" name:"Name"` // Template description (up to 255 characters) Description *string `json:"Description,omitnil" name:"Description"` // List of parameters. ParamList []*Parameter `json:"ParamList,omitnil" name:"ParamList"` }
func NewModifyParamTemplateRequest ¶
func NewModifyParamTemplateRequest() (request *ModifyParamTemplateRequest)
func (*ModifyParamTemplateRequest) FromJsonString ¶
func (r *ModifyParamTemplateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyParamTemplateRequest) ToJsonString ¶
func (r *ModifyParamTemplateRequest) ToJsonString() string
type ModifyParamTemplateRequestParams ¶
type ModifyParamTemplateRequestParams struct { // Template ID. TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` // Template name (up to 64 characters) Name *string `json:"Name,omitnil" name:"Name"` // Template description (up to 255 characters) Description *string `json:"Description,omitnil" name:"Description"` // List of parameters. ParamList []*Parameter `json:"ParamList,omitnil" name:"ParamList"` }
Predefined struct for user
type ModifyParamTemplateResponse ¶
type ModifyParamTemplateResponse struct { *tchttp.BaseResponse Response *ModifyParamTemplateResponseParams `json:"Response"` }
func NewModifyParamTemplateResponse ¶
func NewModifyParamTemplateResponse() (response *ModifyParamTemplateResponse)
func (*ModifyParamTemplateResponse) FromJsonString ¶
func (r *ModifyParamTemplateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyParamTemplateResponse) ToJsonString ¶
func (r *ModifyParamTemplateResponse) ToJsonString() string
type ModifyParamTemplateResponseParams ¶
type ModifyParamTemplateResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyRemoteBackupConfigRequest ¶
type ModifyRemoteBackupConfigRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Remote data backup. Valid values:`off` (disable), `on` (enable). RemoteBackupSave *string `json:"RemoteBackupSave,omitnil" name:"RemoteBackupSave"` // Remote log backup. Valid values: `off` (disable), `on` (enable). Only when the parameter `RemoteBackupSave` is `on`, the `RemoteBinlogSave` parameter can be set to `on`. RemoteBinlogSave *string `json:"RemoteBinlogSave,omitnil" name:"RemoteBinlogSave"` // The custom backup region list RemoteRegion []*string `json:"RemoteRegion,omitnil" name:"RemoteRegion"` // Remote backup retention period in days ExpireDays *int64 `json:"ExpireDays,omitnil" name:"ExpireDays"` }
func NewModifyRemoteBackupConfigRequest ¶
func NewModifyRemoteBackupConfigRequest() (request *ModifyRemoteBackupConfigRequest)
func (*ModifyRemoteBackupConfigRequest) FromJsonString ¶
func (r *ModifyRemoteBackupConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyRemoteBackupConfigRequest) ToJsonString ¶
func (r *ModifyRemoteBackupConfigRequest) ToJsonString() string
type ModifyRemoteBackupConfigRequestParams ¶
type ModifyRemoteBackupConfigRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Remote data backup. Valid values:`off` (disable), `on` (enable). RemoteBackupSave *string `json:"RemoteBackupSave,omitnil" name:"RemoteBackupSave"` // Remote log backup. Valid values: `off` (disable), `on` (enable). Only when the parameter `RemoteBackupSave` is `on`, the `RemoteBinlogSave` parameter can be set to `on`. RemoteBinlogSave *string `json:"RemoteBinlogSave,omitnil" name:"RemoteBinlogSave"` // The custom backup region list RemoteRegion []*string `json:"RemoteRegion,omitnil" name:"RemoteRegion"` // Remote backup retention period in days ExpireDays *int64 `json:"ExpireDays,omitnil" name:"ExpireDays"` }
Predefined struct for user
type ModifyRemoteBackupConfigResponse ¶
type ModifyRemoteBackupConfigResponse struct { *tchttp.BaseResponse Response *ModifyRemoteBackupConfigResponseParams `json:"Response"` }
func NewModifyRemoteBackupConfigResponse ¶
func NewModifyRemoteBackupConfigResponse() (response *ModifyRemoteBackupConfigResponse)
func (*ModifyRemoteBackupConfigResponse) FromJsonString ¶
func (r *ModifyRemoteBackupConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyRemoteBackupConfigResponse) ToJsonString ¶
func (r *ModifyRemoteBackupConfigResponse) ToJsonString() string
type ModifyRemoteBackupConfigResponseParams ¶
type ModifyRemoteBackupConfigResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyRoGroupInfoRequest ¶
type ModifyRoGroupInfoRequest struct { *tchttp.BaseRequest // RO group ID. RoGroupId *string `json:"RoGroupId,omitnil" name:"RoGroupId"` // RO group details. RoGroupInfo *RoGroupAttr `json:"RoGroupInfo,omitnil" name:"RoGroupInfo"` // Weights of instances in RO group. If the weighting mode of an RO group is changed to custom mode, this parameter must be set, and a weight value needs to be set for each RO instance. RoWeightValues []*RoWeightValue `json:"RoWeightValues,omitnil" name:"RoWeightValues"` // Whether to rebalance the loads of read-only replicas in the RO group. Valid values: `1` (yes), `0` (no). Default value: `0`. If this parameter is set to `1`, connections to the read-only replicas in the RO group will be interrupted transiently. Please ensure that your application has a reconnection mechanism. IsBalanceRoLoad *int64 `json:"IsBalanceRoLoad,omitnil" name:"IsBalanceRoLoad"` // This field has been deprecated. ReplicationDelayTime *int64 `json:"ReplicationDelayTime,omitnil" name:"ReplicationDelayTime"` }
func NewModifyRoGroupInfoRequest ¶
func NewModifyRoGroupInfoRequest() (request *ModifyRoGroupInfoRequest)
func (*ModifyRoGroupInfoRequest) FromJsonString ¶
func (r *ModifyRoGroupInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyRoGroupInfoRequest) ToJsonString ¶
func (r *ModifyRoGroupInfoRequest) ToJsonString() string
type ModifyRoGroupInfoRequestParams ¶
type ModifyRoGroupInfoRequestParams struct { // RO group ID. RoGroupId *string `json:"RoGroupId,omitnil" name:"RoGroupId"` // RO group details. RoGroupInfo *RoGroupAttr `json:"RoGroupInfo,omitnil" name:"RoGroupInfo"` // Weights of instances in RO group. If the weighting mode of an RO group is changed to custom mode, this parameter must be set, and a weight value needs to be set for each RO instance. RoWeightValues []*RoWeightValue `json:"RoWeightValues,omitnil" name:"RoWeightValues"` // Whether to rebalance the loads of read-only replicas in the RO group. Valid values: `1` (yes), `0` (no). Default value: `0`. If this parameter is set to `1`, connections to the read-only replicas in the RO group will be interrupted transiently. Please ensure that your application has a reconnection mechanism. IsBalanceRoLoad *int64 `json:"IsBalanceRoLoad,omitnil" name:"IsBalanceRoLoad"` // This field has been deprecated. ReplicationDelayTime *int64 `json:"ReplicationDelayTime,omitnil" name:"ReplicationDelayTime"` }
Predefined struct for user
type ModifyRoGroupInfoResponse ¶
type ModifyRoGroupInfoResponse struct { *tchttp.BaseResponse Response *ModifyRoGroupInfoResponseParams `json:"Response"` }
func NewModifyRoGroupInfoResponse ¶
func NewModifyRoGroupInfoResponse() (response *ModifyRoGroupInfoResponse)
func (*ModifyRoGroupInfoResponse) FromJsonString ¶
func (r *ModifyRoGroupInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyRoGroupInfoResponse) ToJsonString ¶
func (r *ModifyRoGroupInfoResponse) ToJsonString() string
type ModifyRoGroupInfoResponseParams ¶
type ModifyRoGroupInfoResponseParams struct { // Async task ID. // Note: this field may return `null`, indicating that no valid values can be obtained. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyTimeWindowRequest ¶
type ModifyTimeWindowRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Time period available for maintenance after modification in the format of 10:00-12:00. Each period lasts from half an hour to three hours, with the start time and end time aligned by half-hour. Up to two time periods can be set. Start and end time range: [00:00, 24:00]. TimeRanges []*string `json:"TimeRanges,omitnil" name:"TimeRanges"` // Specifies for which day to modify the time period. Value range: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. If it is not specified or is left blank, the time period will be modified for every day by default. Weekdays []*string `json:"Weekdays,omitnil" name:"Weekdays"` // Data delay threshold. It takes effect only for source instance and disaster recovery instance. Default value: 10. MaxDelayTime *uint64 `json:"MaxDelayTime,omitnil" name:"MaxDelayTime"` }
func NewModifyTimeWindowRequest ¶
func NewModifyTimeWindowRequest() (request *ModifyTimeWindowRequest)
func (*ModifyTimeWindowRequest) FromJsonString ¶
func (r *ModifyTimeWindowRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTimeWindowRequest) ToJsonString ¶
func (r *ModifyTimeWindowRequest) ToJsonString() string
type ModifyTimeWindowRequestParams ¶
type ModifyTimeWindowRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Time period available for maintenance after modification in the format of 10:00-12:00. Each period lasts from half an hour to three hours, with the start time and end time aligned by half-hour. Up to two time periods can be set. Start and end time range: [00:00, 24:00]. TimeRanges []*string `json:"TimeRanges,omitnil" name:"TimeRanges"` // Specifies for which day to modify the time period. Value range: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. If it is not specified or is left blank, the time period will be modified for every day by default. Weekdays []*string `json:"Weekdays,omitnil" name:"Weekdays"` // Data delay threshold. It takes effect only for source instance and disaster recovery instance. Default value: 10. MaxDelayTime *uint64 `json:"MaxDelayTime,omitnil" name:"MaxDelayTime"` }
Predefined struct for user
type ModifyTimeWindowResponse ¶
type ModifyTimeWindowResponse struct { *tchttp.BaseResponse Response *ModifyTimeWindowResponseParams `json:"Response"` }
func NewModifyTimeWindowResponse ¶
func NewModifyTimeWindowResponse() (response *ModifyTimeWindowResponse)
func (*ModifyTimeWindowResponse) FromJsonString ¶
func (r *ModifyTimeWindowResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTimeWindowResponse) ToJsonString ¶
func (r *ModifyTimeWindowResponse) ToJsonString() string
type ModifyTimeWindowResponseParams ¶
type ModifyTimeWindowResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type OfflineIsolatedInstancesRequest ¶
type OfflineIsolatedInstancesRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` }
func NewOfflineIsolatedInstancesRequest ¶
func NewOfflineIsolatedInstancesRequest() (request *OfflineIsolatedInstancesRequest)
func (*OfflineIsolatedInstancesRequest) FromJsonString ¶
func (r *OfflineIsolatedInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OfflineIsolatedInstancesRequest) ToJsonString ¶
func (r *OfflineIsolatedInstancesRequest) ToJsonString() string
type OfflineIsolatedInstancesRequestParams ¶
type OfflineIsolatedInstancesRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` }
Predefined struct for user
type OfflineIsolatedInstancesResponse ¶
type OfflineIsolatedInstancesResponse struct { *tchttp.BaseResponse Response *OfflineIsolatedInstancesResponseParams `json:"Response"` }
func NewOfflineIsolatedInstancesResponse ¶
func NewOfflineIsolatedInstancesResponse() (response *OfflineIsolatedInstancesResponse)
func (*OfflineIsolatedInstancesResponse) FromJsonString ¶
func (r *OfflineIsolatedInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OfflineIsolatedInstancesResponse) ToJsonString ¶
func (r *OfflineIsolatedInstancesResponse) ToJsonString() string
type OfflineIsolatedInstancesResponseParams ¶
type OfflineIsolatedInstancesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type OpenAuditServiceRequest ¶
type OpenAuditServiceRequest struct { *tchttp.BaseRequest // TencentDB for MySQL instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Retention period of the audit log. Valid values: `7` (one week), `30` (one month), `90` (three months), `180` (six months), `365` (one year), `1095` (three years), `1825` (five years). LogExpireDay *uint64 `json:"LogExpireDay,omitnil" name:"LogExpireDay"` // Retention period of high-frequency audit logs. Valid values: `7` (one week), `30` (one month). HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitnil" name:"HighLogExpireDay"` // Audit rule If both this parameter and `RuleTemplateIds` are left empty, full audit will be applied. AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitnil" name:"AuditRuleFilters"` // Rule template ID If both this parameter and `AuditRuleFilters` are left empty, full audit will be applied. RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil" name:"RuleTemplateIds"` }
func NewOpenAuditServiceRequest ¶
func NewOpenAuditServiceRequest() (request *OpenAuditServiceRequest)
func (*OpenAuditServiceRequest) FromJsonString ¶
func (r *OpenAuditServiceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenAuditServiceRequest) ToJsonString ¶
func (r *OpenAuditServiceRequest) ToJsonString() string
type OpenAuditServiceRequestParams ¶
type OpenAuditServiceRequestParams struct { // TencentDB for MySQL instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Retention period of the audit log. Valid values: `7` (one week), `30` (one month), `90` (three months), `180` (six months), `365` (one year), `1095` (three years), `1825` (five years). LogExpireDay *uint64 `json:"LogExpireDay,omitnil" name:"LogExpireDay"` // Retention period of high-frequency audit logs. Valid values: `7` (one week), `30` (one month). HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitnil" name:"HighLogExpireDay"` // Audit rule If both this parameter and `RuleTemplateIds` are left empty, full audit will be applied. AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitnil" name:"AuditRuleFilters"` // Rule template ID If both this parameter and `AuditRuleFilters` are left empty, full audit will be applied. RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil" name:"RuleTemplateIds"` }
Predefined struct for user
type OpenAuditServiceResponse ¶
type OpenAuditServiceResponse struct { *tchttp.BaseResponse Response *OpenAuditServiceResponseParams `json:"Response"` }
func NewOpenAuditServiceResponse ¶
func NewOpenAuditServiceResponse() (response *OpenAuditServiceResponse)
func (*OpenAuditServiceResponse) FromJsonString ¶
func (r *OpenAuditServiceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenAuditServiceResponse) ToJsonString ¶
func (r *OpenAuditServiceResponse) ToJsonString() string
type OpenAuditServiceResponseParams ¶
type OpenAuditServiceResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type OpenDBInstanceEncryptionRequest ¶
type OpenDBInstanceEncryptionRequest struct { *tchttp.BaseRequest // TencentDB instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Custom key ID, which is the unique CMK ID. If this value is empty, the key KMS-CDB auto-generated by Tencent Cloud will be used. KeyId *string `json:"KeyId,omitnil" name:"KeyId"` // Custom storage region, such as ap-guangzhou. When `KeyId` is not empty, this parameter is required. KeyRegion *string `json:"KeyRegion,omitnil" name:"KeyRegion"` }
func NewOpenDBInstanceEncryptionRequest ¶
func NewOpenDBInstanceEncryptionRequest() (request *OpenDBInstanceEncryptionRequest)
func (*OpenDBInstanceEncryptionRequest) FromJsonString ¶
func (r *OpenDBInstanceEncryptionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenDBInstanceEncryptionRequest) ToJsonString ¶
func (r *OpenDBInstanceEncryptionRequest) ToJsonString() string
type OpenDBInstanceEncryptionRequestParams ¶
type OpenDBInstanceEncryptionRequestParams struct { // TencentDB instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Custom key ID, which is the unique CMK ID. If this value is empty, the key KMS-CDB auto-generated by Tencent Cloud will be used. KeyId *string `json:"KeyId,omitnil" name:"KeyId"` // Custom storage region, such as ap-guangzhou. When `KeyId` is not empty, this parameter is required. KeyRegion *string `json:"KeyRegion,omitnil" name:"KeyRegion"` }
Predefined struct for user
type OpenDBInstanceEncryptionResponse ¶
type OpenDBInstanceEncryptionResponse struct { *tchttp.BaseResponse Response *OpenDBInstanceEncryptionResponseParams `json:"Response"` }
func NewOpenDBInstanceEncryptionResponse ¶
func NewOpenDBInstanceEncryptionResponse() (response *OpenDBInstanceEncryptionResponse)
func (*OpenDBInstanceEncryptionResponse) FromJsonString ¶
func (r *OpenDBInstanceEncryptionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenDBInstanceEncryptionResponse) ToJsonString ¶
func (r *OpenDBInstanceEncryptionResponse) ToJsonString() string
type OpenDBInstanceEncryptionResponseParams ¶
type OpenDBInstanceEncryptionResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type OpenDBInstanceGTIDRequest ¶
type OpenDBInstanceGTIDRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewOpenDBInstanceGTIDRequest ¶
func NewOpenDBInstanceGTIDRequest() (request *OpenDBInstanceGTIDRequest)
func (*OpenDBInstanceGTIDRequest) FromJsonString ¶
func (r *OpenDBInstanceGTIDRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenDBInstanceGTIDRequest) ToJsonString ¶
func (r *OpenDBInstanceGTIDRequest) ToJsonString() string
type OpenDBInstanceGTIDRequestParams ¶
type OpenDBInstanceGTIDRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type OpenDBInstanceGTIDResponse ¶
type OpenDBInstanceGTIDResponse struct { *tchttp.BaseResponse Response *OpenDBInstanceGTIDResponseParams `json:"Response"` }
func NewOpenDBInstanceGTIDResponse ¶
func NewOpenDBInstanceGTIDResponse() (response *OpenDBInstanceGTIDResponse)
func (*OpenDBInstanceGTIDResponse) FromJsonString ¶
func (r *OpenDBInstanceGTIDResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenDBInstanceGTIDResponse) ToJsonString ¶
func (r *OpenDBInstanceGTIDResponse) ToJsonString() string
type OpenDBInstanceGTIDResponseParams ¶
type OpenDBInstanceGTIDResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type OpenWanServiceRequest ¶
type OpenWanServiceRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewOpenWanServiceRequest ¶
func NewOpenWanServiceRequest() (request *OpenWanServiceRequest)
func (*OpenWanServiceRequest) FromJsonString ¶
func (r *OpenWanServiceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenWanServiceRequest) ToJsonString ¶
func (r *OpenWanServiceRequest) ToJsonString() string
type OpenWanServiceRequestParams ¶
type OpenWanServiceRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type OpenWanServiceResponse ¶
type OpenWanServiceResponse struct { *tchttp.BaseResponse Response *OpenWanServiceResponseParams `json:"Response"` }
func NewOpenWanServiceResponse ¶
func NewOpenWanServiceResponse() (response *OpenWanServiceResponse)
func (*OpenWanServiceResponse) FromJsonString ¶
func (r *OpenWanServiceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenWanServiceResponse) ToJsonString ¶
func (r *OpenWanServiceResponse) ToJsonString() string
type OpenWanServiceResponseParams ¶
type OpenWanServiceResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type Outbound ¶
type Outbound struct { // Policy, which can be ACCEPT or DROP Action *string `json:"Action,omitnil" name:"Action"` // Destination IP or IP range, such as 172.16.0.0/12 CidrIp *string `json:"CidrIp,omitnil" name:"CidrIp"` // Port or port range PortRange *string `json:"PortRange,omitnil" name:"PortRange"` // Network protocol. UDP and TCP are supported IpProtocol *string `json:"IpProtocol,omitnil" name:"IpProtocol"` // The direction of the rule, which is OUTPUT for inbound rules Dir *string `json:"Dir,omitnil" name:"Dir"` // Address module AddressModule *string `json:"AddressModule,omitnil" name:"AddressModule"` // Rule description Desc *string `json:"Desc,omitnil" name:"Desc"` }
type ParamRecord ¶
type ParamRecord struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Parameter name ParamName *string `json:"ParamName,omitnil" name:"ParamName"` // Parameter value before modification OldValue *string `json:"OldValue,omitnil" name:"OldValue"` // Parameter value after modification NewValue *string `json:"NewValue,omitnil" name:"NewValue"` // Whether the parameter is modified successfully IsSucess *bool `json:"IsSucess,omitnil" name:"IsSucess"` // Modification time ModifyTime *string `json:"ModifyTime,omitnil" name:"ModifyTime"` }
type ParamTemplateInfo ¶
type ParamTemplateInfo struct { // Parameter template ID TemplateId *int64 `json:"TemplateId,omitnil" name:"TemplateId"` // Parameter template name Name *string `json:"Name,omitnil" name:"Name"` // Parameter template description Description *string `json:"Description,omitnil" name:"Description"` // Instance engine version EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Parameter template type TemplateType *string `json:"TemplateType,omitnil" name:"TemplateType"` // Parameter template engine Note: This field may return null, indicating that no valid values can be obtained. EngineType *string `json:"EngineType,omitnil" name:"EngineType"` }
type ParameterDetail ¶
type ParameterDetail struct { // Parameter name Name *string `json:"Name,omitnil" name:"Name"` // Parameter type. Valid values: `integer`, `enum`, `float`, `string`, `func` ParamType *string `json:"ParamType,omitnil" name:"ParamType"` // Default value of the parameter Default *string `json:"Default,omitnil" name:"Default"` // Parameter description Description *string `json:"Description,omitnil" name:"Description"` // Current value of the parameter CurrentValue *string `json:"CurrentValue,omitnil" name:"CurrentValue"` // Whether the database needs to be restarted for the modified parameter to take effect. Value range: 0 (no); 1 (yes) NeedReboot *int64 `json:"NeedReboot,omitnil" name:"NeedReboot"` // Maximum value of the parameter Max *int64 `json:"Max,omitnil" name:"Max"` // Minimum value of the parameter Min *int64 `json:"Min,omitnil" name:"Min"` // Enumerated values of the parameter. It is null if the parameter is non-enumerated EnumValue []*string `json:"EnumValue,omitnil" name:"EnumValue"` // Maximum parameter value, which is valid only when `ParamType` is set to `func` MaxFunc *string `json:"MaxFunc,omitnil" name:"MaxFunc"` // Minimum parameter value, which is valid only when `ParamType` is set to `func` MinFunc *string `json:"MinFunc,omitnil" name:"MinFunc"` // Whether the parameter can be modified Note: This field may return null, indicating that no valid values can be obtained. IsNotSupportEdit *bool `json:"IsNotSupportEdit,omitnil" name:"IsNotSupportEdit"` }
type ProxyAddress ¶
type ProxyAddress struct { // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` // VPC ID UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // VPC subnet ID UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // IP address Vip *string `json:"Vip,omitnil" name:"Vip"` // Port VPort *uint64 `json:"VPort,omitnil" name:"VPort"` // Assignment mode of weights. Valid values: `system` (auto-assigned), `custom`. Note: This field may return null, indicating that no valid values can be obtained. WeightMode *string `json:"WeightMode,omitnil" name:"WeightMode"` // Whether to remove delayed read-only instances from the proxy group Valid values: `true`, `false`. Note: This field may return null, indicating that no valid values can be obtained. IsKickOut *bool `json:"IsKickOut,omitnil" name:"IsKickOut"` // Least read-only instances. Minimum value: `0`. Note: This field may return null, indicating that no valid values can be obtained. MinCount *uint64 `json:"MinCount,omitnil" name:"MinCount"` // The delay threshold. Minimum value: `0`. Note: This field may return null, indicating that no valid values can be obtained. MaxDelay *uint64 `json:"MaxDelay,omitnil" name:"MaxDelay"` // Whether to automatically add newly created read-only instances. Valid values: `true`, `false`. Note: This field may return null, indicating that no valid values can be obtained. AutoAddRo *bool `json:"AutoAddRo,omitnil" name:"AutoAddRo"` // Whether it is read-only. Valid values: `true`, `false`. Note: This field may return null, indicating that no valid values can be obtained. ReadOnly *bool `json:"ReadOnly,omitnil" name:"ReadOnly"` // Whether to enable transaction splitting Note: This field may return null, indicating that no valid values can be obtained. TransSplit *bool `json:"TransSplit,omitnil" name:"TransSplit"` // Whether to enable failover Note: This field may return null, indicating that no valid values can be obtained. FailOver *bool `json:"FailOver,omitnil" name:"FailOver"` // Whether to enable the connection pool Note: This field may return null, indicating that no valid values can be obtained. ConnectionPool *bool `json:"ConnectionPool,omitnil" name:"ConnectionPool"` // Note: This field may return null, indicating that no valid values can be obtained. Desc *string `json:"Desc,omitnil" name:"Desc"` // Read weight assignment for an instance Note: This field may return null, indicating that no valid values can be obtained. ProxyAllocation []*ProxyAllocation `json:"ProxyAllocation,omitnil" name:"ProxyAllocation"` }
type ProxyAllocation ¶
type ProxyGroupInfo ¶
type ProxyGroupInfo struct { // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Proxy version Note: This field may return null, indicating that no valid values can be obtained. ProxyVersion *string `json:"ProxyVersion,omitnil" name:"ProxyVersion"` // Supported proxy upgrade version Note: This field may return null, indicating that no valid values can be obtained. SupportUpgradeProxyVersion *string `json:"SupportUpgradeProxyVersion,omitnil" name:"SupportUpgradeProxyVersion"` // Proxy status Note: This field may return null, indicating that no valid values can be obtained. Status *string `json:"Status,omitnil" name:"Status"` // Proxy task status Note: This field may return null, indicating that no valid values can be obtained. TaskStatus *string `json:"TaskStatus,omitnil" name:"TaskStatus"` // Node information of the proxy group Note: This field may return null, indicating that no valid values can be obtained. ProxyNode []*ProxyNode `json:"ProxyNode,omitnil" name:"ProxyNode"` // Address information of the proxy group Note: This field may return null, indicating that no valid values can be obtained. ProxyAddress []*ProxyAddress `json:"ProxyAddress,omitnil" name:"ProxyAddress"` // Connection pool threshold Note: This field may return null, indicating that no valid values can be obtained. ConnectionPoolLimit *uint64 `json:"ConnectionPoolLimit,omitnil" name:"ConnectionPoolLimit"` // Whether to support address creation Note: This field may return null, indicating that no valid values can be obtained. SupportCreateProxyAddress *bool `json:"SupportCreateProxyAddress,omitnil" name:"SupportCreateProxyAddress"` // TencentDB versions supporting proxy versions upgrade Note: This field may return null, indicating that no valid values can be obtained. SupportUpgradeProxyMysqlVersion *string `json:"SupportUpgradeProxyMysqlVersion,omitnil" name:"SupportUpgradeProxyMysqlVersion"` }
type ProxyInst ¶
type ProxyInst struct { // Instance ID Note: This field may return null, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Instance name Note: This field may return null, indicating that no valid values can be obtained. InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Instance type. Valid values: `master` (source instance), `ro` (read-only instance), `dr` (disaster recovery instance), `sdr` (disaster recovery instance of small specifications). Note: This field may return null, indicating that no valid values can be obtained. InstanceType *int64 `json:"InstanceType,omitnil" name:"InstanceType"` // Instance status. Valid values: `0` (creating), `1` (running), `4` (isolating), `5` (isolated). Note: This field may return null, indicating that no valid values can be obtained. Status *int64 `json:"Status,omitnil" name:"Status"` // Read weight. If it is assigned by the system automatically, the modification will not take effect but represents whether the instance is enabled. Note: This field may return null, indicating that no valid values can be obtained. Weight *uint64 `json:"Weight,omitnil" name:"Weight"` // Instance region Note: This field may return null, indicating that no valid values can be obtained. Region *string `json:"Region,omitnil" name:"Region"` // Instance AZ Note: This field may return null, indicating that no valid values can be obtained. Zone *string `json:"Zone,omitnil" name:"Zone"` }
type ProxyNode ¶
type ProxyNode struct { // Proxy node ID Note: This field may return null, indicating that no valid values can be obtained. ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // Number of CPU cores Note: This field may return null, indicating that no valid values can be obtained. Cpu *uint64 `json:"Cpu,omitnil" name:"Cpu"` // Memory size Note: This field may return null, indicating that no valid values can be obtained. Mem *uint64 `json:"Mem,omitnil" name:"Mem"` // Node status Note: This field may return null, indicating that no valid values can be obtained. Status *string `json:"Status,omitnil" name:"Status"` // Proxy node AZ Note: This field may return null, indicating that no valid values can be obtained. Zone *string `json:"Zone,omitnil" name:"Zone"` // Proxy node region Note: This field may return null, indicating that no valid values can be obtained. Region *string `json:"Region,omitnil" name:"Region"` // Connections Note: This field may return null, indicating that no valid values can be obtained. Connection *uint64 `json:"Connection,omitnil" name:"Connection"` }
type ProxyNodeCustom ¶
type ProxyNodeCustom struct { // Number of nodes NodeCount *uint64 `json:"NodeCount,omitnil" name:"NodeCount"` // Number of CPU cores Cpu *uint64 `json:"Cpu,omitnil" name:"Cpu"` // Memory size Mem *uint64 `json:"Mem,omitnil" name:"Mem"` // Region Region *string `json:"Region,omitnil" name:"Region"` // AZ Zone *string `json:"Zone,omitnil" name:"Zone"` }
type ReleaseIsolatedDBInstancesRequest ¶
type ReleaseIsolatedDBInstancesRequest struct { *tchttp.BaseRequest // Array of instance IDs in the format of `cdb-c1nl9rpv`. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the ID, whose value is the `InstanceId` value in the output parameters. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` }
func NewReleaseIsolatedDBInstancesRequest ¶
func NewReleaseIsolatedDBInstancesRequest() (request *ReleaseIsolatedDBInstancesRequest)
func (*ReleaseIsolatedDBInstancesRequest) FromJsonString ¶
func (r *ReleaseIsolatedDBInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ReleaseIsolatedDBInstancesRequest) ToJsonString ¶
func (r *ReleaseIsolatedDBInstancesRequest) ToJsonString() string
type ReleaseIsolatedDBInstancesRequestParams ¶
type ReleaseIsolatedDBInstancesRequestParams struct { // Array of instance IDs in the format of `cdb-c1nl9rpv`. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the ID, whose value is the `InstanceId` value in the output parameters. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` }
Predefined struct for user
type ReleaseIsolatedDBInstancesResponse ¶
type ReleaseIsolatedDBInstancesResponse struct { *tchttp.BaseResponse Response *ReleaseIsolatedDBInstancesResponseParams `json:"Response"` }
func NewReleaseIsolatedDBInstancesResponse ¶
func NewReleaseIsolatedDBInstancesResponse() (response *ReleaseIsolatedDBInstancesResponse)
func (*ReleaseIsolatedDBInstancesResponse) FromJsonString ¶
func (r *ReleaseIsolatedDBInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ReleaseIsolatedDBInstancesResponse) ToJsonString ¶
func (r *ReleaseIsolatedDBInstancesResponse) ToJsonString() string
type ReleaseIsolatedDBInstancesResponseParams ¶
type ReleaseIsolatedDBInstancesResponseParams struct { // Deisolation result set. Items []*ReleaseResult `json:"Items,omitnil" name:"Items"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ReleaseResult ¶
type ReleaseResult struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Result value of instance deisolation. A returned value of 0 indicates success. Code *int64 `json:"Code,omitnil" name:"Code"` // Error message for instance deisolation. Message *string `json:"Message,omitnil" name:"Message"` }
type ReloadBalanceProxyNodeRequest ¶
type ReloadBalanceProxyNodeRequest struct { *tchttp.BaseRequest // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` }
func NewReloadBalanceProxyNodeRequest ¶
func NewReloadBalanceProxyNodeRequest() (request *ReloadBalanceProxyNodeRequest)
func (*ReloadBalanceProxyNodeRequest) FromJsonString ¶
func (r *ReloadBalanceProxyNodeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ReloadBalanceProxyNodeRequest) ToJsonString ¶
func (r *ReloadBalanceProxyNodeRequest) ToJsonString() string
type ReloadBalanceProxyNodeRequestParams ¶
type ReloadBalanceProxyNodeRequestParams struct { // Proxy group ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Address ID of the proxy group ProxyAddressId *string `json:"ProxyAddressId,omitnil" name:"ProxyAddressId"` }
Predefined struct for user
type ReloadBalanceProxyNodeResponse ¶
type ReloadBalanceProxyNodeResponse struct { *tchttp.BaseResponse Response *ReloadBalanceProxyNodeResponseParams `json:"Response"` }
func NewReloadBalanceProxyNodeResponse ¶
func NewReloadBalanceProxyNodeResponse() (response *ReloadBalanceProxyNodeResponse)
func (*ReloadBalanceProxyNodeResponse) FromJsonString ¶
func (r *ReloadBalanceProxyNodeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ReloadBalanceProxyNodeResponse) ToJsonString ¶
func (r *ReloadBalanceProxyNodeResponse) ToJsonString() string
type ReloadBalanceProxyNodeResponseParams ¶
type ReloadBalanceProxyNodeResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type RemoteBackupInfo ¶
type RemoteBackupInfo struct { // ID of the remote backup subtask SubBackupId []*int64 `json:"SubBackupId,omitnil" name:"SubBackupId"` // The region where the remote backup resides Region *string `json:"Region,omitnil" name:"Region"` // Backup task status. Valid values: `SUCCESS` (backup succeeded), `FAILED` (backup failed), `RUNNING` (backup is in progress). Status *string `json:"Status,omitnil" name:"Status"` // The start time of remote backup StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // The end time of remote backup FinishTime *string `json:"FinishTime,omitnil" name:"FinishTime"` // The download address Url *string `json:"Url,omitnil" name:"Url"` }
type RenewDBInstanceRequest ¶
type RenewDBInstanceRequest struct { *tchttp.BaseRequest // ID of the instance to be renewed in the format of cdb-c1nl9rpv, which is the same as the instance ID displayed in the TencentDB console. You can use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Renewal period in months. Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. TimeSpan *int64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // To renew a pay-as-you-go instance to a monthly subscribed one, you need to set this parameter to `PREPAID`. ModifyPayType *string `json:"ModifyPayType,omitnil" name:"ModifyPayType"` }
func NewRenewDBInstanceRequest ¶
func NewRenewDBInstanceRequest() (request *RenewDBInstanceRequest)
func (*RenewDBInstanceRequest) FromJsonString ¶
func (r *RenewDBInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RenewDBInstanceRequest) ToJsonString ¶
func (r *RenewDBInstanceRequest) ToJsonString() string
type RenewDBInstanceRequestParams ¶
type RenewDBInstanceRequestParams struct { // ID of the instance to be renewed in the format of cdb-c1nl9rpv, which is the same as the instance ID displayed in the TencentDB console. You can use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Renewal period in months. Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. TimeSpan *int64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // To renew a pay-as-you-go instance to a monthly subscribed one, you need to set this parameter to `PREPAID`. ModifyPayType *string `json:"ModifyPayType,omitnil" name:"ModifyPayType"` }
Predefined struct for user
type RenewDBInstanceResponse ¶
type RenewDBInstanceResponse struct { *tchttp.BaseResponse Response *RenewDBInstanceResponseParams `json:"Response"` }
func NewRenewDBInstanceResponse ¶
func NewRenewDBInstanceResponse() (response *RenewDBInstanceResponse)
func (*RenewDBInstanceResponse) FromJsonString ¶
func (r *RenewDBInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RenewDBInstanceResponse) ToJsonString ¶
func (r *RenewDBInstanceResponse) ToJsonString() string
type RenewDBInstanceResponseParams ¶
type RenewDBInstanceResponseParams struct { // Order ID DealId *string `json:"DealId,omitnil" name:"DealId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ResetRootAccountRequest ¶
type ResetRootAccountRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewResetRootAccountRequest ¶
func NewResetRootAccountRequest() (request *ResetRootAccountRequest)
func (*ResetRootAccountRequest) FromJsonString ¶
func (r *ResetRootAccountRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResetRootAccountRequest) ToJsonString ¶
func (r *ResetRootAccountRequest) ToJsonString() string
type ResetRootAccountRequestParams ¶
type ResetRootAccountRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type ResetRootAccountResponse ¶
type ResetRootAccountResponse struct { *tchttp.BaseResponse Response *ResetRootAccountResponseParams `json:"Response"` }
func NewResetRootAccountResponse ¶
func NewResetRootAccountResponse() (response *ResetRootAccountResponse)
func (*ResetRootAccountResponse) FromJsonString ¶
func (r *ResetRootAccountResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResetRootAccountResponse) ToJsonString ¶
func (r *ResetRootAccountResponse) ToJsonString() string
type ResetRootAccountResponseParams ¶
type ResetRootAccountResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type RestartDBInstancesRequest ¶
type RestartDBInstancesRequest struct { *tchttp.BaseRequest // Array of instance IDs in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` }
func NewRestartDBInstancesRequest ¶
func NewRestartDBInstancesRequest() (request *RestartDBInstancesRequest)
func (*RestartDBInstancesRequest) FromJsonString ¶
func (r *RestartDBInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RestartDBInstancesRequest) ToJsonString ¶
func (r *RestartDBInstancesRequest) ToJsonString() string
type RestartDBInstancesRequestParams ¶
type RestartDBInstancesRequestParams struct { // Array of instance IDs in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` }
Predefined struct for user
type RestartDBInstancesResponse ¶
type RestartDBInstancesResponse struct { *tchttp.BaseResponse Response *RestartDBInstancesResponseParams `json:"Response"` }
func NewRestartDBInstancesResponse ¶
func NewRestartDBInstancesResponse() (response *RestartDBInstancesResponse)
func (*RestartDBInstancesResponse) FromJsonString ¶
func (r *RestartDBInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RestartDBInstancesResponse) ToJsonString ¶
func (r *RestartDBInstancesResponse) ToJsonString() string
type RestartDBInstancesResponseParams ¶
type RestartDBInstancesResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type RoGroup ¶
type RoGroup struct { // Read-only group mode. Valid values: `alone` (the system assigns a read-only group automatically), `allinone` (a new read-only group will be created), `join` (an existing read-only group will be used). RoGroupMode *string `json:"RoGroupMode,omitnil" name:"RoGroupMode"` // Read-only group ID. RoGroupId *string `json:"RoGroupId,omitnil" name:"RoGroupId"` // Read-only group name. RoGroupName *string `json:"RoGroupName,omitnil" name:"RoGroupName"` // Whether to enable the function of isolating an instance that exceeds the latency threshold. If it is enabled, when the latency between the read-only instance and the primary instance exceeds the latency threshold, the read-only instance will be isolated. Valid values: 1 (enabled), 0 (not enabled) RoOfflineDelay *int64 `json:"RoOfflineDelay,omitnil" name:"RoOfflineDelay"` // Latency threshold RoMaxDelayTime *int64 `json:"RoMaxDelayTime,omitnil" name:"RoMaxDelayTime"` // Minimum number of instances to be retained. If the number of the purchased read-only instances is smaller than the set value, they will not be removed. MinRoInGroup *int64 `json:"MinRoInGroup,omitnil" name:"MinRoInGroup"` // Read/write weight distribution mode. Valid values: `system` (weights are assigned by the system automatically), `custom` (weights are customized) WeightMode *string `json:"WeightMode,omitnil" name:"WeightMode"` // This field has been disused. To view the weight of a read-only instance, check the `Weight` value in the `RoInstances` field. Weight *int64 `json:"Weight,omitnil" name:"Weight"` // Details of read-only instances in read-only group RoInstances []*RoInstanceInfo `json:"RoInstances,omitnil" name:"RoInstances"` // Private IP of read-only group. Vip *string `json:"Vip,omitnil" name:"Vip"` // Private network port number of read-only group. Vport *int64 `json:"Vport,omitnil" name:"Vport"` // VPC ID. // Note: this field may return null, indicating that no valid values can be obtained. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // Subnet ID. // Note: this field may return null, indicating that no valid values can be obtained. UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Read-only group region. // Note: this field may return null, indicating that no valid values can be obtained. RoGroupRegion *string `json:"RoGroupRegion,omitnil" name:"RoGroupRegion"` // Read-only group AZ. // Note: this field may return null, indicating that no valid values can be obtained. RoGroupZone *string `json:"RoGroupZone,omitnil" name:"RoGroupZone"` // Replication delay. // Note: this field may return `null`, indicating that no valid values can be obtained. DelayReplicationTime *int64 `json:"DelayReplicationTime,omitnil" name:"DelayReplicationTime"` }
type RoGroupAttr ¶
type RoGroupAttr struct { // RO group name. RoGroupName *string `json:"RoGroupName,omitnil" name:"RoGroupName"` // Maximum delay threshold for RO instances in seconds. Minimum value: 1. Please note that this value will take effect only if an instance removal policy is enabled in the RO group. RoMaxDelayTime *int64 `json:"RoMaxDelayTime,omitnil" name:"RoMaxDelayTime"` // Whether to enable instance removal. Valid values: 1 (enabled), 0 (not enabled). Please note that if instance removal is enabled, the delay threshold parameter (`RoMaxDelayTime`) must be set. RoOfflineDelay *int64 `json:"RoOfflineDelay,omitnil" name:"RoOfflineDelay"` // Minimum number of instances to be retained, which can be set to any value less than or equal to the number of RO instances in the RO group. Please note that if this value is set to be greater than the number of RO instances, no removal will be performed, and if it is set to 0, all instances with an excessive delay will be removed. MinRoInGroup *int64 `json:"MinRoInGroup,omitnil" name:"MinRoInGroup"` // Weighting mode. Supported values include `system` (automatically assigned by the system) and `custom` (defined by user). Please note that if the `custom` mode is selected, the RO instance weight configuration parameter (RoWeightValues) must be set. WeightMode *string `json:"WeightMode,omitnil" name:"WeightMode"` // Replication delay. ReplicationDelayTime *int64 `json:"ReplicationDelayTime,omitnil" name:"ReplicationDelayTime"` }
type RoInstanceInfo ¶
type RoInstanceInfo struct { // Master instance ID corresponding to the RO group MasterInstanceId *string `json:"MasterInstanceId,omitnil" name:"MasterInstanceId"` // RO instance status in the RO group. Value range: online, offline RoStatus *string `json:"RoStatus,omitnil" name:"RoStatus"` // Last deactivation time of a RO instance in the RO group OfflineTime *string `json:"OfflineTime,omitnil" name:"OfflineTime"` // RO instance weight in the RO group Weight *int64 `json:"Weight,omitnil" name:"Weight"` // RO instance region name, such as ap-shanghai Region *string `json:"Region,omitnil" name:"Region"` // Name of RO AZ, such as ap-shanghai-1 Zone *string `json:"Zone,omitnil" name:"Zone"` // RO instance ID in the format of cdbro-c1nl9rpv InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // RO instance status. Valid values: `0` (creating), `1` (running), `3` (remote RO), `4` (deleting). When the `DescribeDBInstances` API is used to query the information of the source instance, if the source instance is associated with a remote read-only instance, the returned status value of the remote read-only instance always shows 3. Status *int64 `json:"Status,omitnil" name:"Status"` // Instance type. Value range: 1 (primary), 2 (disaster recovery), 3 (read-only) InstanceType *int64 `json:"InstanceType,omitnil" name:"InstanceType"` // RO instance name InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Pay-as-you-go billing status. Value range: 1 (normal), 2 (in arrears) HourFeeStatus *int64 `json:"HourFeeStatus,omitnil" name:"HourFeeStatus"` // RO instance task status. Value range: <br>0 - no task <br>1 - upgrading <br>2 - importing data <br>3 - activating secondary <br>4 - public network access enabled <br>5 - batch operation in progress <br>6 - rolling back <br>7 - public network access not enabled <br>8 - modifying password <br>9 - renaming instance <br>10 - restarting <br>12 - migrating self-built instance <br>13 - dropping table <br>14 - creating and syncing disaster recovery instance TaskStatus *int64 `json:"TaskStatus,omitnil" name:"TaskStatus"` // RO instance memory size in MB Memory *int64 `json:"Memory,omitnil" name:"Memory"` // RO instance disk size in GB Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Queries per second Qps *int64 `json:"Qps,omitnil" name:"Qps"` // Private IP address of the RO instance Vip *string `json:"Vip,omitnil" name:"Vip"` // Access port of the RO instance Vport *int64 `json:"Vport,omitnil" name:"Vport"` // VPC ID of the RO instance VpcId *int64 `json:"VpcId,omitnil" name:"VpcId"` // VPC subnet ID of the RO instance SubnetId *int64 `json:"SubnetId,omitnil" name:"SubnetId"` // RO instance specification description. Value range: CUSTOM DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // Database engine version of the read-only replica. Valid values: `5.1`, `5.5`, `5.6`, `5.7`, `8.0` EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // RO instance expiration time in the format of yyyy-mm-dd hh:mm:ss. If it is a pay-as-you-go instance, the value of this field is 0000-00-00 00:00:00 DeadlineTime *string `json:"DeadlineTime,omitnil" name:"DeadlineTime"` // RO instance billing method. Value range: 0 (monthly subscribed), 1 (pay-as-you-go), 2 (monthly postpaid) PayType *int64 `json:"PayType,omitnil" name:"PayType"` }
type RoVipInfo ¶
type RoVipInfo struct { // VIP status of the read-only instance RoVipStatus *int64 `json:"RoVipStatus,omitnil" name:"RoVipStatus"` // VPC subnet of the read-only instance RoSubnetId *int64 `json:"RoSubnetId,omitnil" name:"RoSubnetId"` // VPC of the read-only instance RoVpcId *int64 `json:"RoVpcId,omitnil" name:"RoVpcId"` // VIP port number of the read-only instance RoVport *int64 `json:"RoVport,omitnil" name:"RoVport"` // VIP of the read-only instance RoVip *string `json:"RoVip,omitnil" name:"RoVip"` }
type RoWeightValue ¶
type RollbackDBName ¶
type RollbackDBName struct { // Original database name before rollback // Note: this field may return null, indicating that no valid values can be obtained. DatabaseName *string `json:"DatabaseName,omitnil" name:"DatabaseName"` // New database name after rollback // Note: this field may return null, indicating that no valid values can be obtained. NewDatabaseName *string `json:"NewDatabaseName,omitnil" name:"NewDatabaseName"` }
type RollbackInstancesInfo ¶
type RollbackInstancesInfo struct { // TencentDB instance ID // Note: this field may return null, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Rollback policy. Valid values: `table` (ultrafast mode), `db` (faster mode), and `full` (fast mode). Default value: `full`. In the ultrafast mode, only backups and binlogs of the tables specified by the `Tables` parameter are imported; if `Tables` does not include all of the tables involved in cross-table operations, the rollback may fail; and the `Database` parameter must be left empty. In the faster mode, only backups and binlogs of the databases specified by the `Databases` parameter are imported, and if `Databases` does not include all of the databases involved in cross-database operations, the rollback may fail. In the fast mode, backups and binlogs of the entire instance will be imported in a speed slower than the other modes. Strategy *string `json:"Strategy,omitnil" name:"Strategy"` // Database rollback time in the format of yyyy-mm-dd hh:mm:ss RollbackTime *string `json:"RollbackTime,omitnil" name:"RollbackTime"` // Information of the databases to be rolled back, which means rollback at the database level // Note: this field may return null, indicating that no valid values can be obtained. Databases []*RollbackDBName `json:"Databases,omitnil" name:"Databases"` // Information of the tables to be rolled back, which means rollback at the table level // Note: this field may return null, indicating that no valid values can be obtained. Tables []*RollbackTables `json:"Tables,omitnil" name:"Tables"` }
type RollbackTableName ¶
type RollbackTableName struct { // Original table name before rollback // Note: this field may return null, indicating that no valid values can be obtained. TableName *string `json:"TableName,omitnil" name:"TableName"` // New table name after rollback // Note: this field may return null, indicating that no valid values can be obtained. NewTableName *string `json:"NewTableName,omitnil" name:"NewTableName"` }
type RollbackTables ¶
type RollbackTables struct { // Database name // Note: this field may return null, indicating that no valid values can be obtained. Database *string `json:"Database,omitnil" name:"Database"` // Table details // Note: this field may return null, indicating that no valid values can be obtained. Table []*RollbackTableName `json:"Table,omitnil" name:"Table"` }
type RollbackTask ¶
type RollbackTask struct { // Task execution information. Info *string `json:"Info,omitnil" name:"Info"` // Task execution result. Valid values: INITIAL: initializing, RUNNING: running, SUCCESS: succeeded, FAILED: failed, KILLED: terminated, REMOVED: deleted, PAUSED: paused. Status *string `json:"Status,omitnil" name:"Status"` // Task execution progress. Value range: [0,100]. Progress *int64 `json:"Progress,omitnil" name:"Progress"` // Task start time. StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // Task end time. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Rollback task details. // Note: this field may return null, indicating that no valid values can be obtained. Detail []*RollbackInstancesInfo `json:"Detail,omitnil" name:"Detail"` }
type RollbackTimeRange ¶
type RollbackTimeRange struct { // Start time available for rollback in the format of yyyy-MM-dd HH:mm:ss, such as 2016-10-29 01:06:04 Begin *string `json:"Begin,omitnil" name:"Begin"` // End time available for rollback in the format of yyyy-MM-dd HH:mm:ss, such as 2016-11-02 11:44:47 End *string `json:"End,omitnil" name:"End"` }
type Rule ¶
type Rule struct { // The maximum weight // Note: this field may return `null`, indicating that no valid value can be found. LessThan *uint64 `json:"LessThan,omitnil" name:"LessThan"` // Weight // Note: this field may return `null`, indicating that no valid value can be found. Weight *uint64 `json:"Weight,omitnil" name:"Weight"` }
type RuleFilters ¶
type RuleFilters struct { // Parameter name of the audit rule filter. Valid values: `host` (client IP), `user` (database account), `dbName` (database name), `sqlType` (SQL type), `sql` (SQL statement), `affectRows` (affected rows), `sentRows` (returned rows), `checkRows` (scanned rows), `execTime` (execution rows). Type *string `json:"Type,omitnil" name:"Type"` // Filter match value of the audit rule Valid values: `INC` (including), `EXC` (excluding), `EQS` (equal to), `NEQ` (not equal to), `REG` (regex), `GT` (greater than), `LT` (less than). Compare *string `json:"Compare,omitnil" name:"Compare"` // Filter match value of the audit rule Valid values for `sqlType`: `alter`, `changeuser`, `create`, `delete`, `drop`, `execute`, `insert`, `login`, `logout`, `other`, `replace`, `select`, `set, `update`. Value []*string `json:"Value,omitnil" name:"Value"` }
type SecurityGroup ¶
type SecurityGroup struct { // Project ID ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Creation time in the format of yyyy-mm-dd hh:mm:ss CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // Inbound rule Inbound []*Inbound `json:"Inbound,omitnil" name:"Inbound"` // Outbound rule Outbound []*Outbound `json:"Outbound,omitnil" name:"Outbound"` // Security group ID SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"` // Security group name SecurityGroupName *string `json:"SecurityGroupName,omitnil" name:"SecurityGroupName"` // Security group remarks SecurityGroupRemark *string `json:"SecurityGroupRemark,omitnil" name:"SecurityGroupRemark"` }
type SlaveConfig ¶
type SlaveInfo ¶
type SlaveInfo struct { // Information of secondary server 1 First *SlaveInstanceInfo `json:"First,omitnil" name:"First"` // Information of secondary server 2 // Note: This field may return null, indicating that no valid values can be obtained. Second *SlaveInstanceInfo `json:"Second,omitnil" name:"Second"` }
type SlaveInstanceInfo ¶
type SlaveInstanceInfo struct { // Port number Vport *int64 `json:"Vport,omitnil" name:"Vport"` // Region information Region *string `json:"Region,omitnil" name:"Region"` // Virtual IP information Vip *string `json:"Vip,omitnil" name:"Vip"` // AZ information Zone *string `json:"Zone,omitnil" name:"Zone"` }
type SlowLogInfo ¶
type SlowLogInfo struct { // Backup filename Name *string `json:"Name,omitnil" name:"Name"` // Backup file size in bytes Size *int64 `json:"Size,omitnil" name:"Size"` // Backup snapshot time in the format of yyyy-MM-dd HH:mm:ss, such as 2016-03-17 02:10:37 Date *string `json:"Date,omitnil" name:"Date"` // Download address on the private network IntranetUrl *string `json:"IntranetUrl,omitnil" name:"IntranetUrl"` // Download address on the public network InternetUrl *string `json:"InternetUrl,omitnil" name:"InternetUrl"` // Log type. Value range: slowlog (slow log) Type *string `json:"Type,omitnil" name:"Type"` }
type SlowLogItem ¶
type SlowLogItem struct { // SQL execution time. // Note: this field may return null, indicating that no valid values can be obtained. Timestamp *uint64 `json:"Timestamp,omitnil" name:"Timestamp"` // SQL execution duration in seconds. // Note: this field may return `null`, indicating that no valid values can be obtained. QueryTime *float64 `json:"QueryTime,omitnil" name:"QueryTime"` // SQL statement. // Note: this field may return null, indicating that no valid values can be obtained. SqlText *string `json:"SqlText,omitnil" name:"SqlText"` // Client address. // Note: this field may return null, indicating that no valid values can be obtained. UserHost *string `json:"UserHost,omitnil" name:"UserHost"` // Username. // Note: this field may return null, indicating that no valid values can be obtained. UserName *string `json:"UserName,omitnil" name:"UserName"` // Database name. // Note: this field may return null, indicating that no valid values can be obtained. Database *string `json:"Database,omitnil" name:"Database"` // Lock duration in seconds. // Note: this field may return `null`, indicating that no valid values can be obtained. LockTime *float64 `json:"LockTime,omitnil" name:"LockTime"` // Number of scanned rows. // Note: this field may return null, indicating that no valid values can be obtained. RowsExamined *int64 `json:"RowsExamined,omitnil" name:"RowsExamined"` // Number of rows in result set. // Note: this field may return null, indicating that no valid values can be obtained. RowsSent *int64 `json:"RowsSent,omitnil" name:"RowsSent"` // SQL template. // Note: this field may return null, indicating that no valid values can be obtained. SqlTemplate *string `json:"SqlTemplate,omitnil" name:"SqlTemplate"` // SQL statement MD5. // Note: this field may return null, indicating that no valid values can be obtained. Md5 *string `json:"Md5,omitnil" name:"Md5"` }
type SqlFileInfo ¶
type SqlFileInfo struct { // Upload time UploadTime *string `json:"UploadTime,omitnil" name:"UploadTime"` // Upload progress UploadInfo *UploadInfo `json:"UploadInfo,omitnil" name:"UploadInfo"` // Filename FileName *string `json:"FileName,omitnil" name:"FileName"` // File size in bytes FileSize *int64 `json:"FileSize,omitnil" name:"FileSize"` // Whether upload is finished. Valid values: 0 (not completed), 1 (completed) IsUploadFinished *int64 `json:"IsUploadFinished,omitnil" name:"IsUploadFinished"` // File ID FileId *string `json:"FileId,omitnil" name:"FileId"` }
type StartBatchRollbackRequest ¶
type StartBatchRollbackRequest struct { *tchttp.BaseRequest // Details of the instance for rollback Instances []*RollbackInstancesInfo `json:"Instances,omitnil" name:"Instances"` }
func NewStartBatchRollbackRequest ¶
func NewStartBatchRollbackRequest() (request *StartBatchRollbackRequest)
func (*StartBatchRollbackRequest) FromJsonString ¶
func (r *StartBatchRollbackRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartBatchRollbackRequest) ToJsonString ¶
func (r *StartBatchRollbackRequest) ToJsonString() string
type StartBatchRollbackRequestParams ¶
type StartBatchRollbackRequestParams struct { // Details of the instance for rollback Instances []*RollbackInstancesInfo `json:"Instances,omitnil" name:"Instances"` }
Predefined struct for user
type StartBatchRollbackResponse ¶
type StartBatchRollbackResponse struct { *tchttp.BaseResponse Response *StartBatchRollbackResponseParams `json:"Response"` }
func NewStartBatchRollbackResponse ¶
func NewStartBatchRollbackResponse() (response *StartBatchRollbackResponse)
func (*StartBatchRollbackResponse) FromJsonString ¶
func (r *StartBatchRollbackResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartBatchRollbackResponse) ToJsonString ¶
func (r *StartBatchRollbackResponse) ToJsonString() string
type StartBatchRollbackResponseParams ¶
type StartBatchRollbackResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type StartCpuExpandRequest ¶
type StartCpuExpandRequest struct {
*tchttp.BaseRequest
}
func NewStartCpuExpandRequest ¶
func NewStartCpuExpandRequest() (request *StartCpuExpandRequest)
func (*StartCpuExpandRequest) FromJsonString ¶
func (r *StartCpuExpandRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartCpuExpandRequest) ToJsonString ¶
func (r *StartCpuExpandRequest) ToJsonString() string
type StartCpuExpandRequestParams ¶
type StartCpuExpandRequestParams struct { }
Predefined struct for user
type StartCpuExpandResponse ¶
type StartCpuExpandResponse struct { *tchttp.BaseResponse Response *StartCpuExpandResponseParams `json:"Response"` }
func NewStartCpuExpandResponse ¶
func NewStartCpuExpandResponse() (response *StartCpuExpandResponse)
func (*StartCpuExpandResponse) FromJsonString ¶
func (r *StartCpuExpandResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartCpuExpandResponse) ToJsonString ¶
func (r *StartCpuExpandResponse) ToJsonString() string
type StartCpuExpandResponseParams ¶
type StartCpuExpandResponseParams struct { // Async task ID, which can be passed in by calling the u200c`DescribeAsyncRequest` API for task progress query. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type StartReplicationRequest ¶
type StartReplicationRequest struct { *tchttp.BaseRequest // Read-Only instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewStartReplicationRequest ¶
func NewStartReplicationRequest() (request *StartReplicationRequest)
func (*StartReplicationRequest) FromJsonString ¶
func (r *StartReplicationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartReplicationRequest) ToJsonString ¶
func (r *StartReplicationRequest) ToJsonString() string
type StartReplicationRequestParams ¶
type StartReplicationRequestParams struct { // Read-Only instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type StartReplicationResponse ¶
type StartReplicationResponse struct { *tchttp.BaseResponse Response *StartReplicationResponseParams `json:"Response"` }
func NewStartReplicationResponse ¶
func NewStartReplicationResponse() (response *StartReplicationResponse)
func (*StartReplicationResponse) FromJsonString ¶
func (r *StartReplicationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartReplicationResponse) ToJsonString ¶
func (r *StartReplicationResponse) ToJsonString() string
type StartReplicationResponseParams ¶
type StartReplicationResponseParams struct { // Async task ID. // Note: this field may return `null`, indicating that no valid values can be obtained. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type StopCpuExpandRequest ¶
type StopCpuExpandRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewStopCpuExpandRequest ¶
func NewStopCpuExpandRequest() (request *StopCpuExpandRequest)
func (*StopCpuExpandRequest) FromJsonString ¶
func (r *StopCpuExpandRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopCpuExpandRequest) ToJsonString ¶
func (r *StopCpuExpandRequest) ToJsonString() string
type StopCpuExpandRequestParams ¶
type StopCpuExpandRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type StopCpuExpandResponse ¶
type StopCpuExpandResponse struct { *tchttp.BaseResponse Response *StopCpuExpandResponseParams `json:"Response"` }
func NewStopCpuExpandResponse ¶
func NewStopCpuExpandResponse() (response *StopCpuExpandResponse)
func (*StopCpuExpandResponse) FromJsonString ¶
func (r *StopCpuExpandResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopCpuExpandResponse) ToJsonString ¶
func (r *StopCpuExpandResponse) ToJsonString() string
type StopCpuExpandResponseParams ¶
type StopCpuExpandResponseParams struct { // Async task ID, which can be passed in by calling the u200c`DescribeAsyncRequest` API for task progress query. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type StopDBImportJobRequest ¶
type StopDBImportJobRequest struct { *tchttp.BaseRequest // Async task request ID. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` }
func NewStopDBImportJobRequest ¶
func NewStopDBImportJobRequest() (request *StopDBImportJobRequest)
func (*StopDBImportJobRequest) FromJsonString ¶
func (r *StopDBImportJobRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopDBImportJobRequest) ToJsonString ¶
func (r *StopDBImportJobRequest) ToJsonString() string
type StopDBImportJobRequestParams ¶
type StopDBImportJobRequestParams struct { // Async task request ID. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` }
Predefined struct for user
type StopDBImportJobResponse ¶
type StopDBImportJobResponse struct { *tchttp.BaseResponse Response *StopDBImportJobResponseParams `json:"Response"` }
func NewStopDBImportJobResponse ¶
func NewStopDBImportJobResponse() (response *StopDBImportJobResponse)
func (*StopDBImportJobResponse) FromJsonString ¶
func (r *StopDBImportJobResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopDBImportJobResponse) ToJsonString ¶
func (r *StopDBImportJobResponse) ToJsonString() string
type StopDBImportJobResponseParams ¶
type StopDBImportJobResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type StopReplicationRequest ¶
type StopReplicationRequest struct { *tchttp.BaseRequest // Read-Only instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewStopReplicationRequest ¶
func NewStopReplicationRequest() (request *StopReplicationRequest)
func (*StopReplicationRequest) FromJsonString ¶
func (r *StopReplicationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopReplicationRequest) ToJsonString ¶
func (r *StopReplicationRequest) ToJsonString() string
type StopReplicationRequestParams ¶
type StopReplicationRequestParams struct { // Read-Only instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type StopReplicationResponse ¶
type StopReplicationResponse struct { *tchttp.BaseResponse Response *StopReplicationResponseParams `json:"Response"` }
func NewStopReplicationResponse ¶
func NewStopReplicationResponse() (response *StopReplicationResponse)
func (*StopReplicationResponse) FromJsonString ¶
func (r *StopReplicationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopReplicationResponse) ToJsonString ¶
func (r *StopReplicationResponse) ToJsonString() string
type StopReplicationResponseParams ¶
type StopReplicationResponseParams struct { // Async task ID. // Note: this field may return `null`, indicating that no valid values can be obtained. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type StopRollbackRequest ¶
type StopRollbackRequest struct { *tchttp.BaseRequest // ID of the instance whose rollback task is canceled InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewStopRollbackRequest ¶
func NewStopRollbackRequest() (request *StopRollbackRequest)
func (*StopRollbackRequest) FromJsonString ¶
func (r *StopRollbackRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopRollbackRequest) ToJsonString ¶
func (r *StopRollbackRequest) ToJsonString() string
type StopRollbackRequestParams ¶
type StopRollbackRequestParams struct { // ID of the instance whose rollback task is canceled InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type StopRollbackResponse ¶
type StopRollbackResponse struct { *tchttp.BaseResponse Response *StopRollbackResponseParams `json:"Response"` }
func NewStopRollbackResponse ¶
func NewStopRollbackResponse() (response *StopRollbackResponse)
func (*StopRollbackResponse) FromJsonString ¶
func (r *StopRollbackResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopRollbackResponse) ToJsonString ¶
func (r *StopRollbackResponse) ToJsonString() string
type StopRollbackResponseParams ¶
type StopRollbackResponseParams struct { // Async task request ID AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type SwitchCDBProxyRequest ¶
type SwitchCDBProxyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Database proxy ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` }
func NewSwitchCDBProxyRequest ¶
func NewSwitchCDBProxyRequest() (request *SwitchCDBProxyRequest)
func (*SwitchCDBProxyRequest) FromJsonString ¶
func (r *SwitchCDBProxyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SwitchCDBProxyRequest) ToJsonString ¶
func (r *SwitchCDBProxyRequest) ToJsonString() string
type SwitchCDBProxyRequestParams ¶
type SwitchCDBProxyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Database proxy ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` }
Predefined struct for user
type SwitchCDBProxyResponse ¶
type SwitchCDBProxyResponse struct { *tchttp.BaseResponse Response *SwitchCDBProxyResponseParams `json:"Response"` }
func NewSwitchCDBProxyResponse ¶
func NewSwitchCDBProxyResponse() (response *SwitchCDBProxyResponse)
func (*SwitchCDBProxyResponse) FromJsonString ¶
func (r *SwitchCDBProxyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SwitchCDBProxyResponse) ToJsonString ¶
func (r *SwitchCDBProxyResponse) ToJsonString() string
type SwitchCDBProxyResponseParams ¶
type SwitchCDBProxyResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type SwitchDBInstanceMasterSlaveRequest ¶
type SwitchDBInstanceMasterSlaveRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Specifies the replica server to switched to. Valid values: `first` (the first replica server), `second` (the second replica server). Default value: `first`. `second` is valid only for a multi-AZ instance. DstSlave *string `json:"DstSlave,omitnil" name:"DstSlave"` // Whether to force the switch. Valid values: `True`, `False` (default). If this parameter is set to `True`, instance data may be lost during the switch. ForceSwitch *bool `json:"ForceSwitch,omitnil" name:"ForceSwitch"` // Whether to perform the switch during a time window. Valid values: `True`, `False` (default). If `ForceSwitch` is set to `True`, this parameter is invalid. WaitSwitch *bool `json:"WaitSwitch,omitnil" name:"WaitSwitch"` }
func NewSwitchDBInstanceMasterSlaveRequest ¶
func NewSwitchDBInstanceMasterSlaveRequest() (request *SwitchDBInstanceMasterSlaveRequest)
func (*SwitchDBInstanceMasterSlaveRequest) FromJsonString ¶
func (r *SwitchDBInstanceMasterSlaveRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SwitchDBInstanceMasterSlaveRequest) ToJsonString ¶
func (r *SwitchDBInstanceMasterSlaveRequest) ToJsonString() string
type SwitchDBInstanceMasterSlaveRequestParams ¶
type SwitchDBInstanceMasterSlaveRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Specifies the replica server to switched to. Valid values: `first` (the first replica server), `second` (the second replica server). Default value: `first`. `second` is valid only for a multi-AZ instance. DstSlave *string `json:"DstSlave,omitnil" name:"DstSlave"` // Whether to force the switch. Valid values: `True`, `False` (default). If this parameter is set to `True`, instance data may be lost during the switch. ForceSwitch *bool `json:"ForceSwitch,omitnil" name:"ForceSwitch"` // Whether to perform the switch during a time window. Valid values: `True`, `False` (default). If `ForceSwitch` is set to `True`, this parameter is invalid. WaitSwitch *bool `json:"WaitSwitch,omitnil" name:"WaitSwitch"` }
Predefined struct for user
type SwitchDBInstanceMasterSlaveResponse ¶
type SwitchDBInstanceMasterSlaveResponse struct { *tchttp.BaseResponse Response *SwitchDBInstanceMasterSlaveResponseParams `json:"Response"` }
func NewSwitchDBInstanceMasterSlaveResponse ¶
func NewSwitchDBInstanceMasterSlaveResponse() (response *SwitchDBInstanceMasterSlaveResponse)
func (*SwitchDBInstanceMasterSlaveResponse) FromJsonString ¶
func (r *SwitchDBInstanceMasterSlaveResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SwitchDBInstanceMasterSlaveResponse) ToJsonString ¶
func (r *SwitchDBInstanceMasterSlaveResponse) ToJsonString() string
type SwitchDBInstanceMasterSlaveResponseParams ¶
type SwitchDBInstanceMasterSlaveResponseParams struct { // Async task ID AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type SwitchDrInstanceToMasterRequest ¶
type SwitchDrInstanceToMasterRequest struct { *tchttp.BaseRequest // Disaster recovery instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewSwitchDrInstanceToMasterRequest ¶
func NewSwitchDrInstanceToMasterRequest() (request *SwitchDrInstanceToMasterRequest)
func (*SwitchDrInstanceToMasterRequest) FromJsonString ¶
func (r *SwitchDrInstanceToMasterRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SwitchDrInstanceToMasterRequest) ToJsonString ¶
func (r *SwitchDrInstanceToMasterRequest) ToJsonString() string
type SwitchDrInstanceToMasterRequestParams ¶
type SwitchDrInstanceToMasterRequestParams struct { // Disaster recovery instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type SwitchDrInstanceToMasterResponse ¶
type SwitchDrInstanceToMasterResponse struct { *tchttp.BaseResponse Response *SwitchDrInstanceToMasterResponseParams `json:"Response"` }
func NewSwitchDrInstanceToMasterResponse ¶
func NewSwitchDrInstanceToMasterResponse() (response *SwitchDrInstanceToMasterResponse)
func (*SwitchDrInstanceToMasterResponse) FromJsonString ¶
func (r *SwitchDrInstanceToMasterResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SwitchDrInstanceToMasterResponse) ToJsonString ¶
func (r *SwitchDrInstanceToMasterResponse) ToJsonString() string
type SwitchDrInstanceToMasterResponseParams ¶
type SwitchDrInstanceToMasterResponseParams struct { // Async task request ID, which can be used to query the execution result of an async task AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type SwitchForUpgradeRequest ¶
type SwitchForUpgradeRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewSwitchForUpgradeRequest ¶
func NewSwitchForUpgradeRequest() (request *SwitchForUpgradeRequest)
func (*SwitchForUpgradeRequest) FromJsonString ¶
func (r *SwitchForUpgradeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SwitchForUpgradeRequest) ToJsonString ¶
func (r *SwitchForUpgradeRequest) ToJsonString() string
type SwitchForUpgradeRequestParams ¶
type SwitchForUpgradeRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type SwitchForUpgradeResponse ¶
type SwitchForUpgradeResponse struct { *tchttp.BaseResponse Response *SwitchForUpgradeResponseParams `json:"Response"` }
func NewSwitchForUpgradeResponse ¶
func NewSwitchForUpgradeResponse() (response *SwitchForUpgradeResponse)
func (*SwitchForUpgradeResponse) FromJsonString ¶
func (r *SwitchForUpgradeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SwitchForUpgradeResponse) ToJsonString ¶
func (r *SwitchForUpgradeResponse) ToJsonString() string
type SwitchForUpgradeResponseParams ¶
type SwitchForUpgradeResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type TablePrivilege ¶
type TagInfoItem ¶
type TagInfoItem struct { // Tag key // Note: this field may return `null`, indicating that no valid values can be obtained. TagKey *string `json:"TagKey,omitnil" name:"TagKey"` // Tag value // Note: this field may return `null`, indicating that no valid values can be obtained. TagValue *string `json:"TagValue,omitnil" name:"TagValue"` }
type TagInfoUnit ¶
type TagsInfoOfInstance ¶
type TagsInfoOfInstance struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Tag information Tags []*TagInfoUnit `json:"Tags,omitnil" name:"Tags"` }
type TaskDetail ¶
type TaskDetail struct { // Error code. Code *int64 `json:"Code,omitnil" name:"Code"` // Error message. Message *string `json:"Message,omitnil" name:"Message"` // ID of an instance task. JobId *int64 `json:"JobId,omitnil" name:"JobId"` // Instance task progress. Progress *int64 `json:"Progress,omitnil" name:"Progress"` // Instance task status. Valid values: // "UNDEFINED" - undefined; // "INITIAL" - initializing; // "RUNNING" - running; // "SUCCEED" - succeeded; // "FAILED" - failed; // "KILLED" - terminated; // "REMOVED" - deleted; // "PAUSED" - paused. // "WAITING" - waiting (which can be canceled) TaskStatus *string `json:"TaskStatus,omitnil" name:"TaskStatus"` // Instance task type. Valid values: // "ROLLBACK" - rolling back a database; // "SQL OPERATION" - performing an SQL operation; // "IMPORT DATA" - importing data; // "MODIFY PARAM" - setting a parameter; // "INITIAL" - initializing a TencentDB instance; // "REBOOT" - restarting a TencentDB instance; // "OPEN GTID" - enabling GTID of a TencentDB instance; // "UPGRADE RO" - upgrading a read-only instance; // "BATCH ROLLBACK" - rolling back databases in batches; // "UPGRADE MASTER" - upgrading a primary instance; // "DROP TABLES" - dropping a TencentDB table; // "SWITCH DR TO MASTER" - promoting a disaster recovery instance. TaskType *string `json:"TaskType,omitnil" name:"TaskType"` // Instance task start time. StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // Instance task end time. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // ID of an instance associated with a task. // Note: This field may return null, indicating that no valid values can be obtained. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Async task request ID. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` }
type UpgradeCDBProxyVersionRequest ¶
type UpgradeCDBProxyVersionRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Database proxy ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Current version of database proxy SrcProxyVersion *string `json:"SrcProxyVersion,omitnil" name:"SrcProxyVersion"` // Target version of database proxy DstProxyVersion *string `json:"DstProxyVersion,omitnil" name:"DstProxyVersion"` // Upgrade time. Valid values: `nowTime` (upgrade immediately), `timeWindow` (upgrade during instance maintenance time) UpgradeTime *string `json:"UpgradeTime,omitnil" name:"UpgradeTime"` }
func NewUpgradeCDBProxyVersionRequest ¶
func NewUpgradeCDBProxyVersionRequest() (request *UpgradeCDBProxyVersionRequest)
func (*UpgradeCDBProxyVersionRequest) FromJsonString ¶
func (r *UpgradeCDBProxyVersionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeCDBProxyVersionRequest) ToJsonString ¶
func (r *UpgradeCDBProxyVersionRequest) ToJsonString() string
type UpgradeCDBProxyVersionRequestParams ¶
type UpgradeCDBProxyVersionRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Database proxy ID ProxyGroupId *string `json:"ProxyGroupId,omitnil" name:"ProxyGroupId"` // Current version of database proxy SrcProxyVersion *string `json:"SrcProxyVersion,omitnil" name:"SrcProxyVersion"` // Target version of database proxy DstProxyVersion *string `json:"DstProxyVersion,omitnil" name:"DstProxyVersion"` // Upgrade time. Valid values: `nowTime` (upgrade immediately), `timeWindow` (upgrade during instance maintenance time) UpgradeTime *string `json:"UpgradeTime,omitnil" name:"UpgradeTime"` }
Predefined struct for user
type UpgradeCDBProxyVersionResponse ¶
type UpgradeCDBProxyVersionResponse struct { *tchttp.BaseResponse Response *UpgradeCDBProxyVersionResponseParams `json:"Response"` }
func NewUpgradeCDBProxyVersionResponse ¶
func NewUpgradeCDBProxyVersionResponse() (response *UpgradeCDBProxyVersionResponse)
func (*UpgradeCDBProxyVersionResponse) FromJsonString ¶
func (r *UpgradeCDBProxyVersionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeCDBProxyVersionResponse) ToJsonString ¶
func (r *UpgradeCDBProxyVersionResponse) ToJsonString() string
type UpgradeCDBProxyVersionResponseParams ¶
type UpgradeCDBProxyVersionResponseParams struct { // Async request ID // Note: this field may return `null`, indicating that no valid value can be found. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type UpgradeDBInstanceEngineVersionRequest ¶
type UpgradeDBInstanceEngineVersionRequest struct { *tchttp.BaseRequest // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Version of primary instance database engine. Value range: 5.6, 5.7 EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Switch mode for accessing the new instance. Valid values: `0` (switch immediately), `1` (switch within a time window). Default value: `0`. If the value is `1`, the switch process will be performed within a time window. Or, you can call the [SwitchForUpgrade](https://intl.cloud.tencent.com/document/product/236/15864?from_cn_redirect=1) API to trigger the process. WaitSwitch *int64 `json:"WaitSwitch,omitnil" name:"WaitSwitch"` // Whether to upgrade kernel minor version. Valid values: 1 (upgrade kernel minor version), 0 (upgrade database engine). UpgradeSubversion *int64 `json:"UpgradeSubversion,omitnil" name:"UpgradeSubversion"` // Delay threshold. Value range: 1-10 MaxDelayTime *int64 `json:"MaxDelayTime,omitnil" name:"MaxDelayTime"` }
func NewUpgradeDBInstanceEngineVersionRequest ¶
func NewUpgradeDBInstanceEngineVersionRequest() (request *UpgradeDBInstanceEngineVersionRequest)
func (*UpgradeDBInstanceEngineVersionRequest) FromJsonString ¶
func (r *UpgradeDBInstanceEngineVersionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeDBInstanceEngineVersionRequest) ToJsonString ¶
func (r *UpgradeDBInstanceEngineVersionRequest) ToJsonString() string
type UpgradeDBInstanceEngineVersionRequestParams ¶
type UpgradeDBInstanceEngineVersionRequestParams struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Version of primary instance database engine. Value range: 5.6, 5.7 EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Switch mode for accessing the new instance. Valid values: `0` (switch immediately), `1` (switch within a time window). Default value: `0`. If the value is `1`, the switch process will be performed within a time window. Or, you can call the [SwitchForUpgrade](https://intl.cloud.tencent.com/document/product/236/15864?from_cn_redirect=1) API to trigger the process. WaitSwitch *int64 `json:"WaitSwitch,omitnil" name:"WaitSwitch"` // Whether to upgrade kernel minor version. Valid values: 1 (upgrade kernel minor version), 0 (upgrade database engine). UpgradeSubversion *int64 `json:"UpgradeSubversion,omitnil" name:"UpgradeSubversion"` // Delay threshold. Value range: 1-10 MaxDelayTime *int64 `json:"MaxDelayTime,omitnil" name:"MaxDelayTime"` }
Predefined struct for user
type UpgradeDBInstanceEngineVersionResponse ¶
type UpgradeDBInstanceEngineVersionResponse struct { *tchttp.BaseResponse Response *UpgradeDBInstanceEngineVersionResponseParams `json:"Response"` }
func NewUpgradeDBInstanceEngineVersionResponse ¶
func NewUpgradeDBInstanceEngineVersionResponse() (response *UpgradeDBInstanceEngineVersionResponse)
func (*UpgradeDBInstanceEngineVersionResponse) FromJsonString ¶
func (r *UpgradeDBInstanceEngineVersionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeDBInstanceEngineVersionResponse) ToJsonString ¶
func (r *UpgradeDBInstanceEngineVersionResponse) ToJsonString() string
type UpgradeDBInstanceEngineVersionResponseParams ¶
type UpgradeDBInstanceEngineVersionResponseParams struct { // Async task ID. The task execution result can be queried using the [async task execution result querying API](https://intl.cloud.tencent.com/document/api/236/20410?from_cn_redirect=1). AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type UpgradeDBInstanceRequest ¶
type UpgradeDBInstanceRequest struct { *tchttp.BaseRequest // Instance ID in the format of `cdb-c1nl9rpv` or `cdbro-c1nl9rpv`. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Memory size in MB after upgrade. To ensure that the `Memory` value to be passed in is valid, please use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/product/236/17229?from_cn_redirect=1) API to query the specifications of the memory that can be upgraded to. Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Disk size in GB after upgrade. To ensure that the `Volume` value to be passed in is valid, please use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/product/236/17229?from_cn_redirect=1) API to query the specifications of the disk that can be upgraded to. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). This parameter can be specified when upgrading primary instances and is meaningless for read-only or disaster recovery instances. ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Deployment mode. Valid values: 0 (single-AZ), 1 (multi-AZ). Default value: 0. This parameter can be specified when upgrading primary instances and is meaningless for read-only or disaster recovery instances. DeployMode *int64 `json:"DeployMode,omitnil" name:"DeployMode"` // AZ information of secondary database 1, which is the `Zone` value of the instance by default. This parameter can be specified when upgrading primary instances in multi-AZ mode and is meaningless for read-only or disaster recovery instances. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/product/236/17229?from_cn_redirect=1) API to query the supported AZs. SlaveZone *string `json:"SlaveZone,omitnil" name:"SlaveZone"` // Version of primary instance database engine. Valid values: 5.5, 5.6, 5.7. EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Switch mode for accessing the new instance. Valid values: `0` (switch immediately), `1` (switch within a time window). Default value: `0`. If the value is `1`, the switch process will be performed within a time window. Or, you can call the [SwitchForUpgrade](https://intl.cloud.tencent.com/document/product/236/15864?from_cn_redirect=1) API to trigger the process. WaitSwitch *int64 `json:"WaitSwitch,omitnil" name:"WaitSwitch"` // AZ information of secondary database 2, which is empty by default. This parameter can be specified when upgrading primary instances and is meaningless for read-only or disaster recovery instances. BackupZone *string `json:"BackupZone,omitnil" name:"BackupZone"` // Instance type. Valid values: master (primary instance), dr (disaster recovery instance), ro (read-only instance). Default value: master. InstanceRole *string `json:"InstanceRole,omitnil" name:"InstanceRole"` // The resource isolation type after the instance is upgraded. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). If this parameter is left empty, the resource isolation type will be the same as the original one. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // The number of CPU cores after the instance is upgraded. If this parameter is left empty, the minimum value will be automatically filled based on the value specified by `Memory`. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // QuickChange options. Valid values: `0` (common upgrade), `1` (QuickChange), `2` (QuickChange first). After QuickChange is enabled, the required resources will be checked. QuickChange will be performed only when the required resources support the feature; otherwise, an error message will be returned. FastUpgrade *int64 `json:"FastUpgrade,omitnil" name:"FastUpgrade"` // Delay threshold. Value range: 1-10. Default value: `10`. MaxDelayTime *int64 `json:"MaxDelayTime,omitnil" name:"MaxDelayTime"` // Whether to migrate the source node across AZs. Valid values: `0` (no), `1`(yes). Default value: `0`. If it is `1`, you can modify the source node AZ. CrossCluster *int64 `json:"CrossCluster,omitnil" name:"CrossCluster"` // New AZ of the source node. This field is only valid when `CrossCluster` is `1`. Only migration across AZs in the same region is supported. ZoneId *string `json:"ZoneId,omitnil" name:"ZoneId"` // Processing logic of the intra-AZ read-only instance for cross-cluster migration. Valid values: `together` (intra-AZ read-only instances will be migrated to the target AZ with the source instance by default.), `severally` (intra-AZ read-only instances will maintain the original deployment mode and will not be migrated to the target AZ.). RoTransType *string `json:"RoTransType,omitnil" name:"RoTransType"` }
func NewUpgradeDBInstanceRequest ¶
func NewUpgradeDBInstanceRequest() (request *UpgradeDBInstanceRequest)
func (*UpgradeDBInstanceRequest) FromJsonString ¶
func (r *UpgradeDBInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeDBInstanceRequest) ToJsonString ¶
func (r *UpgradeDBInstanceRequest) ToJsonString() string
type UpgradeDBInstanceRequestParams ¶
type UpgradeDBInstanceRequestParams struct { // Instance ID in the format of `cdb-c1nl9rpv` or `cdbro-c1nl9rpv`. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Memory size in MB after upgrade. To ensure that the `Memory` value to be passed in is valid, please use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/product/236/17229?from_cn_redirect=1) API to query the specifications of the memory that can be upgraded to. Memory *int64 `json:"Memory,omitnil" name:"Memory"` // Disk size in GB after upgrade. To ensure that the `Volume` value to be passed in is valid, please use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/product/236/17229?from_cn_redirect=1) API to query the specifications of the disk that can be upgraded to. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). This parameter can be specified when upgrading primary instances and is meaningless for read-only or disaster recovery instances. ProtectMode *int64 `json:"ProtectMode,omitnil" name:"ProtectMode"` // Deployment mode. Valid values: 0 (single-AZ), 1 (multi-AZ). Default value: 0. This parameter can be specified when upgrading primary instances and is meaningless for read-only or disaster recovery instances. DeployMode *int64 `json:"DeployMode,omitnil" name:"DeployMode"` // AZ information of secondary database 1, which is the `Zone` value of the instance by default. This parameter can be specified when upgrading primary instances in multi-AZ mode and is meaningless for read-only or disaster recovery instances. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/product/236/17229?from_cn_redirect=1) API to query the supported AZs. SlaveZone *string `json:"SlaveZone,omitnil" name:"SlaveZone"` // Version of primary instance database engine. Valid values: 5.5, 5.6, 5.7. EngineVersion *string `json:"EngineVersion,omitnil" name:"EngineVersion"` // Switch mode for accessing the new instance. Valid values: `0` (switch immediately), `1` (switch within a time window). Default value: `0`. If the value is `1`, the switch process will be performed within a time window. Or, you can call the [SwitchForUpgrade](https://intl.cloud.tencent.com/document/product/236/15864?from_cn_redirect=1) API to trigger the process. WaitSwitch *int64 `json:"WaitSwitch,omitnil" name:"WaitSwitch"` // AZ information of secondary database 2, which is empty by default. This parameter can be specified when upgrading primary instances and is meaningless for read-only or disaster recovery instances. BackupZone *string `json:"BackupZone,omitnil" name:"BackupZone"` // Instance type. Valid values: master (primary instance), dr (disaster recovery instance), ro (read-only instance). Default value: master. InstanceRole *string `json:"InstanceRole,omitnil" name:"InstanceRole"` // The resource isolation type after the instance is upgraded. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). If this parameter is left empty, the resource isolation type will be the same as the original one. DeviceType *string `json:"DeviceType,omitnil" name:"DeviceType"` // The number of CPU cores after the instance is upgraded. If this parameter is left empty, the minimum value will be automatically filled based on the value specified by `Memory`. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // QuickChange options. Valid values: `0` (common upgrade), `1` (QuickChange), `2` (QuickChange first). After QuickChange is enabled, the required resources will be checked. QuickChange will be performed only when the required resources support the feature; otherwise, an error message will be returned. FastUpgrade *int64 `json:"FastUpgrade,omitnil" name:"FastUpgrade"` // Delay threshold. Value range: 1-10. Default value: `10`. MaxDelayTime *int64 `json:"MaxDelayTime,omitnil" name:"MaxDelayTime"` // Whether to migrate the source node across AZs. Valid values: `0` (no), `1`(yes). Default value: `0`. If it is `1`, you can modify the source node AZ. CrossCluster *int64 `json:"CrossCluster,omitnil" name:"CrossCluster"` // New AZ of the source node. This field is only valid when `CrossCluster` is `1`. Only migration across AZs in the same region is supported. ZoneId *string `json:"ZoneId,omitnil" name:"ZoneId"` // Processing logic of the intra-AZ read-only instance for cross-cluster migration. Valid values: `together` (intra-AZ read-only instances will be migrated to the target AZ with the source instance by default.), `severally` (intra-AZ read-only instances will maintain the original deployment mode and will not be migrated to the target AZ.). RoTransType *string `json:"RoTransType,omitnil" name:"RoTransType"` }
Predefined struct for user
type UpgradeDBInstanceResponse ¶
type UpgradeDBInstanceResponse struct { *tchttp.BaseResponse Response *UpgradeDBInstanceResponseParams `json:"Response"` }
func NewUpgradeDBInstanceResponse ¶
func NewUpgradeDBInstanceResponse() (response *UpgradeDBInstanceResponse)
func (*UpgradeDBInstanceResponse) FromJsonString ¶
func (r *UpgradeDBInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeDBInstanceResponse) ToJsonString ¶
func (r *UpgradeDBInstanceResponse) ToJsonString() string
type UpgradeDBInstanceResponseParams ¶
type UpgradeDBInstanceResponseParams struct { // Order ID. DealIds []*string `json:"DealIds,omitnil" name:"DealIds"` // Async task request ID, which can be used to query the execution result of an async task. AsyncRequestId *string `json:"AsyncRequestId,omitnil" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type UploadInfo ¶
type ZoneConf ¶
type ZoneConf struct { // AZ deployment mode. Value range: 0 (single-AZ), 1 (multi-AZ) DeployMode []*int64 `json:"DeployMode,omitnil" name:"DeployMode"` // AZ where the primary instance is located MasterZone []*string `json:"MasterZone,omitnil" name:"MasterZone"` // AZ where salve database 1 is located when the instance is deployed in multi-AZ mode SlaveZone []*string `json:"SlaveZone,omitnil" name:"SlaveZone"` // AZ where salve database 2 is located when the instance is deployed in multi-AZ mode BackupZone []*string `json:"BackupZone,omitnil" name:"BackupZone"` }