Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( STATUS_MAP = map[int64]rds.STATUS{ 1: rds.STATUS_PENDING, 2: rds.STATUS_RUNNING, 3: rds.STATUS_SWITCHOVER, 4: rds.STATUS_ISOLATIONED, 5: rds.STATUS_DELETING, 6: rds.STATUS_DESTROYED, 7: rds.STATUS_RUNNING, 8: rds.STATUS_SHUTDOWN, 9: rds.STATUS_RUNNING, 10: rds.STATUS_TRANSING, 11: rds.STATUS_RUNNING, 12: rds.STATUS_REBOOTING, } )
实例状态,可取值: 1:申请中 2:运行中 3:受限运行中 (主备切换中) 4:已隔离 5:回收中 6:已回收 7:任务执行中 (实例做备份、回档等操作) 8:已下线 9:实例扩容中 10:实例迁移中 11:只读 12:重启中
Functions ¶
This section is empty.
Types ¶
type SQLServerOperator ¶
type SQLServerOperator struct {
// contains filtered or unexported fields
}
func NewSQLServerOperator ¶
func NewSQLServerOperator(client *sqlserver.Client) *SQLServerOperator
func (*SQLServerOperator) PageQueryRds ¶
func (o *SQLServerOperator) PageQueryRds(req *provider.QueryRequest) pager.Pager
func (*SQLServerOperator) ParseType ¶
func (o *SQLServerOperator) ParseType(id string) string
实例类型,实例类型 HA-高可用 RO-只读实例 SI-基础版 BI-商业智能服务
func (*SQLServerOperator) Query ¶
func (o *SQLServerOperator) Query(ctx context.Context, req *sqlserver.DescribeDBInstancesRequest) (*rds.RdsSet, error)
查询实例列表 (SQLServer) 参考: https://console.cloud.tencent.com/api/explorer?Product=sqlserver&Version=2018-03-28&Action=DescribeDBInstances
Click to show internal directories.
Click to hide internal directories.