Documentation ¶
Index ¶
- Constants
- type AssignProjectRequest
- type AssignProjectResponse
- type BackupFile
- type BackupInfo
- type Client
- func (c *Client) AssignProject(request *AssignProjectRequest) (response *AssignProjectResponse, err error)
- func (c *Client) CreateDBInstance(request *CreateDBInstanceRequest) (response *CreateDBInstanceResponse, err error)
- func (c *Client) CreateDBInstanceHour(request *CreateDBInstanceHourRequest) (response *CreateDBInstanceHourResponse, err error)
- func (c *Client) DescribeBackupAccess(request *DescribeBackupAccessRequest) (response *DescribeBackupAccessResponse, err error)
- func (c *Client) DescribeClientConnections(request *DescribeClientConnectionsRequest) (response *DescribeClientConnectionsResponse, err error)
- func (c *Client) DescribeDBBackups(request *DescribeDBBackupsRequest) (response *DescribeDBBackupsResponse, err error)
- func (c *Client) DescribeDBInstanceDeal(request *DescribeDBInstanceDealRequest) (response *DescribeDBInstanceDealResponse, err error)
- func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
- func (c *Client) DescribeSlowLogPatterns(request *DescribeSlowLogPatternsRequest) (response *DescribeSlowLogPatternsResponse, err error)
- func (c *Client) DescribeSlowLogs(request *DescribeSlowLogsRequest) (response *DescribeSlowLogsResponse, err error)
- func (c *Client) DescribeSpecInfo(request *DescribeSpecInfoRequest) (response *DescribeSpecInfoResponse, err error)
- func (c *Client) InquirePriceCreateDBInstances(request *InquirePriceCreateDBInstancesRequest) (response *InquirePriceCreateDBInstancesResponse, err error)
- func (c *Client) InquirePriceModifyDBInstanceSpec(request *InquirePriceModifyDBInstanceSpecRequest) (response *InquirePriceModifyDBInstanceSpecResponse, err error)
- func (c *Client) InquirePriceRenewDBInstances(request *InquirePriceRenewDBInstancesRequest) (response *InquirePriceRenewDBInstancesResponse, err error)
- func (c *Client) IsolateDBInstance(request *IsolateDBInstanceRequest) (response *IsolateDBInstanceResponse, err error)
- func (c *Client) ModifyDBInstanceSpec(request *ModifyDBInstanceSpecRequest) (response *ModifyDBInstanceSpecResponse, err error)
- func (c *Client) OfflineIsolatedDBInstance(request *OfflineIsolatedDBInstanceRequest) (response *OfflineIsolatedDBInstanceResponse, err error)
- func (c *Client) RenameInstance(request *RenameInstanceRequest) (response *RenameInstanceResponse, err error)
- func (c *Client) RenewDBInstances(request *RenewDBInstancesRequest) (response *RenewDBInstancesResponse, err error)
- type ClientConnection
- type CreateDBInstanceHourRequest
- type CreateDBInstanceHourResponse
- type CreateDBInstanceRequest
- type CreateDBInstanceResponse
- type DBInstanceInfo
- type DBInstancePrice
- type DescribeBackupAccessRequest
- type DescribeBackupAccessResponse
- type DescribeClientConnectionsRequest
- type DescribeClientConnectionsResponse
- type DescribeDBBackupsRequest
- type DescribeDBBackupsResponse
- type DescribeDBInstanceDealRequest
- type DescribeDBInstanceDealResponse
- type DescribeDBInstancesRequest
- type DescribeDBInstancesResponse
- type DescribeSlowLogPatternsRequest
- type DescribeSlowLogPatternsResponse
- type DescribeSlowLogsRequest
- type DescribeSlowLogsResponse
- type DescribeSpecInfoRequest
- type DescribeSpecInfoResponse
- type InquirePriceCreateDBInstancesRequest
- type InquirePriceCreateDBInstancesResponse
- type InquirePriceModifyDBInstanceSpecRequest
- type InquirePriceModifyDBInstanceSpecResponse
- type InquirePriceRenewDBInstancesRequest
- type InquirePriceRenewDBInstancesResponse
- type InstanceChargePrepaid
- type InstanceDetail
- type IsolateDBInstanceRequest
- type IsolateDBInstanceResponse
- type ModifyDBInstanceSpecRequest
- type ModifyDBInstanceSpecResponse
- type OfflineIsolatedDBInstanceRequest
- type OfflineIsolatedDBInstanceResponse
- type RenameInstanceRequest
- type RenameInstanceResponse
- type RenewDBInstancesRequest
- type RenewDBInstancesResponse
- type ShardInfo
- type SlowLogPattern
- type SpecItem
- type SpecificationInfo
- type TagInfo
Constants ¶
const APIVersion = "2019-07-25"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignProjectRequest ¶
type AssignProjectRequest struct { *tchttp.BaseRequest // 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 项目ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` }
func NewAssignProjectRequest ¶
func NewAssignProjectRequest() (request *AssignProjectRequest)
func (*AssignProjectRequest) FromJsonString ¶
func (r *AssignProjectRequest) FromJsonString(s string) error
func (*AssignProjectRequest) ToJsonString ¶
func (r *AssignProjectRequest) ToJsonString() string
type AssignProjectResponse ¶
type AssignProjectResponse struct { *tchttp.BaseResponse Response *struct { // 返回的异步任务ID列表 FlowIds []*uint64 `json:"FlowIds,omitempty" name:"FlowIds" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAssignProjectResponse ¶
func NewAssignProjectResponse() (response *AssignProjectResponse)
func (*AssignProjectResponse) FromJsonString ¶
func (r *AssignProjectResponse) FromJsonString(s string) error
func (*AssignProjectResponse) ToJsonString ¶
func (r *AssignProjectResponse) ToJsonString() string
type BackupFile ¶
type BackupInfo ¶
type BackupInfo struct { // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 备份方式,0-自动备份,1-手动备份 BackupType *uint64 `json:"BackupType,omitempty" name:"BackupType"` // 备份名称 BackupName *string `json:"BackupName,omitempty" name:"BackupName"` // 备份备注 // 注意:此字段可能返回 null,表示取不到有效值。 BackupDesc *string `json:"BackupDesc,omitempty" name:"BackupDesc"` // 备份文件大小,单位KB // 注意:此字段可能返回 null,表示取不到有效值。 BackupSize *uint64 `json:"BackupSize,omitempty" name:"BackupSize"` // 备份开始时间 // 注意:此字段可能返回 null,表示取不到有效值。 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 备份结束时间 // 注意:此字段可能返回 null,表示取不到有效值。 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // 备份状态,1-备份中,2-备份成功 Status *uint64 `json:"Status,omitempty" name:"Status"` // 备份方法,0-逻辑备份,1-物理备份 BackupMethod *uint64 `json:"BackupMethod,omitempty" name:"BackupMethod"` }
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AssignProject ¶
func (c *Client) AssignProject(request *AssignProjectRequest) (response *AssignProjectResponse, err error)
本接口(AssignProject)用于指定云数据库实例的所属项目。
func (*Client) CreateDBInstance ¶
func (c *Client) CreateDBInstance(request *CreateDBInstanceRequest) (response *CreateDBInstanceResponse, err error)
本接口(CreateDBInstance)用于创建包年包月的MongoDB云数据库实例。接口支持的售卖规格,可从查询云数据库的售卖规格(DescribeSpecInfo)获取。
func (*Client) CreateDBInstanceHour ¶
func (c *Client) CreateDBInstanceHour(request *CreateDBInstanceHourRequest) (response *CreateDBInstanceHourResponse, err error)
本接口(CreateDBInstanceHour)用于创建按量计费的MongoDB云数据库实例。
func (*Client) DescribeBackupAccess ¶
func (c *Client) DescribeBackupAccess(request *DescribeBackupAccessRequest) (response *DescribeBackupAccessResponse, err error)
本接口(DescribeBackupAccess)用于获取备份文件的下载授权,具体的备份文件信息可通过查询实例备份列表(DescribeDBBackups)接口获取
func (*Client) DescribeClientConnections ¶
func (c *Client) DescribeClientConnections(request *DescribeClientConnectionsRequest) (response *DescribeClientConnectionsResponse, err error)
本接口(DescribeClientConnections)用于查询实例客户端连接信息,包括连接IP和连接数量。
func (*Client) DescribeDBBackups ¶
func (c *Client) DescribeDBBackups(request *DescribeDBBackupsRequest) (response *DescribeDBBackupsResponse, err error)
本接口(DescribeDBBackups)用于查询实例备份列表,目前只支持7天内的备份查询。
func (*Client) DescribeDBInstanceDeal ¶
func (c *Client) DescribeDBInstanceDeal(request *DescribeDBInstanceDealRequest) (response *DescribeDBInstanceDealResponse, err error)
本接口(DescribeDBInstanceDeal)用于获取MongoDB购买、续费及变配订单详细。
func (*Client) DescribeDBInstances ¶
func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
本接口(DescribeDBInstances)用于查询云数据库实例列表,支持通过项目ID、实例ID、实例状态等过滤条件来筛选实例。支持查询主实例、灾备实例和只读实例信息列表。
func (*Client) DescribeSlowLogPatterns ¶
func (c *Client) DescribeSlowLogPatterns(request *DescribeSlowLogPatternsRequest) (response *DescribeSlowLogPatternsResponse, err error)
本接口(DescribeSlowLogPatterns)用于获取数据库实例慢日志的统计信息。
func (*Client) DescribeSlowLogs ¶
func (c *Client) DescribeSlowLogs(request *DescribeSlowLogsRequest) (response *DescribeSlowLogsResponse, err error)
本接口(DescribeSlowLogs)用于获取云数据库慢日志信息。接口只支持查询最近7天内慢日志。
func (*Client) DescribeSpecInfo ¶
func (c *Client) DescribeSpecInfo(request *DescribeSpecInfoRequest) (response *DescribeSpecInfoResponse, err error)
本接口(DescribeSpecInfo)用于查询实例的售卖规格。
func (*Client) InquirePriceCreateDBInstances ¶
func (c *Client) InquirePriceCreateDBInstances(request *InquirePriceCreateDBInstancesRequest) (response *InquirePriceCreateDBInstancesResponse, err error)
本接口用于创建数据库实例询价。本接口参数中必须传入region参数,否则无法通过校验。本接口仅允许针对购买限制范围内的实例配置进行询价。
func (*Client) InquirePriceModifyDBInstanceSpec ¶
func (c *Client) InquirePriceModifyDBInstanceSpec(request *InquirePriceModifyDBInstanceSpecRequest) (response *InquirePriceModifyDBInstanceSpecResponse, err error)
本接口 (InquirePriceModifyDBInstanceSpec) 用于调整实例的配置询价。
func (*Client) InquirePriceRenewDBInstances ¶
func (c *Client) InquirePriceRenewDBInstances(request *InquirePriceRenewDBInstancesRequest) (response *InquirePriceRenewDBInstancesResponse, err error)
本接口 (InquiryPriceRenewDBInstances) 用于续费包年包月实例询价。
func (*Client) IsolateDBInstance ¶
func (c *Client) IsolateDBInstance(request *IsolateDBInstanceRequest) (response *IsolateDBInstanceResponse, err error)
本接口(IsolateDBInstance)用于隔离MongoDB云数据库按量计费实例。隔离后实例保留在回收站中,不能再写入数据。隔离一定时间后,实例会彻底删除,回收站保存时间请参考按量计费的服务条款。在隔离中的按量计费实例无法恢复,请谨慎操作。
func (*Client) ModifyDBInstanceSpec ¶
func (c *Client) ModifyDBInstanceSpec(request *ModifyDBInstanceSpecRequest) (response *ModifyDBInstanceSpecResponse, err error)
本接口(ModifyDBInstanceSpec)用于调整MongoDB云数据库实例配置。接口支持的售卖规格,可从查询云数据库的售卖规格(DescribeSpecInfo)获取。
func (*Client) OfflineIsolatedDBInstance ¶
func (c *Client) OfflineIsolatedDBInstance(request *OfflineIsolatedDBInstanceRequest) (response *OfflineIsolatedDBInstanceResponse, err error)
本接口(OfflineIsolatedInstances)用于立即下线隔离状态的云数据库实例。进行操作的实例状态必须为隔离状态。
func (*Client) RenameInstance ¶
func (c *Client) RenameInstance(request *RenameInstanceRequest) (response *RenameInstanceResponse, err error)
本接口(RenameInstance)用于修改云数据库实例的名称。
func (*Client) RenewDBInstances ¶
func (c *Client) RenewDBInstances(request *RenewDBInstancesRequest) (response *RenewDBInstancesResponse, err error)
本接口(RenewDBInstance)用于续费云数据库实例,仅支持付费模式为包年包月的实例。按量计费实例不需要续费。
type ClientConnection ¶
type CreateDBInstanceHourRequest ¶
type CreateDBInstanceHourRequest struct { *tchttp.BaseRequest // 实例内存大小,单位:GB Memory *uint64 `json:"Memory,omitempty" name:"Memory"` // 实例硬盘大小,单位:GB Volume *uint64 `json:"Volume,omitempty" name:"Volume"` // 副本集个数,创建副本集实例时,该参数必须设置为1;创建分片实例时,具体参照查询云数据库的售卖规格返回参数 ReplicateSetNum *uint64 `json:"ReplicateSetNum,omitempty" name:"ReplicateSetNum"` // 每个副本集内节点个数,当前副本集节点数固定为3,分片从节点数可选,具体参照查询云数据库的售卖规格返回参数 NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` // 版本号,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。参数与版本对应关系是MONGO_3_WT:MongoDB 3.2 WiredTiger存储引擎版本,MONGO_3_ROCKS:MongoDB 3.2 RocksDB存储引擎版本,MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本 MongoVersion *string `json:"MongoVersion,omitempty" name:"MongoVersion"` // 机器类型,HIO:高IO型;HIO10G:高IO万兆 MachineCode *string `json:"MachineCode,omitempty" name:"MachineCode"` // 实例数量,最小值1,最大值为10 GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // 可用区信息,格式如:ap-guangzhou-2 Zone *string `json:"Zone,omitempty" name:"Zone"` // 实例类型,REPLSET-副本集,SHARD-分片集群 ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // 私有网络ID,如果不设置该参数则默认选择基础网络 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 实例密码,不设置该参数则需要在创建完成后通过设置密码接口初始化实例密码。密码必须是8-16位字符,且至少包含字母、数字和字符 !@#%^*() 中的两种 Password *string `json:"Password,omitempty" name:"Password"` // 项目ID,不设置为默认项目 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // 实例标签信息 Tags []*TagInfo `json:"Tags,omitempty" name:"Tags" list` }
func NewCreateDBInstanceHourRequest ¶
func NewCreateDBInstanceHourRequest() (request *CreateDBInstanceHourRequest)
func (*CreateDBInstanceHourRequest) FromJsonString ¶
func (r *CreateDBInstanceHourRequest) FromJsonString(s string) error
func (*CreateDBInstanceHourRequest) ToJsonString ¶
func (r *CreateDBInstanceHourRequest) ToJsonString() string
type CreateDBInstanceHourResponse ¶
type CreateDBInstanceHourResponse struct { *tchttp.BaseResponse Response *struct { // 订单ID DealId *string `json:"DealId,omitempty" name:"DealId"` // 创建的实例ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateDBInstanceHourResponse ¶
func NewCreateDBInstanceHourResponse() (response *CreateDBInstanceHourResponse)
func (*CreateDBInstanceHourResponse) FromJsonString ¶
func (r *CreateDBInstanceHourResponse) FromJsonString(s string) error
func (*CreateDBInstanceHourResponse) ToJsonString ¶
func (r *CreateDBInstanceHourResponse) ToJsonString() string
type CreateDBInstanceRequest ¶
type CreateDBInstanceRequest struct { *tchttp.BaseRequest // 每个副本集内节点个数,当前副本集节点数固定为3,分片从节点数可选,具体参照查询云数据库的售卖规格返回参数 NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` // 实例内存大小,单位:GB Memory *uint64 `json:"Memory,omitempty" name:"Memory"` // 实例硬盘大小,单位:GB Volume *uint64 `json:"Volume,omitempty" name:"Volume"` // 版本号,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。参数与版本对应关系是MONGO_3_WT:MongoDB 3.2 WiredTiger存储引擎版本,MONGO_3_ROCKS:MongoDB 3.2 RocksDB存储引擎版本,MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本 MongoVersion *string `json:"MongoVersion,omitempty" name:"MongoVersion"` // 实例数量, 最小值1,最大值为10 GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // 实例所属区域名称,格式如:ap-guangzhou-2 Zone *string `json:"Zone,omitempty" name:"Zone"` // 实例时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36] Period *uint64 `json:"Period,omitempty" name:"Period"` // 机器类型,HIO:高IO型;HIO10G:高IO万兆型 MachineCode *string `json:"MachineCode,omitempty" name:"MachineCode"` // 实例类型,REPLSET-副本集,SHARD-分片集群 ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // 副本集个数,创建副本集实例时,该参数必须设置为1;创建分片实例时,具体参照查询云数据库的售卖规格返回参数 ReplicateSetNum *uint64 `json:"ReplicateSetNum,omitempty" name:"ReplicateSetNum"` // 项目ID,不设置为默认项目 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // 私有网络 ID,如果不传则默认选择基础网络,请使用 查询私有网络列表 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 查询子网列表 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 实例密码,不设置该参数则需要在创建完成后通过设置密码接口初始化实例密码。密码必须是8-16位字符,且至少包含字母、数字和字符 !@#%^*() 中的两种 Password *string `json:"Password,omitempty" name:"Password"` // 实例标签信息 Tags []*TagInfo `json:"Tags,omitempty" name:"Tags" list` // 自动续费标记,可选值为:0 - 不自动续费;1 - 自动续费。默认为不自动续费 AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` }
func NewCreateDBInstanceRequest ¶
func NewCreateDBInstanceRequest() (request *CreateDBInstanceRequest)
func (*CreateDBInstanceRequest) FromJsonString ¶
func (r *CreateDBInstanceRequest) FromJsonString(s string) error
func (*CreateDBInstanceRequest) ToJsonString ¶
func (r *CreateDBInstanceRequest) ToJsonString() string
type CreateDBInstanceResponse ¶
type CreateDBInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 订单ID DealId *string `json:"DealId,omitempty" name:"DealId"` // 创建的实例ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateDBInstanceResponse ¶
func NewCreateDBInstanceResponse() (response *CreateDBInstanceResponse)
func (*CreateDBInstanceResponse) FromJsonString ¶
func (r *CreateDBInstanceResponse) FromJsonString(s string) error
func (*CreateDBInstanceResponse) ToJsonString ¶
func (r *CreateDBInstanceResponse) ToJsonString() string
type DBInstanceInfo ¶
type DBInstancePrice ¶
type DescribeBackupAccessRequest ¶
type DescribeBackupAccessRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 需要获取下载授权的备份文件名 BackupName *string `json:"BackupName,omitempty" name:"BackupName"` }
func NewDescribeBackupAccessRequest ¶
func NewDescribeBackupAccessRequest() (request *DescribeBackupAccessRequest)
func (*DescribeBackupAccessRequest) FromJsonString ¶
func (r *DescribeBackupAccessRequest) FromJsonString(s string) error
func (*DescribeBackupAccessRequest) ToJsonString ¶
func (r *DescribeBackupAccessRequest) ToJsonString() string
type DescribeBackupAccessResponse ¶
type DescribeBackupAccessResponse struct { *tchttp.BaseResponse Response *struct { // 实例所属地域 Region *string `json:"Region,omitempty" name:"Region"` // 备份文件所在存储桶 Bucket *string `json:"Bucket,omitempty" name:"Bucket"` // 备份文件的存储信息 Files []*BackupFile `json:"Files,omitempty" name:"Files" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeBackupAccessResponse ¶
func NewDescribeBackupAccessResponse() (response *DescribeBackupAccessResponse)
func (*DescribeBackupAccessResponse) FromJsonString ¶
func (r *DescribeBackupAccessResponse) FromJsonString(s string) error
func (*DescribeBackupAccessResponse) ToJsonString ¶
func (r *DescribeBackupAccessResponse) ToJsonString() string
type DescribeClientConnectionsRequest ¶
type DescribeClientConnectionsRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 查询返回记录条数,默认为10000。 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 偏移量,默认值为0。 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeClientConnectionsRequest ¶
func NewDescribeClientConnectionsRequest() (request *DescribeClientConnectionsRequest)
func (*DescribeClientConnectionsRequest) FromJsonString ¶
func (r *DescribeClientConnectionsRequest) FromJsonString(s string) error
func (*DescribeClientConnectionsRequest) ToJsonString ¶
func (r *DescribeClientConnectionsRequest) ToJsonString() string
type DescribeClientConnectionsResponse ¶
type DescribeClientConnectionsResponse struct { *tchttp.BaseResponse Response *struct { // 客户端连接信息,包括客户端IP和对应IP的连接数量。 Clients []*ClientConnection `json:"Clients,omitempty" name:"Clients" list` // 满足条件的记录总条数,可用于分页查询。 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClientConnectionsResponse ¶
func NewDescribeClientConnectionsResponse() (response *DescribeClientConnectionsResponse)
func (*DescribeClientConnectionsResponse) FromJsonString ¶
func (r *DescribeClientConnectionsResponse) FromJsonString(s string) error
func (*DescribeClientConnectionsResponse) ToJsonString ¶
func (r *DescribeClientConnectionsResponse) ToJsonString() string
type DescribeDBBackupsRequest ¶
type DescribeDBBackupsRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDBBackupsRequest ¶
func NewDescribeDBBackupsRequest() (request *DescribeDBBackupsRequest)
func (*DescribeDBBackupsRequest) FromJsonString ¶
func (r *DescribeDBBackupsRequest) FromJsonString(s string) error
func (*DescribeDBBackupsRequest) ToJsonString ¶
func (r *DescribeDBBackupsRequest) ToJsonString() string
type DescribeDBBackupsResponse ¶
type DescribeDBBackupsResponse struct { *tchttp.BaseResponse Response *struct { // 备份列表 BackupList []*BackupInfo `json:"BackupList,omitempty" name:"BackupList" list` // 备份总数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDBBackupsResponse ¶
func NewDescribeDBBackupsResponse() (response *DescribeDBBackupsResponse)
func (*DescribeDBBackupsResponse) FromJsonString ¶
func (r *DescribeDBBackupsResponse) FromJsonString(s string) error
func (*DescribeDBBackupsResponse) ToJsonString ¶
func (r *DescribeDBBackupsResponse) ToJsonString() string
type DescribeDBInstanceDealRequest ¶
type DescribeDBInstanceDealRequest struct { *tchttp.BaseRequest // 订单ID,通过CreateDBInstance等接口返回 DealId *string `json:"DealId,omitempty" name:"DealId"` }
func NewDescribeDBInstanceDealRequest ¶
func NewDescribeDBInstanceDealRequest() (request *DescribeDBInstanceDealRequest)
func (*DescribeDBInstanceDealRequest) FromJsonString ¶
func (r *DescribeDBInstanceDealRequest) FromJsonString(s string) error
func (*DescribeDBInstanceDealRequest) ToJsonString ¶
func (r *DescribeDBInstanceDealRequest) ToJsonString() string
type DescribeDBInstanceDealResponse ¶
type DescribeDBInstanceDealResponse struct { *tchttp.BaseResponse Response *struct { // 订单状态,1:未支付,2:已支付,3:发货中,4:发货成功,5:发货失败,6:退款,7:订单关闭,8:超时未支付关闭。 Status *int64 `json:"Status,omitempty" name:"Status"` // 订单原价。 OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // 订单折扣价格。 DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"` // 订单行为,purchase:新购,renew:续费,upgrade:升配,downgrade:降配,refund:退货退款。 Action *string `json:"Action,omitempty" name:"Action"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDBInstanceDealResponse ¶
func NewDescribeDBInstanceDealResponse() (response *DescribeDBInstanceDealResponse)
func (*DescribeDBInstanceDealResponse) FromJsonString ¶
func (r *DescribeDBInstanceDealResponse) FromJsonString(s string) error
func (*DescribeDBInstanceDealResponse) ToJsonString ¶
func (r *DescribeDBInstanceDealResponse) ToJsonString() string
type DescribeDBInstancesRequest ¶
type DescribeDBInstancesRequest struct { *tchttp.BaseRequest // 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 实例类型,取值范围:0-所有实例,1-正式实例,2-临时实例, 3-只读实例,-1-正式实例+只读+灾备实例 InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"` // 集群类型,取值范围:0-副本集实例,1-分片实例,-1-所有实例 ClusterType *int64 `json:"ClusterType,omitempty" name:"ClusterType"` // 实例状态,取值范围:0-待初始化,1-流程执行中,2-实例有效,-2-实例已过期 Status []*int64 `json:"Status,omitempty" name:"Status" list` // 私有网络的ID,基础网络则不传该参数 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 私有网络的子网ID,基础网络则不传该参数。入参设置该参数的同时,必须设置相应的VpcId SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 付费类型,取值范围:0-按量计费,1-包年包月,-1-按量计费+包年包月 PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // 单次请求返回的数量,最小值为1,最大值为100,默认值为20 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 偏移量,默认值为0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 返回结果集排序的字段,目前支持:"ProjectId", "InstanceName", "CreateTime",默认为升序排序 OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // 返回结果集排序方式,目前支持:"ASC"或者"DESC" OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` // 项目 ID ProjectIds []*uint64 `json:"ProjectIds,omitempty" name:"ProjectIds" list` // 搜索关键词,支持实例Id、实例名称、完整IP SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` }
func NewDescribeDBInstancesRequest ¶
func NewDescribeDBInstancesRequest() (request *DescribeDBInstancesRequest)
func (*DescribeDBInstancesRequest) FromJsonString ¶
func (r *DescribeDBInstancesRequest) FromJsonString(s string) error
func (*DescribeDBInstancesRequest) ToJsonString ¶
func (r *DescribeDBInstancesRequest) ToJsonString() string
type DescribeDBInstancesResponse ¶
type DescribeDBInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 符合查询条件的实例总数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 实例详细信息列表 InstanceDetails []*InstanceDetail `json:"InstanceDetails,omitempty" name:"InstanceDetails" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDBInstancesResponse ¶
func NewDescribeDBInstancesResponse() (response *DescribeDBInstancesResponse)
func (*DescribeDBInstancesResponse) FromJsonString ¶
func (r *DescribeDBInstancesResponse) FromJsonString(s string) error
func (*DescribeDBInstancesResponse) ToJsonString ¶
func (r *DescribeDBInstancesResponse) ToJsonString() string
type DescribeSlowLogPatternsRequest ¶
type DescribeSlowLogPatternsRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 慢日志起始时间,格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 慢日志终止时间,格式:yyyy-mm-dd hh:mm:ss,如:2019-06-02 12:00:00。查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // 慢日志执行时间阈值,返回执行时间超过该阈值的慢日志,单位为毫秒(ms),最小为100毫秒。 SlowMS *uint64 `json:"SlowMS,omitempty" name:"SlowMS"` // 偏移量,最小值为0,最大值为10000,默认值为0。 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 分页大小,最小值为1,最大值为100,默认值为20。 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeSlowLogPatternsRequest ¶
func NewDescribeSlowLogPatternsRequest() (request *DescribeSlowLogPatternsRequest)
func (*DescribeSlowLogPatternsRequest) FromJsonString ¶
func (r *DescribeSlowLogPatternsRequest) FromJsonString(s string) error
func (*DescribeSlowLogPatternsRequest) ToJsonString ¶
func (r *DescribeSlowLogPatternsRequest) ToJsonString() string
type DescribeSlowLogPatternsResponse ¶
type DescribeSlowLogPatternsResponse struct { *tchttp.BaseResponse Response *struct { // 慢日志统计信息总数 Count *uint64 `json:"Count,omitempty" name:"Count"` // 慢日志统计信息 SlowLogPatterns []*SlowLogPattern `json:"SlowLogPatterns,omitempty" name:"SlowLogPatterns" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSlowLogPatternsResponse ¶
func NewDescribeSlowLogPatternsResponse() (response *DescribeSlowLogPatternsResponse)
func (*DescribeSlowLogPatternsResponse) FromJsonString ¶
func (r *DescribeSlowLogPatternsResponse) FromJsonString(s string) error
func (*DescribeSlowLogPatternsResponse) ToJsonString ¶
func (r *DescribeSlowLogPatternsResponse) ToJsonString() string
type DescribeSlowLogsRequest ¶
type DescribeSlowLogsRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 慢日志起始时间,格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 慢日志终止时间,格式:yyyy-mm-dd hh:mm:ss,如:2019-06-02 12:00:00。查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // 慢日志执行时间阈值,返回执行时间超过该阈值的慢日志,单位为毫秒(ms),最小为100毫秒。 SlowMS *uint64 `json:"SlowMS,omitempty" name:"SlowMS"` // 偏移量,最小值为0,最大值为10000,默认值为0。 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 分页大小,最小值为1,最大值为100,默认值为20。 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeSlowLogsRequest ¶
func NewDescribeSlowLogsRequest() (request *DescribeSlowLogsRequest)
func (*DescribeSlowLogsRequest) FromJsonString ¶
func (r *DescribeSlowLogsRequest) FromJsonString(s string) error
func (*DescribeSlowLogsRequest) ToJsonString ¶
func (r *DescribeSlowLogsRequest) ToJsonString() string
type DescribeSlowLogsResponse ¶
type DescribeSlowLogsResponse struct { *tchttp.BaseResponse Response *struct { // 慢日志总数 Count *uint64 `json:"Count,omitempty" name:"Count"` // 慢日志详情 // 注意:此字段可能返回 null,表示取不到有效值。 SlowLogs []*string `json:"SlowLogs,omitempty" name:"SlowLogs" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSlowLogsResponse ¶
func NewDescribeSlowLogsResponse() (response *DescribeSlowLogsResponse)
func (*DescribeSlowLogsResponse) FromJsonString ¶
func (r *DescribeSlowLogsResponse) FromJsonString(s string) error
func (*DescribeSlowLogsResponse) ToJsonString ¶
func (r *DescribeSlowLogsResponse) ToJsonString() string
type DescribeSpecInfoRequest ¶
type DescribeSpecInfoRequest struct { *tchttp.BaseRequest // 待查询可用区 Zone *string `json:"Zone,omitempty" name:"Zone"` }
func NewDescribeSpecInfoRequest ¶
func NewDescribeSpecInfoRequest() (request *DescribeSpecInfoRequest)
func (*DescribeSpecInfoRequest) FromJsonString ¶
func (r *DescribeSpecInfoRequest) FromJsonString(s string) error
func (*DescribeSpecInfoRequest) ToJsonString ¶
func (r *DescribeSpecInfoRequest) ToJsonString() string
type DescribeSpecInfoResponse ¶
type DescribeSpecInfoResponse struct { *tchttp.BaseResponse Response *struct { // 实例售卖规格信息列表 SpecInfoList []*SpecificationInfo `json:"SpecInfoList,omitempty" name:"SpecInfoList" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSpecInfoResponse ¶
func NewDescribeSpecInfoResponse() (response *DescribeSpecInfoResponse)
func (*DescribeSpecInfoResponse) FromJsonString ¶
func (r *DescribeSpecInfoResponse) FromJsonString(s string) error
func (*DescribeSpecInfoResponse) ToJsonString ¶
func (r *DescribeSpecInfoResponse) ToJsonString() string
type InquirePriceCreateDBInstancesRequest ¶
type InquirePriceCreateDBInstancesRequest struct { *tchttp.BaseRequest // 实例所属区域名称,格式如:ap-guangzhou-2 Zone *string `json:"Zone,omitempty" name:"Zone"` // 每个副本集内节点个数,当前副本集节点数固定为3,分片从节点数可选,具体参照查询云数据库的售卖规格返回参数 NodeNum *int64 `json:"NodeNum,omitempty" name:"NodeNum"` // 实例内存大小,单位:GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // 实例硬盘大小,单位:GB Volume *int64 `json:"Volume,omitempty" name:"Volume"` // 版本号,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。参数与版本对应关系是MONGO_3_WT:MongoDB 3.2 WiredTiger存储引擎版本,MONGO_3_ROCKS:MongoDB 3.2 RocksDB存储引擎版本,MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本,MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本 MongoVersion *string `json:"MongoVersion,omitempty" name:"MongoVersion"` // 机器类型,HIO:高IO型;HIO10G:高IO万兆型;STDS5:标准型 MachineCode *string `json:"MachineCode,omitempty" name:"MachineCode"` // 实例数量, 最小值1,最大值为10 GoodsNum *int64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // 实例时长,单位:月,可选值包括[1,2,3,4,5,6,7,8,9,10,11,12,24,36] Period *int64 `json:"Period,omitempty" name:"Period"` // 实例类型,REPLSET-副本集,SHARD-分片集群,STANDALONE-单节点 ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // 副本集个数,创建副本集实例时,该参数必须设置为1;创建分片实例时,具体参照查询云数据库的售卖规格返回参数;若为单节点实例,该参数设置为0 ReplicateSetNum *int64 `json:"ReplicateSetNum,omitempty" name:"ReplicateSetNum"` }
func NewInquirePriceCreateDBInstancesRequest ¶
func NewInquirePriceCreateDBInstancesRequest() (request *InquirePriceCreateDBInstancesRequest)
func (*InquirePriceCreateDBInstancesRequest) FromJsonString ¶
func (r *InquirePriceCreateDBInstancesRequest) FromJsonString(s string) error
func (*InquirePriceCreateDBInstancesRequest) ToJsonString ¶
func (r *InquirePriceCreateDBInstancesRequest) ToJsonString() string
type InquirePriceCreateDBInstancesResponse ¶
type InquirePriceCreateDBInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 价格 Price *DBInstancePrice `json:"Price,omitempty" name:"Price"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewInquirePriceCreateDBInstancesResponse ¶
func NewInquirePriceCreateDBInstancesResponse() (response *InquirePriceCreateDBInstancesResponse)
func (*InquirePriceCreateDBInstancesResponse) FromJsonString ¶
func (r *InquirePriceCreateDBInstancesResponse) FromJsonString(s string) error
func (*InquirePriceCreateDBInstancesResponse) ToJsonString ¶
func (r *InquirePriceCreateDBInstancesResponse) ToJsonString() string
type InquirePriceModifyDBInstanceSpecRequest ¶
type InquirePriceModifyDBInstanceSpecRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同。 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 变更配置后实例内存大小,单位:GB。 Memory *int64 `json:"Memory,omitempty" name:"Memory"` // 变更配置后实例磁盘大小,单位:GB。 Volume *int64 `json:"Volume,omitempty" name:"Volume"` }
func NewInquirePriceModifyDBInstanceSpecRequest ¶
func NewInquirePriceModifyDBInstanceSpecRequest() (request *InquirePriceModifyDBInstanceSpecRequest)
func (*InquirePriceModifyDBInstanceSpecRequest) FromJsonString ¶
func (r *InquirePriceModifyDBInstanceSpecRequest) FromJsonString(s string) error
func (*InquirePriceModifyDBInstanceSpecRequest) ToJsonString ¶
func (r *InquirePriceModifyDBInstanceSpecRequest) ToJsonString() string
type InquirePriceModifyDBInstanceSpecResponse ¶
type InquirePriceModifyDBInstanceSpecResponse struct { *tchttp.BaseResponse Response *struct { // 价格。 Price *DBInstancePrice `json:"Price,omitempty" name:"Price"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewInquirePriceModifyDBInstanceSpecResponse ¶
func NewInquirePriceModifyDBInstanceSpecResponse() (response *InquirePriceModifyDBInstanceSpecResponse)
func (*InquirePriceModifyDBInstanceSpecResponse) FromJsonString ¶
func (r *InquirePriceModifyDBInstanceSpecResponse) FromJsonString(s string) error
func (*InquirePriceModifyDBInstanceSpecResponse) ToJsonString ¶
func (r *InquirePriceModifyDBInstanceSpecResponse) ToJsonString() string
type InquirePriceRenewDBInstancesRequest ¶
type InquirePriceRenewDBInstancesRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同,接口单次最多只支持5个实例进行操作。 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 预付费模式(即包年包月)相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` }
func NewInquirePriceRenewDBInstancesRequest ¶
func NewInquirePriceRenewDBInstancesRequest() (request *InquirePriceRenewDBInstancesRequest)
func (*InquirePriceRenewDBInstancesRequest) FromJsonString ¶
func (r *InquirePriceRenewDBInstancesRequest) FromJsonString(s string) error
func (*InquirePriceRenewDBInstancesRequest) ToJsonString ¶
func (r *InquirePriceRenewDBInstancesRequest) ToJsonString() string
type InquirePriceRenewDBInstancesResponse ¶
type InquirePriceRenewDBInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 价格 Price *DBInstancePrice `json:"Price,omitempty" name:"Price"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewInquirePriceRenewDBInstancesResponse ¶
func NewInquirePriceRenewDBInstancesResponse() (response *InquirePriceRenewDBInstancesResponse)
func (*InquirePriceRenewDBInstancesResponse) FromJsonString ¶
func (r *InquirePriceRenewDBInstancesResponse) FromJsonString(s string) error
func (*InquirePriceRenewDBInstancesResponse) ToJsonString ¶
func (r *InquirePriceRenewDBInstancesResponse) ToJsonString() string
type InstanceChargePrepaid ¶
type InstanceChargePrepaid struct { // 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36。默认为1。 Period *int64 `json:"Period,omitempty" name:"Period"` // 自动续费标识。取值范围: // NOTIFY_AND_AUTO_RENEW:通知过期且自动续费 // NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费 // DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费 // // 默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。 RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` }
type InstanceDetail ¶
type InstanceDetail struct { // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 实例名称 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // 付费类型,可能的返回值:1-包年包月;0-按量计费 PayMode *uint64 `json:"PayMode,omitempty" name:"PayMode"` // 项目ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // 集群类型,可能的返回值:0-副本集实例,1-分片实例, ClusterType *uint64 `json:"ClusterType,omitempty" name:"ClusterType"` // 地域信息 Region *string `json:"Region,omitempty" name:"Region"` // 可用区信息 Zone *string `json:"Zone,omitempty" name:"Zone"` // 网络类型,可能的返回值:0-基础网络,1-私有网络 NetType *uint64 `json:"NetType,omitempty" name:"NetType"` // 私有网络的ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 私有网络的子网ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 实例状态,可能的返回值:0-待初始化,1-流程处理中,2-运行中,-2-实例已过期 Status *int64 `json:"Status,omitempty" name:"Status"` // 实例IP Vip *string `json:"Vip,omitempty" name:"Vip"` // 端口号 Vport *uint64 `json:"Vport,omitempty" name:"Vport"` // 实例创建时间 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 实例到期时间 DeadLine *string `json:"DeadLine,omitempty" name:"DeadLine"` // 实例版本信息 MongoVersion *string `json:"MongoVersion,omitempty" name:"MongoVersion"` // 实例内存规格,单位为MB Memory *uint64 `json:"Memory,omitempty" name:"Memory"` // 实例磁盘规格,单位为MB Volume *uint64 `json:"Volume,omitempty" name:"Volume"` // 实例CPU核心数 CpuNum *uint64 `json:"CpuNum,omitempty" name:"CpuNum"` // 实例机器类型 MachineType *string `json:"MachineType,omitempty" name:"MachineType"` // 实例从节点数 SecondaryNum *uint64 `json:"SecondaryNum,omitempty" name:"SecondaryNum"` // 实例分片数 ReplicationSetNum *uint64 `json:"ReplicationSetNum,omitempty" name:"ReplicationSetNum"` // 实例自动续费标志,可能的返回值:0-手动续费,1-自动续费,2-确认不续费 AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` // 已用容量,单位MB UsedVolume *uint64 `json:"UsedVolume,omitempty" name:"UsedVolume"` // 维护窗口起始时间 MaintenanceStart *string `json:"MaintenanceStart,omitempty" name:"MaintenanceStart"` // 维护窗口结束时间 MaintenanceEnd *string `json:"MaintenanceEnd,omitempty" name:"MaintenanceEnd"` // 分片信息 ReplicaSets []*ShardInfo `json:"ReplicaSets,omitempty" name:"ReplicaSets" list` // 只读实例信息 ReadonlyInstances []*DBInstanceInfo `json:"ReadonlyInstances,omitempty" name:"ReadonlyInstances" list` // 灾备实例信息 StandbyInstances []*DBInstanceInfo `json:"StandbyInstances,omitempty" name:"StandbyInstances" list` // 临时实例信息 CloneInstances []*DBInstanceInfo `json:"CloneInstances,omitempty" name:"CloneInstances" list` // 关联实例信息,对于正式实例,该字段表示它的临时实例信息;对于临时实例,则表示它的正式实例信息;如果为只读/灾备实例,则表示他的主实例信息 RelatedInstance *DBInstanceInfo `json:"RelatedInstance,omitempty" name:"RelatedInstance"` // 实例标签信息集合 Tags []*TagInfo `json:"Tags,omitempty" name:"Tags" list` // 实例版本标记 InstanceVer *uint64 `json:"InstanceVer,omitempty" name:"InstanceVer"` // 实例版本标记 ClusterVer *uint64 `json:"ClusterVer,omitempty" name:"ClusterVer"` // 协议信息,可能的返回值:1-mongodb,2-dynamodb Protocol *uint64 `json:"Protocol,omitempty" name:"Protocol"` // 实例类型,可能的返回值,1-正式实例,2-临时实例,3-只读实例,4-灾备实例 InstanceType *uint64 `json:"InstanceType,omitempty" name:"InstanceType"` // 实例状态描述 InstanceStatusDesc *string `json:"InstanceStatusDesc,omitempty" name:"InstanceStatusDesc"` // 实例对应的物理实例id,回档并替换过的实例有不同的InstanceId和RealInstanceId,从barad获取监控数据等场景下需要用物理id获取 RealInstanceId *string `json:"RealInstanceId,omitempty" name:"RealInstanceId"` }
type IsolateDBInstanceRequest ¶
type IsolateDBInstanceRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewIsolateDBInstanceRequest ¶
func NewIsolateDBInstanceRequest() (request *IsolateDBInstanceRequest)
func (*IsolateDBInstanceRequest) FromJsonString ¶
func (r *IsolateDBInstanceRequest) FromJsonString(s string) error
func (*IsolateDBInstanceRequest) ToJsonString ¶
func (r *IsolateDBInstanceRequest) ToJsonString() string
type IsolateDBInstanceResponse ¶
type IsolateDBInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewIsolateDBInstanceResponse ¶
func NewIsolateDBInstanceResponse() (response *IsolateDBInstanceResponse)
func (*IsolateDBInstanceResponse) FromJsonString ¶
func (r *IsolateDBInstanceResponse) FromJsonString(s string) error
func (*IsolateDBInstanceResponse) ToJsonString ¶
func (r *IsolateDBInstanceResponse) ToJsonString() string
type ModifyDBInstanceSpecRequest ¶
type ModifyDBInstanceSpecRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 实例配置变更后的内存大小,单位:GB。内存和磁盘必须同时升配或同时降配 Memory *uint64 `json:"Memory,omitempty" name:"Memory"` // 实例配置变更后的硬盘大小,单位:GB。内存和磁盘必须同时升配或同时降配。降配时,新的磁盘参数必须大于已用磁盘容量的1.2倍 Volume *uint64 `json:"Volume,omitempty" name:"Volume"` // 实例配置变更后oplog的大小,单位:GB,默认为磁盘空间的10%,允许设置的最小值为磁盘的10%,最大值为磁盘的90% OplogSize *uint64 `json:"OplogSize,omitempty" name:"OplogSize"` }
func NewModifyDBInstanceSpecRequest ¶
func NewModifyDBInstanceSpecRequest() (request *ModifyDBInstanceSpecRequest)
func (*ModifyDBInstanceSpecRequest) FromJsonString ¶
func (r *ModifyDBInstanceSpecRequest) FromJsonString(s string) error
func (*ModifyDBInstanceSpecRequest) ToJsonString ¶
func (r *ModifyDBInstanceSpecRequest) ToJsonString() string
type ModifyDBInstanceSpecResponse ¶
type ModifyDBInstanceSpecResponse struct { *tchttp.BaseResponse Response *struct { // 订单ID DealId *string `json:"DealId,omitempty" name:"DealId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDBInstanceSpecResponse ¶
func NewModifyDBInstanceSpecResponse() (response *ModifyDBInstanceSpecResponse)
func (*ModifyDBInstanceSpecResponse) FromJsonString ¶
func (r *ModifyDBInstanceSpecResponse) FromJsonString(s string) error
func (*ModifyDBInstanceSpecResponse) ToJsonString ¶
func (r *ModifyDBInstanceSpecResponse) ToJsonString() string
type OfflineIsolatedDBInstanceRequest ¶
type OfflineIsolatedDBInstanceRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewOfflineIsolatedDBInstanceRequest ¶
func NewOfflineIsolatedDBInstanceRequest() (request *OfflineIsolatedDBInstanceRequest)
func (*OfflineIsolatedDBInstanceRequest) FromJsonString ¶
func (r *OfflineIsolatedDBInstanceRequest) FromJsonString(s string) error
func (*OfflineIsolatedDBInstanceRequest) ToJsonString ¶
func (r *OfflineIsolatedDBInstanceRequest) ToJsonString() string
type OfflineIsolatedDBInstanceResponse ¶
type OfflineIsolatedDBInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewOfflineIsolatedDBInstanceResponse ¶
func NewOfflineIsolatedDBInstanceResponse() (response *OfflineIsolatedDBInstanceResponse)
func (*OfflineIsolatedDBInstanceResponse) FromJsonString ¶
func (r *OfflineIsolatedDBInstanceResponse) FromJsonString(s string) error
func (*OfflineIsolatedDBInstanceResponse) ToJsonString ¶
func (r *OfflineIsolatedDBInstanceResponse) ToJsonString() string
type RenameInstanceRequest ¶
type RenameInstanceRequest struct { *tchttp.BaseRequest // 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 实例名称 NewName *string `json:"NewName,omitempty" name:"NewName"` }
func NewRenameInstanceRequest ¶
func NewRenameInstanceRequest() (request *RenameInstanceRequest)
func (*RenameInstanceRequest) FromJsonString ¶
func (r *RenameInstanceRequest) FromJsonString(s string) error
func (*RenameInstanceRequest) ToJsonString ¶
func (r *RenameInstanceRequest) ToJsonString() string
type RenameInstanceResponse ¶
type RenameInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRenameInstanceResponse ¶
func NewRenameInstanceResponse() (response *RenameInstanceResponse)
func (*RenameInstanceResponse) FromJsonString ¶
func (r *RenameInstanceResponse) FromJsonString(s string) error
func (*RenameInstanceResponse) ToJsonString ¶
func (r *RenameInstanceResponse) ToJsonString() string
type RenewDBInstancesRequest ¶
type RenewDBInstancesRequest struct { *tchttp.BaseRequest // 一个或多个待操作的实例ID。可通过DescribeInstances接口返回值中的InstanceId获取。每次请求批量实例的上限为100。 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。包年包月实例该参数为必传参数。 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` }
func NewRenewDBInstancesRequest ¶
func NewRenewDBInstancesRequest() (request *RenewDBInstancesRequest)
func (*RenewDBInstancesRequest) FromJsonString ¶
func (r *RenewDBInstancesRequest) FromJsonString(s string) error
func (*RenewDBInstancesRequest) ToJsonString ¶
func (r *RenewDBInstancesRequest) ToJsonString() string
type RenewDBInstancesResponse ¶
type RenewDBInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRenewDBInstancesResponse ¶
func NewRenewDBInstancesResponse() (response *RenewDBInstancesResponse)
func (*RenewDBInstancesResponse) FromJsonString ¶
func (r *RenewDBInstancesResponse) FromJsonString(s string) error
func (*RenewDBInstancesResponse) ToJsonString ¶
func (r *RenewDBInstancesResponse) ToJsonString() string
type ShardInfo ¶
type ShardInfo struct { // 分片已使用容量 UsedVolume *float64 `json:"UsedVolume,omitempty" name:"UsedVolume"` // 分片ID ReplicaSetId *string `json:"ReplicaSetId,omitempty" name:"ReplicaSetId"` // 分片名 ReplicaSetName *string `json:"ReplicaSetName,omitempty" name:"ReplicaSetName"` // 分片内存规格,单位为MB Memory *uint64 `json:"Memory,omitempty" name:"Memory"` // 分片磁盘规格,单位为MB Volume *uint64 `json:"Volume,omitempty" name:"Volume"` // 分片Oplog大小,单位为MB OplogSize *uint64 `json:"OplogSize,omitempty" name:"OplogSize"` // 分片从节点数 SecondaryNum *uint64 `json:"SecondaryNum,omitempty" name:"SecondaryNum"` // 分片物理id RealReplicaSetId *string `json:"RealReplicaSetId,omitempty" name:"RealReplicaSetId"` }
type SlowLogPattern ¶
type SlowLogPattern struct { // 慢日志模式 Pattern *string `json:"Pattern,omitempty" name:"Pattern"` // 最大执行时间 MaxTime *uint64 `json:"MaxTime,omitempty" name:"MaxTime"` // 平均执行时间 AverageTime *uint64 `json:"AverageTime,omitempty" name:"AverageTime"` // 该模式慢日志条数 Total *uint64 `json:"Total,omitempty" name:"Total"` }
type SpecItem ¶
type SpecItem struct { // 规格信息标识 SpecCode *string `json:"SpecCode,omitempty" name:"SpecCode"` // 规格有效标志,取值:0-停止售卖,1-开放售卖 Status *uint64 `json:"Status,omitempty" name:"Status"` // 规格有效标志,取值:0-停止售卖,1-开放售卖 Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"` // 内存规格,单位为MB Memory *uint64 `json:"Memory,omitempty" name:"Memory"` // 默认磁盘规格,单位MB DefaultStorage *uint64 `json:"DefaultStorage,omitempty" name:"DefaultStorage"` // 最大磁盘规格,单位MB MaxStorage *uint64 `json:"MaxStorage,omitempty" name:"MaxStorage"` // 最小磁盘规格,单位MB MinStorage *uint64 `json:"MinStorage,omitempty" name:"MinStorage"` // 可承载qps信息 Qps *uint64 `json:"Qps,omitempty" name:"Qps"` // 连接数限制 Conns *uint64 `json:"Conns,omitempty" name:"Conns"` // 实例mongodb版本信息 MongoVersionCode *string `json:"MongoVersionCode,omitempty" name:"MongoVersionCode"` // 实例mongodb版本号 MongoVersionValue *uint64 `json:"MongoVersionValue,omitempty" name:"MongoVersionValue"` // 实例mongodb版本号(短) Version *string `json:"Version,omitempty" name:"Version"` // 存储引擎 EngineName *string `json:"EngineName,omitempty" name:"EngineName"` // 集群类型,取值:1-分片集群,0-副本集集群 ClusterType *uint64 `json:"ClusterType,omitempty" name:"ClusterType"` // 最小副本集从节点数 MinNodeNum *uint64 `json:"MinNodeNum,omitempty" name:"MinNodeNum"` // 最大副本集从节点数 MaxNodeNum *uint64 `json:"MaxNodeNum,omitempty" name:"MaxNodeNum"` // 最小分片数 MinReplicateSetNum *uint64 `json:"MinReplicateSetNum,omitempty" name:"MinReplicateSetNum"` // 最大分片数 MaxReplicateSetNum *uint64 `json:"MaxReplicateSetNum,omitempty" name:"MaxReplicateSetNum"` // 最小分片从节点数 MinReplicateSetNodeNum *uint64 `json:"MinReplicateSetNodeNum,omitempty" name:"MinReplicateSetNodeNum"` // 最大分片从节点数 MaxReplicateSetNodeNum *uint64 `json:"MaxReplicateSetNodeNum,omitempty" name:"MaxReplicateSetNodeNum"` // 机器类型,取值:0-HIO,4-HIO10G MachineType *string `json:"MachineType,omitempty" name:"MachineType"` }