Documentation ¶
Overview ¶
Package rds defines the RDS services of BCE. The supported APIs are all defined in sub-package
rds.go - the rds APIs definition supported by the RDS service
util.go - define the utilities for api package of RDS service
Index ¶
- Constants
- func Aes128EncryptUseSecreteKey(sk string, data string) (string, error)
- type Account
- type AccountPrivilege
- type AppList
- type AutoRenewArgs
- type AutoResizeConfigResult
- type AzoneMigration
- type BackupDetail
- type BackupPolicy
- type Billing
- type Binlog
- type BinlogInfo
- type CheckDataArgs
- type CheckDataResult
- type CheckGtidArgs
- type CheckGtidResult
- type CheckPingArgs
- type CheckPingResult
- type CheckVersionArgs
- type CheckVersionResult
- type Client
- func (c *Client) AddSqlFilter(instanceId string, args *SqlFilterArgs) error
- func (c *Client) AddToFailInjectWhiteList(args *FailInjectArgs) error
- func (c *Client) AutoRenew(args *AutoRenewArgs) error
- func (c *Client) AzoneMigration(instanceId string, args *AzoneMigration) error
- func (c *Client) CheckKillSessionAuth(instanceId string, args *KillSessionAuthArgs) (*KillSessionAuthResult, error)
- func (c *Client) ConfigDiskAutoResize(instanceId, action string, args *DiskAutoResizeArgs) error
- func (c *Client) ConnectionList(instanceId string) (*ConnectionListResult, error)
- func (c *Client) CreateAccount(instanceId string, args *CreateAccountArgs) error
- func (c *Client) CreateDatabase(instanceId string, args *CreateDatabaseArgs) error
- func (c *Client) CreateInstanceGroup(args *InstanceGroupArgs) (*CreateInstanceGroupResult, error)
- func (c *Client) CreateRds(args *CreateRdsArgs) (*CreateResult, error)
- func (c *Client) CreateRdsProxy(args *CreateRdsProxyArgs) (*CreateResult, error)
- func (c *Client) CreateReadReplica(args *CreateReadReplicaArgs) (*CreateResult, error)
- func (c *Client) DeleteAccount(instanceId, accountName string) error
- func (c *Client) DeleteBackup(instanceId, backupId string) error
- func (c *Client) DeleteDatabase(instanceId, dbName string) error
- func (c *Client) DeleteInstanceGroup(groupId string) error
- func (c *Client) DeleteRds(instanceIds string) error
- func (c *Client) DeleteRecyclerInstance(instanceId string) error
- func (c *Client) DeleteSqlFilter(instanceId, sqlFilterId string) error
- func (c *Client) DisableErrorLog(instanceId string) (*ErrorLogResult, error)
- func (c *Client) DisableSlowSqlFlow(instanceId string) error
- func (c *Client) EnableAutoExpansion(instanceId string) (*EnableAutoExpansionResult, error)
- func (c *Client) EnableErrorLog(instanceId string) (*ErrorLogResult, error)
- func (c *Client) EnableSlowSqlFlow(instanceId string) error
- func (c *Client) FailInjectStart(instanceId string) (*TaskResult, error)
- func (c *Client) FailInjectWhiteList() (*FailInjectWhiteListResult, error)
- func (c *Client) GetAccount(instanceId, accountName string) (*Account, error)
- func (c *Client) GetAutoResizeConfig(instanceId string) (*AutoResizeConfigResult, error)
- func (c *Client) GetBackupDetail(instanceId string, backupId string) (*BackupDetail, error)
- func (c *Client) GetBackupList(instanceId string, args *GetBackupListArgs) (*GetBackupListResult, error)
- func (c *Client) GetBinlogInfo(instanceId, logId string, downloadValidTimeInSec string) (*GetBinlogInfoResult, error)
- func (c *Client) GetBinlogList(instanceId, dateTime string) (*GetBinlogListResult, error)
- func (c *Client) GetDbListSize(instanceId string) (*DbListResult, error)
- func (c *Client) GetDetail(instanceId string) (*Instance, error)
- func (c *Client) GetDiskInfo(instanceId string) (*DiskInfoResult, error)
- func (c *Client) GetErrorLogList(instanceId string, args *ErrorLogListArgs) (*ErrorLogListResult, error)
- func (c *Client) GetErrorLogStatus(instanceId string) (*ErrorLogStatusResult, error)
- func (c *Client) GetKillSessionHistory(instanceId string, args *KillSessionHistory) (*KillSessionHistoryResult, error)
- func (c *Client) GetKillSessionTypes(instanceId string) (*KillSessionTypesResult, error)
- func (c *Client) GetOrderStatus(orderId string) (*OrderStatusResult, error)
- func (c *Client) GetSecurityIps(instanceId string) (*GetSecurityIpsResult, error)
- func (c *Client) GetSessionDetail(instanceId string, args *SessionDetailArgs) (*SessionDetailResult, error)
- func (c *Client) GetSessionStatistics(instanceId string) (*SessionStatisticsResult, error)
- func (c *Client) GetSessionSummary(instanceId string) (*SessionSummaryResult, error)
- func (c *Client) GetSlowLogDownloadDetail(instanceId, logId, downloadValidTimeInSec string) (*SlowLogDownloadDetail, error)
- func (c *Client) GetSlowLogDownloadTaskList(instanceId, datetime string) (*SlowLogDownloadTaskListResult, error)
- func (c *Client) GetSlowSqlAdvice(instanceId, sqlId, schema string) (*SlowSqlAdviceResult, error)
- func (c *Client) GetSlowSqlBySqlId(instanceId, sqlId string) (*SlowSqlItem, error)
- func (c *Client) GetSlowSqlDuration(instanceId string, args *GetSlowSqlDurationArgs) (*SlowSqlDurationResult, error)
- func (c *Client) GetSlowSqlExplain(instanceId, sqlId, schema string) (*SlowSqlExplainResult, error)
- func (c *Client) GetSlowSqlIndex(instanceId string, args *GetSlowSqlIndexArgs) (*SlowSqlIndexResult, error)
- func (c *Client) GetSlowSqlList(instanceId string, args *GetSlowSqlArgs) (*SlowSqlListResult, error)
- func (c *Client) GetSlowSqlSchema(instanceId, sqlId, schema string) (*SlowSqlSchemaResult, error)
- func (c *Client) GetSlowSqlSource(instanceId string, args *GetSlowSqlSourceArgs) (*SlowSqlSourceResult, error)
- func (c *Client) GetSlowSqlStatsDigest(instanceId string, args *GetSlowSqlArgs) (*SlowSqlDigestResult, error)
- func (c *Client) GetSlowSqlTable(instanceId, sqlId, schema, table string) (*SlowSqlTableResult, error)
- func (c *Client) GetSlowSqlTrend(instanceId string, args *GetSlowSqlTrendArgs) (*SlowSqlTrendResult, error)
- func (c *Client) GetSqlFilterDetail(instanceId, sqlFilterId string) (*SqlFilterItem, error)
- func (c *Client) GetSqlFilterList(instanceId string) (*SqlFilterListResult, error)
- func (c *Client) GetTableListInfo(instanceId string, args *GetTableListArgs) (*TableListResult, error)
- func (c *Client) GetZoneList() (*GetZoneListResult, error)
- func (c *Client) InnodbStatus(instanceId string) (*InnodbStatusResult, error)
- func (c *Client) InstanceGroupAdd(groupId string, args *InstanceGroupAddArgs) error
- func (c *Client) InstanceGroupBatchAdd(args *InstanceGroupBatchAddArgs) error
- func (c *Client) InstanceGroupCheckData(args *CheckDataArgs) (*CheckDataResult, error)
- func (c *Client) InstanceGroupCheckGtid(args *CheckGtidArgs) (*CheckGtidResult, error)
- func (c *Client) InstanceGroupCheckPing(args *CheckPingArgs) (*CheckPingResult, error)
- func (c *Client) InstanceGroupCheckVersion(args *CheckVersionArgs) (*CheckVersionResult, error)
- func (c *Client) InstanceGroupDetail(groupId string) (*InstanceGroupDetailResult, error)
- func (c *Client) InstanceGroupForceChange(groupId string, args *ForceChangeArgs) (*ForceChangeResult, error)
- func (c *Client) InstanceGroupLeaderChange(groupId string, args *GroupLeaderChangeArgs) error
- func (c *Client) InstanceGroupRemove(groupId, instanceId string) error
- func (c *Client) InstanceMinorVersionList(instanceId string) (*MinorVersionListResult, error)
- func (c *Client) InstanceUpgradeMinorVersion(instanceId string, args *UpgradeMinorVersionArgs) error
- func (c *Client) IsAllowedSqlFilter(instanceId string) (*IsAllowedResult, error)
- func (c *Client) KillSession(instanceId string, args *KillSessionArgs) (*KillSessionResult, error)
- func (c *Client) ListAccount(instanceId string) (*ListAccountResult, error)
- func (c *Client) ListDatabases(instanceId string) (*ListDatabasesResult, error)
- func (c *Client) ListInstanceGroup(args *ListInstanceGroupArgs) (*InstanceGroupListResult, error)
- func (c *Client) ListParameters(instanceId string) (*ListParametersResult, error)
- func (c *Client) ListRds(args *ListRdsArgs) (*ListRdsResult, error)
- func (c *Client) ListRecyclerInstance(args *ListRdsArgs) (*RecyclerListResult, error)
- func (c *Client) ListSubnets(args *ListSubnetsArgs) (*ListSubnetsResult, error)
- func (c *Client) ModifyAccountDesc(instanceId, accountName string, args *ModifyAccountDesc) error
- func (c *Client) ModifyBackupPolicy(instanceId string, args *ModifyBackupPolicyArgs) error
- func (c *Client) ModifyDatabaseDesc(instanceId, dbName string, args *ModifyDatabaseDesc) error
- func (c *Client) ModifyEndpoint(instanceId string, args *ModifyEndpointArgs) error
- func (c *Client) ModifyPublicAccess(instanceId string, args *ModifyPublicAccessArgs) error
- func (c *Client) ModifySyncMode(instanceId string, args *ModifySyncModeArgs) error
- func (c *Client) ParameterHistory(instanceId string) (*ParameterHistoryResult, error)
- func (c *Client) ProcessKill(instanceId string, args *ProcessArgs) error
- func (c *Client) ProcessList(instanceId string) (*ProcessListResult, error)
- func (c *Client) RebootInstance(instanceId string) error
- func (c *Client) RecoveryToSourceInstanceByDatetime(instanceId string, args *RecoveryByDatetimeArgs) error
- func (c *Client) RecoveryToSourceInstanceBySnapshot(instanceId string, args *RecoveryBySnapshotArgs) error
- func (c *Client) RecyclerRecover(args *RecyclerRecoverArgs) error
- func (c *Client) RemoveFailInjectWhiteList(args *FailInjectArgs) error
- func (c *Client) Request(method, uri string, body interface{}) (interface{}, error)
- func (c *Client) ResizeRds(instanceId string, args *ResizeRdsArgs) error
- func (c *Client) SlowSqlFlowStatus(instanceId string) (*SlowSqlFlowStatusResult, error)
- func (c *Client) StartOrStopSqlFilter(instanceId, sqlFilterId string, args *StartOrStopSqlFilterArgs) error
- func (c *Client) TaskList(args *TaskListArgs) (*TaskListResult, error)
- func (c *Client) TransactionList(instanceId string) (*TransactionListResult, error)
- func (c *Client) UpdateAccountPassword(instanceId, accountName string, args *UpdatePasswordArgs) error
- func (c *Client) UpdateAccountPrivileges(instanceId, accountName string, args *UpdateAccountPrivileges) error
- func (c *Client) UpdateDatabasePort(instanceId string, args *UpdateDatabasePortArgs) error
- func (c *Client) UpdateInstanceGroupName(groupId string, args *InstanceGroupNameArgs) error
- func (c *Client) UpdateInstanceName(instanceId string, args *UpdateInstanceNameArgs) error
- func (c *Client) UpdateMaintainTime(instanceId string, args *MaintainTimeArgs) error
- func (c *Client) UpdateParameter(instanceId, Etag string, args *UpdateParameterArgs) error
- func (c *Client) UpdateSecurityIps(instanceId, Etag string, args *UpdateSecurityIpsArgs) error
- func (c *Client) UpdateSqlFilter(instanceId, sqlFilterId string, args *SqlFilterArgs) error
- type Commands
- type ConnectionItem
- type ConnectionListResult
- type CreateAccountArgs
- type CreateDatabaseArgs
- type CreateInstanceGroupResult
- type CreateRdsArgs
- type CreateRdsProxyArgs
- type CreateReadReplicaArgs
- type CreateResult
- type Database
- type DatabasePrivilege
- type DbInfo
- type DbInfoItem
- type DbListResult
- type DiskAutoResizeArgs
- type DiskInfo
- type DiskInfoResult
- type EnableAutoExpansionResult
- type Endpoint
- type ErrorLogItem
- type ErrorLogListArgs
- type ErrorLogListResult
- type ErrorLogResult
- type ErrorLogStatusResult
- type FailInjectArgs
- type FailInjectWhiteListResult
- type ForceChangeArgs
- type ForceChangeResult
- type GetBackupListArgs
- type GetBackupListResult
- type GetBinlogInfoResult
- type GetBinlogListResult
- type GetSecurityIpsResult
- type GetSlowSqlArgs
- type GetSlowSqlDurationArgs
- type GetSlowSqlIndexArgs
- type GetSlowSqlSourceArgs
- type GetSlowSqlTrendArgs
- type GetTableListArgs
- type GetZoneListResult
- type GroupInstance
- type GroupLeaderChangeArgs
- type InitialData
- type InnodbStatusResult
- type InnodbTrxItem
- type Instance
- type InstanceDict
- type InstanceGroup
- type InstanceGroupAddArgs
- type InstanceGroupArgs
- type InstanceGroupBatchAddArgs
- type InstanceGroupDetail
- type InstanceGroupDetailResult
- type InstanceGroupListResult
- type InstanceGroupNameArgs
- type IsAllowedResult
- type KVParameter
- type KillSessionArgs
- type KillSessionAuthArgs
- type KillSessionAuthResult
- type KillSessionHistory
- type KillSessionHistoryItem
- type KillSessionHistoryResult
- type KillSessionResult
- type KillSessionTypesResult
- type ListAccountResult
- type ListDatabasesResult
- type ListInstanceGroupArgs
- type ListParametersResult
- type ListRdsArgs
- type ListRdsResult
- type ListSubnetsArgs
- type ListSubnetsResult
- type LockHold
- type LockWait
- type MaintainTimeArgs
- type MinorVersionListResult
- type ModifyAccountDesc
- type ModifyBackupPolicyArgs
- type ModifyDatabaseDesc
- type ModifyEndpointArgs
- type ModifyPublicAccessArgs
- type ModifySyncModeArgs
- type OrderStatusResult
- type Parameter
- type ParameterHistory
- type ParameterHistoryResult
- type ProcessArgs
- type ProcessItem
- type ProcessListResult
- type ProgressItem
- type RdsMinorVersion
- type RecoveryByDatetimeArgs
- type RecoveryBySnapshotArgs
- type RecoveryData
- type RecoveryToSourceInstanceModel
- type RecyclerListResult
- type RecyclerRecoverArgs
- type Reservation
- type ResizeRdsArgs
- type RoGroup
- type SessionDetailArgs
- type SessionDetailItem
- type SessionDetailResult
- type SessionStatisticsItem
- type SessionStatisticsResult
- type SessionSummaryResult
- type SimpleVpcVo
- type SlowLogDownloadDetail
- type SlowLogDownloadTaskListResult
- type SlowSqlAdviceResult
- type SlowSqlDigestItem
- type SlowSqlDigestResult
- type SlowSqlDurationItem
- type SlowSqlDurationResult
- type SlowSqlExplainItem
- type SlowSqlExplainResult
- type SlowSqlFlowStatusResult
- type SlowSqlIndexAdviceItem
- type SlowSqlIndexItem
- type SlowSqlIndexResult
- type SlowSqlItem
- type SlowSqlListResult
- type SlowSqlSchemaItem
- type SlowSqlSchemaResult
- type SlowSqlSourceItem
- type SlowSqlSourceResult
- type SlowSqlTableItem
- type SlowSqlTableResult
- type SlowSqlTrendItem
- type SlowSqlTrendResult
- type Slowlog
- type SlowlogDetail
- type Snapshot
- type SqlFilterArgs
- type SqlFilterItem
- type SqlFilterListResult
- type StartOrStopSqlFilterArgs
- type Subnet
- type SubnetMap
- type SubnetVo
- type Table
- type TableData
- type TableInfo
- type TableInfoItem
- type TableListResult
- type Task
- type TaskListArgs
- type TaskListResult
- type TaskResult
- type Topology
- type TransactionListResult
- type UpdateAccountPrivileges
- type UpdateDatabasePortArgs
- type UpdateInstanceNameArgs
- type UpdateParameterArgs
- type UpdatePasswordArgs
- type UpdateSecurityIpsArgs
- type UpgradeMinorVersionArgs
- type ZoneName
Constants ¶
const ( URI_PREFIX = bce.URI_PREFIX + "v1" DEFAULT_ENDPOINT = "rds.bj.baidubce.com" REQUEST_RDS_URL = "/instance" )
const ( DEFAULT_PAGE_SIZE = 10 DEFAULT_PAGE_NUM = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountPrivilege ¶ added in v0.9.157
type AppList ¶ added in v0.9.173
type AppList struct { AppId string `json:"appId"` AppName string `json:"appName"` Weight int `json:"weight"` RoGroupId string `json:"roGroupId"` SourceAppId string `json:"sourceAppId"` Status string `json:"status"` CreateTime string `json:"createTime"` UpdateTime string `json:"updateTime"` AppStatus string `json:"appStatus"` AppIdShort string `json:"appIdShort"` }
type AutoRenewArgs ¶ added in v0.9.43
type AutoResizeConfigResult ¶ added in v0.9.157
type AzoneMigration ¶ added in v0.9.157
type BackupDetail ¶ added in v0.9.157
type BackupDetail struct { BackupSize int `json:"backupSize"` BackupStatus string `json:"backupStatus"` BackupId string `json:"backupId"` BackupEndTime string `json:"backupEndTime"` DownloadUrl string `json:"downloadUrl"` BackupType string `json:"backupType"` BackupStartTime string `json:"backupStartTime"` DownloadExpires string `json:"downloadExpires"` }
type BackupPolicy ¶
type Billing ¶
type Billing struct { PaymentTiming string `json:"paymentTiming"` Reservation Reservation `json:"reservation,omitempty"` }
type BinlogInfo ¶ added in v0.9.157
type CheckDataArgs ¶ added in v0.9.157
type CheckDataArgs struct {
InstanceId string `json:"instanceId"`
}
type CheckDataResult ¶ added in v0.9.157
type CheckDataResult struct {
Result bool `json:"result"`
}
type CheckGtidArgs ¶ added in v0.9.157
type CheckGtidArgs struct {
InstanceId string `json:"instanceId"`
}
type CheckGtidResult ¶ added in v0.9.157
type CheckGtidResult struct {
Result bool `json:"result"`
}
type CheckPingArgs ¶ added in v0.9.157
type CheckPingResult ¶ added in v0.9.157
type CheckPingResult struct {
Result bool `json:"result"`
}
type CheckVersionArgs ¶ added in v0.9.157
type CheckVersionResult ¶ added in v0.9.157
type CheckVersionResult struct {
Result bool `json:"result"`
}
type Client ¶
Client of RDS service is a kind of BceClient, so derived from BceClient
func (*Client) AddSqlFilter ¶ added in v0.9.157
func (c *Client) AddSqlFilter(instanceId string, args *SqlFilterArgs) error
AddSqlFilter - add sql filter PARAMS:
- InstanceId: instance id
- *AddSqlFilterArgs: add sql filter arguments
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) AddToFailInjectWhiteList ¶ added in v0.9.157
func (c *Client) AddToFailInjectWhiteList(args *FailInjectArgs) error
AddToFailInjectWhiteList - add instance to failinject whitelist PARAMS:
- *AddFailInjectArgs: add failinject args
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) AutoRenew ¶ added in v0.9.43
func (c *Client) AutoRenew(args *AutoRenewArgs) error
autoRenew - create autoRenew
PARAMS:
- Args: *autoRenewArgs
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) AzoneMigration ¶ added in v0.9.157
func (c *Client) AzoneMigration(instanceId string, args *AzoneMigration) error
AzoneMigration - azone migration
PARAMS:
- instanceId: the specific rds Instance's ID
- args: the arguments to set azone migration
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) CheckKillSessionAuth ¶ added in v0.9.157
func (c *Client) CheckKillSessionAuth(instanceId string, args *KillSessionAuthArgs) (*KillSessionAuthResult, error)
CheckKillSessionAuth - check kill session auth PARAMS:
- InstanceId: instance id
- *KillSessionAuthArgs: the arguments of kill session auth
RETURNS:
- *KillSessionAuthResult: the result of kill session auth
- error: nil if success otherwise the specific error
func (*Client) ConfigDiskAutoResize ¶ added in v0.9.157
func (c *Client) ConfigDiskAutoResize(instanceId, action string, args *DiskAutoResizeArgs) error
diskAutoResizeConfig - config disk auto resize
PARAMS:
- Args: *diskAutoResizeArgs
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ConnectionList ¶ added in v0.9.157
func (c *Client) ConnectionList(instanceId string) (*ConnectionListResult, error)
ConnectionList - get connection list PARAMS:
- InstanceId: instance id
RETURNS:
- *ConnectionListResult: the result of transaction list
- error: nil if success otherwise the specific error
func (*Client) CreateAccount ¶
func (c *Client) CreateAccount(instanceId string, args *CreateAccountArgs) error
CreateAccount - create a account with the specific parameters
PARAMS:
- instanceId: the specific instanceId
- args: the arguments to create a account
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) CreateDatabase ¶ added in v0.9.157
func (c *Client) CreateDatabase(instanceId string, args *CreateDatabaseArgs) error
CreateDatabase - create a database with the specific parameters
PARAMS:
- instanceId: the specific instanceId
- args: the arguments to create a database
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) CreateInstanceGroup ¶ added in v0.9.157
func (c *Client) CreateInstanceGroup(args *InstanceGroupArgs) (*CreateInstanceGroupResult, error)
CreateInstanceGroup - create instance group
PARAMS:
- args: the arguments to group create
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) CreateRds ¶
func (c *Client) CreateRds(args *CreateRdsArgs) (*CreateResult, error)
CreateRds - create a RDS with the specific parameters
PARAMS:
- args: the arguments to create a rds
RETURNS:
- *InstanceIds: the result of create RDS, contains new RDS's instanceIds
- error: nil if success otherwise the specific error
func (*Client) CreateRdsProxy ¶
func (c *Client) CreateRdsProxy(args *CreateRdsProxyArgs) (*CreateResult, error)
CreateRdsProxy - create a proxy RDS with the specific parameters
PARAMS:
- args: the arguments to create a readReplica rds
RETURNS:
- *InstanceIds: the result of create a readReplica RDS, contains the readReplica RDS's instanceIds
- error: nil if success otherwise the specific error
func (*Client) CreateReadReplica ¶
func (c *Client) CreateReadReplica(args *CreateReadReplicaArgs) (*CreateResult, error)
CreateReadReplica - create a readReplica RDS with the specific parameters
PARAMS:
- args: the arguments to create a readReplica rds
RETURNS:
- *InstanceIds: the result of create a readReplica RDS, contains the readReplica RDS's instanceIds
- error: nil if success otherwise the specific error
func (*Client) DeleteAccount ¶
DeleteAccount - delete an account of a RDS instance
PARAMS:
- instanceId: the specific instanceId
- accountName: the specific account's name
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteBackup ¶ added in v0.9.157
DeleteBackup - delete backup detail
PARAMS:
- instanceId: the specific instanceId
- backupId: the specific backupId
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteDatabase ¶ added in v0.9.157
DeleteDatabase - delete database of RDS instance
PARAMS:
- instanceId: the specific instanceId
- dbName: the specific database's name
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteInstanceGroup ¶ added in v0.9.157
DeleteInstanceGroup - delete instance group
PARAMS:
- groupId: the instance group id
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteRds ¶
DeleteRds - delete a rds
PARAMS:
- instanceIds: the specific instanceIds
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteRecyclerInstance ¶ added in v0.9.157
DeleteRecyclerInstance - delete recycler instance
PARAMS:
- instanceId: the specific instanceId
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteSqlFilter ¶ added in v0.9.157
DeleteSqlFilter - delete sql filter
- InstanceId: instance id
- SqlFilterId: sql filter id
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DisableErrorLog ¶ added in v0.9.157
func (c *Client) DisableErrorLog(instanceId string) (*ErrorLogResult, error)
DisableErrorLog - disable error log PARAMS:
- InstanceId: instance id
RETURNS:
- *ErrorLogResult: the result of disable error log
- error: nil if success otherwise the specific error
func (*Client) DisableSlowSqlFlow ¶ added in v0.9.157
DisableSlowSqlFlow - disable slow sql flow
PARAMS:
- instanceId: the instance id
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) EnableAutoExpansion ¶ added in v0.9.157
func (c *Client) EnableAutoExpansion(instanceId string) (*EnableAutoExpansionResult, error)
EnableAutoExpansion - is support auto expansion
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *supportEnableDiskAutoResize: the result of list all parameters
- error: nil if success otherwise the specific error
func (*Client) EnableErrorLog ¶ added in v0.9.157
func (c *Client) EnableErrorLog(instanceId string) (*ErrorLogResult, error)
EnableErrorLog - enable error log PARAMS:
- InstanceId: instance id
RETURNS:
- *ErrorLogResult: the result of enable error log
- error: nil if success otherwise the specific error
func (*Client) EnableSlowSqlFlow ¶ added in v0.9.157
EnableSlowSqlFlow - enable slow sql flow
PARAMS:
- instanceId: the instance id
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) FailInjectStart ¶ added in v0.9.157
func (c *Client) FailInjectStart(instanceId string) (*TaskResult, error)
FailInjectStart - start failinject instance PARAMS:
- InstanceId: instance id
RETURNS:
- *TaskResult: the result of task
- error: nil if success otherwise the specific error
func (*Client) FailInjectWhiteList ¶ added in v0.9.157
func (c *Client) FailInjectWhiteList() (*FailInjectWhiteListResult, error)
FailInjectWhiteList - get fail inject white list
RETURNS:
- *FailInjectWhiteListResult: the result of transaction list
- error: nil if success otherwise the specific error
func (*Client) GetAccount ¶
GetAccount - get an account of a RDS instance with the specific parameters
PARAMS:
- instanceId: the specific rds Instance's ID
- accountName: the specific account's name
RETURNS:
- *Account: the account's meta
- error: nil if success otherwise the specific error
func (*Client) GetAutoResizeConfig ¶ added in v0.9.157
func (c *Client) GetAutoResizeConfig(instanceId string) (*AutoResizeConfigResult, error)
AutoResizeConfig - show disk auto resize config
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *AutoResizeConfigResult: the result of autoResizeConfig
- error: nil if success otherwise the specific error
func (*Client) GetBackupDetail ¶ added in v0.9.97
func (c *Client) GetBackupDetail(instanceId string, backupId string) (*BackupDetail, error)
GetBackupDetail - get backup detail of the instance's backup
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- backupId: id of the backup
RETURNS:
- *Snapshot: result of the backup detail
- error: nil if success otherwise the specific error
func (*Client) GetBackupList ¶ added in v0.9.29
func (c *Client) GetBackupList(instanceId string, args *GetBackupListArgs) (*GetBackupListResult, error)
GetBackupList - get backup list of the instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
RETURNS:
- *GetBackupListResult: result of the backup list
- error: nil if success otherwise the specific error
func (*Client) GetBinlogInfo ¶ added in v0.9.157
func (c *Client) GetBinlogInfo(instanceId, logId string, downloadValidTimeInSec string) (*GetBinlogInfoResult, error)
GetBinlogInfo - get binlog info of the instance
PARAMS:
- instanceId: the specific instanceId
- logId: the specific logId
- downloadValidTimeInSec: download valid time in seconds
RETURNS:
- *BinlogInfo: result of the binlog info
- error: nil if success otherwise the specific error
func (*Client) GetBinlogList ¶ added in v0.9.157
func (c *Client) GetBinlogList(instanceId, dateTime string) (*GetBinlogListResult, error)
GetBinlogList - get binlog list of the instance
PARAMS:
- instanceId: the specific instanceId
- datetime: datetime of the binlog
RETURNS:
- *BinlogResult: result of the binlog list
- error: nil if success otherwise the specific error
func (*Client) GetDbListSize ¶ added in v0.9.157
func (c *Client) GetDbListSize(instanceId string) (*DbListResult, error)
GetDbListSize - get database list size PARAMS:
- InstanceId: instance id
RETURNS:
- *DbListResult: the result of database list size
- error: nil if success otherwise the specific error
func (*Client) GetDetail ¶
GetDetail - get a specific rds Instance's detail
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *Instance: the specific rdsInstance's detail
- error: nil if success otherwise the specific error
func (*Client) GetDiskInfo ¶ added in v0.9.157
func (c *Client) GetDiskInfo(instanceId string) (*DiskInfoResult, error)
GetDiskInfo - get disk info PARAMS:
- InstanceId: instance id
RETURNS:
- *DiskInfoResult: the result of disk info
- error: nil if success otherwise the specific error
func (*Client) GetErrorLogList ¶ added in v0.9.157
func (c *Client) GetErrorLogList(instanceId string, args *ErrorLogListArgs) (*ErrorLogListResult, error)
GetErrorLogList - get error log list PARAMS:
- InstanceId: instance id
- *ErrorLogListArgs: error log list arguments
RETURNS:
- *ErrorLogListResult: the result of error log list
- error: nil if success otherwise the specific error
func (*Client) GetErrorLogStatus ¶ added in v0.9.157
func (c *Client) GetErrorLogStatus(instanceId string) (*ErrorLogStatusResult, error)
GetErrorLogStatus - get error log status PARAMS:
- InstanceId: instance id
RETURNS:
- *ErrorLogStatusResult: the result of error log status
- error: nil if success otherwise the specific error
func (*Client) GetKillSessionHistory ¶ added in v0.9.157
func (c *Client) GetKillSessionHistory(instanceId string, args *KillSessionHistory) (*KillSessionHistoryResult, error)
GetKillSessionHistory - get kill session history PARAMS:
- InstanceId: instance id
- *KillSessionHistory: the arguments of kill session history
RETURNS:
- *KillSessionHistoryResult: the result of kill session history
- error: nil if success otherwise the specific error
func (*Client) GetKillSessionTypes ¶ added in v0.9.157
func (c *Client) GetKillSessionTypes(instanceId string) (*KillSessionTypesResult, error)
GetKillSessionTypes - get kill session types PARAMS:
- InstanceId: instance id
RETURNS:
- *KillSessionTypesResult: the result of the kill session types
- error: nil if success otherwise the specific error
func (*Client) GetOrderStatus ¶ added in v0.9.157
func (c *Client) GetOrderStatus(orderId string) (*OrderStatusResult, error)
GetOrderStatus - get order status PARAMS:
- OrderId: order id
RETURNS:
- *OrderStatusResult: the result of order status
- error: nil if success otherwise the specific error
func (*Client) GetSecurityIps ¶ added in v0.9.37
func (c *Client) GetSecurityIps(instanceId string) (*GetSecurityIpsResult, error)
GetSecurityIps - get all SecurityIps
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *GetSecurityIpsResult: all security IP
- error: nil if success otherwise the specific error
func (*Client) GetSessionDetail ¶ added in v0.9.157
func (c *Client) GetSessionDetail(instanceId string, args *SessionDetailArgs) (*SessionDetailResult, error)
GetSessionDetail - get session detail PARAMS:
- InstanceId: instance id
- *SessionDetailArgs: the arguments of session detail
RETURNS:
- *SessionDetailResult: the result of the session detail
- error: nil if success otherwise the specific error
func (*Client) GetSessionStatistics ¶ added in v0.9.157
func (c *Client) GetSessionStatistics(instanceId string) (*SessionStatisticsResult, error)
GetSessionStatistics - get session statistics PARAMS:
- InstanceId: instance id
RETURNS:
- *SessionStatisticsResult: the result of the session statistics
- error: nil if success otherwise the specific error
func (*Client) GetSessionSummary ¶ added in v0.9.157
func (c *Client) GetSessionSummary(instanceId string) (*SessionSummaryResult, error)
GetSessionSummary - get session summary PARAMS:
- InstanceId: instance id
RETURNS:
- *SessionSummaryResult: the result of the session summary
- error: nil if success otherwise the specific error
func (*Client) GetSlowLogDownloadDetail ¶ added in v0.9.143
func (c *Client) GetSlowLogDownloadDetail(instanceId, logId, downloadValidTimeInSec string) (*SlowLogDownloadDetail, error)
getSlowLogDownloadDetail
PARAMS:
- Args: *slowLogDownloadTaskListArgs
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) GetSlowLogDownloadTaskList ¶ added in v0.9.143
func (c *Client) GetSlowLogDownloadTaskList(instanceId, datetime string) (*SlowLogDownloadTaskListResult, error)
getSlowLogDownloadTaskList
PARAMS:
- instanceId: the specific rds Instance's ID
- datetime: the log time. range(datetime, datetime + 24 hours)
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlAdvice ¶ added in v0.9.157
func (c *Client) GetSlowSqlAdvice(instanceId, sqlId, schema string) (*SlowSqlAdviceResult, error)
GetSlowSqlAdvice - get slow sql advice PARAMS:
- InstanceId: instance id
- SqlId: the sql id
- Schema: the schema
RETURNS:
- *SlowSqlAdviceResult: the result of slow sql advice
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlBySqlId ¶ added in v0.9.157
func (c *Client) GetSlowSqlBySqlId(instanceId, sqlId string) (*SlowSqlItem, error)
GetSlowSqlBySqlId - get slow sql by sql id PARAMS:
- InstanceId: instance id
- SqlId: the sql id
RETURNS:
- *SlowSqlItem: the result of slow sql detail
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlDuration ¶ added in v0.9.157
func (c *Client) GetSlowSqlDuration(instanceId string, args *GetSlowSqlDurationArgs) (*SlowSqlDurationResult, error)
GetSlowSqlDuration - get slow sql duration
PARAMS:
- InstanceId: instance id
- *GetSlowSqlDurationArgs: gs query arguments of slow sql duration
RETURNS:
- *SlowSqlDurationResult: the result of slow sql duration
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlExplain ¶ added in v0.9.157
func (c *Client) GetSlowSqlExplain(instanceId, sqlId, schema string) (*SlowSqlExplainResult, error)
GetSlowSqlExplain - get slow sql explain PARAMS:
- InstanceId: instance id
- SqlId: the sql id
- Schema: the schema
RETURNS:
- *SlowSqlExplainResult: the result of slow sql explain
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlIndex ¶ added in v0.9.157
func (c *Client) GetSlowSqlIndex(instanceId string, args *GetSlowSqlIndexArgs) (*SlowSqlIndexResult, error)
GetSlowSqlIndex - get slow sql index PARAMS:
- InstanceId: instance id
- *GetSlowSqlIndexArgs: the arguments of slow sql index
RETURNS:
- *SlowSqlIndexResult: the result of slow sql index
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlList ¶ added in v0.9.157
func (c *Client) GetSlowSqlList(instanceId string, args *GetSlowSqlArgs) (*SlowSqlListResult, error)
GetSlowSqlList - get slow sql list
PARAMS:
- InstanceId: instance id
- *GetSlowSqlArgs: the arguments of slow sql list
RETURNS:
- *SlowSqlListResult: the result of slow sql list
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlSchema ¶ added in v0.9.157
func (c *Client) GetSlowSqlSchema(instanceId, sqlId, schema string) (*SlowSqlSchemaResult, error)
GetSlowSqlSchema - get slow sql schema PARAMS:
- InstanceId: instance id
- SqlId: the sql id
- Schema: the schema
RETURNS:
- *SlowSqlSchemaResult: the result of slow sql schema
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlSource ¶ added in v0.9.157
func (c *Client) GetSlowSqlSource(instanceId string, args *GetSlowSqlSourceArgs) (*SlowSqlSourceResult, error)
GetSlowSqlSource - get slow sql source
PARAMS:
- InstanceId: instance id
- *GetSlowSqlSourceArgs: gs query arguments of slow sql srouce
RETURNS:
- *SlowSqlSourceResult: the result of slow sql souce
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlStatsDigest ¶ added in v0.9.157
func (c *Client) GetSlowSqlStatsDigest(instanceId string, args *GetSlowSqlArgs) (*SlowSqlDigestResult, error)
GetSlowSqlStatsDigest - get slow sql stats digest
PARAMS:
- InstanceId: instance id
- *GetSlowSqlArgs: the arguments of slow sql
RETURNS:
- *SlowSqlDigestResult: the result of slow sql stats digest
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlTable ¶ added in v0.9.157
func (c *Client) GetSlowSqlTable(instanceId, sqlId, schema, table string) (*SlowSqlTableResult, error)
GetSlowSqlTable - get slow sql table PARAMS:
- InstanceId: instance id
- SqlId: the sql id
- Schema: the schema
- Table: the table
RETURNS:
- *SlowSqlTableResult: the result of slow sql table
- error: nil if success otherwise the specific error
func (*Client) GetSlowSqlTrend ¶ added in v0.9.157
func (c *Client) GetSlowSqlTrend(instanceId string, args *GetSlowSqlTrendArgs) (*SlowSqlTrendResult, error)
GetSlowSqlTrend - get slow sql trend PARAMS:
- InstanceId: instance id
- *GetSlowSqlTrendArgs: the arguments of slow sql trend
RETURNS:
- *SlowSqlTrendResult: the result of slow sql trend
- error: nil if success otherwise the specific error
func (*Client) GetSqlFilterDetail ¶ added in v0.9.157
func (c *Client) GetSqlFilterDetail(instanceId, sqlFilterId string) (*SqlFilterItem, error)
GetSqlFilterDetail - get sql filter detail PARAMS:
- InstanceId: instance id
- SqlFilterId: sql filter id
RETURNS:
- *SqlFilterDetailResult: the result of sql filter detail
- error: nil if success otherwise the specific error
func (*Client) GetSqlFilterList ¶ added in v0.9.157
func (c *Client) GetSqlFilterList(instanceId string) (*SqlFilterListResult, error)
GetSqlFilterList - get sql filter list PARAMS:
- InstanceId: instance id
RETURNS:
- *SqlFilterListResult: the result of sql filter list
- error: nil if success otherwise the specific error
func (*Client) GetTableListInfo ¶ added in v0.9.157
func (c *Client) GetTableListInfo(instanceId string, args *GetTableListArgs) (*TableListResult, error)
GetTableListInfo - get table list info PARAMS:
- InstanceId: instance id
- *GetTableListArgs: the arguments of table list info
RETURNS:
- *TableListResult: the result of table list info
- error: nil if success otherwise the specific error
func (*Client) GetZoneList ¶ added in v0.9.29
func (c *Client) GetZoneList() (*GetZoneListResult, error)
GetZoneList - list all zone
PARAMS:
- cli: the client agent which can perform sending request
RETURNS:
- *GetZoneListResult: result of the zone list
- error: nil if success otherwise the specific error
func (*Client) InnodbStatus ¶ added in v0.9.157
func (c *Client) InnodbStatus(instanceId string) (*InnodbStatusResult, error)
InnodbStatus - get innodb status PARAMS:
- InstanceId: instance id
RETURNS:
- *InnodbStatusResult: the result of innodb status
- error: nil if success otherwise the specific error
func (*Client) InstanceGroupAdd ¶ added in v0.9.157
func (c *Client) InstanceGroupAdd(groupId string, args *InstanceGroupAddArgs) error
InstanceGroupAdd - add instance to instance group
PARAMS:
- args: the arguments of add instance to instance group
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) InstanceGroupBatchAdd ¶ added in v0.9.157
func (c *Client) InstanceGroupBatchAdd(args *InstanceGroupBatchAddArgs) error
InstanceGroupBatchAdd - batch add instance to instance group
PARAMS:
- args: the arguments of batch add instance to instance group
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) InstanceGroupCheckData ¶ added in v0.9.157
func (c *Client) InstanceGroupCheckData(args *CheckDataArgs) (*CheckDataResult, error)
InstanceGroupCheckData - instance group data check
PARAMS:
- args: the arguments of data check
RETURNS:
- *CheckDataResult: the result of data check
- error: nil if success otherwise the specific error
func (*Client) InstanceGroupCheckGtid ¶ added in v0.9.157
func (c *Client) InstanceGroupCheckGtid(args *CheckGtidArgs) (*CheckGtidResult, error)
InstanceGroupCheckGtid - check the gtid of instance group
PARAMS:
- args: the arguments to check gtid
RETURNS:
- *CheckGtidResult: the result of check gtid
- error: nil if success otherwise the specific error
func (*Client) InstanceGroupCheckPing ¶ added in v0.9.157
func (c *Client) InstanceGroupCheckPing(args *CheckPingArgs) (*CheckPingResult, error)
InstanceGroupCheckPing - instance group connectivity check
PARAMS:
- args: the arguments of connectivity check
RETURNS:
- *CheckPingResult: the result of connectivity check
- error: nil if success otherwise the specific error
func (*Client) InstanceGroupCheckVersion ¶ added in v0.9.157
func (c *Client) InstanceGroupCheckVersion(args *CheckVersionArgs) (*CheckVersionResult, error)
InstanceGroupCheckVersion - instance group version check
PARAMS:
- args: the arguments of version check
RETURNS:
- *CheckVersionResult: the result of data check
- error: nil if success otherwise the specific error
func (*Client) InstanceGroupDetail ¶ added in v0.9.157
func (c *Client) InstanceGroupDetail(groupId string) (*InstanceGroupDetailResult, error)
InstanceGroupDetail - show the detail of instance group
PARAMS:
RETURNS:
- *InstanceGroupDetailResult: the result of instance group detail
- error: nil if success otherwise the specific error
func (*Client) InstanceGroupForceChange ¶ added in v0.9.157
func (c *Client) InstanceGroupForceChange(groupId string, args *ForceChangeArgs) (*ForceChangeResult, error)
InstanceGroupForceChange - force change instance
PARAMS:
- args: the arguments used to force change instance
RETURNS:
- *ForceChangeResult: the result of force change
- error: nil if success otherwise the specific error
func (*Client) InstanceGroupLeaderChange ¶ added in v0.9.157
func (c *Client) InstanceGroupLeaderChange(groupId string, args *GroupLeaderChangeArgs) error
InstanceGroupChangeLeader - change leader of instance group
PARAMS:
- args: the arguments used to change leader of instance group
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) InstanceGroupRemove ¶ added in v0.9.157
InstanceGroupRemove - remove instance to instance group
PARAMS:
- args: the arguments of remove instance to instance group
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) InstanceMinorVersionList ¶ added in v0.9.157
func (c *Client) InstanceMinorVersionList(instanceId string) (*MinorVersionListResult, error)
InstanceMinorVersionList - list minor versions available for instance
PARAMS:
- InstanceId: instance id
RETURNS:
- *MinorVersionListResult: the result of list minor versions available for instance
- error: nil if success otherwise the specific error
func (*Client) InstanceUpgradeMinorVersion ¶ added in v0.9.157
func (c *Client) InstanceUpgradeMinorVersion(instanceId string, args *UpgradeMinorVersionArgs) error
InstanceUpgradeMinorVersion - upgrade minor version
PARAMS:
- instanceId: the instance id
- args: the arguments used to upgrade minor version
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) IsAllowedSqlFilter ¶ added in v0.9.157
func (c *Client) IsAllowedSqlFilter(instanceId string) (*IsAllowedResult, error)
IsAllowedSqlFilter - check if sql filter is allowed PARAMS:
- InstanceId: instance id
RETURNS:
- *IsAllowedResult: the result of sql filter allowed
- error: nil if success otherwise the specific error
func (*Client) KillSession ¶ added in v0.9.157
func (c *Client) KillSession(instanceId string, args *KillSessionArgs) (*KillSessionResult, error)
KillSession - kill session PARAMS:
- InstanceId: instance id
- *KillSessionArgs: the arguments of kill session
RETURNS:
- *KillSessionResult: the result of kill session
- error: nil if success otherwise the specific error
func (*Client) ListAccount ¶
func (c *Client) ListAccount(instanceId string) (*ListAccountResult, error)
ListAccount - list all account of a RDS instance with the specific parameters
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *ListAccountResult: the result of list all account, contains all accounts' meta
- error: nil if success otherwise the specific error
func (*Client) ListDatabases ¶ added in v0.9.157
func (c *Client) ListDatabases(instanceId string) (*ListDatabasesResult, error)
ListDatabases - list all databases
PARAMS:
- instanceId: id of the instance
RETURNS:
- *ListDatabasesResult: result of the database list
- error: nil if success otherwise the specific error
func (*Client) ListInstanceGroup ¶ added in v0.9.157
func (c *Client) ListInstanceGroup(args *ListInstanceGroupArgs) (*InstanceGroupListResult, error)
ListInstanceGroup - list all instace group
PARAMS:
- manner: the specific manner
- order: asc or desc
- orderBy: the specific orderBy
- pageNo: the specific pageNo
- pageSize: the specific pageSize
RETURNS:
- *InstanceGroupResult: the result of list all instance group
- error: nil if success otherwise the specific error
func (*Client) ListParameters ¶ added in v0.9.37
func (c *Client) ListParameters(instanceId string) (*ListParametersResult, error)
ListParameters - list all parameters of a RDS instance
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *ListParametersResult: the result of list all parameters
- error: nil if success otherwise the specific error
func (*Client) ListRds ¶
func (c *Client) ListRds(args *ListRdsArgs) (*ListRdsResult, error)
ListRds - list all RDS with the specific parameters
PARAMS:
- args: the arguments to list all RDS
RETURNS:
- *ListRdsResult: the result of list all RDS, contains all rds' meta
- error: nil if success otherwise the specific error
func (*Client) ListRecyclerInstance ¶ added in v0.9.157
func (c *Client) ListRecyclerInstance(args *ListRdsArgs) (*RecyclerListResult, error)
ListRecyclerInstance - list all recycler instance
PARAMS:
- marker: the specific marker
- maxKeys: the specific max keys
RETURNS:
- *RecyclerListResult: the result of list all recycler instance
- error: nil if success otherwise the specific error
func (*Client) ListSubnets ¶ added in v0.9.29
func (c *Client) ListSubnets(args *ListSubnetsArgs) (*ListSubnetsResult, error)
ListsSubnet - list all Subnets
PARAMS:
- cli: the client agent which can perform sending request
- args: the arguments to list all subnets, not necessary
RETURNS:
- *ListSubnetsResult: result of the subnet list
- error: nil if success otherwise the specific error
func (*Client) ModifyAccountDesc ¶ added in v0.9.157
func (c *Client) ModifyAccountDesc(instanceId, accountName string, args *ModifyAccountDesc) error
AccountDesc - modify account's description
PARAMS:
- instanceIds: the specific instanceIds
- accountName: the specific account's name
- args: the arguments used to modify account's description
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ModifyBackupPolicy ¶ added in v0.9.97
func (c *Client) ModifyBackupPolicy(instanceId string, args *ModifyBackupPolicyArgs) error
ModifyBackupPolicy - modify backup policy
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to modify public access
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ModifyDatabaseDesc ¶ added in v0.9.157
func (c *Client) ModifyDatabaseDesc(instanceId, dbName string, args *ModifyDatabaseDesc) error
DatabaseRemark - update database's remark
PARAMS:
- instanceIds: the specific instanceIds
- dbName: the specific database's name
- args: the arguments used to modify database's description
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ModifyEndpoint ¶ added in v0.9.29
func (c *Client) ModifyEndpoint(instanceId string, args *ModifyEndpointArgs) error
ModifyEndpoint - modify the prefix of endpoint
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to modify endpoint
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ModifyPublicAccess ¶ added in v0.9.29
func (c *Client) ModifyPublicAccess(instanceId string, args *ModifyPublicAccessArgs) error
ModifyPublicAccess - modify public access
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to modify public access
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ModifySyncMode ¶ added in v0.9.29
func (c *Client) ModifySyncMode(instanceId string, args *ModifySyncModeArgs) error
UpdateSyncMode - update sync mode of a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to update syncMode
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ParameterHistory ¶ added in v0.9.157
func (c *Client) ParameterHistory(instanceId string) (*ParameterHistoryResult, error)
ParameterHistory - list all parameter history
PARAMS:
- instanceId: the specific rds Instance's ID
RETURNS:
- *ParameterHistory: the result of paremeters history
- error: nil if success otherwise the specific error
func (*Client) ProcessKill ¶ added in v0.9.157
func (c *Client) ProcessKill(instanceId string, args *ProcessArgs) error
ProcessKill - kill process PARAMS:
- InstanceId: instance id
- *ProcessArgs: process arguments
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ProcessList ¶ added in v0.9.157
func (c *Client) ProcessList(instanceId string) (*ProcessListResult, error)
ProcessList - get process list PARAMS:
- InstanceId: instance id
RETURNS:
- *ProcessListResult: the result of process list
- error: nil if success otherwise the specific error
func (*Client) RebootInstance ¶ added in v0.9.29
RebootInstance - reboot a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance to be rebooted
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RecoveryToSourceInstanceByDatetime ¶ added in v0.9.157
func (c *Client) RecoveryToSourceInstanceByDatetime(instanceId string, args *RecoveryByDatetimeArgs) error
RecoveryToSourceInstanceByDatetime - recover by datetime
PARAMS:
- instanceId: id of the instance
- args: the arguments to recover the instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RecoveryToSourceInstanceBySnapshot ¶ added in v0.9.157
func (c *Client) RecoveryToSourceInstanceBySnapshot(instanceId string, args *RecoveryBySnapshotArgs) error
RecoveryToSourceInstanceBySnapshot - recover by snapshot
PARAMS:
- instanceId: id of the instance
- args: the arguments to recover the instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RecyclerRecover ¶ added in v0.9.157
func (c *Client) RecyclerRecover(args *RecyclerRecoverArgs) error
RecyclerRecover - recover recycler instance
PARAMS:
- args: the arguments used to recover recycler instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RemoveFailInjectWhiteList ¶ added in v0.9.157
func (c *Client) RemoveFailInjectWhiteList(args *FailInjectArgs) error
RemoveFailInjectWhiteList - remove instance to failinject whitelist PARAMS:
- *RemoveFailInjectArgs: remove failinject args
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ResizeRds ¶
func (c *Client) ResizeRds(instanceId string, args *ResizeRdsArgs) error
ResizeRds - resize an RDS with the specific parameters
PARAMS:
- instanceId: the specific instanceId
- args: the arguments to resize an RDS
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) SlowSqlFlowStatus ¶ added in v0.9.157
func (c *Client) SlowSqlFlowStatus(instanceId string) (*SlowSqlFlowStatusResult, error)
SlowSqlFlowStatus - get slow sql flow status
PARAMS:
- InstanceId: instance id
RETURNS:
- *SlowSqlFlowStatusResult: the result of slow sql flow status
- error: nil if success otherwise the specific error
func (*Client) StartOrStopSqlFilter ¶ added in v0.9.157
func (c *Client) StartOrStopSqlFilter(instanceId, sqlFilterId string, args *StartOrStopSqlFilterArgs) error
StartOrStopSqlFilter - start or stop sql filter
- InstanceId: instance id
- SqlFilterId: sql filter id
- *StartOrStopSqlFilterArgs: start or stop sql filter arguments
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) TaskList ¶ added in v0.9.157
func (c *Client) TaskList(args *TaskListArgs) (*TaskListResult, error)
TaskList - task list
PARAMS:
- args: the arguments to list tasks
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) TransactionList ¶ added in v0.9.157
func (c *Client) TransactionList(instanceId string) (*TransactionListResult, error)
TransactionList - get transaction list PARAMS:
- InstanceId: instance id
RETURNS:
- *TransactionListResult: the result of transaction list
- error: nil if success otherwise the specific error
func (*Client) UpdateAccountPassword ¶ added in v0.9.157
func (c *Client) UpdateAccountPassword(instanceId, accountName string, args *UpdatePasswordArgs) error
UpdateAccountPassword - update account's password
PARAMS:
- instanceId: the specific instanceId
- accountName: the specific account's name
- args: the arguments to update account's password
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateAccountPrivileges ¶ added in v0.9.157
func (c *Client) UpdateAccountPrivileges(instanceId, accountName string, args *UpdateAccountPrivileges) error
UpdateAccountPrivileges - upate account's privileges
PARAMS:
- instanceIds: the specific instanceIds
- accountName: the specific account's name
- args: the arguments used to modify account's privileges
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateDatabasePort ¶ added in v0.9.157
func (c *Client) UpdateDatabasePort(instanceId string, args *UpdateDatabasePortArgs) error
UpdateDatabasePort - update database port
PARAMS:
- instanceId: id of the instance
- args: the arguments to update database port
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateInstanceGroupName ¶ added in v0.9.157
func (c *Client) UpdateInstanceGroupName(groupId string, args *InstanceGroupNameArgs) error
UpdateInstanceGroupName - update instance group name
PARAMS:
- args: the arguments of update instance group name
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateInstanceName ¶ added in v0.9.29
func (c *Client) UpdateInstanceName(instanceId string, args *UpdateInstanceNameArgs) error
UpdateInstanceName - update name of a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to update instanceName
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateMaintainTime ¶ added in v0.9.157
func (c *Client) UpdateMaintainTime(instanceId string, args *MaintainTimeArgs) error
maintaintime - update maintaintime
PARAMS:
- Args: *maintainTimeArgs
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateParameter ¶ added in v0.9.37
func (c *Client) UpdateParameter(instanceId, Etag string, args *UpdateParameterArgs) error
UpdateParameter - update Parameter
PARAMS:
- instanceId: the specific rds Instance's ID
- Etag: get latest etag by ListParameters
- Args: *UpdateParameterArgs
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateSecurityIps ¶ added in v0.9.37
func (c *Client) UpdateSecurityIps(instanceId, Etag string, args *UpdateSecurityIpsArgs) error
UpdateSecurityIps - update SecurityIps
PARAMS:
- instanceId: the specific rds Instance's ID
- Etag: get latest etag by GetSecurityIps
- Args: all SecurityIps
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateSqlFilter ¶ added in v0.9.157
func (c *Client) UpdateSqlFilter(instanceId, sqlFilterId string, args *SqlFilterArgs) error
UpdateSqlFilter - update sql filter PARAMS:
- InstanceId: instance id
- SqlFilterId: sql filter id
- *AddSqlFilterArgs: add sql filter arguments
RETURNS:
- error: nil if success otherwise the specific error
type ConnectionItem ¶ added in v0.9.157
type ConnectionListResult ¶ added in v0.9.157
type ConnectionListResult struct { Datetime string `json:"datetime"` ConnectList []ConnectionItem `json:"connectList"` }
type CreateAccountArgs ¶
type CreateAccountArgs struct { ClientToken string `json:"-"` AccountName string `json:"accountName"` Password string `json:"password"` AccountType string `json:"accountType,omitempty"` DatabasePrivileges []DatabasePrivilege `json:"databasePrivileges,omitempty"` Desc string `json:"desc,omitempty"` Type string `json:"type,omitempty"` }
type CreateDatabaseArgs ¶ added in v0.9.157
type CreateDatabaseArgs struct { CharacterSetName string `json:"characterSetName"` DbName string `json:"dbName"` Remark string `json:"remark"` AccountPrivileges []AccountPrivilege `json:"accountPrivileges"` }
type CreateInstanceGroupResult ¶ added in v0.9.157
type CreateInstanceGroupResult struct {
Result int `json:"result"`
}
type CreateRdsArgs ¶
type CreateRdsArgs struct { ClientToken string `json:"-"` Billing Billing `json:"billing"` PurchaseCount int `json:"purchaseCount,omitempty"` InstanceName string `json:"instanceName,omitempty"` Engine string `json:"engine"` EngineVersion string `json:"engineVersion"` Category string `json:"category,omitempty"` CpuCount int `json:"cpuCount"` MemoryCapacity float64 `json:"memoryCapacity"` VolumeCapacity int `json:"volumeCapacity"` DiskIoType string `json:"diskIoType"` ZoneNames []string `json:"zoneNames,omitempty"` VpcId string `json:"vpcId,omitempty"` IsDirectPay bool `json:"isDirectPay,omitempty"` Subnets []SubnetMap `json:"subnets,omitempty"` Tags []model.TagModel `json:"tags,omitempty"` AutoRenewTimeUnit string `json:"autoRenewTimeUnit,omitempty"` AutoRenewTime int `json:"autoRenewTime,omitempty"` BgwGroupId string `json:"bgwGroupId,omitempty"` BgwGroupExclusive bool `json:"bgwGroupExclusive,omitempty"` CharacterSetName string `json:"characterSetName,omitempty"` LowerCaseTableNames int `json:"lowerCaseTableNames,omitempty"` ParameterTemplateId string `json:"parameterTemplateId,omitempty"` Ovip string `json:"ovip,omitempty"` EntryPort string `json:"entryPort,omitempty"` ReplicationType string `json:"replicationType,omitempty"` ResourceGroupId string `json:"resourceGroupId,omitempty"` InitialDataReference *InitialData `json:"initialDataReference,omitempty"` Data []RecoveryToSourceInstanceModel `json:"data,omitempty"` }
type CreateRdsProxyArgs ¶
type CreateRdsProxyArgs struct { ClientToken string `json:"-"` Billing Billing `json:"billing"` SourceInstanceId string `json:"sourceInstanceId"` InstanceName string `json:"instanceName,omitempty"` NodeAmount int `json:"nodeAmount"` ZoneNames []string `json:"zoneNames,omitempty"` VpcId string `json:"vpcId,omitempty"` IsDirectPay bool `json:"isDirectPay,omitempty"` Subnets []SubnetMap `json:"subnets,omitempty"` Tags []model.TagModel `json:"tags,omitempty"` Ovip string `json:"ovip,omitempty"` EntryPort string `json:"entryPort,omitempty"` ResourceGroupId string `json:"resourceGroupId,omitempty"` }
type CreateReadReplicaArgs ¶
type CreateReadReplicaArgs struct { ClientToken string `json:"-"` Billing Billing `json:"billing"` PurchaseCount int `json:"purchaseCount,omitempty"` SourceInstanceId string `json:"sourceInstanceId"` InstanceName string `json:"instanceName,omitempty"` CpuCount int `json:"cpuCount"` MemoryCapacity float64 `json:"memoryCapacity"` VolumeCapacity int `json:"volumeCapacity"` ZoneNames []string `json:"zoneNames,omitempty"` VpcId string `json:"vpcId,omitempty"` IsDirectPay bool `json:"isDirectPay,omitempty"` Subnets []SubnetMap `json:"subnets,omitempty"` Tags []model.TagModel `json:"tags,omitempty"` DiskIoType string `json:"diskIoType,omitempty"` Ovip string `json:"ovip,omitempty"` EntryPort string `json:"entryPort,omitempty"` ResourceGroupId string `json:"resourceGroupId,omitempty"` }
type CreateResult ¶
type Database ¶ added in v0.9.157
type Database struct { DbName string `json:"dbName"` CharacterSetName string `json:"characterSetName"` Remark string `json:"remark"` DbStatus string `json:"dbStatus"` AccountPrivileges []AccountPrivilege `json:"accountPrivileges"` }
type DatabasePrivilege ¶
type DbInfo ¶ added in v0.9.157
type DbInfo struct {
DbInfoItems []DbInfoItem `json:"dbList"`
}
type DbInfoItem ¶ added in v0.9.157
type DbListResult ¶ added in v0.9.157
type DbListResult struct {
Result DbInfo `json:"result"`
}
type DiskAutoResizeArgs ¶ added in v0.9.157
type DiskInfoResult ¶ added in v0.9.157
type DiskInfoResult struct {
Result DiskInfo `json:"result"`
}
type EnableAutoExpansionResult ¶ added in v0.9.157
type EnableAutoExpansionResult struct {
SupportEnableDiskAutoResize int `json:"supportEnableDiskAutoResize"`
}
type ErrorLogItem ¶ added in v0.9.157
type ErrorLogListArgs ¶ added in v0.9.157
type ErrorLogListResult ¶ added in v0.9.157
type ErrorLogListResult struct { Items []ErrorLogItem `json:"items"` TotalCount int64 `json:"totalCount"` }
type ErrorLogResult ¶ added in v0.9.157
type ErrorLogResult struct {
Success bool `json:"success"`
}
type ErrorLogStatusResult ¶ added in v0.9.157
type ErrorLogStatusResult struct {
Enabled int `json:"enabled"`
}
type FailInjectArgs ¶ added in v0.9.157
type FailInjectArgs struct {
AppList []string `json:"appList"`
}
type FailInjectWhiteListResult ¶ added in v0.9.157
type FailInjectWhiteListResult struct {
AppList []string `json:"appList"`
}
type ForceChangeArgs ¶ added in v0.9.157
type ForceChangeResult ¶ added in v0.9.157
type ForceChangeResult struct {
BehindMaster int `json:"behind_master"`
}
type GetBackupListArgs ¶ added in v0.9.29
type GetBackupListResult ¶ added in v0.9.29
type GetBackupListResult struct { Marker string `json:"marker"` MaxKeys int `json:"maxKeys"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` Backups []BackupDetail `json:"backups"` }
type GetBinlogInfoResult ¶ added in v0.9.157
type GetBinlogInfoResult struct {
Binlog BinlogInfo `json:"binlog"`
}
type GetBinlogListResult ¶ added in v0.9.157
type GetBinlogListResult struct {
Binlogs []Binlog `json:"binlogs"`
}
type GetSecurityIpsResult ¶ added in v0.9.37
type GetSlowSqlArgs ¶ added in v0.9.157
type GetSlowSqlDurationArgs ¶ added in v0.9.157
type GetSlowSqlIndexArgs ¶ added in v0.9.157
type GetSlowSqlSourceArgs ¶ added in v0.9.157
type GetSlowSqlTrendArgs ¶ added in v0.9.157
type GetTableListArgs ¶ added in v0.9.157
type GetZoneListResult ¶ added in v0.9.29
type GetZoneListResult struct {
Zones []ZoneName `json:"zones"`
}
type GroupInstance ¶ added in v0.9.157
type GroupLeaderChangeArgs ¶ added in v0.9.157
type GroupLeaderChangeArgs struct {
LeaderId string `json:"leaderId"`
}
type InitialData ¶ added in v0.9.157
type InnodbStatusResult ¶ added in v0.9.157
type InnodbTrxItem ¶ added in v0.9.157
type InnodbTrxItem struct { TrxRequestedLockId string `json:"trxRequestedLockId"` TrxStarted string `json:"trxStarted"` TrxMysqlThreadId int64 `json:"trxMysqlThreadId"` TrxRowsLocked int64 `json:"trxRowsLocked"` TrxWaitStarted string `json:"trxWaitStarted"` TrxState string `json:"trxState"` TrxTablesInUse int64 `json:"trxTablesInUse"` TrxId string `json:"trxId"` TrxQuery string `json:"trxQuery"` TrxTablesLocked int `json:"trxTablesLocked"` }
type Instance ¶
type Instance struct { InstanceId string `json:"instanceId"` InstanceName string `json:"instanceName"` Engine string `json:"engine"` EngineVersion string `json:"engineVersion"` RdsMinorVersion string `json:"rdsMinorVersion"` CharacterSetName string `json:"characterSetName"` InstanceClass string `json:"instanceClass"` AllocatedMemoryInMB int `json:"allocatedMemoryInMB"` AllocatedMemoryInGB float64 `json:"allocatedMemoryInGB"` AllocatedStorageInGB int `json:"allocatedStorageInGB"` Category string `json:"category"` InstanceStatus string `json:"instanceStatus"` CpuCount int `json:"cpuCount"` MemoryCapacity float64 `json:"memoryCapacity"` VolumeCapacity int `json:"volumeCapacity"` TotalStorageInGB int `json:"totalStorageInGB"` NodeAmount int `json:"nodeAmount"` UsedStorage float64 `json:"usedStorage"` PublicAccessStatus string `json:"publicAccessStatus"` InstanceCreateTime string `json:"instanceCreateTime"` InstanceExpireTime string `json:"instanceExpireTime"` Endpoint Endpoint `json:"endpoint"` SyncMode string `json:"syncMode"` BackupPolicy BackupPolicy `json:"backupPolicy"` Region string `json:"region"` InstanceType string `json:"instanceType"` SourceInstanceId string `json:"sourceInstanceId"` SourceRegion string `json:"sourceRegion"` ZoneNames []string `json:"zoneNames"` VpcId string `json:"vpcId"` Subnets []Subnet `json:"subnets"` Topology Topology `json:"topology"` Task string `json:"task"` PaymentTiming string `json:"paymentTiming"` BgwGroupId string `json:"bgwGroupId"` ReadReplicaNum int `json:"readReplicaNum"` ReadReplica []string `json:"readReplica"` LockMode string `json:"lockMode"` EipStatus string `json:"eipStatus"` SuperUserFlag string `json:"superUserFlag"` ReplicationType string `json:"replicationType"` Azone string `json:"azone"` ApplicationType string `json:"applicationType"` OnlineStatus int `json:"onlineStatus"` IsSingle bool `json:"isSingle"` NodeType string `json:"nodeType"` DiskIoType string `json:"diskIoType"` GroupId string `json:"groupId"` GroupName string `json:"groupName"` DiskType string `json:"diskType"` CdsType string `json:"cdsType"` MaintainStartTime string `json:"maintainStartTime"` MaintainDuration int `json:"maintainDuration"` HaStrategy int `json:"haStrategy"` VpcName string `json:"vpcName"` Tags []model.TagModel `json:"tags"` ResourceGroupId string `json:"resourceGroupId"` ResourceGroupName string `json:"resourceGroupName"` RoGroupList []RoGroup `json:"roGroupList"` RoGroupAbnormal bool `json:"roGroupAbnormal"` }
type InstanceDict ¶ added in v0.9.173
type InstanceGroup ¶ added in v0.9.157
type InstanceGroup struct { GroupId string `json:"groupId"` Name string `json:"name"` Count int `json:"count"` Leader GroupInstance `json:"leader"` }
type InstanceGroupAddArgs ¶ added in v0.9.157
type InstanceGroupAddArgs struct {
FollowerId string `json:"followerId"`
}
type InstanceGroupArgs ¶ added in v0.9.157
type InstanceGroupBatchAddArgs ¶ added in v0.9.157
type InstanceGroupDetail ¶ added in v0.9.157
type InstanceGroupDetail struct { InstanceGroup Fllowers []GroupInstance `json:"fllowers"` }
type InstanceGroupDetailResult ¶ added in v0.9.157
type InstanceGroupDetailResult struct {
Group InstanceGroupDetail `json:"group"`
}
type InstanceGroupListResult ¶ added in v0.9.157
type InstanceGroupListResult struct { Result []InstanceGroup `json:"result"` PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` TotalCount int `json:"totalCount"` }
type InstanceGroupNameArgs ¶ added in v0.9.157
type InstanceGroupNameArgs struct {
Name string `json:"name"`
}
type IsAllowedResult ¶ added in v0.9.157
type IsAllowedResult struct {
Allowed bool `json:"allowed"`
}
type KVParameter ¶ added in v0.9.37
type KillSessionArgs ¶ added in v0.9.157
type KillSessionAuthArgs ¶ added in v0.9.157
type KillSessionAuthResult ¶ added in v0.9.157
type KillSessionAuthResult struct {
Success bool `json:"success"`
}
type KillSessionHistory ¶ added in v0.9.157
type KillSessionHistoryItem ¶ added in v0.9.157
type KillSessionHistoryItem struct { OperateDbUser string `json:"operateDbUser"` OperateTime string `json:"operateTime"` OperateUser string `json:"operateUser"` SessionCommand string `json:"sessionCommand"` SessionDb string `json:"sessionDb"` SessionExecuteTime string `json:"sessionExecuteTime"` SessionHost string `json:"sessionHost"` SessionId int64 `json:"sessionId"` SessionSql string `json:"sessionSql"` SessionState string `json:"sessionState"` SessionUser string `json:"sessionUser"` Status int `json:"status"` StatusDesc string `json:"statusDesc"` StatusInfo string `json:"statusInfo"` }
type KillSessionHistoryResult ¶ added in v0.9.157
type KillSessionHistoryResult struct { Items []KillSessionHistoryItem `json:"items"` TotalCount int64 `json:"totalCount"` }
type KillSessionResult ¶ added in v0.9.157
type KillSessionResult struct {
Success bool `json:"success"`
}
type KillSessionTypesResult ¶ added in v0.9.157
type KillSessionTypesResult struct {
Types Commands `json:"types"`
}
type ListAccountResult ¶
type ListAccountResult struct {
Accounts []Account `json:"accounts"`
}
type ListDatabasesResult ¶ added in v0.9.157
type ListDatabasesResult struct {
Databases []Database `json:"databases"`
}
type ListInstanceGroupArgs ¶ added in v0.9.157
type ListParametersResult ¶ added in v0.9.37
type ListRdsArgs ¶
type ListRdsResult ¶
type ListSubnetsArgs ¶ added in v0.9.29
type ListSubnetsResult ¶ added in v0.9.29
type ListSubnetsResult struct {
Subnets []Subnet `json:"subnets"`
}
type MaintainTimeArgs ¶ added in v0.9.157
type MinorVersionListResult ¶ added in v0.9.157
type MinorVersionListResult struct {
RdsMinorVersionList []RdsMinorVersion `json:"rdsMinorVersionList"`
}
type ModifyAccountDesc ¶ added in v0.9.157
type ModifyAccountDesc struct {
Remark string `json:"remark"`
}
type ModifyBackupPolicyArgs ¶ added in v0.9.97
type ModifyDatabaseDesc ¶ added in v0.9.157
type ModifyDatabaseDesc struct {
Remark string `json:"remark"`
}
type ModifyEndpointArgs ¶ added in v0.9.29
type ModifyEndpointArgs struct {
Address string `json:"address"`
}
type ModifyPublicAccessArgs ¶ added in v0.9.29
type ModifyPublicAccessArgs struct {
PublicAccess bool `json:"publicAccess"`
}
type ModifySyncModeArgs ¶ added in v0.9.29
type ModifySyncModeArgs struct {
SyncMode string `json:"syncMode"`
}
type OrderStatusResult ¶ added in v0.9.157
type OrderStatusResult struct {
Status string `json:"status"`
}
type Parameter ¶ added in v0.9.37
type Parameter struct { Name string `json:"name"` DefaultValue string `json:"defaultValue"` Value string `json:"value"` PendingValue string `json:"pendingValue"` Type string `json:"type"` Dynamic string `json:"dynamic"` Modifiable string `json:"modifiable"` AllowedValues string `json:"allowedValues"` Desc string `json:"desc"` }
type ParameterHistory ¶ added in v0.9.157
type ParameterHistoryResult ¶ added in v0.9.157
type ParameterHistoryResult struct {
Parameters []ParameterHistory `json:"parameters"`
}
type ProcessArgs ¶ added in v0.9.157
type ProcessArgs struct {
Ids []int64 `json:"ids,omitempty"`
}
type ProcessItem ¶ added in v0.9.157
type ProcessListResult ¶ added in v0.9.157
type ProcessListResult struct { Datetime string `json:"datetime"` ProcessList []ProcessItem `json:"processList"` }
type ProgressItem ¶ added in v0.9.157
type RdsMinorVersion ¶ added in v0.9.157
type RecoveryByDatetimeArgs ¶ added in v0.9.157
type RecoveryByDatetimeArgs struct { Datetime string `json:"dateTime"` Data []RecoveryData `json:"data"` }
type RecoveryBySnapshotArgs ¶ added in v0.9.157
type RecoveryBySnapshotArgs struct { SnapshotId string `json:"snapshotId"` Data []RecoveryData `json:"data"` }
type RecoveryData ¶ added in v0.9.157
type RecoveryToSourceInstanceModel ¶ added in v0.9.157
type RecyclerListResult ¶ added in v0.9.157
type RecyclerListResult struct { NextMarker string `json:"nextMarker"` Marker string `json:"marker"` MaxKeys int `json:"maxKeys"` IsTruncated bool `json:"isTruncated"` Instances []Instance `json:"instances"` InstanceType string `json:"instanceType"` ZoneNames []string `json:"zoneNames"` PaymentTiming string `json:"paymentTiming"` }
type RecyclerRecoverArgs ¶ added in v0.9.157
type RecyclerRecoverArgs struct {
InstanceIds []string `json:"instanceIds"`
}
type Reservation ¶
type ResizeRdsArgs ¶
type ResizeRdsArgs struct { CpuCount int `json:"cpuCount"` MemoryCapacity float64 `json:"memoryCapacity"` VolumeCapacity int `json:"volumeCapacity"` NodeAmount int `json:"nodeAmount,omitempty"` IsDirectPay bool `json:"isDirectPay,omitempty"` AllocatedMemoryInMB string `json:"allocatedMemoryInMB,omitempty"` IsEnhanced bool `json:"isEnhanced,omitempty"` EffectiveTime string `json:"effectiveTime,omitempty"` MasterAzone string `json:"masterAzone,omitempty"` BackupAzone string `json:"backupAzone,omitempty"` DiskIoType string `json:"diskIoType,omitempty"` SubnetId string `json:"subnetId,omitempty"` EdgeSubnetId string `json:"edgeSubnetId,omitempty"` Subnets []SubnetMap `json:"subnets,omitempty"` }
type RoGroup ¶ added in v0.9.173
type RoGroup struct { RoGroupId string `json:"roGroupId"` RoGroupName string `json:"roGroupName"` RoGroupEndpoint InstanceDict `json:"roGroupEndpoint"` VpcId string `json:"vpcId"` SubnetId string `json:"subnetId"` EipStatus string `json:"eipStatus"` RoGroupAppList []AppList `json:"roGroupAppList"` VpcVo SimpleVpcVo `json:"vpcVo"` SubnetVo SubnetVo `json:"subnetVo"` }
type SessionDetailArgs ¶ added in v0.9.157
type SessionDetailArgs struct { Page int `json:"page,omitempty"` PageSize int `json:"pageSize,omitempty"` Sort string `json:"sort,omitempty"` ExecuteTime int64 `json:"executeTime,omitempty"` Operator string `json:"operator,omitempty"` IsActive bool `json:"isActive,omitempty"` SessionId string `json:"sessionId,omitempty"` User string `json:"user,omitempty"` Host string `json:"host,omitempty"` Db string `json:"db,omitempty"` Command string `json:"command,omitempty"` State string `json:"state,omitempty"` SqlStmt string `json:"sqlStmt,omitempty"` }
type SessionDetailItem ¶ added in v0.9.157
type SessionDetailResult ¶ added in v0.9.157
type SessionDetailResult struct { Items []SessionDetailItem `json:"items"` TotalCount int64 `json:"totalCount"` }
type SessionStatisticsItem ¶ added in v0.9.157
type SessionStatisticsItem struct { ActiveAverageExecuteTime int64 `json:"activeAverageExecuteTime"` ActiveTotalCount int64 `json:"activeTotalCount"` ActiveTotalExecuteTime int64 `json:"activeTotalExecuteTime"` DimensionKey string `json:"dimensionKey"` DimensionValue string `json:"dimensionValue"` TotalCount int64 `json:"totalCount"` }
type SessionStatisticsResult ¶ added in v0.9.157
type SessionStatisticsResult map[string][]SessionStatisticsItem
type SessionSummaryResult ¶ added in v0.9.157
type SimpleVpcVo ¶ added in v0.9.173
type SimpleVpcVo struct { VpcId string `json:"vpcId"` ShortId string `json:"shortId"` Name string `json:"name"` Cidr string `json:"cidr"` Status int `json:"status"` CreateTime string `json:"createTime"` Description string `json:"description"` DefaultVpc bool `json:"defaultVpc"` Ipv6Cidr string `json:"ipv6Cidr"` AuxiliaryCidr []string `json:"auxiliaryCidr"` Relay bool `json:"relay"` }
type SlowLogDownloadDetail ¶ added in v0.9.143
type SlowLogDownloadDetail struct {
Slowlogs []SlowlogDetail `json:"slowlogs"`
}
type SlowLogDownloadTaskListResult ¶ added in v0.9.143
type SlowLogDownloadTaskListResult struct {
Slowlogs []Slowlog `json:"slowlogs"`
}
type SlowSqlAdviceResult ¶ added in v0.9.157
type SlowSqlAdviceResult struct { IndexAdvice []SlowSqlIndexAdviceItem `json:"indexAdvice"` StatementAdvice []SlowSqlIndexAdviceItem `json:"statementAdvice"` }
type SlowSqlDigestItem ¶ added in v0.9.157
type SlowSqlDigestItem struct { AvgExamRows int64 `json:"avgExamRows"` AvgLockTime int64 `json:"avgLockTime"` AvgNumRows int64 `json:"avgNumRows"` AvgTime float64 `json:"avgTime"` Digest string `json:"digest"` ExecuteTimes int64 `json:"executeTimes"` MaxExamRows int64 `json:"maxExamRows"` MaxLockTime float64 `json:"maxLockTime"` MaxNumRows int64 `json:"maxNumRows"` MaxTime float64 `json:"maxTime"` NormalSql string `json:"normalSql"` Schema string `json:"schema"` TotalExamRows int64 `json:"totalExamRows"` TotalLockTime float64 `json:"totalLockTime"` TotalNumRows int64 `json:"totalNumRows"` TotalTime float64 `json:"totalTime"` }
type SlowSqlDigestResult ¶ added in v0.9.157
type SlowSqlDigestResult struct { Items []SlowSqlDigestItem `json:"items"` Summary SlowSqlDigestItem `json:"summary"` TotalCount int `json:"totalCount"` }
type SlowSqlDurationItem ¶ added in v0.9.157
type SlowSqlDurationResult ¶ added in v0.9.157
type SlowSqlDurationResult struct {
List []SlowSqlDurationItem `json:"list"`
}
type SlowSqlExplainItem ¶ added in v0.9.157
type SlowSqlExplainItem struct { ExplainId int64 `json:"explainId"` Extra string `json:"extra"` Filtered int64 `json:"filtered"` Key string `json:"key"` KeyLen string `json:"keyLen"` Partitions string `json:"partitions"` PossibleKeys string `json:"possibleKeys"` Ref string `json:"ref"` Rows int `json:"rows"` SelectType string `json:"selectType"` Table string `json:"table"` Type string `json:"type"` }
type SlowSqlExplainResult ¶ added in v0.9.157
type SlowSqlExplainResult struct {
List []SlowSqlExplainItem `json:"list"`
}
type SlowSqlFlowStatusResult ¶ added in v0.9.157
type SlowSqlFlowStatusResult struct {
Enabled int `json:"enabled"`
}
type SlowSqlIndexAdviceItem ¶ added in v0.9.157
type SlowSqlIndexItem ¶ added in v0.9.157
type SlowSqlIndexItem struct { Schema string `json:"schema"` Table string `json:"table"` Collation string `json:"collation"` Column string `json:"column"` Comment string `json:"comment"` Nullable string `json:"nullable"` Type string `json:"type"` Cardinality int64 `json:"cardinality"` Index string `json:"index"` NonUnique string `json:"nonUnique"` Sequence string `json:"sequence"` }
type SlowSqlIndexResult ¶ added in v0.9.157
type SlowSqlIndexResult struct {
List []SlowSqlIndexItem `json:"list"`
}
type SlowSqlItem ¶ added in v0.9.157
type SlowSqlItem struct { AffectedRows int64 `json:"affectedRows"` ClientHost string `json:"clientHost"` ClientIP string `json:"clientIP"` Cluster string `json:"cluster"` ConnectionId int64 `json:"connectionId"` CurrentDB string `json:"currentDB"` Digest string `json:"digest"` Duration float32 `json:"duration"` ExaminedRows int64 `json:"examinedRows"` LockTime int64 `json:"lockTime"` Node string `json:"node"` NumRows int `json:"numRows"` Sql string `json:"sql"` SqlId string `json:"sqlId"` Start string `json:"start"` User string `json:"user"` }
type SlowSqlListResult ¶ added in v0.9.157
type SlowSqlListResult struct { Items []SlowSqlItem `json:"items"` TotalCount int `json:"totalCount"` }
type SlowSqlSchemaItem ¶ added in v0.9.157
type SlowSqlSchemaResult ¶ added in v0.9.157
type SlowSqlSchemaResult struct {
List []SlowSqlSchemaItem `json:"list"`
}
type SlowSqlSourceItem ¶ added in v0.9.157
type SlowSqlSourceResult ¶ added in v0.9.157
type SlowSqlSourceResult struct {
List []SlowSqlSourceItem `json:"list"`
}
type SlowSqlTableItem ¶ added in v0.9.157
type SlowSqlTableItem struct { Schema string `json:"schema"` Table string `json:"table"` Charset string `json:"charset"` Collation string `json:"collation"` Column string `json:"column"` Comment string `json:"comment"` DefaultValue string `json:"defaultValue"` Extra string `json:"extra"` Key string `json:"key"` Nullable string `json:"nullable"` Position int64 `json:"position"` Type string `json:"type"` }
type SlowSqlTableResult ¶ added in v0.9.157
type SlowSqlTableResult struct {
List []SlowSqlTableItem `json:"list"`
}
type SlowSqlTrendItem ¶ added in v0.9.157
type SlowSqlTrendResult ¶ added in v0.9.157
type SlowSqlTrendResult struct { Interval int `json:"interval"` Items []SlowSqlTrendItem `json:"items"` }
type SlowlogDetail ¶ added in v0.9.143
type Snapshot ¶ added in v0.9.44
type Snapshot struct { SnapshotId string `json:"backupId"` SnapshotSizeInBytes int64 `json:"backupSize"` SnapshotType string `json:"backupType"` SnapshotStatus string `json:"backupStatus"` SnapshotStartTime string `json:"backupStartTime"` SnapshotEndTime string `json:"backupEndTime"` DownloadUrl string `json:"downloadUrl"` DownloadExpires string `json:"downloadExpires"` }
type SqlFilterArgs ¶ added in v0.9.157
type SqlFilterItem ¶ added in v0.9.157
type SqlFilterListResult ¶ added in v0.9.157
type SqlFilterListResult struct {
SqlFilterList []SqlFilterItem `json:"sqlFilterList"`
}
type StartOrStopSqlFilterArgs ¶ added in v0.9.157
type StartOrStopSqlFilterArgs struct {
Action string `json:"action"`
}
type TableInfo ¶ added in v0.9.157
type TableInfo struct { Data []TableInfoItem `json:"data"` TotalCount int64 `json:"totalCount"` }
type TableInfoItem ¶ added in v0.9.157
type TableInfoItem struct { IndexLength string `json:"indexLength"` TableSchema string `json:"tableSchema"` TableName string `json:"tableName"` DataLength string `json:"dataLength"` Engine string `json:"engine"` TableRows string `json:"tableRows"` DataFree string `json:"dataFree"` DataFreePer string `json:"dataFreePer"` AvgRowLength string `json:"avgRowLength"` TableLength string `json:"tableLength"` TableLengthPer string `json:"tableLengthPer"` }
type TableListResult ¶ added in v0.9.157
type TableListResult struct {
Result TableInfo `json:"result"`
}
type Task ¶ added in v0.9.157
type Task struct { TaskId int `json:"taskId"` TaskType string `json:"taskType"` TaskName string `json:"taskName"` InstanceId string `json:"instanceId"` InstanceName string `json:"instanceName"` UserId string `json:"userId"` Region string `json:"region"` TaskStatus string `json:"taskStatus"` CreateTime string `json:"createTime"` UpdateTime string `json:"updateTime"` FinishTime string `json:"finishTime"` CancelFlag int `json:"cancelFlag"` Progress []ProgressItem `json:"progress"` }
type TaskListArgs ¶ added in v0.9.157
type TaskListArgs struct { PageSize string `json:"pageSize,omitempty"` PageNo string `json:"pageNo,omitempty"` InstanceId string `json:"instanceId,omitempty"` InstanceName string `json:"instanceName,omitempty"` TaskId int `json:"taskId,omitempty"` TaskType string `json:"taskType,omitempty"` TaskStatus string `json:"taskStatus,omitempty"` StartTime string `json:"startTime,omitempty"` EndTime string `json:"endTime,omitempty"` }
type TaskListResult ¶ added in v0.9.157
type TaskResult ¶ added in v0.9.157
type TaskResult struct {
TaskId int64 `json:"taskId"`
}
type TransactionListResult ¶ added in v0.9.157
type TransactionListResult struct { Datetime string `json:"datetime"` InnodbTrxList []InnodbTrxItem `json:"innodbTrxList"` }
type UpdateAccountPrivileges ¶ added in v0.9.157
type UpdateAccountPrivileges struct {
DatabasePrivileges []DatabasePrivilege `json:"privileges"`
}
type UpdateDatabasePortArgs ¶ added in v0.9.157
type UpdateDatabasePortArgs struct {
EntryPort int `json:"entryPort"`
}
type UpdateInstanceNameArgs ¶ added in v0.9.29
type UpdateInstanceNameArgs struct {
InstanceName string `json:"instanceName"`
}
type UpdateParameterArgs ¶ added in v0.9.37
type UpdateParameterArgs struct {
Parameters []KVParameter `json:"parameters"`
}
type UpdatePasswordArgs ¶ added in v0.9.157
type UpdatePasswordArgs struct {
Password string `json:"password"`
}
type UpdateSecurityIpsArgs ¶ added in v0.9.37
type UpdateSecurityIpsArgs struct {
SecurityIps []string `json:"securityIps"`
}