Documentation ¶
Overview ¶
管理聚石塔DB实例 auto sdk from taobao ApiMetadata.xml version 20140725 auther: dz7changkong@qq.com
Index ¶
Constants ¶
View Source
const VersionNo = "20140725"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RdsDbCreateRequest ¶
type RdsDbCreateRequest struct {
open_taobao.TaobaoMethodRequest
}
在rds实例里创建数据库
func (*RdsDbCreateRequest) GetResponse ¶
func (r *RdsDbCreateRequest) GetResponse(accessToken string) (*RdsDbCreateResponse, []byte, error)
func (*RdsDbCreateRequest) SetDbName ¶
func (r *RdsDbCreateRequest) SetDbName(value string)
数据库名<br /> 支持最大长度为:64<br /> 支持的最大列表长度为:64
func (*RdsDbCreateRequest) SetInstanceName ¶
func (r *RdsDbCreateRequest) SetInstanceName(value string)
rds的实例名<br /> 支持最大长度为:30<br /> 支持的最大列表长度为:30
type RdsDbCreateResponse ¶
type RdsDbCreateResponse struct {
RdsDbInfo *RdsDbInfo `json:"rds_db_info"`
}
type RdsDbCreateResponseResult ¶
type RdsDbCreateResponseResult struct {
Response *RdsDbCreateResponse `json:"rds_db_create_response"`
}
type RdsDbDeleteRequest ¶
type RdsDbDeleteRequest struct {
open_taobao.TaobaoMethodRequest
}
通过api删除用户RDS的数据库
func (*RdsDbDeleteRequest) GetResponse ¶
func (r *RdsDbDeleteRequest) GetResponse(accessToken string) (*RdsDbDeleteResponse, []byte, error)
func (*RdsDbDeleteRequest) SetDbName ¶
func (r *RdsDbDeleteRequest) SetDbName(value string)
数据库的name,可以通过 taobao.rds.db.get 获取
func (*RdsDbDeleteRequest) SetInstanceName ¶
func (r *RdsDbDeleteRequest) SetInstanceName(value string)
rds的实例名<br /> 支持最大长度为:30<br /> 支持的最大列表长度为:30
type RdsDbDeleteResponse ¶
type RdsDbDeleteResponse struct {
RdsDbInfo *RdsDbInfo `json:"rds_db_info"`
}
type RdsDbDeleteResponseResult ¶
type RdsDbDeleteResponseResult struct {
Response *RdsDbDeleteResponse `json:"rds_db_delete_response"`
}
type RdsDbGetRequest ¶
type RdsDbGetRequest struct {
open_taobao.TaobaoMethodRequest
}
查询rds实例下的数据库
func (*RdsDbGetRequest) GetResponse ¶
func (r *RdsDbGetRequest) GetResponse(accessToken string) (*RdsDbGetResponse, []byte, error)
func (*RdsDbGetRequest) SetDbStatus ¶
func (r *RdsDbGetRequest) SetDbStatus(value string)
数据库状态,默认值1<br /> 支持最大值为:3<br /> 支持最小值为:0<br /> 支持的最大列表长度为:1
func (*RdsDbGetRequest) SetInstanceName ¶
func (r *RdsDbGetRequest) SetInstanceName(value string)
rds的实例名<br /> 支持最大长度为:30<br /> 支持的最大列表长度为:30
type RdsDbGetResponse ¶
type RdsDbGetResponse struct { RdsDbInfos struct { RdsDbInfo []*RdsDbInfo `json:"rds_db_info"` } `json:"rds_db_infos"` }
type RdsDbGetResponseResult ¶
type RdsDbGetResponseResult struct {
Response *RdsDbGetResponse `json:"rds_db_get_response"`
}
type RdsDbInfo ¶
type RdsDbInfo struct { Charset string `json:"charset"` Comment string `json:"comment"` DbId string `json:"db_id"` DbName string `json:"db_name"` DbStatus string `json:"db_status"` DbType string `json:"db_type"` InstanceId string `json:"instance_id"` InstanceName string `json:"instance_name"` InstanceType string `json:"instance_type"` MaxAccount string `json:"max_account"` Password string `json:"password"` Uid string `json:"uid"` UserName string `json:"user_name"` }
rds创建、查询、删除返回结果数据结构
Click to show internal directories.
Click to hide internal directories.