udb

package
v0.7.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeUDBParamGroupRequest

type ChangeUDBParamGroupRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

	// DB实例Id
	DBId *string `required:"true"`

	// 参数组Id
	GroupId *string `required:"true"`
}

ChangeUDBParamGroupRequest is request schema for ChangeUDBParamGroup action

type ChangeUDBParamGroupResponse

type ChangeUDBParamGroupResponse struct {
	response.CommonBase
}

ChangeUDBParamGroupResponse is response schema for ChangeUDBParamGroup action

type CheckUDBInstanceAllowanceRequest

type CheckUDBInstanceAllowanceRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"true"`

	// DB种类,分为SQL和NOSQL,取值分别为sql、nosql、postgresql
	ClassType *string `required:"true"`

	// 申请资源的内存限制
	MemoryLimit *int `required:"true"`

	// 申请资源的磁盘空间
	DiskSpace *int `required:"true"`

	// 是否使用SSD资源,true代表使用,false代表不使用
	UseSSD *bool `required:"true"`

	// 资源申请个数,默认为一个
	Count *int `required:"true"`

	// UDB实例的部署模式:可选值为:Normal: 普通单点实例,HA: 高可用部署实例
	InstanceMode *string `required:"true"`

	// SSD类型,可选值为"SATA"、"PCI-E",如果UseSSD为true ,则需要指定SSD类型
	SSDType *string `required:"false"`

	// 如果是从库创建核查,需要指定SrcId
	SrcId *string `required:"false"`

	// 跨可用区备库所在可用区, 参见 [可用区列表](../summary/regionlist.html)
	BackupZone *string `required:"false"`

	// 专区ID
	UDBCId *string `required:"false"`

	// 专区里面DB升降级需要原来DB的信息
	DBId *string `required:"false"`
}

CheckUDBInstanceAllowanceRequest is request schema for CheckUDBInstanceAllowance action

type CheckUDBInstanceAllowanceResponse

type CheckUDBInstanceAllowanceResponse struct {
	response.CommonBase

	// 资源核查部分成功情况下,成功个数
	Count int
}

CheckUDBInstanceAllowanceResponse is response schema for CheckUDBInstanceAllowance action

type CheckUDBInstanceConnectionRequest

type CheckUDBInstanceConnectionRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

	// 实例的Id
	DBId *string `required:"true"`
}

CheckUDBInstanceConnectionRequest is request schema for CheckUDBInstanceConnection action

type CheckUDBInstanceConnectionResponse

type CheckUDBInstanceConnectionResponse struct {
	response.CommonBase
}

CheckUDBInstanceConnectionResponse is response schema for CheckUDBInstanceConnection action

type DescribePromoteToHAPriceRequest

type DescribePromoteToHAPriceRequest struct {
	request.CommonBase

	// 实例所在的可用区
	Zone *string `required:"false"`

	// DB实例ID
	DBId *string `required:"true"`
}

DescribePromoteToHAPriceRequest is request schema for DescribePromoteToHAPrice action

type DescribePromoteToHAPriceResponse

type DescribePromoteToHAPriceResponse struct {
	response.CommonBase

	// 如果返回错误,错误消息
	Message string

	// 普通升级高可用的差价,单位为分
	Price int
}

DescribePromoteToHAPriceResponse is response schema for DescribePromoteToHAPrice action

type DescribeUDBInstancePhpMyAdminURLRequest

type DescribeUDBInstancePhpMyAdminURLRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

	// DB实例Id
	DBId *string `required:"true"`
}

DescribeUDBInstancePhpMyAdminURLRequest is request schema for DescribeUDBInstancePhpMyAdminURL action

type DescribeUDBInstancePhpMyAdminURLResponse

type DescribeUDBInstancePhpMyAdminURLResponse struct {
	response.CommonBase

	// PhpMyAdmin的地址
	PMAPath string
}

DescribeUDBInstancePhpMyAdminURLResponse is response schema for DescribeUDBInstancePhpMyAdminURL action

type DescribeUDBSlaveOrSecondaryInstanceRequest

type DescribeUDBSlaveOrSecondaryInstanceRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

	// 主DB实例,master或者primary节点
	DBId *string `required:"true"`

	// DB种类,分为SQL和NOSQL,取值分别为mysql、mongo
	ClassType *string `required:"true"`
}

DescribeUDBSlaveOrSecondaryInstanceRequest is request schema for DescribeUDBSlaveOrSecondaryInstance action

type DescribeUDBSlaveOrSecondaryInstanceResponse

type DescribeUDBSlaveOrSecondaryInstanceResponse struct {
	response.CommonBase

	// DB实例信息列表 UDBSlaveOrSecondarySet
	DataSet []UDBSlaveOrSecondarySet
}

DescribeUDBSlaveOrSecondaryInstanceResponse is response schema for DescribeUDBSlaveOrSecondaryInstance action

type UDBClient

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

UDBClient is the client of UDB

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UDBClient

NewClient will return a instance of UDBClient

func (*UDBClient) ChangeUDBParamGroup

func (c *UDBClient) ChangeUDBParamGroup(req *ChangeUDBParamGroupRequest) (*ChangeUDBParamGroupResponse, error)

ChangeUDBParamGroup - 修改配置文件

func (*UDBClient) CheckUDBInstanceAllowance

CheckUDBInstanceAllowance - 核查UDB资源余量

func (*UDBClient) CheckUDBInstanceConnection

CheckUDBInstanceConnection - 检测ucloudbackup账号连通性

func (*UDBClient) DescribePromoteToHAPrice

DescribePromoteToHAPrice - 获取普通单点实例升级高可用实例的差价

func (*UDBClient) DescribeUDBInstancePhpMyAdminURL

DescribeUDBInstancePhpMyAdminURL - 获取UDB实例的PhpMyAdmin地址

func (*UDBClient) DescribeUDBSlaveOrSecondaryInstance

DescribeUDBSlaveOrSecondaryInstance - 获取udb实例从库信息,指定ClassType(仅作为内部api使用)

func (*UDBClient) NewChangeUDBParamGroupRequest

func (c *UDBClient) NewChangeUDBParamGroupRequest() *ChangeUDBParamGroupRequest

NewChangeUDBParamGroupRequest will create request of ChangeUDBParamGroup action.

func (*UDBClient) NewCheckUDBInstanceAllowanceRequest

func (c *UDBClient) NewCheckUDBInstanceAllowanceRequest() *CheckUDBInstanceAllowanceRequest

NewCheckUDBInstanceAllowanceRequest will create request of CheckUDBInstanceAllowance action.

func (*UDBClient) NewCheckUDBInstanceConnectionRequest

func (c *UDBClient) NewCheckUDBInstanceConnectionRequest() *CheckUDBInstanceConnectionRequest

NewCheckUDBInstanceConnectionRequest will create request of CheckUDBInstanceConnection action.

func (*UDBClient) NewDescribePromoteToHAPriceRequest

func (c *UDBClient) NewDescribePromoteToHAPriceRequest() *DescribePromoteToHAPriceRequest

NewDescribePromoteToHAPriceRequest will create request of DescribePromoteToHAPrice action.

func (*UDBClient) NewDescribeUDBInstancePhpMyAdminURLRequest

func (c *UDBClient) NewDescribeUDBInstancePhpMyAdminURLRequest() *DescribeUDBInstancePhpMyAdminURLRequest

NewDescribeUDBInstancePhpMyAdminURLRequest will create request of DescribeUDBInstancePhpMyAdminURL action.

func (*UDBClient) NewDescribeUDBSlaveOrSecondaryInstanceRequest

func (c *UDBClient) NewDescribeUDBSlaveOrSecondaryInstanceRequest() *DescribeUDBSlaveOrSecondaryInstanceRequest

NewDescribeUDBSlaveOrSecondaryInstanceRequest will create request of DescribeUDBSlaveOrSecondaryInstance action.

type UDBSlaveOrSecondarySet

type UDBSlaveOrSecondarySet struct {

	// DB实例id
	DBId string

	// 实例名称,至少6位
	Name string

	// DB类型id,mysql/mongodb按版本细分各有一个id 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, 7:percona-5.6
	DBTypeId string

	// DB实例使用的配置参数组id
	ParamGroupId int

	// 管理员帐户名,默认root
	AdminUser string

	// DB实例虚ip
	VirtualIP string

	// DB实例虚ip的mac地址
	VirtualIPMac string

	// 端口号,mysql默认3306,mongodb默认27017
	Port int

	// 对mysql的slave而言是master的DBId,对master则为空, 对mongodb则是副本集id
	SrcDBId string

	// 备份策略,每周备份数量,默认7次
	BackupCount int

	// 备份策略,备份开始时间,单位小时计,默认3点
	BackupBeginTime int

	// 备份策略,备份时间间隔,单位小时计,默认24小时
	BackupDuration int

	// 备份策略,备份黑名单,mongodb则不适用
	BackupBlacklist string

	// DB状态标记 Init // 初始化中 Fail // 安装失败 Starting // 启动中 Running // 运行 Shutdown // 关闭中 Shutoff // 已关闭 Delete // 已删除 Upgrading // 升级中 Promoting // 提升为独库进行中 Recovering // 恢复中 Recover fail // 恢复失败
	State string

	// DB实例创建时间,采用UTC计时时间戳
	CreateTime int

	// DB实例修改时间,采用UTC计时时间戳
	ModifyTime int

	// DB实例过期时间,采用UTC计时时间戳
	ExpiredTime int

	// Year, Month, Dynamic,Trial,默认: Dynamic
	ChargeType string

	// 内存限制(MB),默认根据配置机型
	MemoryLimit int

	// 磁盘空间(GB), 默认根据配置机型
	DiskSpace int

	// 是否使用SSD
	UseSSD bool

	// SSD类型,SATA/PCI-E
	SSDType string

	// DB实例角色,mysql区分master/slave,mongodb多种角色
	Role string

	// DB实例磁盘已使用空间,单位GB
	DiskUsedSize int

	// DB实例数据文件大小,单位GB
	DataFileSize int

	// 从库备份开关
	IsSlaveBackup int

	// 备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能
	BackupDate string
}

UDBSlaveOrSecondarySet - DescribeUDBSlaveOrSecondaryInstance

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

Jump to

Keyboard shortcuts

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