model

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddReadonlyNodeRequest

type AddReadonlyNodeRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	Body *AddReadonlyNodeRequestBody `json:"body,omitempty"`
}

AddReadonlyNodeRequest Request Object

func (AddReadonlyNodeRequest) String

func (o AddReadonlyNodeRequest) String() string

type AddReadonlyNodeRequestBody

type AddReadonlyNodeRequestBody struct {

	// 资源规格编码。获取方法请参见[查询数据库规格](x-wc://file=zh-cn_topic_0000001321087266.xml)中参数“spec_code”的值。  示例:dds.mongodb.c6.xlarge.2.shard
	SpecCode string `json:"spec_code"`

	// 待新增只读节点个数。 取值范围:1-5。
	Num int32 `json:"num"`

	// 同步延迟时间。取值范围:0~1200毫秒。默认取值为0。
	Delay *int32 `json:"delay,omitempty"`

	// 扩容包年包月实例的存储容量时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 - true,表示自动从账户中支付。 - false,表示手动从账户中支付,默认为该方式。
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}

func (AddReadonlyNodeRequestBody) String

type AddReadonlyNodeResponse

type AddReadonlyNodeResponse struct {

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 订单ID,仅扩容包年包月实例的节点数量时返回该参数。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddReadonlyNodeResponse Response Object

func (AddReadonlyNodeResponse) String

func (o AddReadonlyNodeResponse) String() string

type AddShardingNodeRequest

type AddShardingNodeRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *EnlargeInstanceRequestBody `json:"body,omitempty"`
}

AddShardingNodeRequest Request Object

func (AddShardingNodeRequest) String

func (o AddShardingNodeRequest) String() string

type AddShardingNodeResponse

type AddShardingNodeResponse struct {

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 订单ID,仅扩容包年包月实例的节点数量时返回该参数。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddShardingNodeResponse Response Object

func (AddShardingNodeResponse) String

func (o AddShardingNodeResponse) String() string

type AddShardingNodeVolumeOption

type AddShardingNodeVolumeOption struct {

	// 指定新增的所有shard组的磁盘容量。取值范围:10GB~2000GB。
	Size string `json:"size"`
}

func (AddShardingNodeVolumeOption) String

type ApiVersion

type ApiVersion struct {

	// API版本号。
	Id string `json:"id"`

	// 对应API的链接信息,v3版本该字段为[]。
	Links []Links `json:"links"`

	// 版本状态。 取值为“CURRENT”,表示该版本目前已对外公布。
	Status string `json:"status"`

	// API版本的子版本信息。
	Version string `json:"version"`

	// API版本的最小版本号。
	MinVersion string `json:"min_version"`

	// 版本更新时间。 格式为“yyyy-mm-dd Thh:mm:ssZ”。 其中,T指某个时间的开始,Z指UTC时间。
	Updated string `json:"updated"`
}

ApiVersion API版本详细信息列表。

func (ApiVersion) String

func (o ApiVersion) String() string

type ApplicableInstancesInfo

type ApplicableInstancesInfo struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 实例名称。
	InstanceName string `json:"instance_name"`

	// 节点组信息或节点信息的列表对象。  当参数模板是集群类型时,如果是shard组或者config组的参数模板,则可应用到的是对应类型的节点组,如果是mongos组的参数模板,则可应用到的是对应类型的的节点。  当参数模板是副本集或单节点类型时,直接应用到对应实例。  例如:一个mongos参数模板可应用到一个或多个mongos节点。
	Entities []EntityInfo `json:"entities"`
}

ApplicableInstancesInfo 可被参数模板应用的实例信息

func (ApplicableInstancesInfo) String

func (o ApplicableInstancesInfo) String() string

type ApplyConfigurationRequestBody

type ApplyConfigurationRequestBody struct {

	// 实例ID或组ID或节点ID的列表对象。可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。 - 当变更的实例类型是集群,如果变更的是shard组或者config组的参数模板,传值为组ID。如果变更的是mongos节点的参数模板,传值为节点ID。 - 当变更的实例类型是副本集或单节点,传值为实例ID。
	EntityIds []string `json:"entity_ids"`
}

func (ApplyConfigurationRequestBody) String

type ApplyHistoryInfo

type ApplyHistoryInfo struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 实例名称。
	InstanceName string `json:"instance_name"`

	// 应用时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	AppliedAt string `json:"applied_at"`

	// 应用结果。 SUCCESS:应用成功,FAILED:应用失败。
	ApplyResult string `json:"apply_result"`

	// 失败原因。
	FailureReason *string `json:"failure_reason,omitempty"`
}

func (ApplyHistoryInfo) String

func (o ApplyHistoryInfo) String() string

type AttachEipRequest

type AttachEipRequest struct {

	// 需要绑定公网IP的节点ID。集群实例选择mongos节点,副本集实例选择primary或者secondary节点。
	NodeId string `json:"node_id"`

	Body *AttachEipRequestBody `json:"body,omitempty"`
}

AttachEipRequest Request Object

func (AttachEipRequest) String

func (o AttachEipRequest) String() string

type AttachEipRequestBody

type AttachEipRequestBody struct {

	// 公网IP的ID。
	PublicIpId string `json:"public_ip_id"`

	// 公网IP。
	PublicIp string `json:"public_ip"`
}

func (AttachEipRequestBody) String

func (o AttachEipRequestBody) String() string

type AttachEipResponse

type AttachEipResponse struct {

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 节点ID。
	NodeId *string `json:"node_id,omitempty"`

	// 节点名称。
	NodeName *string `json:"node_name,omitempty"`

	// 公网IP的ID。
	PublicIpId *string `json:"public_ip_id,omitempty"`

	// 公网IP。
	PublicIp       *string `json:"public_ip,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AttachEipResponse Response Object

func (AttachEipResponse) String

func (o AttachEipResponse) String() string

type AttachInternalIpRequest

type AttachInternalIpRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *AttachInternalIpRequestBody `json:"body,omitempty"`
}

AttachInternalIpRequest Request Object

func (AttachInternalIpRequest) String

func (o AttachInternalIpRequest) String() string

type AttachInternalIpRequestBody

type AttachInternalIpRequestBody struct {

	// 节点ID。
	NodeId string `json:"node_id"`

	// 新的Ip需要为用户可用vpc中的网段。只支持IPV4。
	NewIp string `json:"new_ip"`
}

func (AttachInternalIpRequestBody) String

type AttachInternalIpResponse

type AttachInternalIpResponse struct {

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 节点ID。
	NodeId *string `json:"node_id,omitempty"`

	// 新的内网IP。
	NewIp          *string `json:"new_ip,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AttachInternalIpResponse Response Object

func (AttachInternalIpResponse) String

func (o AttachInternalIpResponse) String() string

type Az2Migrate

type Az2Migrate struct {

	// 可用区ID。
	Code string `json:"code"`

	// 可用区描述。
	Description string `json:"description"`

	// 当前可用区的的状态。 - ENABLED,表示该可用区(组合)可用。 - DISABLED,表示该可用区(组合)不可用。
	Status string `json:"status"`
}

Az2Migrate 规格信息。

func (Az2Migrate) String

func (o Az2Migrate) String() string

type BackupDatabase

type BackupDatabase struct {

	// 数据库引擎。 取值:DDS-Community。
	Type string `json:"type"`

	// 数据库版本。取值:“3.2”、“3.4”或“4.0”。
	Version string `json:"version"`
}

func (BackupDatabase) String

func (o BackupDatabase) String() string

type BackupForList

type BackupForList struct {

	// 备份ID。
	Id string `json:"id"`

	// 备份名称。
	Name string `json:"name"`

	// 备份所属的实例ID。
	InstanceId string `json:"instance_id"`

	// 备份所属的实例名称。
	InstanceName string `json:"instance_name"`

	Datastore *BackupDatabase `json:"datastore"`

	// 备份类型。 - 取值为“Auto”,表示自动全量备份。 - 取值为“Manual”,表示手动全量备份。 - 取值为“Incremental”,表示自动增量备份。
	Type BackupForListType `json:"type"`

	// 备份开始时间,格式为“yyyy-mm-dd hh:mm:ss”。该时间为UTC时间。
	BeginTime string `json:"begin_time"`

	// 备份结束时间,格式为“yyyy-mm-dd hh:mm:ss”。该时间为UTC时间。
	EndTime string `json:"end_time"`

	// 备份状态。 取值: - BUILDING:备份中。 - COMPLETED:备份完成。 - FAILED:备份失败。 - DISABLED:备份删除中。
	Status BackupForListStatus `json:"status"`

	// 备份大小,单位:KB。
	Size int64 `json:"size"`

	// 备份描述。
	Description string `json:"description"`
}

BackupForList 备份信息。

func (BackupForList) String

func (o BackupForList) String() string

type BackupForListStatus

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

func (BackupForListStatus) MarshalJSON

func (c BackupForListStatus) MarshalJSON() ([]byte, error)

func (*BackupForListStatus) UnmarshalJSON

func (c *BackupForListStatus) UnmarshalJSON(b []byte) error

func (BackupForListStatus) Value

func (c BackupForListStatus) Value() string

type BackupForListStatusEnum

type BackupForListStatusEnum struct {
	BUILDING  BackupForListStatus
	COMPLETED BackupForListStatus
	FAILED    BackupForListStatus
	DELETING  BackupForListStatus
}

func GetBackupForListStatusEnum

func GetBackupForListStatusEnum() BackupForListStatusEnum

type BackupForListType

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

func (BackupForListType) MarshalJSON

func (c BackupForListType) MarshalJSON() ([]byte, error)

func (*BackupForListType) UnmarshalJSON

func (c *BackupForListType) UnmarshalJSON(b []byte) error

func (BackupForListType) Value

func (c BackupForListType) Value() string

type BackupForListTypeEnum

type BackupForListTypeEnum struct {
	AUTO        BackupForListType
	MANUAL      BackupForListType
	FRAGMENT    BackupForListType
	INCREMENTAL BackupForListType
}

func GetBackupForListTypeEnum

func GetBackupForListTypeEnum() BackupForListTypeEnum

type BackupPolicy

type BackupPolicy struct {

	// 指定已生成的备份文件可以保存的天数。 取值范围:0~732。取0值,表示关闭自动备份策略。
	KeepDays string `json:"keep_days"`

	// 备份时间段。自动备份将在该时间段内触发。开启自动备份策略时,该参数必选;关闭自动备份策略时,不传该参数。 取值范围:格式必须为hh:mm-HH:MM,且有效,当前时间指UTC时间。 - HH取值必须比hh大1。 - mm和MM取值必须相同,且取值必须为00、15、30或45。 取值示例: - 08:15-09:15 - 23:00-00:00
	StartTime *string `json:"start_time,omitempty"`

	// 备份周期配置。自动备份将在每星期指定的天进行。取值范围:格式为半角逗号隔开的数字,数字代表星期。保留天数取值不同,备份周期约束如下: - 0天,不传该参数。 - 1~6天,备份周期全选,取值为:1,2,3,4,5,6,7。 - 7~732天,备份周期至少选择一周中的一天。示例:1,2,3,4。
	Period *string `json:"period,omitempty"`
}

BackupPolicy 备份策略对象,包括备份保留的天数和备份开始时间。

func (BackupPolicy) String

func (o BackupPolicy) String() string

type BackupPolicyItem

type BackupPolicyItem struct {

	// 备份文件可以保存的天数。
	KeepDays int32 `json:"keep_days"`

	// 备份时间段。自动备份将在该时间段内触发。
	StartTime *string `json:"start_time,omitempty"`

	// 备份周期配置。自动备份将在每星期指定的天进行。
	Period *string `json:"period,omitempty"`
}

BackupPolicyItem 备份策略对象,包括备份保留的天数和备份开始时间。

func (BackupPolicyItem) String

func (o BackupPolicyItem) String() string

type BackupStrategy

type BackupStrategy struct {

	// 备份时间段。自动备份将在该时间段内触发。 取值范围:非空,格式必须为hh:mm-HH:MM且有效,当前时间指UTC时间。   - HH取值必须比hh大1。   - mm和MM取值必须相同,且取值必须为00、15、30或45。
	StartTime string `json:"start_time"`

	// 指定已生成的备份文件可以保存的天数。 取值范围:0~732。   - 取0值,表示不设置自动备份策略。   - 不传该参数,默认开启自动备份策略,备份文件默认保存7天。
	KeepDays *string `json:"keep_days,omitempty"`
}

BackupStrategy 高级备份策略。

func (BackupStrategy) String

func (o BackupStrategy) String() string

type BackupStrategyForItemResponse

type BackupStrategyForItemResponse struct {

	// 备份时间段。自动备份将在该时间段内触发。当前时间指UTC时间。
	StartTime string `json:"start_time"`

	// 已生成备份文件可以保存的天数。取值范围:0~732。
	KeepDays int32 `json:"keep_days"`
}

BackupStrategyForItemResponse 自动备份策略。

func (BackupStrategyForItemResponse) String

type BalancerActiveWindow

type BalancerActiveWindow struct {

	// 活动时间窗开始时间。
	StartTime *string `json:"start_time,omitempty"`

	// 活动时间窗结束时间。
	StopTime *string `json:"stop_time,omitempty"`
}

BalancerActiveWindow 活动时间窗设置。

func (BalancerActiveWindow) String

func (o BalancerActiveWindow) String() string

type BatchOperateInstanceTagRequestBody

type BatchOperateInstanceTagRequestBody struct {

	// 操作标识。取值: - create,表示添加标签。 - delete,表示删除标签。
	Action BatchOperateInstanceTagRequestBodyAction `json:"action"`

	// 标签列表。
	Tags []TagItem `json:"tags"`
}

func (BatchOperateInstanceTagRequestBody) String

type BatchOperateInstanceTagRequestBodyAction

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

func (BatchOperateInstanceTagRequestBodyAction) MarshalJSON

func (*BatchOperateInstanceTagRequestBodyAction) UnmarshalJSON

func (c *BatchOperateInstanceTagRequestBodyAction) UnmarshalJSON(b []byte) error

func (BatchOperateInstanceTagRequestBodyAction) Value

type BatchOperateInstanceTagRequestBodyActionEnum

type BatchOperateInstanceTagRequestBodyActionEnum struct {
	CREATE BatchOperateInstanceTagRequestBodyAction
	DELETE BatchOperateInstanceTagRequestBodyAction
}

func GetBatchOperateInstanceTagRequestBodyActionEnum

func GetBatchOperateInstanceTagRequestBodyActionEnum() BatchOperateInstanceTagRequestBodyActionEnum

type BatchTagActionRequest

type BatchTagActionRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *BatchOperateInstanceTagRequestBody `json:"body,omitempty"`
}

BatchTagActionRequest Request Object

func (BatchTagActionRequest) String

func (o BatchTagActionRequest) String() string

type BatchTagActionResponse

type BatchTagActionResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchTagActionResponse Response Object

func (BatchTagActionResponse) String

func (o BatchTagActionResponse) String() string

type CancelEipRequest

type CancelEipRequest struct {

	// 节点ID。
	NodeId string `json:"node_id"`
}

CancelEipRequest Request Object

func (CancelEipRequest) String

func (o CancelEipRequest) String() string

type CancelEipResponse

type CancelEipResponse struct {

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 节点ID。
	NodeId *string `json:"node_id,omitempty"`

	// 节点名称。
	NodeName       *string `json:"node_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CancelEipResponse Response Object

func (CancelEipResponse) String

func (o CancelEipResponse) String() string

type CertInfo

type CertInfo struct {

	// 证书种类
	Category CertInfoCategory `json:"category"`

	// 证书下载链接
	DownloadLink string `json:"download_link"`
}

func (CertInfo) String

func (o CertInfo) String() string

type CertInfoCategory

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

func (CertInfoCategory) MarshalJSON

func (c CertInfoCategory) MarshalJSON() ([]byte, error)

func (*CertInfoCategory) UnmarshalJSON

func (c *CertInfoCategory) UnmarshalJSON(b []byte) error

func (CertInfoCategory) Value

func (c CertInfoCategory) Value() string

type CertInfoCategoryEnum

type CertInfoCategoryEnum struct {
	INTERNATIONAL CertInfoCategory
	NATIONAL      CertInfoCategory
}

func GetCertInfoCategoryEnum

func GetCertInfoCategoryEnum() CertInfoCategoryEnum

type ChangeOpsWindowRequest

type ChangeOpsWindowRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	Body *OpsWindowRequestBody `json:"body,omitempty"`
}

ChangeOpsWindowRequest Request Object

func (ChangeOpsWindowRequest) String

func (o ChangeOpsWindowRequest) String() string

type ChangeOpsWindowResponse

type ChangeOpsWindowResponse struct {
	HttpStatusCode int `json:"-"`
}

ChangeOpsWindowResponse Response Object

func (ChangeOpsWindowResponse) String

func (o ChangeOpsWindowResponse) String() string

type ChargeInfoOption

type ChargeInfoOption struct {

	// 计费模式。 取值范围:   - prePaid:预付费,即包年/包月。   - postPaid:后付费,即按需付费。
	ChargeMode string `json:"charge_mode"`

	// 订购周期类型。 “charge_mode”为“prePaid”时生效,且为必选值。 取值范围:   - month:包月。   - year:包年。
	PeriodType *string `json:"period_type,omitempty"`

	// “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围:   - 当“period_type”为“month”时,取值为1~9。   - 当“period_type”为“year”时,取值为1~3
	PeriodNum *int32 `json:"period_num,omitempty"`

	// 创建包周期实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 取值范围:   - true,表示自动续订。   - false,表示不自动续订,默认为该方式。
	IsAutoRenew *bool `json:"is_auto_renew,omitempty"`

	// 创建包周期实例时可指定,表示是否自动从账户中支付,该字段不影响自动续订的支付方式。 取值范围:   - true,表示自动从账户中支付   - false,表示手动从账户中支付,默认为该支付方式。
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}

ChargeInfoOption 计费类型信息,支持包年包月和按需计费,默认为按需计费。

func (ChargeInfoOption) String

func (o ChargeInfoOption) String() string

type ChargeInfoResult

type ChargeInfoResult struct {

	// 计费模式。 取值范围:   - prePaid:预付费,即包年/包月。   - postPaid:后付费,即按需付费。
	ChargeMode *string `json:"charge_mode,omitempty"`

	// 订购周期类型。 “charge_mode”为“prePaid”时生效,且为必选值。 取值范围:   - month:包月。   - year:包年。
	PeriodType *string `json:"period_type,omitempty"`

	// “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围:   - 当“period_type”为“month”时,取值为1~9。   - 当“period_type”为“year”时,取值为1~3
	PeriodNum *int32 `json:"period_num,omitempty"`

	// 创建包周期实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 取值范围:   - true,表示自动续订。   - false,表示不自动续订,默认为该方式。
	IsAutoRenew *bool `json:"is_auto_renew,omitempty"`

	// 创建包周期实例时可指定,表示是否自动从账户中支付,该字段不影响自动续订的支付方式。 取值范围:   - true,表示自动从账户中支付   - false,表示手动从账户中支付,默认为该支付方式。
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}

ChargeInfoResult 付费方式信息,与请求参数相同。

func (ChargeInfoResult) String

func (o ChargeInfoResult) String() string

type CheckPasswordRequest

type CheckPasswordRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *CheckPasswordRequestBody `json:"body,omitempty"`
}

CheckPasswordRequest Request Object

func (CheckPasswordRequest) String

func (o CheckPasswordRequest) String() string

type CheckPasswordRequestBody

type CheckPasswordRequestBody struct {

	// 数据库密码。取值范围:长度为8~32位,必须是大写字母(A~Z)、小写字母(a~z)、数字(0~9)、特殊字符~!@#%^*-_=+?的组合。
	UserPwd string `json:"user_pwd"`

	// 数据库用户名称,默认为“rwuser”。取值范围:长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、中划线、下划线和点。
	UserName *string `json:"user_name,omitempty"`

	// 用户所在的数据库,默认为“admin”。取值范围:长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、下划线。
	DbName *string `json:"db_name,omitempty"`
}

func (CheckPasswordRequestBody) String

func (o CheckPasswordRequestBody) String() string

type CheckPasswordResponse

type CheckPasswordResponse struct {
	HttpStatusCode int `json:"-"`
}

CheckPasswordResponse Response Object

func (CheckPasswordResponse) String

func (o CheckPasswordResponse) String() string

type CheckWeakPasswordRequest

type CheckWeakPasswordRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	Body *WeakPasswordCheckRequestBody `json:"body,omitempty"`
}

CheckWeakPasswordRequest Request Object

func (CheckWeakPasswordRequest) String

func (o CheckWeakPasswordRequest) String() string

type CheckWeakPasswordResponse

type CheckWeakPasswordResponse struct {

	// 是否弱密码,true:是弱密码 false:不是弱密码
	Weak           *bool `json:"weak,omitempty"`
	HttpStatusCode int   `json:"-"`
}

CheckWeakPasswordResponse Response Object

func (CheckWeakPasswordResponse) String

func (o CheckWeakPasswordResponse) String() string

type ClientNetworkRequestBody

type ClientNetworkRequestBody struct {

	// 客户端所在网段。 跨网段访问配置只有在客户端与副本集实例部署在不同网段的情况下才需要配置,例如访问副本集的客户端所在网段为192.168.0.0/16,副本集所在的网段为172.16.0.0/24,则需要添加跨网段配置192.168.0.0/16才能正常访问。只有副本集有该功能。 注意:源端ECS连接实例的前提是与实例节点网络通信正常,如果网络不通,可以参考对等连接进行相关配置。
	ClientNetworkRanges []string `json:"client_network_ranges"`
}

func (ClientNetworkRequestBody) String

func (o ClientNetworkRequestBody) String() string

type CompareConfigurationRequest

type CompareConfigurationRequest struct {
	Body *DiffConfigurationRequest `json:"body,omitempty"`
}

CompareConfigurationRequest Request Object

func (CompareConfigurationRequest) String

type CompareConfigurationResponse

type CompareConfigurationResponse struct {

	// 参数模板之间的区别集合。
	Differences    *[]DiffDetails `json:"differences,omitempty"`
	HttpStatusCode int            `json:"-"`
}

CompareConfigurationResponse Response Object

func (CompareConfigurationResponse) String

type ConfigurationParametersResult

type ConfigurationParametersResult struct {

	// 参数名称。
	Name string `json:"name"`

	// 参数值。
	Value string `json:"value"`

	// 参数描述。
	Description string `json:"description"`

	// 参数类型,取值为“integer”,“string”,“boolean”,“float”或“list”。
	Type string `json:"type"`

	// 参数值范围,如integer取值0-1、boolean取值true|false等。
	ValueRange string `json:"value_range"`

	// 参数是否需要重启。 - 取值为“true”,需要重启。 - 取值为“false”,不需要重启。
	RestartRequired bool `json:"restart_required"`

	// 是否只读。 - 取值为“false”,非只读参数。 - 取值为“true”,只读参数。
	Readonly bool `json:"readonly"`
}

func (ConfigurationParametersResult) String

type CopyConfigurationRequest

type CopyConfigurationRequest struct {

	// 被复制的参数模板ID。
	ConfigId string `json:"config_id"`

	Body *CopyConfigurationRequestBody `json:"body,omitempty"`
}

CopyConfigurationRequest Request Object

func (CopyConfigurationRequest) String

func (o CopyConfigurationRequest) String() string

type CopyConfigurationRequestBody

type CopyConfigurationRequestBody struct {

	// 复制后的参数模板模板名称
	Name string `json:"name"`

	// 参数模板模板描述。
	Description *string `json:"description,omitempty"`
}

func (CopyConfigurationRequestBody) String

type CopyConfigurationResponse

type CopyConfigurationResponse struct {

	// 复制后的参数模板ID。
	ConfigurationId *string `json:"configuration_id,omitempty"`
	HttpStatusCode  int     `json:"-"`
}

CopyConfigurationResponse Response Object

func (CopyConfigurationResponse) String

func (o CopyConfigurationResponse) String() string

type CreateConfigurationRequest

type CreateConfigurationRequest struct {
	Body *CreateConfigurationRequestBody `json:"body,omitempty"`
}

CreateConfigurationRequest Request Object

func (CreateConfigurationRequest) String

type CreateConfigurationRequestBody

type CreateConfigurationRequestBody struct {

	// 参数模板名称。 取值范围:长度1到64位之间,区分大小写字母,可包含字母、数字、中划线、下划线或句点,不能包含其他特殊字符。
	Name string `json:"name"`

	// 参数模板描述。 取值范围:长度不超过256位,且不能包含回车和>!<\"&'=特殊字符。默认为空
	Description string `json:"description"`

	// 参数名和参数值映射关系。用户可以基于默认参数模板的参数,自定义的参数值。
	ParameterValues map[string]string `json:"parameter_values"`

	Datastore *DatastoreResult `json:"datastore"`
}

func (CreateConfigurationRequestBody) String

type CreateConfigurationResponse

type CreateConfigurationResponse struct {
	Configuration  *ParamGroupInfoResult `json:"configuration,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

CreateConfigurationResponse Response Object

func (CreateConfigurationResponse) String

type CreateDatabaseRoleRequest

type CreateDatabaseRoleRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *CreateDatabaseRoleRequestBody `json:"body,omitempty"`
}

CreateDatabaseRoleRequest Request Object

func (CreateDatabaseRoleRequest) String

func (o CreateDatabaseRoleRequest) String() string

type CreateDatabaseRoleRequestBody

type CreateDatabaseRoleRequestBody struct {

	// 创建角色名称。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、中划线、下划线和点。
	RoleName string `json:"role_name"`

	// 角色所在的数据库名称,默认admin。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、下划线。
	DbName *string `json:"db_name,omitempty"`

	// 新用户所拥有的角色。
	Roles *[]RolesOption `json:"roles,omitempty"`
}

func (CreateDatabaseRoleRequestBody) String

type CreateDatabaseRoleResponse

type CreateDatabaseRoleResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateDatabaseRoleResponse Response Object

func (CreateDatabaseRoleResponse) String

type CreateDatabaseUserRequest

type CreateDatabaseUserRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *CreateDatabaseUserRequestBody `json:"body,omitempty"`
}

CreateDatabaseUserRequest Request Object

func (CreateDatabaseUserRequest) String

func (o CreateDatabaseUserRequest) String() string

type CreateDatabaseUserRequestBody

type CreateDatabaseUserRequestBody struct {

	// 数据库用户名称。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、中划线、下划线和点。
	UserName string `json:"user_name"`

	// 数据库用户密码。 - 长度为8~32位,必须是大写字母(A~Z)、小写字母(a~z)、数字(0~9)、特殊字符~!@#%^*-_=+?的组合。 - 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。
	UserPwd string `json:"user_pwd"`

	// 新用户所在的数据库,默认为“admin”。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、下划线。
	DbName *string `json:"db_name,omitempty"`

	// 新用户所拥有的角色。 roles限制了该帐户所具有的权限。若指定一个空数组,表示该帐户不具有任何权限。
	Roles []RolesOption `json:"roles"`
}

func (CreateDatabaseUserRequestBody) String

type CreateDatabaseUserResponse

type CreateDatabaseUserResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateDatabaseUserResponse Response Object

func (CreateDatabaseUserResponse) String

type CreateInstanceConfigurationsOption

type CreateInstanceConfigurationsOption struct {

	// 节点类型。 取值:   - 集群实例包含mongos、shard和config节点,各节点下该参数取值分别为“mongos”、“shard”和“config”。   - 副本集实例下该参数取值为“replica”。   - 单节点实例下该参数取值为“single”。
	Type CreateInstanceConfigurationsOptionType `json:"type"`

	// 参数组id。
	ConfigurationId string `json:"configuration_id"`
}

CreateInstanceConfigurationsOption 参数组配置信息。

func (CreateInstanceConfigurationsOption) String

type CreateInstanceConfigurationsOptionType

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

func (CreateInstanceConfigurationsOptionType) MarshalJSON

func (c CreateInstanceConfigurationsOptionType) MarshalJSON() ([]byte, error)

func (*CreateInstanceConfigurationsOptionType) UnmarshalJSON

func (c *CreateInstanceConfigurationsOptionType) UnmarshalJSON(b []byte) error

func (CreateInstanceConfigurationsOptionType) Value

type CreateInstanceFlavorOption

type CreateInstanceFlavorOption struct {

	// 节点类型。 取值:   - 集群实例包含mongos、shard和config节点,各节点下该参数取值分别为“mongos”、“shard”和“config”。   - 副本集实例下该参数取值为“replica”。   - 单节点实例下该参数取值为“single”。
	Type CreateInstanceFlavorOptionType `json:"type"`

	// 节点数量。 取值:   - 集群实例下“mongos”类型的节点数量可取2~16。   - 集群实例下“shard”类型的组数量可取2~16。   - “shard”类型的组数量可取2~16。   - “config”类型的组数量只能取1。   - “replica”类型的组数量可取3,5,7。   - “single”类型的节点数量只能取1。
	Num string `json:"num"`

	// 磁盘类型。 取值:ULTRAHIGH,表示SSD。   - 对于集群实例的shard和config节点、副本集、以及单节点实例,该参数有效。mongos节点不涉及选择磁盘,该参数无意义。
	Storage *string `json:"storage,omitempty"`

	// 磁盘大小。 取值:必须为10的整数倍。单位为GB。   - 对于集群实例,shard组可取10GB~2000GB,config组仅可取20GB。mongos节点不涉及选择磁盘,该参数无意义。   - 对于副本集实例,可取10GB~2000GB。   - 对于单节点实例,可取10GB~1000GB。
	Size *string `json:"size,omitempty"`

	// 资源规格编码
	SpecCode string `json:"spec_code"`
}

CreateInstanceFlavorOption 实例规格详情。

func (CreateInstanceFlavorOption) String

type CreateInstanceFlavorOptionType

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

func (CreateInstanceFlavorOptionType) MarshalJSON

func (c CreateInstanceFlavorOptionType) MarshalJSON() ([]byte, error)

func (*CreateInstanceFlavorOptionType) UnmarshalJSON

func (c *CreateInstanceFlavorOptionType) UnmarshalJSON(b []byte) error

func (CreateInstanceFlavorOptionType) Value

type CreateInstanceRequest

type CreateInstanceRequest struct {
	Body *CreateInstanceRequestBody `json:"body,omitempty"`
}

CreateInstanceRequest Request Object

func (CreateInstanceRequest) String

func (o CreateInstanceRequest) String() string

type CreateInstanceRequestBody

type CreateInstanceRequestBody struct {

	// 实例名称。用于表示实例的名称,用于表示实例的名称,允许和已有名称重复。 取值范围:长度为4~64位,必须以字母开头(A~Z或a~z),区分大小写,可以包含字母、数字(0~9)、中划线(-)或者下划线(_),不能包含其他特殊字符。
	Name string `json:"name"`

	Datastore *Datastore `json:"datastore"`

	// - 区域ID - 取值:非空。
	Region string `json:"region"`

	// 可用区ID。非专属云用户可以选择多个AZ,创建跨AZ的集群。专属云用户暂不支持创建跨AZ的集群。取值:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
	AvailabilityZone string `json:"availability_zone"`

	// 虚拟私有云ID。获取方法请参见《虚拟私有云API参考》中“VPC”的内容。 取值:非空,字符长度校验,严格UUID正则校验。
	VpcId string `json:"vpc_id"`

	// 子网ID。获取方法请参见《虚拟私有云API参考》中“子网”的内容。
	SubnetId string `json:"subnet_id"`

	// 指定实例所属的安全组ID。 获取方法请参见《虚拟私有云API参考》中“安全组”的内容。
	SecurityGroupId string `json:"security_group_id"`

	// 数据库访问端口。 取值范围:2100~9500,以及27017、27018、27019。 不传该参数时,创建实例的访问端口默认为8635。
	Port *string `json:"port,omitempty"`

	// 数据库密码。 取值范围:长度为8~32位,必须是大写字母(A~Z)、小写字母(a~z)、数字(0~9)、特殊字符~!@#%^*-_=+?的组合。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。
	Password *string `json:"password,omitempty"`

	// 磁盘加密时的密钥ID,严格UUID正则校验。 不传该参数时,表示不进行磁盘加密。
	DiskEncryptionId *string `json:"disk_encryption_id,omitempty"`

	// 实例类型。支持集群、副本集、以及单节点。 取值   - Sharding   - ReplicaSet   - Single
	Mode string `json:"mode"`

	// 参数组配置信息。
	Configurations *[]CreateInstanceConfigurationsOption `json:"configurations,omitempty"`

	// 实例规格详情。
	Flavor []CreateInstanceFlavorOption `json:"flavor"`

	BackupStrategy *BackupStrategy `json:"backup_strategy,omitempty"`

	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// SSL开关选项。 取值: - 取“0”,表示DDS实例默认不启用SSL连接。 - 取“1”,表示DDS实例默认启用SSL连接。 - 不传该参数时,默认启用SSL连接。
	SslOption *string `json:"ssl_option,omitempty"`

	// Dec用户专属存储ID,默认为空。仅Dec用户支持该参数。
	DssPoolId *string `json:"dss_pool_id,omitempty"`

	// 创建新实例设置云服务器组关联的策略名称列表,仅专属云创建实例时有效。 取值    - 取“anti-affinity”,表示DDS实例开启反亲和部署,反亲和部署是出于高可用性考虑,将您的Primary、Secondary和Hidden节点分别创建在不同的物理机上。当前仅支持该值,不传该值默认不开启反亲和部署。
	ServerGroupPolicies *[]string `json:"server_group_policies,omitempty"`

	// 标签列表。单个实例总标签数上限20个。
	Tags *[]TagWithKeyValue `json:"tags,omitempty"`

	ChargeInfo *ChargeInfoOption `json:"charge_info,omitempty"`
}

CreateInstanceRequestBody 实例信息。

func (CreateInstanceRequestBody) String

func (o CreateInstanceRequestBody) String() string

type CreateInstanceResponse

type CreateInstanceResponse struct {

	// 实例ID。
	Id *string `json:"id,omitempty"`

	Datastore *Datastore `json:"datastore,omitempty"`

	// 实例名称,与请求参数相同。
	Name *string `json:"name,omitempty"`

	// 创建时间为本地时间,格式为“yyyy-mm-dd hh:mm:ss”。
	Created *string `json:"created,omitempty"`

	// 实例状态,取值为“creating”。
	Status *string `json:"status,omitempty"`

	// 区域ID,与请求参数相同。
	Region *string `json:"region,omitempty"`

	// 可用区ID,与请求参数相同。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 虚拟私有云ID,与请求参数相同。
	VpcId *string `json:"vpc_id,omitempty"`

	// 子网ID,与请求参数相同。
	SubnetId *string `json:"subnet_id,omitempty"`

	// 实例所属的安全组ID,与请求参数相同。
	SecurityGroupId *string `json:"security_group_id,omitempty"`

	// 数据库访问端口。
	Port *int64 `json:"port,omitempty"`

	// 磁盘加密的密钥ID,与请求参数相同。
	DiskEncryptionId *string `json:"disk_encryption_id,omitempty"`

	// 实例类型,与请求参数相同。
	Mode *string `json:"mode,omitempty"`

	// 参数组配置信息。
	Configurations *[]CreateInstanceConfigurationsOption `json:"configurations,omitempty"`

	// 实例规格详情,与请求参数相同。
	Flavor *[]CreateInstanceFlavorOption `json:"flavor,omitempty"`

	BackupStrategy *BackupStrategy `json:"backup_strategy,omitempty"`

	// 企业项目ID。取值为“0”,表示为default企业项目。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// SSL开关选项,与请求参数相同。
	SslOption *string `json:"ssl_option,omitempty"`

	// 专属存储池ID。
	DssPoolId *string `json:"dss_pool_id,omitempty"`

	// 创建实例的工作流ID。
	JobId *string `json:"job_id,omitempty"`

	// 标签列表,与请求参数相同。
	Tags *[]TagWithKeyValue `json:"tags,omitempty"`

	// 创建实例的订单ID,仅创建包年包月实例时返回该参数。
	OrderId *string `json:"order_id,omitempty"`

	ChargeInfo     *ChargeInfoResult `json:"charge_info,omitempty"`
	HttpStatusCode int               `json:"-"`
}

CreateInstanceResponse Response Object

func (CreateInstanceResponse) String

func (o CreateInstanceResponse) String() string

type CreateIpRequest

type CreateIpRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *CreateIpRequestBody `json:"body,omitempty"`
}

CreateIpRequest Request Object

func (CreateIpRequest) String

func (o CreateIpRequest) String() string

type CreateIpRequestBody

type CreateIpRequestBody struct {

	// 待打开IP开关的对象类型。 - 扩容shard组时,取值为“shard”。 - 扩容config组时,取值为“config”。
	Type string `json:"type"`

	// Shard组ID 注意:   1. 第一次添加Shard/Config IP时,该参数不传。   2. 对于已经添加过Shard IP的实例,需要传入该参数为新扩容的Shard组添加IP。
	TargetId *string `json:"target_id,omitempty"`

	// 打开集群开关设置的密码。 注意:该密码暂不支持修改,请谨慎操作。
	Password string `json:"password"`
}

func (CreateIpRequestBody) String

func (o CreateIpRequestBody) String() string

type CreateIpResponse

type CreateIpResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateIpResponse Response Object

func (CreateIpResponse) String

func (o CreateIpResponse) String() string

type CreateManualBackupOption

type CreateManualBackupOption struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 手动备份名称。 取值范围:长度为4~64位,必须以字母开头(A~Z或a~z),区分大小写,可以包含字母、数字(0~9)、中划线(-)或者下划线(_),不能包含其他特殊字符。
	Name string `json:"name"`

	// 手动备份描述。 取值范围:长度不超过256位,且不能包含>!<\"&'=特殊字符。
	Description *string `json:"description,omitempty"`
}

CreateManualBackupOption 备份参数对象。

func (CreateManualBackupOption) String

func (o CreateManualBackupOption) String() string

type CreateManualBackupRequest

type CreateManualBackupRequest struct {
	Body *CreateManualBackupRequestBody `json:"body,omitempty"`
}

CreateManualBackupRequest Request Object

func (CreateManualBackupRequest) String

func (o CreateManualBackupRequest) String() string

type CreateManualBackupRequestBody

type CreateManualBackupRequestBody struct {
	Backup *CreateManualBackupOption `json:"backup"`
}

func (CreateManualBackupRequestBody) String

type CreateManualBackupResponse

type CreateManualBackupResponse struct {

	// 手动备份的异步任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 手动备份ID。
	BackupId       *string `json:"backup_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateManualBackupResponse Response Object

func (CreateManualBackupResponse) String

type Datastore

type Datastore struct {

	// 数据库版本类型。取值“DDS-Community”。
	Type DatastoreType `json:"type"`

	// 数据库版本。支持3.4、3.2和4.0版本。取值为“3.4”、“3.2”或“4.0”。
	Version string `json:"version"`

	// 存储引擎。支持WiredTiger存储引擎。取值为“wiredTiger”。
	StorageEngine DatastoreStorageEngine `json:"storage_engine"`
}

Datastore 数据库信息。

func (Datastore) String

func (o Datastore) String() string

type DatastoreItem

type DatastoreItem struct {

	// 数据库引擎。
	Type string `json:"type"`

	// 数据库版本号。
	Version string `json:"version"`

	// 是否有补丁版本的数据库支持升级,返回true时可以通过升级补丁接口进行数据库升级,否则不允许升级补丁。
	PatchAvailable bool `json:"patch_available"`
}

DatastoreItem 数据库信息。

func (DatastoreItem) String

func (o DatastoreItem) String() string

type DatastoreResult

type DatastoreResult struct {

	// node_type参数模板节点类型。取值范围: - mongos,表示集群mongos节点类型。 - shard,表示集群shard节点类型。 - config,表示集群config节点类型。 - replica,表示副本集类型。 - single,表示单节点类型。
	NodeType string `json:"node_type"`

	// version数据库版本。DDS引擎取值为3.2, 3.4, 4.0。
	Version string `json:"version"`
}

func (DatastoreResult) String

func (o DatastoreResult) String() string

type DatastoreStorageEngine

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

func (DatastoreStorageEngine) MarshalJSON

func (c DatastoreStorageEngine) MarshalJSON() ([]byte, error)

func (*DatastoreStorageEngine) UnmarshalJSON

func (c *DatastoreStorageEngine) UnmarshalJSON(b []byte) error

func (DatastoreStorageEngine) Value

func (c DatastoreStorageEngine) Value() string

type DatastoreStorageEngineEnum

type DatastoreStorageEngineEnum struct {
	WIRED_TIGER DatastoreStorageEngine
	ROCKS_DB    DatastoreStorageEngine
}

func GetDatastoreStorageEngineEnum

func GetDatastoreStorageEngineEnum() DatastoreStorageEngineEnum

type DatastoreType

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

func (DatastoreType) MarshalJSON

func (c DatastoreType) MarshalJSON() ([]byte, error)

func (*DatastoreType) UnmarshalJSON

func (c *DatastoreType) UnmarshalJSON(b []byte) error

func (DatastoreType) Value

func (c DatastoreType) Value() string

type DatastoreTypeEnum

type DatastoreTypeEnum struct {
	DDS_COMMUNITY DatastoreType
}

func GetDatastoreTypeEnum

func GetDatastoreTypeEnum() DatastoreTypeEnum

type DeleteAuditLogRequest

type DeleteAuditLogRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建
	InstanceId string `json:"instance_id"`

	Body *DeleteAuditLogRequestBody `json:"body,omitempty"`
}

DeleteAuditLogRequest Request Object

func (DeleteAuditLogRequest) String

func (o DeleteAuditLogRequest) String() string

type DeleteAuditLogRequestBody

type DeleteAuditLogRequestBody struct {

	// 文件名列表
	FileNames []string `json:"file_names"`
}

func (DeleteAuditLogRequestBody) String

func (o DeleteAuditLogRequestBody) String() string

type DeleteAuditLogResponse

type DeleteAuditLogResponse struct {

	// 任务ID
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteAuditLogResponse Response Object

func (DeleteAuditLogResponse) String

func (o DeleteAuditLogResponse) String() string

type DeleteConfigurationRequest

type DeleteConfigurationRequest struct {

	// 参数模板ID。
	ConfigId string `json:"config_id"`
}

DeleteConfigurationRequest Request Object

func (DeleteConfigurationRequest) String

type DeleteConfigurationResponse

type DeleteConfigurationResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteConfigurationResponse Response Object

func (DeleteConfigurationResponse) String

type DeleteDatabaseRoleRequest

type DeleteDatabaseRoleRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *DeleteDatabaseRoleRequestBody `json:"body,omitempty"`
}

DeleteDatabaseRoleRequest Request Object

func (DeleteDatabaseRoleRequest) String

func (o DeleteDatabaseRoleRequest) String() string

type DeleteDatabaseRoleRequestBody

type DeleteDatabaseRoleRequestBody struct {

	// 角色名称。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、中划线、下划线和点。
	RoleName string `json:"role_name"`

	// 角色所在的数据库名称。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、下划线。
	DbName string `json:"db_name"`
}

func (DeleteDatabaseRoleRequestBody) String

type DeleteDatabaseRoleResponse

type DeleteDatabaseRoleResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteDatabaseRoleResponse Response Object

func (DeleteDatabaseRoleResponse) String

type DeleteDatabaseUserRequest

type DeleteDatabaseUserRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *DeleteDatabaseUserRequestBody `json:"body,omitempty"`
}

DeleteDatabaseUserRequest Request Object

func (DeleteDatabaseUserRequest) String

func (o DeleteDatabaseUserRequest) String() string

type DeleteDatabaseUserRequestBody

type DeleteDatabaseUserRequestBody struct {

	// 数据库用户名称。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、中划线、下划线和点。
	UserName string `json:"user_name"`

	// 用户所在的数据库。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、下划线。
	DbName string `json:"db_name"`
}

func (DeleteDatabaseUserRequestBody) String

type DeleteDatabaseUserResponse

type DeleteDatabaseUserResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteDatabaseUserResponse Response Object

func (DeleteDatabaseUserResponse) String

type DeleteInstanceRequest

type DeleteInstanceRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`
}

DeleteInstanceRequest Request Object

func (DeleteInstanceRequest) String

func (o DeleteInstanceRequest) String() string

type DeleteInstanceResponse

type DeleteInstanceResponse struct {

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteInstanceResponse Response Object

func (DeleteInstanceResponse) String

func (o DeleteInstanceResponse) String() string

type DeleteManualBackupRequest

type DeleteManualBackupRequest struct {

	// 备份文件ID。
	BackupId string `json:"backup_id"`
}

DeleteManualBackupRequest Request Object

func (DeleteManualBackupRequest) String

func (o DeleteManualBackupRequest) String() string

type DeleteManualBackupResponse

type DeleteManualBackupResponse struct {

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteManualBackupResponse Response Object

func (DeleteManualBackupResponse) String

type DeleteSessionRequest

type DeleteSessionRequest struct {

	// 节点ID。允许查询的节点如下: 集群下面的 mongos节点以及 副本集、单节点实例下面的所有节点。
	NodeId string `json:"node_id"`

	Body *DeleteSessionRequestBody `json:"body,omitempty"`
}

DeleteSessionRequest Request Object

func (DeleteSessionRequest) String

func (o DeleteSessionRequest) String() string

type DeleteSessionRequestBody

type DeleteSessionRequestBody struct {

	// 需要终结的会话ID列表。
	Sessions []string `json:"sessions"`
}

func (DeleteSessionRequestBody) String

func (o DeleteSessionRequestBody) String() string

type DeleteSessionResponse

type DeleteSessionResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteSessionResponse Response Object

func (DeleteSessionResponse) String

func (o DeleteSessionResponse) String() string

type DiffConfigurationRequest

type DiffConfigurationRequest struct {

	// 需要进行比较的参数模板ID。
	SourceConfigurationId string `json:"source_configuration_id"`

	// 需要进行比较的参数模板ID。
	TargetConfigurationId string `json:"target_configuration_id"`
}

func (DiffConfigurationRequest) String

func (o DiffConfigurationRequest) String() string

type DiffDetails

type DiffDetails struct {

	// 参数名称
	ParameterName string `json:"parameter_name"`

	// 比较参数模板的参数值。
	SourceValue string `json:"source_value"`

	// 目标参数模板的参数值。
	TargetValue string `json:"target_value"`
}

func (DiffDetails) String

func (o DiffDetails) String() string

type DiskVolumes

type DiskVolumes struct {

	// 实例ID或组ID或节点ID。可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。 - 当变更的实例类型是集群,如果变更的是shard组或者config组的参数模板,传值为组ID。如果变更的是mongos节点的参数模板,传值为节点ID。 - 当变更的实例类型是副本集或单节点,传值为实例ID。
	EntityId string `json:"entity_id"`

	// 实例名称或组名称或节点名称
	EntityName string `json:"entity_name"`

	// group_type。取值范围: - mongos,表示集群mongos节点类型。 - shard,表示集群shard节点类型。 - config,表示集群config节点类型。 - replica,表示副本集类型。 - single,表示单节点类型。 - readonly,表示只读节点类型。
	GroupType string `json:"group_type"`

	// 使用量,保留两位小数,单位(GB)
	Used string `json:"used"`

	// 总大小,单位(GB)
	Size string `json:"size"`
}

func (DiskVolumes) String

func (o DiskVolumes) String() string

type DownloadErrorlogRequest

type DownloadErrorlogRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *DownloadErrorlogRequestBody `json:"body,omitempty"`
}

DownloadErrorlogRequest Request Object

func (DownloadErrorlogRequest) String

func (o DownloadErrorlogRequest) String() string

type DownloadErrorlogRequestBody

type DownloadErrorlogRequestBody struct {

	// - 需要下载的文件的文件名列表。
	FileNameList *[]string `json:"file_name_list,omitempty"`

	// 节点ID列表,取空值,表示查询实例下所有允许查询的节点。使用请参考《DDS API参考》的“查询实例列表和详情”响应消息表“nodes 数据结构说明”的“id”。允许查询的节点如下: - 集群下面的mongos、shard、config节点 - 副本集、单节点下面的所有节点
	NodeIdList *[]string `json:"node_id_list,omitempty"`
}

func (DownloadErrorlogRequestBody) String

type DownloadErrorlogResponse

type DownloadErrorlogResponse struct {

	// 具体信息。
	List *[]DownloadSlowlogResult `json:"list,omitempty"`

	// 错误日志下载链接生成状态。 - FINISH,表示下载链接已经生成完成。 - CREATING,表示正在生成文件,准备下载链接。 - FAILED,表示存在日志文件准备失败。
	Status *string `json:"status,omitempty"`

	// 错误日志链接数量。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

DownloadErrorlogResponse Response Object

func (DownloadErrorlogResponse) String

func (o DownloadErrorlogResponse) String() string

type DownloadSlowlogRequest

type DownloadSlowlogRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *DownloadSlowlogRequestBody `json:"body,omitempty"`
}

DownloadSlowlogRequest Request Object

func (DownloadSlowlogRequest) String

func (o DownloadSlowlogRequest) String() string

type DownloadSlowlogRequestBody

type DownloadSlowlogRequestBody struct {

	// - 需要下载的文件的文件名列表。
	FileNameList *[]string `json:"file_name_list,omitempty"`

	// 节点ID列表,取空值,表示查询实例下所有允许查询的节点。使用请参考《DDS API参考》的“查询实例列表和详情”响应消息表“nodes 数据结构说明”的“id”。允许查询的节点如下: - 集群下面的 shard节点 - 副本集、单节点下面的所有节点
	NodeIdList *[]string `json:"node_id_list,omitempty"`
}

func (DownloadSlowlogRequestBody) String

type DownloadSlowlogResponse

type DownloadSlowlogResponse struct {

	// 具体信息。
	List *[]DownloadSlowlogResult `json:"list,omitempty"`

	// 慢日志下载链接生成状态。 - FINISH,表示下载链接已经生成完成。 - CREATING,表示正在生成文件,准备下载链接。 - FAILED,表示存在日志文件准备失败。
	Status *string `json:"status,omitempty"`

	// 慢日志链接数量。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

DownloadSlowlogResponse Response Object

func (DownloadSlowlogResponse) String

func (o DownloadSlowlogResponse) String() string

type DownloadSlowlogResult

type DownloadSlowlogResult struct {

	// 节点名称。
	NodeName string `json:"node_name"`

	// 生成的下载文件名。
	FileName string `json:"file_name"`

	// 当前链接的生成状态。 - SUCCESS,表示下载链接已经生成完成。 - EXPORTING,表示正在生成文件,准备下载链接。 - FAILED,表示存在日志文件准备失败。
	Status string `json:"status"`

	// 文件大小,单位为 KB。
	FileSize string `json:"file_size"`

	// 下载链接。注意:下载链接在更新时间的 15分钟内有效,超出时间会重新获取。
	FileLink string `json:"file_link"`

	// 更新时间。
	UpdateAt int64 `json:"update_at"`
}

func (DownloadSlowlogResult) String

func (o DownloadSlowlogResult) String() string

type DssPoolInfo

type DssPoolInfo struct {

	// 专属存储池所在az
	AzName string `json:"az_name"`

	// 专属存储池免费空间大小,单位GB
	FreeCapacityGb string `json:"free_capacity_gb"`

	// 专属存储池磁盘类型名称,可能取值如下:  - ULTRAHIGH,表示SSD。
	DssPoolVolumeType string `json:"dss_pool_volume_type"`

	// 专属存储池ID
	DssPoolId string `json:"dss_pool_id"`

	// 专属存储池当前状态,可能取值如下: - available,表示可用。 - deploying,表示正在部署。 - enlarging,表示正在扩容。 - frozen,表示冻结。 - sellout,表示售罄。
	DssPoolStatus string `json:"dss_pool_status"`
}

DssPoolInfo 实例专属存储信息。

func (DssPoolInfo) String

func (o DssPoolInfo) String() string

type DurationStrategies

type DurationStrategies struct {

	// 升级策略 - minimized_interrupt_time,表示最短中断时间 - minimized_upgrade_time,最短升级时长
	Strategy string `json:"strategy"`

	// 升级时长,单位为分钟
	EstimatedUpgradeDuration int32 `json:"estimated_upgrade_duration"`
}

func (DurationStrategies) String

func (o DurationStrategies) String() string

type EnlargeInstanceRequestBody

type EnlargeInstanceRequestBody struct {

	// 待扩容的对象类型。 - 扩容mongos节点时,取值为“mongos”。 - 扩容shard组时,取值为“shard”。
	Type EnlargeInstanceRequestBodyType `json:"type"`

	// 资源规格编码。
	SpecCode string `json:"spec_code"`

	// 一个集群实例下,最多支持16个mongos节点和16个shard组。
	Num string `json:"num"`

	Volume *AddShardingNodeVolumeOption `json:"volume,omitempty"`

	// 扩容包年包月实例的节点数量时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 - true,表示自动从账户中支付。 - false,表示手动从账户中支付,默认为该方式。
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}

func (EnlargeInstanceRequestBody) String

type EnlargeInstanceRequestBodyType

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

func (EnlargeInstanceRequestBodyType) MarshalJSON

func (c EnlargeInstanceRequestBodyType) MarshalJSON() ([]byte, error)

func (*EnlargeInstanceRequestBodyType) UnmarshalJSON

func (c *EnlargeInstanceRequestBodyType) UnmarshalJSON(b []byte) error

func (EnlargeInstanceRequestBodyType) Value

type EnlargeInstanceRequestBodyTypeEnum

type EnlargeInstanceRequestBodyTypeEnum struct {
	MONGOS EnlargeInstanceRequestBodyType
	SHARD  EnlargeInstanceRequestBodyType
}

func GetEnlargeInstanceRequestBodyTypeEnum

func GetEnlargeInstanceRequestBodyTypeEnum() EnlargeInstanceRequestBodyTypeEnum

type EnlargeReplicasetNodeRequestBody

type EnlargeReplicasetNodeRequestBody struct {

	// 副本集节点扩容个数,副本集有3个节点时,可以扩容2/4个节点,副本集有5个节点时,只能扩容2个
	Num int32 `json:"num"`

	// 变更包年包月实例规格时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 - 对于降低规格场景,该字段无效。 - 对于扩大规格场景:   - true,表示自动从账户中支付。   - false,表示手动从账户中支付,默认为该方式。
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}

func (EnlargeReplicasetNodeRequestBody) String

type EntityConfigurationParametersResult

type EntityConfigurationParametersResult struct {

	// 参数名称。
	Name string `json:"name"`

	// 参数值。
	Value string `json:"value"`

	// 参数值范围。示例:Integer类型取值范围为0~1、Boolean类型取值为“true”或“false”。
	ValueRange string `json:"value_range"`

	// 参数是否需要重启。 - 取值为“true”,需要重启。 - 取值为“false”,不需要重启。
	RestartRequired bool `json:"restart_required"`

	// 是否只读。 - 取值为“false”,非只读参数。 - 取值为“true”,只读参数。
	Readonly bool `json:"readonly"`

	// 参数类型,取值为“integer”,“string”,“boolean”,“float”或“list”。
	Type string `json:"type"`

	// 参数描述。
	Description string `json:"description"`
}

func (EntityConfigurationParametersResult) String

type EntityInfo

type EntityInfo struct {

	// 组ID或节点ID。
	EntityId string `json:"entity_id"`

	// 组名称或节点名称。
	EntityName string `json:"entity_name"`
}

func (EntityInfo) String

func (o EntityInfo) String() string

type ErrorResponse

type ErrorResponse struct {

	// 错误码。
	ErrorCode string `json:"error_code"`

	// 错误消息。
	ErrorMsg string `json:"error_msg"`
}

func (ErrorResponse) String

func (o ErrorResponse) String() string

type ErrorlogResult

type ErrorlogResult struct {

	// 节点名称。
	NodeName string `json:"node_name"`

	// 日志级别。
	Level string `json:"level"`

	// 发生时间,UTC时间。
	Time string `json:"time"`

	// 日志内容。
	Content string `json:"content"`
}

func (ErrorlogResult) String

func (o ErrorlogResult) String() string

type ExpandReplicasetNodeRequest

type ExpandReplicasetNodeRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *EnlargeReplicasetNodeRequestBody `json:"body,omitempty"`
}

ExpandReplicasetNodeRequest Request Object

func (ExpandReplicasetNodeRequest) String

type ExpandReplicasetNodeResponse

type ExpandReplicasetNodeResponse struct {

	// 任务ID,仅按需实例返回该参数。
	JobId *string `json:"job_id,omitempty"`

	// 订单ID,仅包周期实例返回该参数。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ExpandReplicasetNodeResponse Response Object

func (ExpandReplicasetNodeResponse) String

type Flavor

type Flavor struct {

	// 引擎名称。
	EngineName string `json:"engine_name"`

	// 节点类型。文档数据库包含以下几种节点类型: - mongos - shard - config - replica - single
	Type string `json:"type"`

	// CPU核数。
	Vcpus string `json:"vcpus"`

	// 内存大小,单位为兆字节。
	Ram string `json:"ram"`

	// 资源规格编码。例如:dds.mongodb.c6.xlarge.2.shard。  - “dds”表示文档数据库服务产品。 - “c6.xlarge.2”表示节点性能规格,为高内存类型。 - “shard”表示节点类型。
	SpecCode string `json:"spec_code"`

	// '支持该规格的可用区ID。' 示例:[\"cn-east-2a\",\"cn-east-2b\",\"cn-east-2c\"]。
	AzStatus *interface{} `json:"az_status"`
}

Flavor 规格信息。

func (Flavor) String

func (o Flavor) String() string

type FlavorInfo

type FlavorInfo struct {

	// 引擎名称。
	EngineName string `json:"engine_name"`

	// 节点类型。文档数据库包含以下几种节点类型: - mongos - shard - config - replica - single - readonly
	Type string `json:"type"`

	// CPU核数。
	Vcpus string `json:"vcpus"`

	// 内存大小,单位为兆字节。
	Ram string `json:"ram"`

	// 资源规格编码。例如:dds.mongodb.c6.xlarge.2.shard。  - “dds”表示文档数据库服务产品。 - “c6.xlarge.2”表示节点性能规格,为高内存类型。 - “shard”表示节点类型。
	SpecCode string `json:"spec_code"`

	// '支持该规格的可用区ID。' 示例:[\"cn-east-2a\",\"cn-east-2b\",\"cn-east-2c\"]。
	AzStatus *interface{} `json:"az_status"`

	// 数据库版本号列表。针对DDS引擎的mongos节点,例如:{\"3.4\", \"4.0\"}
	EngineVersions []string `json:"engine_versions"`
}

FlavorInfo 规格信息。

func (FlavorInfo) String

func (o FlavorInfo) String() string

type GetBackupDownloadLinkResponseBodyFiles

type GetBackupDownloadLinkResponseBodyFiles struct {

	// 文件名。
	Name string `json:"name"`

	// 文件大小,单位为KB。
	Size int64 `json:"size"`

	// 文件下载链接。
	DownloadLink string `json:"download_link"`

	// 下载链接过期时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始,Z指时区偏移量,例如UTC时间偏移显示为+0000。
	LinkExpiredTime string `json:"link_expired_time"`
}

func (GetBackupDownloadLinkResponseBodyFiles) String

type GroupResponseItem

type GroupResponseItem struct {

	// 节点类型。 取值: - shard - config - mongos - replica - single
	Type string `json:"type"`

	// 组ID。节点类型为shard和config时,该参数有效。
	Id string `json:"id"`

	// 组名称。节点类型为shard和config时,该参数有效。
	Name string `json:"name"`

	// 组状态。节点类型为shard和config时,该参数有效。
	Status string `json:"status"`

	Volume *Volume `json:"volume"`

	// 节点信息。
	Nodes []NodeItem `json:"nodes"`
}

GroupResponseItem 实例组信息。

func (GroupResponseItem) String

func (o GroupResponseItem) String() string

type HistoryInfo

type HistoryInfo struct {

	// 参数名称
	ParameterName string `json:"parameter_name"`

	// 修改前的值。
	OldValue string `json:"old_value"`

	// 修改后的值。
	NewValue string `json:"new_value"`

	// 修改时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	UpdatedAt string `json:"updated_at"`
}

func (HistoryInfo) String

func (o HistoryInfo) String() string

type InstanceItem

type InstanceItem struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 实例名称
	InstanceName string `json:"instance_name"`

	// 标签列表。如果没有标签,默认为空数组。
	Tags []InstanceItemTagItem `json:"tags"`
}

func (InstanceItem) String

func (o InstanceItem) String() string

type InstanceItemTagItem

type InstanceItemTagItem struct {

	// 标签键。最大长度36个unicode字符,key不能为空。 字符集:0-9,A-Z,a-z,“_”,“-”,中文。
	Key *string `json:"key,omitempty"`

	// 标签值。最大长度43个unicode字符,可以为空字符串。 字符集:0-9,A-Z,a-z,“_”,“.”,“-”,中文。
	Value *string `json:"value,omitempty"`
}

InstanceItemTagItem 标签列表。

func (InstanceItemTagItem) String

func (o InstanceItemTagItem) String() string

type JobDetail

type JobDetail struct {

	// 任务ID
	Id string `json:"id"`

	// 任务名称。
	Name string `json:"name"`

	// 任务执行状态。
	Status string `json:"status"`

	// 任务创建时间,格式为yyyy-mm-ddThh:mm:ssZ。
	Created string `json:"created"`

	// 任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ。
	Ended string `json:"ended"`

	// 任务执行进度。
	Progress string `json:"progress"`

	Instance *JobInstanceInfo `json:"instance"`

	// 任务执行失败时的错误信息。
	FailReason string `json:"fail_reason"`
}

func (JobDetail) String

func (o JobDetail) String() string

type JobInfo

type JobInfo struct {

	// 任务ID。
	Id string `json:"id"`

	// 任务名称。
	Name string `json:"name"`

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 实例名称。
	InstanceName string `json:"instance_name"`

	// 任务状态。取值为“Running”为执行中; 取值为“Completed”为完成; 取值为“Failed” 为失败。
	Status string `json:"status"`

	// 任务执行进度。 说明 执行中状态才返回执行进度,例如“60%”,表示任务执行进度为60%,否则返回“”。 任务执行进度。
	Progress string `json:"progress"`

	// 任务执行失败时的错误信息。
	FailReason string `json:"fail_reason"`

	// 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	CreatedAt string `json:"created_at"`

	// 结束时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	EndedAt string `json:"ended_at"`
}

func (JobInfo) String

func (o JobInfo) String() string

type JobInstanceInfo

type JobInstanceInfo struct {

	// 实例ID。
	Id string `json:"id"`

	// 实例名称。
	Name string `json:"name"`
}

func (JobInstanceInfo) String

func (o JobInstanceInfo) String() string
type Links struct {

	// 对应该API的URL,该字段为\"\"。
	Href *string `json:"href,omitempty"`

	// 值为“self”,表示URL为本地链接。
	Rel *string `json:"rel,omitempty"`
}

Links 对应API的链接信息,v3版本该字段为[]。

func (Links) String

func (o Links) String() string

type ListApiVersionRequest

type ListApiVersionRequest struct {
}

ListApiVersionRequest Request Object

func (ListApiVersionRequest) String

func (o ListApiVersionRequest) String() string

type ListApiVersionResponse

type ListApiVersionResponse struct {

	// API版本详细信息列表。
	Versions       *[]ApiVersion `json:"versions,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ListApiVersionResponse Response Object

func (ListApiVersionResponse) String

func (o ListApiVersionResponse) String() string

type ListAppliedInstancesRequest

type ListAppliedInstancesRequest struct {

	// 参数模板ID。
	ConfigId string `json:"config_id"`

	// 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
	Limit *int32 `json:"limit,omitempty"`
}

ListAppliedInstancesRequest Request Object

func (ListAppliedInstancesRequest) String

type ListAppliedInstancesResponse

type ListAppliedInstancesResponse struct {

	// 可以应用的实例列表。
	Instances      *[]ApplicableInstancesInfo `json:"instances,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

ListAppliedInstancesResponse Response Object

func (ListAppliedInstancesResponse) String

type ListAuditlogLinksRequest

type ListAuditlogLinksRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *ProduceAuditlogLinksRequestBody `json:"body,omitempty"`
}

ListAuditlogLinksRequest Request Object

func (ListAuditlogLinksRequest) String

func (o ListAuditlogLinksRequest) String() string

type ListAuditlogLinksResponse

type ListAuditlogLinksResponse struct {

	// 审计日志下载链接列表,有效时间5分钟。
	Links          *[]string `json:"links,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListAuditlogLinksResponse Response Object

func (ListAuditlogLinksResponse) String

func (o ListAuditlogLinksResponse) String() string

type ListAuditlogsRequest

type ListAuditlogsRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 查询审计日志的节点ID。不传值,默认查询所有的节点,集群实例审计日志分布在mongos节点上。
	NodeId *string `json:"node_id,omitempty"`

	// 查询开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	StartTime string `json:"start_time"`

	// 查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间,时间跨度不超过30天。其中,T指某个时间的开始,Z指时区偏移量,例如北京时间偏移显示为+0800。
	EndTime string `json:"end_time"`

	// 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询记录数。取值范围:1~100。不传该参数时,默认查询前100条实例信息。
	Limit *int32 `json:"limit,omitempty"`
}

ListAuditlogsRequest Request Object

func (ListAuditlogsRequest) String

func (o ListAuditlogsRequest) String() string

type ListAuditlogsResponse

type ListAuditlogsResponse struct {

	// 总记录数。
	TotalRecord *int32 `json:"total_record,omitempty"`

	// 审计日志具体信息。
	AuditLogs      *[]ListAuditlogsResult `json:"audit_logs,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ListAuditlogsResponse Response Object

func (ListAuditlogsResponse) String

func (o ListAuditlogsResponse) String() string

type ListAuditlogsResult

type ListAuditlogsResult struct {

	// 节点ID。
	NodeId string `json:"node_id"`

	// 审计日志ID。
	Id string `json:"id"`

	// 审计日志文件名。
	Name string `json:"name"`

	// 审计日志大小,单位:byte。
	Size int64 `json:"size"`

	// 审计日志开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始,Z指时区偏移量,例如北京时间偏移显示为+0800。
	StartTime string `json:"start_time"`

	// 审计日志结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	EndTime string `json:"end_time"`
}

func (ListAuditlogsResult) String

func (o ListAuditlogsResult) String() string

type ListAz2MigrateRequest

type ListAz2MigrateRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`
}

ListAz2MigrateRequest Request Object

func (ListAz2MigrateRequest) String

func (o ListAz2MigrateRequest) String() string

type ListAz2MigrateResponse

type ListAz2MigrateResponse struct {

	// 可用区具体信息。
	AzList         *[]Az2Migrate `json:"az_list,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ListAz2MigrateResponse Response Object

func (ListAz2MigrateResponse) String

func (o ListAz2MigrateResponse) String() string

type ListBackupsRequest

type ListBackupsRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId *string `json:"instance_id,omitempty"`

	// 备份ID。 - 当该字段传入的备份ID归属为自动增量备份时,实例ID必传。
	BackupId *string `json:"backup_id,omitempty"`

	// 备份类型。 - 取值为“Auto”,表示自动全量备份。 - 取值为“Manual”,表示手动全量备份。 - 取值为“Incremental”,表示自动增量备份。 - 当该字段未传入值时,默认只查询所有的全量备份,包括自动全备备份和手动全量备份。当该字段取值为“Incremental”时,实例ID必传。
	BackupType *ListBackupsRequestBackupType `json:"backup_type,omitempty"`

	// 索引位置偏移量,表示从指定project ID下最新的实例创建时间开始,按时间的先后顺序偏移offset条数据后查询对应的实例信息。 取值大于或等于0。不传该参数时,查询偏移量默认为0,表示从最新的实例创建时间对应的实例开始查询。
	Offset *int32 `json:"offset,omitempty"`

	// 查询备份个数上限值。 取值范围:1~100。不传该参数时,默认查询前100条实例信息。
	Limit *int32 `json:"limit,omitempty"`

	// 查询开始时间,格式为“yyyy-mm-dd hh:mm:ss”。该时间为UTC时间。 “end_time”有值时,“begin_time”必选。
	BeginTime *string `json:"begin_time,omitempty"`

	// 查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 “begin_time”有值时,“end_time”必选。
	EndTime *string `json:"end_time,omitempty"`

	// 实例模式。 取值: - Sharding - ReplicaSet - Single
	Mode *ListBackupsRequestMode `json:"mode,omitempty"`
}

ListBackupsRequest Request Object

func (ListBackupsRequest) String

func (o ListBackupsRequest) String() string

type ListBackupsRequestBackupType

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

func (ListBackupsRequestBackupType) MarshalJSON

func (c ListBackupsRequestBackupType) MarshalJSON() ([]byte, error)

func (*ListBackupsRequestBackupType) UnmarshalJSON

func (c *ListBackupsRequestBackupType) UnmarshalJSON(b []byte) error

func (ListBackupsRequestBackupType) Value

type ListBackupsRequestBackupTypeEnum

type ListBackupsRequestBackupTypeEnum struct {
	AUTO        ListBackupsRequestBackupType
	MANUAL      ListBackupsRequestBackupType
	INCREMENTAL ListBackupsRequestBackupType
}

func GetListBackupsRequestBackupTypeEnum

func GetListBackupsRequestBackupTypeEnum() ListBackupsRequestBackupTypeEnum

type ListBackupsRequestMode

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

func (ListBackupsRequestMode) MarshalJSON

func (c ListBackupsRequestMode) MarshalJSON() ([]byte, error)

func (*ListBackupsRequestMode) UnmarshalJSON

func (c *ListBackupsRequestMode) UnmarshalJSON(b []byte) error

func (ListBackupsRequestMode) Value

func (c ListBackupsRequestMode) Value() string

type ListBackupsRequestModeEnum

type ListBackupsRequestModeEnum struct {
	SHARDING    ListBackupsRequestMode
	REPLICA_SET ListBackupsRequestMode
	SINGLE      ListBackupsRequestMode
}

func GetListBackupsRequestModeEnum

func GetListBackupsRequestModeEnum() ListBackupsRequestModeEnum

type ListBackupsResponse

type ListBackupsResponse struct {

	// 备份列表。
	Backups *[]BackupForList `json:"backups,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListBackupsResponse Response Object

func (ListBackupsResponse) String

func (o ListBackupsResponse) String() string

type ListConfigurationsRequest

type ListConfigurationsRequest struct {

	// 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量,默认是100。
	Limit *int32 `json:"limit,omitempty"`
}

ListConfigurationsRequest Request Object

func (ListConfigurationsRequest) String

func (o ListConfigurationsRequest) String() string

type ListConfigurationsResponse

type ListConfigurationsResponse struct {

	// 总记录数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 参数模板列表。
	Configurations *[]ListConfigurationsResult `json:"configurations,omitempty"`
	HttpStatusCode int                         `json:"-"`
}

ListConfigurationsResponse Response Object

func (ListConfigurationsResponse) String

type ListConfigurationsResult

type ListConfigurationsResult struct {

	// 参数模板ID。
	Id string `json:"id"`

	// 参数模板名称。
	Name string `json:"name"`

	// 参数模板描述。
	Description string `json:"description"`

	// 数据库版本。
	DatastoreVersion string `json:"datastore_version"`

	// 数据库类型。
	DatastoreName string `json:"datastore_name"`

	// 参数模板节点类型。 - mongos,表示集群mongos节点类型。 - shard,表示集群shard节点类型。 - config,表示集群config节点类型。 - replica,表示副本集类型。 - single,表示单节点类型。
	NodeType string `json:"node_type"`

	// 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Created string `json:"created"`

	// 更新时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Updated string `json:"updated"`

	// 是否是用户自定义参数模板。 - false表示为默认参数模板。 - true表示为用户自定义参数模板。
	UserDefined bool `json:"user_defined"`
}

func (ListConfigurationsResult) String

func (o ListConfigurationsResult) String() string

type ListDatabaseRolesRequest

type ListDatabaseRolesRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 角色名称。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、中划线、下划线和点。
	RoleName *string `json:"role_name,omitempty"`

	// 数据库名称,默认为admin。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、下划线。
	DbName *string `json:"db_name,omitempty"`

	// 索引位置偏移量。 取值大于或等于0。不传该参数时,查询偏移量默认为0。
	Offset *int32 `json:"offset,omitempty"`

	// 查询实例个数上限值。 取值范围:1~100。不传该参数时,默认查询前100条实例信息。
	Limit *int32 `json:"limit,omitempty"`
}

ListDatabaseRolesRequest Request Object

func (ListDatabaseRolesRequest) String

func (o ListDatabaseRolesRequest) String() string

type ListDatabaseRolesResponse

type ListDatabaseRolesResponse struct {

	// 数据库角色信息。
	Roles *string `json:"roles,omitempty"`

	// 数据库角色总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListDatabaseRolesResponse Response Object

func (ListDatabaseRolesResponse) String

func (o ListDatabaseRolesResponse) String() string

type ListDatabaseUsersRequest

type ListDatabaseUsersRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 用户名称。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、中划线、下划线和点。
	UserName *string `json:"user_name,omitempty"`

	// 数据库名称,默认为admin。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、下划线。
	DbName *string `json:"db_name,omitempty"`

	// 索引位置偏移量。 取值大于或等于0。不传该参数时,查询偏移量默认为0。
	Offset *int32 `json:"offset,omitempty"`

	// 查询实例个数上限值。 取值范围:1~100。不传该参数时,默认查询前100条实例信息。
	Limit *int32 `json:"limit,omitempty"`
}

ListDatabaseUsersRequest Request Object

func (ListDatabaseUsersRequest) String

func (o ListDatabaseUsersRequest) String() string

type ListDatabaseUsersResponse

type ListDatabaseUsersResponse struct {

	// 数据库用户信息。
	Users *string `json:"users,omitempty"`

	// 数据库用户总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListDatabaseUsersResponse Response Object

func (ListDatabaseUsersResponse) String

func (o ListDatabaseUsersResponse) String() string

type ListDatastoreVersionsRequest

type ListDatastoreVersionsRequest struct {

	// 数据库版本类型。取值为“DDS-Community”。
	DatastoreName ListDatastoreVersionsRequestDatastoreName `json:"datastore_name"`
}

ListDatastoreVersionsRequest Request Object

func (ListDatastoreVersionsRequest) String

type ListDatastoreVersionsRequestDatastoreName

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

func (ListDatastoreVersionsRequestDatastoreName) MarshalJSON

func (*ListDatastoreVersionsRequestDatastoreName) UnmarshalJSON

func (ListDatastoreVersionsRequestDatastoreName) Value

type ListDatastoreVersionsRequestDatastoreNameEnum

type ListDatastoreVersionsRequestDatastoreNameEnum struct {
	DDS_COMMUNITY ListDatastoreVersionsRequestDatastoreName
	DDS_ENHANCED  ListDatastoreVersionsRequestDatastoreName
}

func GetListDatastoreVersionsRequestDatastoreNameEnum

func GetListDatastoreVersionsRequestDatastoreNameEnum() ListDatastoreVersionsRequestDatastoreNameEnum

type ListDatastoreVersionsResponse

type ListDatastoreVersionsResponse struct {

	// 数据库版本。支持3.4、3.2和4.0版本。
	Versions       *[]string `json:"versions,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListDatastoreVersionsResponse Response Object

func (ListDatastoreVersionsResponse) String

type ListErrorLogsRequest

type ListErrorLogsRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	StartDate string `json:"start_date"`

	// 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。只能查询当前时间前一个月内的慢日志。注:结束时间不能晚于当前时间。
	EndDate string `json:"end_date"`

	// 节点ID,取空值,表示查询实例下所有允许查询的节点。 使用请参考《DDS API参考》的“查询实例列表和详情”响应消息表“nodes 数据结构说明”的“id”。允许查询的节点如下: - 集群实例下面的 mongos、shard、config节点 - 副本集、单节点实例下面的所有节点
	NodeId *string `json:"node_id,omitempty"`

	// 语句类型,取空值,表示查询所有语句类型,也可指定如下日志类型: - WARNING - ERROR
	Type *ListErrorLogsRequestType `json:"type,omitempty"`

	// 索引位置,偏移量。取值范围为 [0, 1999]。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询记录数。取值范围[1, 100],默认10 (表示默认返回10条数据)。 注意: limit 与 offset 的和需要满足 <= 2000的条件。
	Limit *int32 `json:"limit,omitempty"`
}

ListErrorLogsRequest Request Object

func (ListErrorLogsRequest) String

func (o ListErrorLogsRequest) String() string

type ListErrorLogsRequestType

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

func (ListErrorLogsRequestType) MarshalJSON

func (c ListErrorLogsRequestType) MarshalJSON() ([]byte, error)

func (*ListErrorLogsRequestType) UnmarshalJSON

func (c *ListErrorLogsRequestType) UnmarshalJSON(b []byte) error

func (ListErrorLogsRequestType) Value

func (c ListErrorLogsRequestType) Value() string

type ListErrorLogsRequestTypeEnum

type ListErrorLogsRequestTypeEnum struct {
	WARNING ListErrorLogsRequestType
	ERROR   ListErrorLogsRequestType
}

func GetListErrorLogsRequestTypeEnum

func GetListErrorLogsRequestTypeEnum() ListErrorLogsRequestTypeEnum

type ListErrorLogsResponse

type ListErrorLogsResponse struct {

	// 具体信息。
	ErrorLogList *[]ErrorlogResult `json:"error_log_list,omitempty"`

	// 数据库版本总记录数。
	TotalRecord    *int32 `json:"total_record,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListErrorLogsResponse Response Object

func (ListErrorLogsResponse) String

func (o ListErrorLogsResponse) String() string

type ListFlavorInfosRequest

type ListFlavorInfosRequest struct {

	// 数据库版本类型。取值为“DDS-Community”。
	EngineName *ListFlavorInfosRequestEngineName `json:"engine_name,omitempty"`

	// 数据库版本号。
	EngineVersion *string `json:"engine_version,omitempty"`

	// 索引位置,偏移量。   - 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。   - 取值必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询规格信息上限值。   - 取值范围: 1~100。   - 不传该参数时,默认查询前100条规格信息。
	Limit *int32 `json:"limit,omitempty"`
}

ListFlavorInfosRequest Request Object

func (ListFlavorInfosRequest) String

func (o ListFlavorInfosRequest) String() string

type ListFlavorInfosRequestEngineName

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

func (ListFlavorInfosRequestEngineName) MarshalJSON

func (c ListFlavorInfosRequestEngineName) MarshalJSON() ([]byte, error)

func (*ListFlavorInfosRequestEngineName) UnmarshalJSON

func (c *ListFlavorInfosRequestEngineName) UnmarshalJSON(b []byte) error

func (ListFlavorInfosRequestEngineName) Value

type ListFlavorInfosRequestEngineNameEnum

type ListFlavorInfosRequestEngineNameEnum struct {
	DDS_COMMUNITY ListFlavorInfosRequestEngineName
	DDS_ENHANCED  ListFlavorInfosRequestEngineName
}

func GetListFlavorInfosRequestEngineNameEnum

func GetListFlavorInfosRequestEngineNameEnum() ListFlavorInfosRequestEngineNameEnum

type ListFlavorInfosResponse

type ListFlavorInfosResponse struct {

	// 总记录数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 实例规格信息列表。
	Flavors        *[]FlavorInfo `json:"flavors,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ListFlavorInfosResponse Response Object

func (ListFlavorInfosResponse) String

func (o ListFlavorInfosResponse) String() string

type ListFlavorsRequest

type ListFlavorsRequest struct {

	// 实例所在区域。
	Region *string `json:"region,omitempty"`

	// 数据库版本类型。取值为“DDS-Community”。
	EngineName *ListFlavorsRequestEngineName `json:"engine_name,omitempty"`
}

ListFlavorsRequest Request Object

func (ListFlavorsRequest) String

func (o ListFlavorsRequest) String() string

type ListFlavorsRequestEngineName

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

func (ListFlavorsRequestEngineName) MarshalJSON

func (c ListFlavorsRequestEngineName) MarshalJSON() ([]byte, error)

func (*ListFlavorsRequestEngineName) UnmarshalJSON

func (c *ListFlavorsRequestEngineName) UnmarshalJSON(b []byte) error

func (ListFlavorsRequestEngineName) Value

type ListFlavorsRequestEngineNameEnum

type ListFlavorsRequestEngineNameEnum struct {
	DDS_COMMUNITY ListFlavorsRequestEngineName
	DDS_ENHANCED  ListFlavorsRequestEngineName
}

func GetListFlavorsRequestEngineNameEnum

func GetListFlavorsRequestEngineNameEnum() ListFlavorsRequestEngineNameEnum

type ListFlavorsResponse

type ListFlavorsResponse struct {

	// 实例规格信息列表。
	Flavors        *[]Flavor `json:"flavors,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListFlavorsResponse Response Object

func (ListFlavorsResponse) String

func (o ListFlavorsResponse) String() string

type ListInstanceTagsRequest

type ListInstanceTagsRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`
}

ListInstanceTagsRequest Request Object

func (ListInstanceTagsRequest) String

func (o ListInstanceTagsRequest) String() string

type ListInstanceTagsResponse

type ListInstanceTagsResponse struct {

	// 标签列表。
	Tags           *[]QueryResourceTagItem `json:"tags,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

ListInstanceTagsResponse Response Object

func (ListInstanceTagsResponse) String

func (o ListInstanceTagsResponse) String() string

type ListInstancesByTagsRequest

type ListInstancesByTagsRequest struct {
	Body *ListInstancesByTagsRequestBody `json:"body,omitempty"`
}

ListInstancesByTagsRequest Request Object

func (ListInstancesByTagsRequest) String

type ListInstancesByTagsRequestBody

type ListInstancesByTagsRequestBody struct {

	// 索引位置偏移量,表示从第一条数据偏移offset条数据后开始查询。 - “action”值为“count”时,不传该参数。 - “action”值为“filter”时,取值必须为数字,不能为负数。默认取0值,表示从第一条数据开始查询。'
	Offset *string `json:"offset,omitempty"`

	// 查询记录数。   - “action”值为“count”时,不传该参数。   - “action”值为“filter”时,取值范围:1~100。不传该参数时,默认查询前100条实例信息。
	Limit *string `json:"limit,omitempty"`

	// 操作标识。   - 取值为“filter”,表示根据标签过滤条件查询实例。   - 取值为“count”,表示仅返回总记录数,禁止返回其他字段。
	Action ListInstancesByTagsRequestBodyAction `json:"action"`

	// 搜索字段。   - 该字段值为空,表示不按照实例名称或实例ID查询。   - 该字段值不为空
	Matches *[]QueryMatchItem `json:"matches,omitempty"`

	// 包含标签,最多包含10个key。
	Tags *[]QueryTagItem `json:"tags,omitempty"`
}

func (ListInstancesByTagsRequestBody) String

type ListInstancesByTagsRequestBodyAction

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

func (ListInstancesByTagsRequestBodyAction) MarshalJSON

func (c ListInstancesByTagsRequestBodyAction) MarshalJSON() ([]byte, error)

func (*ListInstancesByTagsRequestBodyAction) UnmarshalJSON

func (c *ListInstancesByTagsRequestBodyAction) UnmarshalJSON(b []byte) error

func (ListInstancesByTagsRequestBodyAction) Value

type ListInstancesByTagsRequestBodyActionEnum

type ListInstancesByTagsRequestBodyActionEnum struct {
	FILTER ListInstancesByTagsRequestBodyAction
	COUNT  ListInstancesByTagsRequestBodyAction
}

func GetListInstancesByTagsRequestBodyActionEnum

func GetListInstancesByTagsRequestBodyActionEnum() ListInstancesByTagsRequestBodyActionEnum

type ListInstancesByTagsResponse

type ListInstancesByTagsResponse struct {

	// 实例列表。
	Instances *[]InstanceItem `json:"instances,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListInstancesByTagsResponse Response Object

func (ListInstancesByTagsResponse) String

type ListInstancesRequest

type ListInstancesRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	Id *string `json:"id,omitempty"`

	// 实例名称。 如果name以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的name精确匹配查询。 - “*”为系统保留字符,不能只传入该字符。
	Name *string `json:"name,omitempty"`

	// 实例类型。 - 取值为“Sharding”,表示集群实例。 - 取值为“ReplicaSet”,表示副本集实例。 - 取值为“Single”,表示单节点实例。
	Mode *ListInstancesRequestMode `json:"mode,omitempty"`

	// 数据库版本类型。取值为“DDS-Community”。
	DatastoreType *ListInstancesRequestDatastoreType `json:"datastore_type,omitempty"`

	// 虚拟私有云ID。可登录虚拟私有云控制台界面,获取DDS实例所在虚拟私有云的ID。
	VpcId *string `json:"vpc_id,omitempty"`

	// 子网的网络ID。可登录虚拟私有云控制台界面,获取DDS实例所在虚拟私有云下子网的网络ID。
	SubnetId *string `json:"subnet_id,omitempty"`

	// 索引位置偏移量,表示从指定project ID下最新的实例创建时间开始,按时间的先后顺序偏移offset条数据后查询对应的实例信息。 取值大于或等于0。不传该参数时,查询偏移量默认为0,表示从最新的实例创建时间对应的实例开始查询。
	Offset *int32 `json:"offset,omitempty"`

	// 查询实例个数上限值。 取值范围:1~100。不传该参数时,默认查询前100条实例信息。
	Limit *int32 `json:"limit,omitempty"`

	// 根据实例标签键值对进行查询。{key}表示标签键,{value}表示标签值,最多包含20组。key不可以为空或重复,value可以为空。如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,表示查询同时包含指定标签键值对的实例。
	Tags *string `json:"tags,omitempty"`
}

ListInstancesRequest Request Object

func (ListInstancesRequest) String

func (o ListInstancesRequest) String() string

type ListInstancesRequestDatastoreType

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

func (ListInstancesRequestDatastoreType) MarshalJSON

func (c ListInstancesRequestDatastoreType) MarshalJSON() ([]byte, error)

func (*ListInstancesRequestDatastoreType) UnmarshalJSON

func (c *ListInstancesRequestDatastoreType) UnmarshalJSON(b []byte) error

func (ListInstancesRequestDatastoreType) Value

type ListInstancesRequestDatastoreTypeEnum

type ListInstancesRequestDatastoreTypeEnum struct {
	DDS_COMMUNITY ListInstancesRequestDatastoreType
	DDS_ENHANCED  ListInstancesRequestDatastoreType
}

func GetListInstancesRequestDatastoreTypeEnum

func GetListInstancesRequestDatastoreTypeEnum() ListInstancesRequestDatastoreTypeEnum

type ListInstancesRequestMode

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

func (ListInstancesRequestMode) MarshalJSON

func (c ListInstancesRequestMode) MarshalJSON() ([]byte, error)

func (*ListInstancesRequestMode) UnmarshalJSON

func (c *ListInstancesRequestMode) UnmarshalJSON(b []byte) error

func (ListInstancesRequestMode) Value

func (c ListInstancesRequestMode) Value() string

type ListInstancesRequestModeEnum

type ListInstancesRequestModeEnum struct {
	SHARDING    ListInstancesRequestMode
	REPLICA_SET ListInstancesRequestMode
	SINGLE      ListInstancesRequestMode
}

func GetListInstancesRequestModeEnum

func GetListInstancesRequestModeEnum() ListInstancesRequestModeEnum

type ListInstancesResponse

type ListInstancesResponse struct {

	// 实例信息。
	Instances *[]QueryInstanceResponse `json:"instances,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListInstancesResponse Response Object

func (ListInstancesResponse) String

func (o ListInstancesResponse) String() string

type ListLtsSlowLogsRequest

type ListLtsSlowLogsRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *ListLtsSlowLogsRequestBody `json:"body,omitempty"`
}

ListLtsSlowLogsRequest Request Object

func (ListLtsSlowLogsRequest) String

func (o ListLtsSlowLogsRequest) String() string

type ListLtsSlowLogsRequestBody

type ListLtsSlowLogsRequestBody struct {

	// 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。注:开始时间不得早于当前时间30天。
	StartTime string `json:"start_time"`

	// 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。注:结束时间不能晚于当前时间。
	EndTime string `json:"end_time"`

	// 表示每次查询的日志条数,最大限制100条。
	Limit int32 `json:"limit"`

	// 日志单行序列号,第一次查询时不需要此参数,下一次查询时需要使用,可从上一次查询的返回信息中获取。 说明:当次查询从line_num的下一条日志开始查询,不包含当前line_num日志。
	LineNum *string `json:"line_num,omitempty"`

	// 语句类型,取空值,表示查询所有语句类型。
	OperateType *ListLtsSlowLogsRequestBodyOperateType `json:"operate_type,omitempty"`

	// 节点ID,取空值,表示查询实例下所有允许查询的节点。 使用请参考《DDS API参考》的“查询实例列表和详情”响应消息表“nodes 数据结构说明”的“id”。允许查询的节点如下: - 集群实例下面的 shard节点 - 副本集、单节点实例下面的所有节点
	NodeId *string `json:"node_id,omitempty"`

	// 根据多个关键字搜索日志全文,表示同时匹配所有关键字。 - 最多支持10个关键字。 - 每个关键字最大长度不超过512个字符。
	Keywords *[]string `json:"keywords,omitempty"`

	// 根据多个数据库表名关键字模糊搜索日志,表示匹配至少一个关键字。 - 最多支持10个关键字。 - 每个关键字最大长度不超过64个字符。
	DatabaseKeywords *[]string `json:"database_keywords,omitempty"`

	// 根据多个数据库表名关键字模糊搜索日志,表示匹配至少一个关键字。 - 最多支持10个关键字。 - 每个关键字最大长度不超过128个字符。
	CollectionKeywords *[]string `json:"collection_keywords,omitempty"`

	// 支持根据最大执行时间范围查找日志。单位:ms
	MaxCostTime *int32 `json:"max_cost_time,omitempty"`

	// 支持根据最小执行时间范围查找日志。单位:ms
	MinCostTime *int32 `json:"min_cost_time,omitempty"`
}

func (ListLtsSlowLogsRequestBody) String

type ListLtsSlowLogsRequestBodyOperateType

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

func (ListLtsSlowLogsRequestBodyOperateType) MarshalJSON

func (c ListLtsSlowLogsRequestBodyOperateType) MarshalJSON() ([]byte, error)

func (*ListLtsSlowLogsRequestBodyOperateType) UnmarshalJSON

func (c *ListLtsSlowLogsRequestBodyOperateType) UnmarshalJSON(b []byte) error

func (ListLtsSlowLogsRequestBodyOperateType) Value

type ListLtsSlowLogsResponse

type ListLtsSlowLogsResponse struct {

	// 慢日志具体信息。
	SlowLogs       *[]SlowLogDetail `json:"slow_logs,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ListLtsSlowLogsResponse Response Object

func (ListLtsSlowLogsResponse) String

func (o ListLtsSlowLogsResponse) String() string

type ListProjectTagsRequest

type ListProjectTagsRequest struct {
}

ListProjectTagsRequest Request Object

func (ListProjectTagsRequest) String

func (o ListProjectTagsRequest) String() string

type ListProjectTagsResponse

type ListProjectTagsResponse struct {

	// 标签列表。
	Tags           *[]QueryProjectTagItem `json:"tags,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ListProjectTagsResponse Response Object

func (ListProjectTagsResponse) String

func (o ListProjectTagsResponse) String() string

type ListRecycleInstancesRequest

type ListRecycleInstancesRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量,默认是100。
	Limit *int32 `json:"limit,omitempty"`
}

ListRecycleInstancesRequest Request Object

func (ListRecycleInstancesRequest) String

type ListRecycleInstancesResponse

type ListRecycleInstancesResponse struct {

	// 总记录数
	TotalCount *int32 `json:"total_count,omitempty"`

	// 实例信息
	Instances      *[]RecycleInstance `json:"instances,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListRecycleInstancesResponse Response Object

func (ListRecycleInstancesResponse) String

type ListRestoreCollectionsRequest

type ListRestoreCollectionsRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 数据库名称。
	DbName string `json:"db_name"`

	// 恢复时间点。UNIX时间戳格式,单位是毫秒,时区是UTC。
	RestoreTime string `json:"restore_time"`

	// 索引位置偏移量。取值大于或等于0。不传该参数时,查询偏移量默认为0。
	Offset *int32 `json:"offset,omitempty"`

	// 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。
	Limit *int32 `json:"limit,omitempty"`
}

ListRestoreCollectionsRequest Request Object

func (ListRestoreCollectionsRequest) String

type ListRestoreCollectionsResponse

type ListRestoreCollectionsResponse struct {

	// 集合总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 集合列表,列表中每个元素表示一个集合。
	Collections    *[]string `json:"collections,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListRestoreCollectionsResponse Response Object

func (ListRestoreCollectionsResponse) String

type ListRestoreDatabasesRequest

type ListRestoreDatabasesRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 恢复时间点。UNIX时间戳格式,单位是毫秒,时区是UTC。
	RestoreTime string `json:"restore_time"`

	// 索引位置偏移量。取值大于或等于0。不传该参数时,查询偏移量默认为0。
	Offset *int32 `json:"offset,omitempty"`

	// 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。
	Limit *int32 `json:"limit,omitempty"`
}

ListRestoreDatabasesRequest Request Object

func (ListRestoreDatabasesRequest) String

type ListRestoreDatabasesResponse

type ListRestoreDatabasesResponse struct {

	// 数据库总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 数据库列表,列表中每个元素表示一个数据库。
	Databases      *[]string `json:"databases,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListRestoreDatabasesResponse Response Object

func (ListRestoreDatabasesResponse) String

type ListRestoreTimesRequest

type ListRestoreTimesRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 所需查询的日期,为yyyy-mm-dd字符串格式,时区为UTC。
	Date string `json:"date"`
}

ListRestoreTimesRequest Request Object

func (ListRestoreTimesRequest) String

func (o ListRestoreTimesRequest) String() string

type ListRestoreTimesResponse

type ListRestoreTimesResponse struct {

	// 可恢复时间段列表。
	RestoreTime    *[]ListRestoreTimesResponseBodyRestoreTime `json:"restore_time,omitempty"`
	HttpStatusCode int                                        `json:"-"`
}

ListRestoreTimesResponse Response Object

func (ListRestoreTimesResponse) String

func (o ListRestoreTimesResponse) String() string

type ListRestoreTimesResponseBodyRestoreTime

type ListRestoreTimesResponseBodyRestoreTime struct {

	// 可恢复时间段的起始时间点,UNIX时间戳格式,单位是毫秒,时区是UTC。
	StartTime int64 `json:"start_time"`

	// 可恢复时间段的起始时间点,UNIX时间戳格式,单位是毫秒,时区是UTC。
	EndTime int64 `json:"end_time"`
}

func (ListRestoreTimesResponseBodyRestoreTime) String

type ListSessionsRequest

type ListSessionsRequest struct {

	// 节点ID。允许查询的节点如下: 集群下面的 mongos节点以及 副本集、单节点实例下面的所有节点。
	NodeId string `json:"node_id"`

	// 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询记录数。取值范围[1, 20],默认10 (表示返回10条数据)。
	Limit *int32 `json:"limit,omitempty"`

	// 执行计划描述。取空值表示查询所有语句类型,也可指定执行计划,例如: COLLSCAN IXSCAN FETCH SORT LIMIT SKIP COUNT COUNT_SCAN TEXT PROJECTION 等
	PlanSummary *string `json:"plan_summary,omitempty"`

	// 操作类型。取空值表示查询所有操作类型。也可指定操作类型,例如: none update insert query command getmore remove killcursors等
	Type *string `json:"type,omitempty"`

	// 命名空间。取空值表示查询所有命名空间。也可根据当前业务进行指定。
	Namespace *string `json:"namespace,omitempty"`

	// 运行时间,单位为 ms。取空值表示查询所有的运行时间。也可根据当前业务需要进行配置,表示查询超出 cost_time 的会话。
	CostTime *int32 `json:"cost_time,omitempty"`
}

ListSessionsRequest Request Object

func (ListSessionsRequest) String

func (o ListSessionsRequest) String() string

type ListSessionsResponse

type ListSessionsResponse struct {

	// 总记录数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 具体信息。
	Sessions       *[]QuerySessionResponse `json:"sessions,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

ListSessionsResponse Response Object

func (ListSessionsResponse) String

func (o ListSessionsResponse) String() string

type ListSlowLogsRequest

type ListSlowLogsRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	StartDate string `json:"start_date"`

	// 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。只能查询当前时间前一个月内的慢日志。注:结束时间不能晚于当前时间。
	EndDate string `json:"end_date"`

	// 节点ID,取空值,表示查询实例下所有允许查询的节点。 使用请参考《DDS API参考》的“查询实例列表和详情”响应消息表“nodes 数据结构说明”的“id”。允许查询的节点如下: - 集群实例下面的 shard节点 - 副本集、单节点实例下面的所有节点
	NodeId *string `json:"node_id,omitempty"`

	// 语句类型,取空值,表示查询所有语句类型,也可指定如下日志类型: - INSERT - QUERY - UPDATE - REMOVE - GETMORE - COMMAND - KILLCURSORS
	Type *ListSlowLogsRequestType `json:"type,omitempty"`

	// 索引位置,偏移量。取值范围为 [0, 1999]。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询记录数。取值范围[1, 100],默认10 (表示默认返回10条数据)。 注意: limit 与 offset 的和需要满足 <= 2000的条件。
	Limit *int32 `json:"limit,omitempty"`
}

ListSlowLogsRequest Request Object

func (ListSlowLogsRequest) String

func (o ListSlowLogsRequest) String() string

type ListSlowLogsRequestType

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

func (ListSlowLogsRequestType) MarshalJSON

func (c ListSlowLogsRequestType) MarshalJSON() ([]byte, error)

func (*ListSlowLogsRequestType) UnmarshalJSON

func (c *ListSlowLogsRequestType) UnmarshalJSON(b []byte) error

func (ListSlowLogsRequestType) Value

func (c ListSlowLogsRequestType) Value() string

type ListSlowLogsResponse

type ListSlowLogsResponse struct {

	// 具体信息。
	SlowLogList *[]SlowlogResult `json:"slow_log_list,omitempty"`

	// 数据库版本总记录数。
	TotalRecord    *int32 `json:"total_record,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListSlowLogsResponse Response Object

func (ListSlowLogsResponse) String

func (o ListSlowLogsResponse) String() string

type ListSslCertDownloadAddressRequest

type ListSslCertDownloadAddressRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`
}

ListSslCertDownloadAddressRequest Request Object

func (ListSslCertDownloadAddressRequest) String

type ListSslCertDownloadAddressResponse

type ListSslCertDownloadAddressResponse struct {

	// 证书列表
	Certs          *[]CertInfo `json:"certs,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ListSslCertDownloadAddressResponse Response Object

func (ListSslCertDownloadAddressResponse) String

type ListStorageTypeRequest

type ListStorageTypeRequest struct {

	// 数据库版本类型: - 取值为“DDS-Community”。
	EngineName *ListStorageTypeRequestEngineName `json:"engine_name,omitempty"`
}

ListStorageTypeRequest Request Object

func (ListStorageTypeRequest) String

func (o ListStorageTypeRequest) String() string

type ListStorageTypeRequestEngineName

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

func (ListStorageTypeRequestEngineName) MarshalJSON

func (c ListStorageTypeRequestEngineName) MarshalJSON() ([]byte, error)

func (*ListStorageTypeRequestEngineName) UnmarshalJSON

func (c *ListStorageTypeRequestEngineName) UnmarshalJSON(b []byte) error

func (ListStorageTypeRequestEngineName) Value

type ListStorageTypeRequestEngineNameEnum

type ListStorageTypeRequestEngineNameEnum struct {
	DDS_COMMUNITY ListStorageTypeRequestEngineName
	DDS_ENHANCED  ListStorageTypeRequestEngineName
}

func GetListStorageTypeRequestEngineNameEnum

func GetListStorageTypeRequestEngineNameEnum() ListStorageTypeRequestEngineNameEnum

type ListStorageTypeResponse

type ListStorageTypeResponse struct {

	// 实例磁盘类型信息。
	StorageType *[]Storage `json:"storage_type,omitempty"`

	// 实例专属存储信息。
	DssPoolInfo    *[]DssPoolInfo `json:"dss_pool_info,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ListStorageTypeResponse Response Object

func (ListStorageTypeResponse) String

func (o ListStorageTypeResponse) String() string

type ListTasksRequest

type ListTasksRequest struct {

	// 查询开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始,Z指时区偏移量
	StartTime string `json:"start_time"`

	// 查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间,时间跨度不超过30天。 其中,T指某个时间的开始,Z指时区偏移量。
	EndTime string `json:"end_time"`

	// 任务状态: 取值为“Running”为执行中; 取值为“Completed”为完成; 取值为“Failed” 为失败。
	Status *string `json:"status,omitempty"`

	// 任务名称。对应取值如下: - \"CreateMongoDB\":创建集群实例 - \"CreateMongoDBReplica\":创建副本集实例 - \"CreateMongoDBReplicaSingle\":创建单节点实例 - \"EnlargeMongoDBVolume\":磁盘扩容 - \"ResizeMongoDBInstance\":社区版实例规格变更 - \"ResizeDfvMongoDBInstance\":社区增强版实例规格变更 - \"EnlargeMongoDBGroup\":添加节点 - \"ReplicaSetEnlargeNode\":副本集添加备节点 - \"AddReadonlyNode\":添加只读节点 - \"RestartInstance\":重启集群实例 - \"RestartGroup\":重启集群节点组 - \"RestartNode\":重启集群节点 - \"RestartReplicaSetInstance\":重启副本集实例 - \"RestartReplicaSingleInstance\":重启单节点实例 - \"SwitchPrimary\":主备切换 - \"ModifyIp\":修改内网地址 - \"ModifySecurityGroup\":修改安全组 - \"ModifyPort\":修改数据库端口 - \"BindPublicIP\":绑定弹性IP - \"UnbindPublicIP\":解绑弹性IP - \"SwitchInstanceSSL\":切换SSL - \"AzMigrate\":迁移可用区 - \"CreateIp\":显示shard/config IP - \"ModifyOpLogSize\":修改oplog大小 - \"RestoreMongoDB\":集群恢复到新实例 - \"RestoreMongoDB_Replica\":副本集恢复到新实例 - \"RestoreMongoDB_Replica_Single\":单节点恢复到新实例 - \"RestoreMongoDB_Replica_PITR\":副本集恢复到指定时间点 - \"MongodbSnapshotBackup\":创建物理备份 - \"MongodbSnapshotEBackup\":创建快照备份 - \"MongodbRestoreData2CurrentInstance\":备份恢复到当前实例 - \"MongodbRestoreData2NewInstance\":备份恢复到新实例 - \"MongodbPitr2CurrentInstance\":备份恢复到当前实例指定时间点 - \"MongodbPitr2NewInstance\":备份恢复到新实例指定时间点 - \"MongodbRecycleBackup\":备份回收 - \"MongodbRestoreTable\":库表级时间点恢复 - \"UpgradeDatabaseVersion\":升级数据库补丁
	Name *string `json:"name,omitempty"`

	// 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
	Limit *int32 `json:"limit,omitempty"`
}

ListTasksRequest Request Object

func (ListTasksRequest) String

func (o ListTasksRequest) String() string

type ListTasksResponse

type ListTasksResponse struct {

	// 任务列表。
	Jobs *[]JobInfo `json:"jobs,omitempty"`

	// 任务列表总数
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListTasksResponse Response Object

func (ListTasksResponse) String

func (o ListTasksResponse) String() string

type MigrateAzRequest

type MigrateAzRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	Body *MigrateAzRequestBody `json:"body,omitempty"`
}

MigrateAzRequest Request Object

func (MigrateAzRequest) String

func (o MigrateAzRequest) String() string

type MigrateAzRequestBody

type MigrateAzRequestBody struct {

	// 迁移到的目标单az或者多az,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
	TargetAzs string `json:"target_azs"`
}

func (MigrateAzRequestBody) String

func (o MigrateAzRequestBody) String() string

type MigrateAzResponse

type MigrateAzResponse struct {

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

MigrateAzResponse Response Object

func (MigrateAzResponse) String

func (o MigrateAzResponse) String() string

type MongoUpdateReplSetV3RequestBody

type MongoUpdateReplSetV3RequestBody struct {

	// 连接地址复制集名称:实例高可用连接地址的唯一标识。该参数可以将读请求发送到副本集实例的所有节点。副本集中的所有主机必须具有相同的集名称。字符限制:大小写字母,数字,下划线组合,字母为首,长度限制在3-128
	Name string `json:"name"`
}

func (MongoUpdateReplSetV3RequestBody) String

type NodeItem

type NodeItem struct {

	// 节点ID。
	Id string `json:"id"`

	// 节点名称。
	Name string `json:"name"`

	// 节点状态。
	Status string `json:"status"`

	// 节点角色。 取值: - master,mongos节点返回该值。 - Primary,shard组主节点、config组主节点、副本集主节点、单节点返回该值。 - Secondary,shard组备节点、config组备节点、副本集备节点返回该值。 - Hidden,shard组隐藏节点、config组隐藏节点、副本集隐藏节点返回该值。 - unknown,节点异常时返回该值。
	Role string `json:"role"`

	// 节点内网IP。该参数仅针对集群实例的mongos节点、副本集实例、以及单节点实例有效,且在弹性云服务器创建成功后参数值存在,否则,值为\"\"。
	PrivateIp string `json:"private_ip"`

	// 绑定的外网IP。该参数值为\"\"。该参数仅针对集群实例的mongos节点、副本集实例的主节点和备节点、以及单节点实例有效。
	PublicIp string `json:"public_ip"`

	// 资源规格编码。
	SpecCode string `json:"spec_code"`

	// 可用区。
	AvailabilityZone string `json:"availability_zone"`
}

NodeItem 实例节点信息。

func (NodeItem) String

func (o NodeItem) String() string

type OpsWindowRequestBody

type OpsWindowRequestBody struct {

	// 开始时间,格式必须为HH:MM且有效,当前时间指UTC时间。不能与结束时间相同,只能为整点。
	StartTime string `json:"start_time"`

	// 结束时间,格式必须为HH:MM且有效,当前时间指UTC时间。不能与开始时间相同,只能为整点。
	EndTime string `json:"end_time"`
}

func (OpsWindowRequestBody) String

func (o OpsWindowRequestBody) String() string

type ParamGroupInfoResult

type ParamGroupInfoResult struct {

	// 参数模板ID。
	Id string `json:"id"`

	// 参数模板名称。
	Name string `json:"name"`

	// 参数模板描述。
	Description string `json:"description"`

	// 数据库版本。
	DatastoreVersion string `json:"datastore_version"`

	// 数据库类型。
	DatastoreName string `json:"datastore_name"`

	// 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Created string `json:"created"`

	// 更新时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Updated string `json:"updated"`
}

func (ParamGroupInfoResult) String

func (o ParamGroupInfoResult) String() string

type ProduceAuditlogLinksRequestBody

type ProduceAuditlogLinksRequestBody struct {

	// 审计日志ID列表,限制50条以内。
	Ids []string `json:"ids"`
}

func (ProduceAuditlogLinksRequestBody) String

type QueryConnectionsResponse

type QueryConnectionsResponse struct {

	// 连接到该实例或节点的客户端IP地址。
	ClientIp string `json:"client_ip"`

	// 该IP对应的连接数。
	Count int32 `json:"count"`
}

func (QueryConnectionsResponse) String

func (o QueryConnectionsResponse) String() string

type QueryInstanceResponse

type QueryInstanceResponse struct {

	// 实例ID。
	Id string `json:"id"`

	// 实例名称。
	Name string `json:"name"`

	// 实例备注。
	Remark string `json:"remark"`

	// 实例状态。 取值: - normal,表示实例正常。 - abnormal,表示实例异常。 - creating,表示实例创建中。 - frozen,表示实例被冻结。 - data_disk_full,表示实例磁盘已满。 - createfail,表示实例创建失败。 - enlargefail,表示实例扩容节点个数失败。
	Status string `json:"status"`

	// 数据库端口号。文档数据库实例支持的端口号范围为2100~9500。
	Port string `json:"port"`

	// 实例类型。与请求参数相同。
	Mode string `json:"mode"`

	// 实例所在区域。
	Region string `json:"region"`

	Datastore *DatastoreItem `json:"datastore"`

	// 存储引擎。取值为“wiredTiger”。
	Engine string `json:"engine"`

	// 实例创建时间。
	Created string `json:"created"`

	// 实例操作最新变更的时间。
	Updated string `json:"updated"`

	// 默认用户名。取值为“rwuser”。
	DbUserName string `json:"db_user_name"`

	// 是否开启SSL安全连接。 - 取值为“1”,表示开启。 - 取值为“0”,表示不开启。
	Ssl int32 `json:"ssl"`

	// 虚拟私有云ID。
	VpcId string `json:"vpc_id"`

	// 子网ID。
	SubnetId string `json:"subnet_id"`

	// 安全组ID。
	SecurityGroupId string `json:"security_group_id"`

	BackupStrategy *BackupStrategyForItemResponse `json:"backup_strategy"`

	// 计费方式。 - 取值为“0”,表示按需计费。 - 取值为“1”,表示包年/包月计费。
	PayMode *string `json:"pay_mode,omitempty"`

	// 系统可维护时间窗。
	MaintenanceWindow string `json:"maintenance_window"`

	// 组信息。
	Groups []GroupResponseItem `json:"groups"`

	// 磁盘加密的密钥ID。
	DiskEncryptionId string `json:"disk_encryption_id"`

	// 企业项目ID。取值为“0”,表示为default企业项目。
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 时区。
	TimeZone string `json:"time_zone"`

	// 专属存储池ID。
	DssPoolId *string `json:"dss_pool_id,omitempty"`

	// 实例正在执行的动作。
	Actions []string `json:"actions"`

	// 订单ID,仅包周期场景返回。
	OrderId *string `json:"order_id,omitempty"`

	// 标签列表。
	Tags []TagResponse `json:"tags"`
}

QueryInstanceResponse 实例信息。

func (QueryInstanceResponse) String

func (o QueryInstanceResponse) String() string

type QueryMatchItem

type QueryMatchItem struct {

	// 取值为“instance_name”或“instance_id”,分别表示按实例名称或按实例ID匹配查询。
	Key QueryMatchItemKey `json:"key"`

	// 待匹配的实例名称或实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	Value string `json:"value"`
}

func (QueryMatchItem) String

func (o QueryMatchItem) String() string

type QueryMatchItemKey

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

func (QueryMatchItemKey) MarshalJSON

func (c QueryMatchItemKey) MarshalJSON() ([]byte, error)

func (*QueryMatchItemKey) UnmarshalJSON

func (c *QueryMatchItemKey) UnmarshalJSON(b []byte) error

func (QueryMatchItemKey) Value

func (c QueryMatchItemKey) Value() string

type QueryMatchItemKeyEnum

type QueryMatchItemKeyEnum struct {
	INSTANCE_NAME QueryMatchItemKey
	INSTANCE_ID   QueryMatchItemKey
}

func GetQueryMatchItemKeyEnum

func GetQueryMatchItemKeyEnum() QueryMatchItemKeyEnum

type QueryProjectTagItem

type QueryProjectTagItem struct {

	// 标签键。最大长度36个unicode字符,key不能为空。 字符集:0-9,A-Z,a-z,“_”,“-”,中文。
	Key *string `json:"key,omitempty"`

	// 标签值。最大长度43个unicode字符,可以为空字符串。 字符集:0-9,A-Z,a-z,“_”,“.”,“-”,中文。
	Values *[]string `json:"values,omitempty"`
}

func (QueryProjectTagItem) String

func (o QueryProjectTagItem) String() string

type QueryResourceTagItem

type QueryResourceTagItem struct {

	// 标签键。最大长度36个unicode字符,key不能为空。 字符集:0-9,A-Z,a-z,“_”,“-”,中文。
	Key *string `json:"key,omitempty"`

	// 标签值。最大长度43个unicode字符,可以为空字符串。 字符集:0-9,A-Z,a-z,“_”,“.”,“-”,中文。
	Value *string `json:"value,omitempty"`
}

func (QueryResourceTagItem) String

func (o QueryResourceTagItem) String() string

type QuerySessionResponse

type QuerySessionResponse struct {

	// 会话ID。
	Id string `json:"id"`

	// 当前会话是否活跃。 取值为“true”,表示活跃。 取值为“false”,表示不活跃。
	Active bool `json:"active"`

	// 操作。
	Operation string `json:"operation"`

	// 操作类型。
	Type string `json:"type"`

	// 运行时间,单位为 ms。
	CostTime string `json:"cost_time"`

	// 执行计划描述。
	PlanSummary string `json:"plan_summary"`

	// 主机。
	Host string `json:"host"`

	// 客户端地址。
	Client string `json:"client"`

	// 连接描述。
	Description string `json:"description"`

	// 命名空间。
	Namespace string `json:"namespace"`
}

QuerySessionResponse 会话详细信息列表。

func (QuerySessionResponse) String

func (o QuerySessionResponse) String() string

type QueryTagItem

type QueryTagItem struct {

	// 标签键。最大长度36个unicode字符,key不能为空或者空字符串,不能为空格,校验和使用之前先排除前后半角空格。
	Key string `json:"key"`

	// 标签值列表。最大长度43个unicode字符,不能为空格,校验和使用之前先排除前后半角空格。如果values为空列表,则表示查询任意value。value之间为或的关系。
	Values []string `json:"values"`
}

func (QueryTagItem) String

func (o QueryTagItem) String() string

type RecycleDatastore

type RecycleDatastore struct {

	// 数据库版本类型。取值“DDS-Community”。
	Type RecycleDatastoreType `json:"type"`

	// 数据库版本。支持3.4、3.2和4.0版本。取值为“3.4”、“3.2”或“4.0”。
	Version string `json:"version"`
}

RecycleDatastore 数据库信息。

func (RecycleDatastore) String

func (o RecycleDatastore) String() string

type RecycleDatastoreType

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

func (RecycleDatastoreType) MarshalJSON

func (c RecycleDatastoreType) MarshalJSON() ([]byte, error)

func (*RecycleDatastoreType) UnmarshalJSON

func (c *RecycleDatastoreType) UnmarshalJSON(b []byte) error

func (RecycleDatastoreType) Value

func (c RecycleDatastoreType) Value() string

type RecycleDatastoreTypeEnum

type RecycleDatastoreTypeEnum struct {
	DDS_COMMUNITY RecycleDatastoreType
}

func GetRecycleDatastoreTypeEnum

func GetRecycleDatastoreTypeEnum() RecycleDatastoreTypeEnum

type RecycleInstance

type RecycleInstance struct {

	// 实例ID
	Id *string `json:"id,omitempty"`

	// 实例名称
	Name *string `json:"name,omitempty"`

	// 实例类型。支持集群、副本集、以及单节点。 取值   - Sharding   - ReplicaSet   - Single
	Mode *string `json:"mode,omitempty"`

	Datastore *RecycleDatastore `json:"datastore,omitempty"`

	// 计费方式。 - 取值为“0”,表示按需计费。 - 取值为“1”,表示包年/包月计费。
	PayMode *string `json:"pay_mode,omitempty"`

	// 企业项目ID,取值为“0”,表示为default企业项目
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 备份ID
	BackupId *string `json:"backup_id,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 删除时间
	DeletedAt *string `json:"deleted_at,omitempty"`

	// 保留截止时间
	RetainedUntil *string `json:"retained_until,omitempty"`
}

func (RecycleInstance) String

func (o RecycleInstance) String() string

type RecyclePolicy

type RecyclePolicy struct {

	// 打开回收策略,不可关闭 - true 打开回收策略
	Enabled bool `json:"enabled"`

	// 策略保持时长(1-7天),天数为正整数,不填默认保留7天
	RetentionPeriodInDays *int32 `json:"retention_period_in_days,omitempty"`
}

func (RecyclePolicy) String

func (o RecyclePolicy) String() string

type RecyclePolicyRequestBody

type RecyclePolicyRequestBody struct {
	RecyclePolicy *RecyclePolicy `json:"recycle_policy"`
}

func (RecyclePolicyRequestBody) String

func (o RecyclePolicyRequestBody) String() string

type ReduceInstanceNodeRequestBody

type ReduceInstanceNodeRequestBody struct {

	// 删除的节点数量。
	Num *int32 `json:"num,omitempty"`

	// 指定删除节点的ID列表。 - num与node_list必须有一个字段传值 - 如果num与node_list同时传值时,则以node_list的值为主 - 删除的节点角色不能是Primary - 如果是多AZ实例,请确保删除节点后,每个AZ至少保留一个节点
	NodeList *[]string `json:"node_list,omitempty"`
}

func (ReduceInstanceNodeRequestBody) String

type ResetConfigurationRequest

type ResetConfigurationRequest struct {

	// 需重置的参数模板ID。
	ConfigId string `json:"config_id"`
}

ResetConfigurationRequest Request Object

func (ResetConfigurationRequest) String

func (o ResetConfigurationRequest) String() string

type ResetConfigurationResponse

type ResetConfigurationResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ResetConfigurationResponse Response Object

func (ResetConfigurationResponse) String

type ResetPasswordRequest

type ResetPasswordRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *ResetPasswordRequestBody `json:"body,omitempty"`
}

ResetPasswordRequest Request Object

func (ResetPasswordRequest) String

func (o ResetPasswordRequest) String() string

type ResetPasswordRequestBody

type ResetPasswordRequestBody struct {

	// 数据库密码。取值范围:长度为8~32位,必须是大写字母(A~Z)、小写字母(a~z)、数字(0~9)、特殊字符~!@#%^*-_=+?的组合。建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。
	UserPwd string `json:"user_pwd"`

	// 数据库用户名称,默认为“rwuser”。取值范围:长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、中划线、下划线和点。
	UserName *string `json:"user_name,omitempty"`

	// 用户所在的数据库,默认为“admin”。取值范围:长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、下划线。
	DbName *string `json:"db_name,omitempty"`
}

func (ResetPasswordRequestBody) String

func (o ResetPasswordRequestBody) String() string

type ResetPasswordResponse

type ResetPasswordResponse struct {
	HttpStatusCode int `json:"-"`
}

ResetPasswordResponse Response Object

func (ResetPasswordResponse) String

func (o ResetPasswordResponse) String() string

type ResizeInstanceOption

type ResizeInstanceOption struct {

	// 对象类型。 - 对于集群实例,该参数为必选。变更mongos节点规格时,取值为“mongos”;变更shard组规格时,取值为“shard”。 - 对于副本集和单节点实例,不传该参数。
	TargetType *ResizeInstanceOptionTargetType `json:"target_type,omitempty"`

	// 待变更规格的节点ID或实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。 - 对于集群实例,变更mongos节点规格时,取值为mongos节点ID;变更shard组规格时,取值为shard组ID。 - 对于副本集实例,取值为相应的实例ID。 - 对于单节点实例,取值为相应的实例ID。
	TargetId string `json:"target_id"`

	// 变更至新规格的资源规格编码。
	TargetSpecCode string `json:"target_spec_code"`
}

func (ResizeInstanceOption) String

func (o ResizeInstanceOption) String() string

type ResizeInstanceOptionTargetType

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

func (ResizeInstanceOptionTargetType) MarshalJSON

func (c ResizeInstanceOptionTargetType) MarshalJSON() ([]byte, error)

func (*ResizeInstanceOptionTargetType) UnmarshalJSON

func (c *ResizeInstanceOptionTargetType) UnmarshalJSON(b []byte) error

func (ResizeInstanceOptionTargetType) Value

type ResizeInstanceOptionTargetTypeEnum

type ResizeInstanceOptionTargetTypeEnum struct {
	MONGOS ResizeInstanceOptionTargetType
	SHARD  ResizeInstanceOptionTargetType
}

func GetResizeInstanceOptionTargetTypeEnum

func GetResizeInstanceOptionTargetTypeEnum() ResizeInstanceOptionTargetTypeEnum

type ResizeInstanceRequest

type ResizeInstanceRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *ResizeInstanceRequestBody `json:"body,omitempty"`
}

ResizeInstanceRequest Request Object

func (ResizeInstanceRequest) String

func (o ResizeInstanceRequest) String() string

type ResizeInstanceRequestBody

type ResizeInstanceRequestBody struct {
	Resize *ResizeInstanceOption `json:"resize"`

	// 变更包年包月实例规格时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 - 对于降低规格场景,该字段无效。 - 对于扩大规格场景:   - true,表示自动从账户中支付。   - false,表示手动从账户中支付,默认为该方式。
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}

func (ResizeInstanceRequestBody) String

func (o ResizeInstanceRequestBody) String() string

type ResizeInstanceResponse

type ResizeInstanceResponse struct {

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 订单ID,仅变更包年包月实例的规格时返回该参数。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ResizeInstanceResponse Response Object

func (ResizeInstanceResponse) String

func (o ResizeInstanceResponse) String() string

type ResizeInstanceVolumeOption

type ResizeInstanceVolumeOption struct {

	// 待扩容到的磁盘容量。取值为10的整数倍,并且大于当前磁盘容量。 - 对于集群实例,表示扩容到的单个shard组的磁盘容量。取值范围:10GB~2000GB。 - 对于副本集实例,表示扩容到的实例的磁盘容量,取值范围:10GB~2000GB。 - 对于单节点实例,表示扩容到的实例的磁盘容量,取值范围:10GB~1000GB。
	Size string `json:"size"`

	// 角色组ID。 - 对于集群实例,该参数为shard组ID。 - 对于副本集和单节点实例,不传该参数。
	GroupId *string `json:"group_id,omitempty"`

	// 副本集只读节点磁盘扩容时,需要传入该参数,当前list只支持传入一个元素。
	NodeIds *[]string `json:"node_ids,omitempty"`
}

func (ResizeInstanceVolumeOption) String

type ResizeInstanceVolumeRequest

type ResizeInstanceVolumeRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *ResizeInstanceVolumeRequestBody `json:"body,omitempty"`
}

ResizeInstanceVolumeRequest Request Object

func (ResizeInstanceVolumeRequest) String

type ResizeInstanceVolumeRequestBody

type ResizeInstanceVolumeRequestBody struct {
	Volume *ResizeInstanceVolumeOption `json:"volume"`

	// 扩容包年包月实例的存储容量时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 - true,表示自动从账户中支付。 - false,表示手动从账户中支付,默认为该方式。
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}

func (ResizeInstanceVolumeRequestBody) String

type ResizeInstanceVolumeResponse

type ResizeInstanceVolumeResponse struct {

	// 工作流ID。
	JobId *string `json:"job_id,omitempty"`

	// 订单ID,仅扩容包年包月实例的存储容量时返回该参数。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ResizeInstanceVolumeResponse Response Object

func (ResizeInstanceVolumeResponse) String

type RestartInstanceRequest

type RestartInstanceRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *RestartInstanceRequestBody `json:"body,omitempty"`
}

RestartInstanceRequest Request Object

func (RestartInstanceRequest) String

func (o RestartInstanceRequest) String() string

type RestartInstanceRequestBody

type RestartInstanceRequestBody struct {

	// 待重启对象的类型。 - 重启集群实例下的节点时,该参数必选。取值为“mongos”、“shard”、或“config”。 - 重启整个实例时,不传该参数。
	TargetType *RestartInstanceRequestBodyTargetType `json:"target_type,omitempty"`

	// 待重启对象的ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。 - 重启集群实例下的节点时,对于mongos节点,取值为mongos节点ID,对于shard和config组,取值为shard和config组ID。 - 重启整个实例时,取值为实例ID。
	TargetId string `json:"target_id"`
}

func (RestartInstanceRequestBody) String

type RestartInstanceRequestBodyTargetType

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

func (RestartInstanceRequestBodyTargetType) MarshalJSON

func (c RestartInstanceRequestBodyTargetType) MarshalJSON() ([]byte, error)

func (*RestartInstanceRequestBodyTargetType) UnmarshalJSON

func (c *RestartInstanceRequestBodyTargetType) UnmarshalJSON(b []byte) error

func (RestartInstanceRequestBodyTargetType) Value

type RestartInstanceResponse

type RestartInstanceResponse struct {

	// 工作流ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

RestartInstanceResponse Response Object

func (RestartInstanceResponse) String

func (o RestartInstanceResponse) String() string

type RestoreInstanceFromCollectionRequest

type RestoreInstanceFromCollectionRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *RestoreInstanceFromCollectionRequestBody `json:"body,omitempty"`
}

RestoreInstanceFromCollectionRequest Request Object

func (RestoreInstanceFromCollectionRequest) String

type RestoreInstanceFromCollectionRequestBody

type RestoreInstanceFromCollectionRequestBody struct {

	// 数据库信息。
	RestoreCollections []RestoreInstanceFromCollectionRequestBodyRestoreCollections `json:"restore_collections"`
}

func (RestoreInstanceFromCollectionRequestBody) String

type RestoreInstanceFromCollectionRequestBodyCollections

type RestoreInstanceFromCollectionRequestBodyCollections struct {

	// 恢复前表名。
	OldName string `json:"old_name"`

	// 恢复后表名。
	NewName *string `json:"new_name,omitempty"`

	// 数据库集合恢复时间点。UNIX时间戳格式,单位是毫秒,时区是UTC。
	RestoreCollectionTime string `json:"restore_collection_time"`
}

func (RestoreInstanceFromCollectionRequestBodyCollections) String

type RestoreInstanceFromCollectionRequestBodyRestoreCollections

type RestoreInstanceFromCollectionRequestBodyRestoreCollections struct {

	// 数据库名称。
	Database string `json:"database"`

	// 数据库恢复时间点。如果是数据库级恢复,该参数必传,UNIX时间戳格式,单位是毫秒,时区是UTC。
	RestoreDatabaseTime *string `json:"restore_database_time,omitempty"`

	// 集合信息。
	Collections *[]RestoreInstanceFromCollectionRequestBodyCollections `json:"collections,omitempty"`
}

func (RestoreInstanceFromCollectionRequestBodyRestoreCollections) String

type RestoreInstanceFromCollectionResponse

type RestoreInstanceFromCollectionResponse struct {

	// 库表级恢复的异步任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

RestoreInstanceFromCollectionResponse Response Object

func (RestoreInstanceFromCollectionResponse) String

type RestoreInstanceRequest

type RestoreInstanceRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	Body *RestoreInstanceRequestBody `json:"body,omitempty"`
}

RestoreInstanceRequest Request Object

func (RestoreInstanceRequest) String

func (o RestoreInstanceRequest) String() string

type RestoreInstanceRequestBody

type RestoreInstanceRequestBody struct {
	Source *Source `json:"source"`

	Target *Target `json:"target"`
}

func (RestoreInstanceRequestBody) String

type RestoreInstanceResponse

type RestoreInstanceResponse struct {

	// 恢复到当前实例的异步任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

RestoreInstanceResponse Response Object

func (RestoreInstanceResponse) String

func (o RestoreInstanceResponse) String() string

type RestoreNewInstanceConfigurationsOption

type RestoreNewInstanceConfigurationsOption struct {

	// 节点类型。 取值:   - 集群实例包含mongos、shard和config节点,各节点下该参数取值分别为“mongos”、“shard”和“config”。   - 副本集实例下该参数取值为“replica”。   - 单节点实例下该参数取值为“single”。
	Type RestoreNewInstanceConfigurationsOptionType `json:"type"`

	// 参数组id。
	ConfigurationId string `json:"configuration_id"`
}

RestoreNewInstanceConfigurationsOption 参数组配置信息。

func (RestoreNewInstanceConfigurationsOption) String

type RestoreNewInstanceConfigurationsOptionType

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

func (RestoreNewInstanceConfigurationsOptionType) MarshalJSON

func (*RestoreNewInstanceConfigurationsOptionType) UnmarshalJSON

func (RestoreNewInstanceConfigurationsOptionType) Value

type RestoreNewInstanceFlavorOption

type RestoreNewInstanceFlavorOption struct {

	// 节点类型。 取值:   - 集群实例包含mongos、shard和config节点,各节点下该参数取值分别为“mongos”、“shard”和“config”。   - 副本集实例下该参数取值为“replica”。   - 单节点实例下该参数取值为“single”。
	Type RestoreNewInstanceFlavorOptionType `json:"type"`

	// 节点数量。 取值:   - 集群实例下“mongos”类型的节点数量可取2~16。   - 集群实例下“shard”类型的组数量可取2~16。   - “shard”类型的组数量可取2~16。   - “config”类型的组数量只能取1。   - “replica”类型的组数量只能取1。   - “single”类型的节点数量只能取1。
	Num string `json:"num"`

	// 磁盘大小。 取值:必须为10的整数倍。单位为GB。   - 对于集群实例,shard组可取10GB~2000GB,config组仅可取20GB。mongos节点不涉及选择磁盘,该参数无意义。   - 对于副本集实例,可取10GB~2000GB。   - 对于单节点实例,可取10GB~1000GB。
	Size *string `json:"size,omitempty"`

	// 资源规格编码
	SpecCode string `json:"spec_code"`
}

RestoreNewInstanceFlavorOption 实例规格详情。

func (RestoreNewInstanceFlavorOption) String

type RestoreNewInstanceFlavorOptionType

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

func (RestoreNewInstanceFlavorOptionType) MarshalJSON

func (c RestoreNewInstanceFlavorOptionType) MarshalJSON() ([]byte, error)

func (*RestoreNewInstanceFlavorOptionType) UnmarshalJSON

func (c *RestoreNewInstanceFlavorOptionType) UnmarshalJSON(b []byte) error

func (RestoreNewInstanceFlavorOptionType) Value

type RestoreNewInstanceRequest

type RestoreNewInstanceRequest struct {
	Body *RestoreNewInstanceRequestBody `json:"body,omitempty"`
}

RestoreNewInstanceRequest Request Object

func (RestoreNewInstanceRequest) String

func (o RestoreNewInstanceRequest) String() string

type RestoreNewInstanceRequestBody

type RestoreNewInstanceRequestBody struct {

	// 实例名称。用于表示实例的名称,用于表示实例的名称,允许和已有名称重复。 取值范围:长度为4~64位,必须以字母开头(A~Z或a~z),区分大小写,可以包含字母、数字(0~9)、中划线(-)或者下划线(_),不能包含其他特殊字符。
	Name string `json:"name"`

	// 可用区ID,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
	AvailabilityZone string `json:"availability_zone"`

	// 虚拟私有云ID。获取方法请参见《虚拟私有云API参考》中“VPC”的内容。 取值:非空,字符长度校验,严格UUID正则校验。
	VpcId string `json:"vpc_id"`

	// 子网ID。获取方法请参见《虚拟私有云API参考》中“子网”的内容。
	SubnetId string `json:"subnet_id"`

	// 指定实例所属的安全组ID。 获取方法请参见《虚拟私有云API参考》中“安全组”的内容。
	SecurityGroupId string `json:"security_group_id"`

	// 数据库密码。 取值范围:长度为8~32位,必须是大写字母(A~Z)、小写字母(a~z)、数字(0~9)、特殊字符~!@#%^*-_=+?的组合。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。
	Password *string `json:"password,omitempty"`

	// 磁盘加密时的密钥ID,严格UUID正则校验。 不传该参数时,表示不进行磁盘加密。
	DiskEncryptionId *string `json:"disk_encryption_id,omitempty"`

	// 参数组配置信息。
	Configurations *[]RestoreNewInstanceConfigurationsOption `json:"configurations,omitempty"`

	// 实例规格详情。
	Flavor []RestoreNewInstanceFlavorOption `json:"flavor"`

	BackupStrategy *BackupStrategy `json:"backup_strategy,omitempty"`

	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// SSL开关选项。 取值: - 取“0”,表示DDS实例默认不启用SSL连接。 - 取“1”,表示DDS实例默认启用SSL连接。 - 不传该参数时,默认启用SSL连接。
	SslOption *string `json:"ssl_option,omitempty"`

	// 创建新实例所在专属存储池ID,仅专属云创建实例时有效。
	DssPoolId *string `json:"dss_pool_id,omitempty"`

	// 创建新实例设置云服务器组关联的策略名称列表,仅专属云创建实例时有效。 取值    - 取“anti-affinity”,表示DDS实例开启反亲和部署,反亲和部署是出于高可用性考虑,将您的Primary、Secondary和Hidden节点分别创建在不同的物理机上。当前仅支持该值,不传该值默认不开启反亲和部署。
	ServerGroupPolicies *[]string `json:"server_group_policies,omitempty"`

	RestorePoint *RestorePoint `json:"restore_point"`

	ChargeInfo *ChargeInfoOption `json:"charge_info,omitempty"`
}

RestoreNewInstanceRequestBody 实例信息。

func (RestoreNewInstanceRequestBody) String

type RestoreNewInstanceResponse

type RestoreNewInstanceResponse struct {

	// 实例ID。
	Id *string `json:"id,omitempty"`

	Datastore *Datastore `json:"datastore,omitempty"`

	// 实例名称,与请求参数相同。
	Name *string `json:"name,omitempty"`

	// 创建时间为本地时间,格式为“yyyy-mm-dd hh:mm:ss”。
	Created *string `json:"created,omitempty"`

	// 实例状态,取值为“creating”。
	Status *string `json:"status,omitempty"`

	// 区域ID,与请求参数相同。
	Region *string `json:"region,omitempty"`

	// 可用区ID,与请求参数相同。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 虚拟私有云ID,与请求参数相同。
	VpcId *string `json:"vpc_id,omitempty"`

	// 子网ID,与请求参数相同。
	SubnetId *string `json:"subnet_id,omitempty"`

	// 实例所属的安全组ID,与请求参数相同。
	SecurityGroupId *string `json:"security_group_id,omitempty"`

	// 磁盘加密的密钥ID,与请求参数相同。
	DiskEncryptionId *string `json:"disk_encryption_id,omitempty"`

	// 实例类型,与请求参数相同。
	Mode *string `json:"mode,omitempty"`

	// 参数组配置信息。
	Configurations *[]RestoreNewInstanceConfigurationsOption `json:"configurations,omitempty"`

	// 实例规格详情,与请求参数相同。
	Flavor *[]RestoreNewInstanceFlavorOption `json:"flavor,omitempty"`

	BackupStrategy *BackupStrategy `json:"backup_strategy,omitempty"`

	// 企业项目ID。取值为“0”,表示为default企业项目。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// SSL开关选项,与请求参数相同。
	SslOption *string `json:"ssl_option,omitempty"`

	// 专属存储池ID。
	DssPoolId *string `json:"dss_pool_id,omitempty"`

	// 创建实例的工作流ID。
	JobId *string `json:"job_id,omitempty"`

	// 创建实例的订单ID,仅创建包年包月实例时返回该参数。
	OrderId *string `json:"order_id,omitempty"`

	ChargeInfo     *ChargeInfoResult `json:"charge_info,omitempty"`
	HttpStatusCode int               `json:"-"`
}

RestoreNewInstanceResponse Response Object

func (RestoreNewInstanceResponse) String

type RestorePoint

type RestorePoint struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。当type为“backup”,为非必选。当type为“timestamp”,为必选。
	InstanceId *string `json:"instance_id,omitempty"`

	// 恢复方式,枚举值: - “backup”,表示使用备份文件恢复,按照此方式恢复时,当“type”字段为非必选时,“backup_id”必选。 - “timestamp”,表示按时间点恢复,按照此方式恢复时,当“type”字段必选时,“restore_time”必选。
	Type *string `json:"type,omitempty"`

	// 用于恢复的备份ID。当使用备份文件恢复时需要指定该参数。当“type”字段为非必选时,“backup_id”必选。
	BackupId *string `json:"backup_id,omitempty"`

	// 恢复数据的时间点,格式为UNIX时间戳,单位是毫秒,时区为UTC。须知:当“type”字段必选时,“restore_time”必选。
	RestoreTime *string `json:"restore_time,omitempty"`
}

func (RestorePoint) String

func (o RestorePoint) String() string

type RolesOption

type RolesOption struct {

	// 被继承角色所在数据库名称。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、下划线。
	RoleDbName string `json:"role_db_name"`

	// 被继承角色的名称。 - 长度为1~64位,可以包含大写字母(A~Z)、小写字母(a~z)、数字(0~9)、中划线、下划线和点。
	RoleName string `json:"role_name"`
}

func (RolesOption) String

func (o RolesOption) String() string

type SetAuditlogPolicyRequest

type SetAuditlogPolicyRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *SetAuditlogPolicyRequestBody `json:"body,omitempty"`
}

SetAuditlogPolicyRequest Request Object

func (SetAuditlogPolicyRequest) String

func (o SetAuditlogPolicyRequest) String() string

type SetAuditlogPolicyRequestBody

type SetAuditlogPolicyRequestBody struct {

	// 审计日志保存天数,取值范围0,7~732。 - 取值0,表示关闭审计日志策略。 - 取值7~732,表示开启审计日志策略,并设置审计日志保存天数为该值。
	KeepDays int32 `json:"keep_days"`

	// 仅关闭审计日志策略时有效。 - true(默认),表示关闭审计日志策略的同时,保留历史审计日志。 - false,表示关闭审计日志策略的同时,删除已有的历史审计日志。
	ReserveAuditlogs *string `json:"reserve_auditlogs,omitempty"`

	// 仅打开审计日志策略时有效,并且为空时,默认全部。审计范围。请输入数据库或集合名称,多个库或集合请用英文逗号分隔。若名称中有英文逗号,请在逗号前添加“$”符号,用以区分分隔符。
	AuditScope *string `json:"audit_scope,omitempty"`

	// 仅打开审计日志策略时有效,并且为空时,默认全部。审计类型。支持insert,delete,update,query等。
	AuditTypes *[]string `json:"audit_types,omitempty"`
}

func (SetAuditlogPolicyRequestBody) String

type SetAuditlogPolicyResponse

type SetAuditlogPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

SetAuditlogPolicyResponse Response Object

func (SetAuditlogPolicyResponse) String

func (o SetAuditlogPolicyResponse) String() string

type SetBackupPolicyRequest

type SetBackupPolicyRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *SetBackupPolicyRequestBody `json:"body,omitempty"`
}

SetBackupPolicyRequest Request Object

func (SetBackupPolicyRequest) String

func (o SetBackupPolicyRequest) String() string

type SetBackupPolicyRequestBody

type SetBackupPolicyRequestBody struct {
	BackupPolicy *BackupPolicy `json:"backup_policy"`
}

func (SetBackupPolicyRequestBody) String

type SetBackupPolicyResponse

type SetBackupPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

SetBackupPolicyResponse Response Object

func (SetBackupPolicyResponse) String

func (o SetBackupPolicyResponse) String() string

type SetBalancerSwitchRequest

type SetBalancerSwitchRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 开启或关闭集群均衡。
	Action SetBalancerSwitchRequestAction `json:"action"`
}

SetBalancerSwitchRequest Request Object

func (SetBalancerSwitchRequest) String

func (o SetBalancerSwitchRequest) String() string

type SetBalancerSwitchRequestAction

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

func (SetBalancerSwitchRequestAction) MarshalJSON

func (c SetBalancerSwitchRequestAction) MarshalJSON() ([]byte, error)

func (*SetBalancerSwitchRequestAction) UnmarshalJSON

func (c *SetBalancerSwitchRequestAction) UnmarshalJSON(b []byte) error

func (SetBalancerSwitchRequestAction) Value

type SetBalancerSwitchRequestActionEnum

type SetBalancerSwitchRequestActionEnum struct {
	START SetBalancerSwitchRequestAction
	STOP  SetBalancerSwitchRequestAction
}

func GetSetBalancerSwitchRequestActionEnum

func GetSetBalancerSwitchRequestActionEnum() SetBalancerSwitchRequestActionEnum

type SetBalancerSwitchResponse

type SetBalancerSwitchResponse struct {

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

SetBalancerSwitchResponse Response Object

func (SetBalancerSwitchResponse) String

func (o SetBalancerSwitchResponse) String() string

type SetBalancerWindowRequest

type SetBalancerWindowRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *BalancerActiveWindow `json:"body,omitempty"`
}

SetBalancerWindowRequest Request Object

func (SetBalancerWindowRequest) String

func (o SetBalancerWindowRequest) String() string

type SetBalancerWindowResponse

type SetBalancerWindowResponse struct {

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

SetBalancerWindowResponse Response Object

func (SetBalancerWindowResponse) String

func (o SetBalancerWindowResponse) String() string

type SetRecyclePolicyRequest

type SetRecyclePolicyRequest struct {
	Body *RecyclePolicyRequestBody `json:"body,omitempty"`
}

SetRecyclePolicyRequest Request Object

func (SetRecyclePolicyRequest) String

func (o SetRecyclePolicyRequest) String() string

type SetRecyclePolicyResponse

type SetRecyclePolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

SetRecyclePolicyResponse Response Object

func (SetRecyclePolicyResponse) String

func (o SetRecyclePolicyResponse) String() string

type ShowApiVersionRequest

type ShowApiVersionRequest struct {

	// API版本
	Version string `json:"version"`
}

ShowApiVersionRequest Request Object

func (ShowApiVersionRequest) String

func (o ShowApiVersionRequest) String() string

type ShowApiVersionResponse

type ShowApiVersionResponse struct {
	Version        *ApiVersion `json:"version,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ShowApiVersionResponse Response Object

func (ShowApiVersionResponse) String

func (o ShowApiVersionResponse) String() string

type ShowAuditlogPolicyRequest

type ShowAuditlogPolicyRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`
}

ShowAuditlogPolicyRequest Request Object

func (ShowAuditlogPolicyRequest) String

func (o ShowAuditlogPolicyRequest) String() string

type ShowAuditlogPolicyResponse

type ShowAuditlogPolicyResponse struct {

	// 审计日志保存天数,审计日志策略关闭时为0。
	KeepDays *int32 `json:"keep_days,omitempty"`

	// 审计范围。
	AuditScope *string `json:"audit_scope,omitempty"`

	// 审计类型。
	AuditTypes     *[]string `json:"audit_types,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ShowAuditlogPolicyResponse Response Object

func (ShowAuditlogPolicyResponse) String

type ShowBackupDownloadLinkRequest

type ShowBackupDownloadLinkRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 备份ID。
	BackupId string `json:"backup_id"`
}

ShowBackupDownloadLinkRequest Request Object

func (ShowBackupDownloadLinkRequest) String

type ShowBackupDownloadLinkResponse

type ShowBackupDownloadLinkResponse struct {

	// 备份文件信息。
	Files *[]GetBackupDownloadLinkResponseBodyFiles `json:"files,omitempty"`

	// OBS桶名。
	Bucket         *string `json:"bucket,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowBackupDownloadLinkResponse Response Object

func (ShowBackupDownloadLinkResponse) String

type ShowBackupPolicyRequest

type ShowBackupPolicyRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`
}

ShowBackupPolicyRequest Request Object

func (ShowBackupPolicyRequest) String

func (o ShowBackupPolicyRequest) String() string

type ShowBackupPolicyResponse

type ShowBackupPolicyResponse struct {
	BackupPolicy   *BackupPolicyItem `json:"backup_policy,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ShowBackupPolicyResponse Response Object

func (ShowBackupPolicyResponse) String

func (o ShowBackupPolicyResponse) String() string

type ShowConfigurationAppliedHistoryRequest

type ShowConfigurationAppliedHistoryRequest struct {

	// 参数模板ID。
	ConfigId string `json:"config_id"`

	// 索引位置,偏移量。  从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
	Limit *int32 `json:"limit,omitempty"`
}

ShowConfigurationAppliedHistoryRequest Request Object

func (ShowConfigurationAppliedHistoryRequest) String

type ShowConfigurationAppliedHistoryResponse

type ShowConfigurationAppliedHistoryResponse struct {

	// 参数模板应用历史列表
	Histories      *[]ApplyHistoryInfo `json:"histories,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

ShowConfigurationAppliedHistoryResponse Response Object

func (ShowConfigurationAppliedHistoryResponse) String

type ShowConfigurationModifyHistoryRequest

type ShowConfigurationModifyHistoryRequest struct {

	// 参数模板ID。
	ConfigId string `json:"config_id"`

	// 索引位置,偏移量。  从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询个数上限值。 - 取值范围: 1~100。 - 不传该参数时,默认查询前100条信息。
	Limit *int32 `json:"limit,omitempty"`
}

ShowConfigurationModifyHistoryRequest Request Object

func (ShowConfigurationModifyHistoryRequest) String

type ShowConfigurationModifyHistoryResponse

type ShowConfigurationModifyHistoryResponse struct {

	// 参数模板的修改历史列表。
	Histories      *[]HistoryInfo `json:"histories,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ShowConfigurationModifyHistoryResponse Response Object

func (ShowConfigurationModifyHistoryResponse) String

type ShowConfigurationParameterRequest

type ShowConfigurationParameterRequest struct {

	// 参数模板ID。
	ConfigId string `json:"config_id"`
}

ShowConfigurationParameterRequest Request Object

func (ShowConfigurationParameterRequest) String

type ShowConfigurationParameterResponse

type ShowConfigurationParameterResponse struct {

	// 参数模板ID。
	Id *string `json:"id,omitempty"`

	// 参数模板名称。
	Name *string `json:"name,omitempty"`

	// 数据库版本。
	DatastoreVersion *string `json:"datastore_version,omitempty"`

	// 数据库类型。
	DatastoreName *string `json:"datastore_name,omitempty"`

	// 参数模板描述。
	Description *string `json:"description,omitempty"`

	// 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Created *string `json:"created,omitempty"`

	// 更新时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Updated *string `json:"updated,omitempty"`

	// 参数对象,用户基于默认参数模板自定义的参数配置。
	Parameters     *[]ConfigurationParametersResult `json:"parameters,omitempty"`
	HttpStatusCode int                              `json:"-"`
}

ShowConfigurationParameterResponse Response Object

func (ShowConfigurationParameterResponse) String

type ShowConnectionStatisticsRequest

type ShowConnectionStatisticsRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 节点ID。 - 如取空值,则默认查询实例下所有允许连接的节点的连接数信息。
	NodeId *string `json:"node_id,omitempty"`
}

ShowConnectionStatisticsRequest Request Object

func (ShowConnectionStatisticsRequest) String

type ShowConnectionStatisticsResponse

type ShowConnectionStatisticsResponse struct {

	// 总连接数,包括内部连接与外部连接。
	TotalConnections *int32 `json:"total_connections,omitempty"`

	// 内部总连接数。
	TotalInnerConnections *int32 `json:"total_inner_connections,omitempty"`

	// 外部总连接数。
	TotalOuterConnections *int32 `json:"total_outer_connections,omitempty"`

	// 内部连接统计信息数组,最大记录数为200条。
	InnerConnections *[]QueryConnectionsResponse `json:"inner_connections,omitempty"`

	// 外部连接统计信息数组,最大记录数为200条。
	OuterConnections *[]QueryConnectionsResponse `json:"outer_connections,omitempty"`
	HttpStatusCode   int                         `json:"-"`
}

ShowConnectionStatisticsResponse Response Object

func (ShowConnectionStatisticsResponse) String

type ShowDiskUsageRequest

type ShowDiskUsageRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`
}

ShowDiskUsageRequest Request Object

func (ShowDiskUsageRequest) String

func (o ShowDiskUsageRequest) String() string

type ShowDiskUsageResponse

type ShowDiskUsageResponse struct {

	// 磁盘信息列表
	Volumes        *[]DiskVolumes `json:"volumes,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ShowDiskUsageResponse Response Object

func (ShowDiskUsageResponse) String

func (o ShowDiskUsageResponse) String() string

type ShowEntityConfigurationRequest

type ShowEntityConfigurationRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// - 实例ID或组ID或节点ID。可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。 - 当获取的实例类型是集群,如果获取的是shard组或者config组的参数模板,传值为组ID。如果获取的是mongos节点的参数模板,传值为节点ID。 - 当获取的实例类型是副本集或单节点,传值为实例ID。
	EntityId string `json:"entity_id"`
}

ShowEntityConfigurationRequest Request Object

func (ShowEntityConfigurationRequest) String

type ShowEntityConfigurationResponse

type ShowEntityConfigurationResponse struct {

	// 数据库版本。
	DatastoreVersion *string `json:"datastore_version,omitempty"`

	// 数据库类型。
	DatastoreName *string `json:"datastore_name,omitempty"`

	// 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Created *string `json:"created,omitempty"`

	// 更新时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Updated *string `json:"updated,omitempty"`

	// 参数对象,用户基于默认参数模板自定义的参数配置。
	Parameters     *[]EntityConfigurationParametersResult `json:"parameters,omitempty"`
	HttpStatusCode int                                    `json:"-"`
}

ShowEntityConfigurationResponse Response Object

func (ShowEntityConfigurationResponse) String

type ShowJobDetailRequest

type ShowJobDetailRequest struct {

	// 任务ID。
	Id string `json:"id"`
}

ShowJobDetailRequest Request Object

func (ShowJobDetailRequest) String

func (o ShowJobDetailRequest) String() string

type ShowJobDetailResponse

type ShowJobDetailResponse struct {
	Job            *JobDetail `json:"job,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ShowJobDetailResponse Response Object

func (ShowJobDetailResponse) String

func (o ShowJobDetailResponse) String() string

type ShowQuotasRequest

type ShowQuotasRequest struct {
}

ShowQuotasRequest Request Object

func (ShowQuotasRequest) String

func (o ShowQuotasRequest) String() string

type ShowQuotasResponse

type ShowQuotasResponse struct {
	Quotas         *ShowResourcesListResponseBody `json:"quotas,omitempty"`
	HttpStatusCode int                            `json:"-"`
}

ShowQuotasResponse Response Object

func (ShowQuotasResponse) String

func (o ShowQuotasResponse) String() string

type ShowRecyclePolicyRequest

type ShowRecyclePolicyRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`
}

ShowRecyclePolicyRequest Request Object

func (ShowRecyclePolicyRequest) String

func (o ShowRecyclePolicyRequest) String() string

type ShowRecyclePolicyResponse

type ShowRecyclePolicyResponse struct {
	RecyclePolicy  *RecyclePolicy `json:"recycle_policy,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ShowRecyclePolicyResponse Response Object

func (ShowRecyclePolicyResponse) String

func (o ShowRecyclePolicyResponse) String() string

type ShowReplSetNameRequest

type ShowReplSetNameRequest struct {

	// 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。
	InstanceId string `json:"instance_id"`
}

ShowReplSetNameRequest Request Object

func (ShowReplSetNameRequest) String

func (o ShowReplSetNameRequest) String() string

type ShowReplSetNameResponse

type ShowReplSetNameResponse struct {

	// 连接地址复制集名称:实例高可用连接地址的唯一标识。该参数可以将读请求发送到副本集实例的所有节点。副本集中的所有主机必须具有相同的集名称。字符限制:大小写字母,数字,下划线组合,字母为首,长度限制在3-128
	Name           *string `json:"name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowReplSetNameResponse Response Object

func (ShowReplSetNameResponse) String

func (o ShowReplSetNameResponse) String() string

type ShowResourcesDetailResponseBody

type ShowResourcesDetailResponseBody struct {

	// 配额资源类型,当前配额类型仅支持实例类型(instance)。
	Type string `json:"type"`

	// 实例类型: - 若值为“Single”,则表示单节点实例配额信息。 - 若值为“ReplicaSet”,则表示副本集实例配额信息。 - 若值为“Sharding”,则表示集群实例配额信息。
	Mode string `json:"mode"`

	// 当前配额值。
	Quota int32 `json:"quota"`

	// 已使用的资源数。
	Used int32 `json:"used"`
}

func (ShowResourcesDetailResponseBody) String

type ShowResourcesListResponseBody

type ShowResourcesListResponseBody struct {

	// 资源列表对象。
	Resources []ShowResourcesDetailResponseBody `json:"resources"`
}

func (ShowResourcesListResponseBody) String

type ShowSecondLevelMonitoringStatusRequest

type ShowSecondLevelMonitoringStatusRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`
}

ShowSecondLevelMonitoringStatusRequest Request Object

func (ShowSecondLevelMonitoringStatusRequest) String

type ShowSecondLevelMonitoringStatusResponse

type ShowSecondLevelMonitoringStatusResponse struct {

	// 秒级监控开启状态。  取值为true,开启,取值为false,关闭。
	Enabled        *bool `json:"enabled,omitempty"`
	HttpStatusCode int   `json:"-"`
}

ShowSecondLevelMonitoringStatusResponse Response Object

func (ShowSecondLevelMonitoringStatusResponse) String

type ShowShardingBalancerRequest

type ShowShardingBalancerRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`
}

ShowShardingBalancerRequest Request Object

func (ShowShardingBalancerRequest) String

type ShowShardingBalancerResponse

type ShowShardingBalancerResponse struct {

	// 集群均衡是否打开。
	IsOpen *bool `json:"is_open,omitempty"`

	ActiveWindow   *BalancerActiveWindow `json:"active_window,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

ShowShardingBalancerResponse Response Object

func (ShowShardingBalancerResponse) String

type ShowSlowlogDesensitizationSwitchRequest

type ShowSlowlogDesensitizationSwitchRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建
	InstanceId string `json:"instance_id"`
}

ShowSlowlogDesensitizationSwitchRequest Request Object

func (ShowSlowlogDesensitizationSwitchRequest) String

type ShowSlowlogDesensitizationSwitchResponse

type ShowSlowlogDesensitizationSwitchResponse struct {

	// 开启或关闭慢日志脱敏,取值为on或off。
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowSlowlogDesensitizationSwitchResponse Response Object

func (ShowSlowlogDesensitizationSwitchResponse) String

type ShowUpgradeDurationRequest

type ShowUpgradeDurationRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`
}

ShowUpgradeDurationRequest Request Object

func (ShowUpgradeDurationRequest) String

type ShowUpgradeDurationResponse

type ShowUpgradeDurationResponse struct {

	// 升级策略列表
	Strategies     *[]DurationStrategies `json:"strategies,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

ShowUpgradeDurationResponse Response Object

func (ShowUpgradeDurationResponse) String

type ShrinkInstanceNodesRequest

type ShrinkInstanceNodesRequest struct {

	// 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。
	InstanceId string `json:"instance_id"`

	Body *ReduceInstanceNodeRequestBody `json:"body,omitempty"`
}

ShrinkInstanceNodesRequest Request Object

func (ShrinkInstanceNodesRequest) String

type ShrinkInstanceNodesResponse

type ShrinkInstanceNodesResponse struct {

	// 任务ID,仅按需实例返回该参数。
	JobId *string `json:"job_id,omitempty"`

	// 订单ID,仅包周期实例返回该参数。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShrinkInstanceNodesResponse Response Object

func (ShrinkInstanceNodesResponse) String

type SlowLogDetail

type SlowLogDetail struct {

	// 节点名称。
	NodeName string `json:"node_name"`

	// 节点ID。
	NodeId string `json:"node_id"`

	// 执行语句。
	WholeMessage string `json:"whole_message"`

	// 语句类型。
	OperateType string `json:"operate_type"`

	// 执行时间。单位:ms
	CostTime int32 `json:"cost_time"`

	// 等待锁时间。单位:us
	LockTime int32 `json:"lock_time"`

	// 返回的文档数。
	DocsReturned int32 `json:"docs_returned"`

	// 扫描的文档数。
	DocsScanned int32 `json:"docs_scanned"`

	// 日志所属的数据库库名。
	Database string `json:"database"`

	// 日志所属的数据库表名。
	Collection string `json:"collection"`

	// 日志产生时间,UTC时间。 格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	LogTime string `json:"log_time"`

	// 日志单行序列号
	LineNum string `json:"line_num"`
}

func (SlowLogDetail) String

func (o SlowLogDetail) String() string

type SlowlogResult

type SlowlogResult struct {

	// 节点名称。
	NodeName string `json:"node_name"`

	// 执行语法。
	QuerySample string `json:"query_sample"`

	// 语句类型。
	Type string `json:"type"`

	// 执行时间。
	Time string `json:"time"`

	// 等待锁时间。
	LockTime string `json:"lock_time"`

	// 角色所在数据库名称。
	RowsSent string `json:"rows_sent"`

	// 扫描的行数量。
	RowsExamined string `json:"rows_examined"`

	// 所属数据库。
	Database string `json:"database"`

	// 发生时间,UTC时间。
	StartTime string `json:"start_time"`
}

func (SlowlogResult) String

func (o SlowlogResult) String() string

type Source

type Source struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 表示恢复方式,枚举值: - “backup”,表示使用备份文件恢复,按照此方式恢复时,“type”字段为非必选,“backup_id”必选。 - “timestamp”,表示按时间点恢复,按照此方式恢复时,“type”字段必选,“restore_time”必选。
	Type *string `json:"type,omitempty"`

	// 用于恢复的备份ID。当使用备份文件恢复时需要指定该参数。
	BackupId *string `json:"backup_id,omitempty"`

	// 恢复数据的时间点,格式为UNIX时间戳,单位是毫秒,时区为UTC。
	RestoreTime *string `json:"restore_time,omitempty"`
}

func (Source) String

func (o Source) String() string

type Storage

type Storage struct {

	// 磁盘类型名称,可能取值如下: - ULTRAHIGH,表示SSD。
	Name string `json:"name"`

	// 其中key是可用区编号,value是规格所在az的状态,包含以下状态: - normal,在售。 - unsupported,暂不支持该规格。 - sellout,售罄。
	AzStatus map[string]string `json:"az_status"`
}

Storage 实例磁盘类型信息。

func (Storage) String

func (o Storage) String() string

type SwitchConfigurationRequest

type SwitchConfigurationRequest struct {

	// 参数模板ID。
	ConfigId string `json:"config_id"`

	Body *ApplyConfigurationRequestBody `json:"body,omitempty"`
}

SwitchConfigurationRequest Request Object

func (SwitchConfigurationRequest) String

type SwitchConfigurationResponse

type SwitchConfigurationResponse struct {

	// 应用参数模板的异步任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

SwitchConfigurationResponse Response Object

func (SwitchConfigurationResponse) String

type SwitchSecondLevelMonitoringRequest

type SwitchSecondLevelMonitoringRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	Body *SwitchSecondLevelMonitoringRequestBody `json:"body,omitempty"`
}

SwitchSecondLevelMonitoringRequest Request Object

func (SwitchSecondLevelMonitoringRequest) String

type SwitchSecondLevelMonitoringRequestBody

type SwitchSecondLevelMonitoringRequestBody struct {

	// 是否开启秒级监控。 取值为true为开启,取值为false为关闭。
	Enabled bool `json:"enabled"`
}

func (SwitchSecondLevelMonitoringRequestBody) String

type SwitchSecondLevelMonitoringResponse

type SwitchSecondLevelMonitoringResponse struct {
	HttpStatusCode int `json:"-"`
}

SwitchSecondLevelMonitoringResponse Response Object

func (SwitchSecondLevelMonitoringResponse) String

type SwitchSlowlogDesensitizationRequest

type SwitchSlowlogDesensitizationRequest struct {

	// 语言。
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	// 开启或关闭慢日志脱敏,取值为on或off。
	Status string `json:"status"`
}

SwitchSlowlogDesensitizationRequest Request Object

func (SwitchSlowlogDesensitizationRequest) String

type SwitchSlowlogDesensitizationResponse

type SwitchSlowlogDesensitizationResponse struct {
	HttpStatusCode int `json:"-"`
}

SwitchSlowlogDesensitizationResponse Response Object

func (SwitchSlowlogDesensitizationResponse) String

type SwitchSslRequest

type SwitchSslRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *SwitchSslRequestBody `json:"body,omitempty"`
}

SwitchSslRequest Request Object

func (SwitchSslRequest) String

func (o SwitchSslRequest) String() string

type SwitchSslRequestBody

type SwitchSslRequestBody struct {

	// SSL开关选项。取值:取“0”,表示DDS实例默认不启用SSL连接。取“1”,表示DDS实例默认启用SSL连接。
	SslOption string `json:"ssl_option"`
}

func (SwitchSslRequestBody) String

func (o SwitchSslRequestBody) String() string

type SwitchSslResponse

type SwitchSslResponse struct {

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`

	// SSL开关状态。
	SslOption      *string `json:"ssl_option,omitempty"`
	HttpStatusCode int     `json:"-"`
}

SwitchSslResponse Response Object

func (SwitchSslResponse) String

func (o SwitchSslResponse) String() string

type SwitchoverReplicaSetRequest

type SwitchoverReplicaSetRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`
}

SwitchoverReplicaSetRequest Request Object

func (SwitchoverReplicaSetRequest) String

type SwitchoverReplicaSetResponse

type SwitchoverReplicaSetResponse struct {

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

SwitchoverReplicaSetResponse Response Object

func (SwitchoverReplicaSetResponse) String

type TagItem

type TagItem struct {

	// 标签键。最大长度36个unicode字符,不能为null或者空字符串,不能为空格,校验和使用之前会自动过滤掉前后空格。 字符集:0-9,A-Z,a-z,“_”,“-”,中文。
	Key string `json:"key"`

	// 标签值。最大长度43个unicode字符,可以为空字符串,不能为空格,校验和使用之前会自动过滤掉前后空格。 字符集:0-9,A-Z,a-z,“_”,“.”,“-”,中文。 - “action”值为“create”时,该参数必选。 - “action”值为“delete”时,该参数可选。
	Value *string `json:"value,omitempty"`
}

func (TagItem) String

func (o TagItem) String() string

type TagResponse

type TagResponse struct {

	// 标签键。
	Key string `json:"key"`

	// 标签值。
	Value string `json:"value"`
}

TagResponse 标签信息。

func (TagResponse) String

func (o TagResponse) String() string

type TagWithKeyValue

type TagWithKeyValue struct {

	// 标签键。最大长度36个unicode字符。  key不能为空,不能为空字符串,不能重复。字符集:A-Z,a-z , 0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
	Key string `json:"key"`

	// 标签值。最大长度43个unicode字符。 可以为空字符串。 字符集:A-Z,a-z , 0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
	Value string `json:"value"`
}

TagWithKeyValue 键值对标签。

func (TagWithKeyValue) String

func (o TagWithKeyValue) String() string

type Target

type Target struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`
}

func (Target) String

func (o Target) String() string

type UpdateClientNetworkRequest

type UpdateClientNetworkRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	Body *ClientNetworkRequestBody `json:"body,omitempty"`
}

UpdateClientNetworkRequest Request Object

func (UpdateClientNetworkRequest) String

type UpdateClientNetworkResponse

type UpdateClientNetworkResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateClientNetworkResponse Response Object

func (UpdateClientNetworkResponse) String

type UpdateConfigurationParameterRequest

type UpdateConfigurationParameterRequest struct {

	// 参数模板ID。
	ConfigId string `json:"config_id"`

	Body *UpdateConfigurationParameterRequestBody `json:"body,omitempty"`
}

UpdateConfigurationParameterRequest Request Object

func (UpdateConfigurationParameterRequest) String

type UpdateConfigurationParameterRequestBody

type UpdateConfigurationParameterRequestBody struct {

	// 参数模板名称。最长64个字符,只允许大写字母、小写字母、数字和特殊字符中划线、下划线和点。不传该参数时不修改参数模板名称。(参数模板名称,参数模板描述,参数名和参数值映射关系三项不能同时为空)
	Name *string `json:"name,omitempty"`

	// 参数模板描述。最长256位,不支持!<>=&\"'特殊字符。不传该参数时不修改参数模板描述。
	Description *string `json:"description,omitempty"`

	// 参数名和参数值映射关系。用户可以基于默认参数模板的参数,自定义的参数值。
	ParameterValues map[string]string `json:"parameter_values,omitempty"`
}

func (UpdateConfigurationParameterRequestBody) String

type UpdateConfigurationParameterResponse

type UpdateConfigurationParameterResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateConfigurationParameterResponse Response Object

func (UpdateConfigurationParameterResponse) String

type UpdateConfigurationParameterResult

type UpdateConfigurationParameterResult struct {

	// 实例ID或组ID或节点ID。可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。 - 当变更的实例类型是集群,如果变更的是shard组或者config组的参数模板,传值为组ID。如果变更的是mongos节点的参数模板,传值为节点ID。 - 当变更的实例类型是副本集或单节点,传值为实例ID。
	EntityId string `json:"entity_id"`

	// 参数名和参数值映射关系。用户可以基于默认参数模板的参数,自定义的参数值。
	ParameterValues map[string]string `json:"parameter_values"`
}

func (UpdateConfigurationParameterResult) String

type UpdateEntityConfigurationRequest

type UpdateEntityConfigurationRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	Body *UpdateConfigurationParameterResult `json:"body,omitempty"`
}

UpdateEntityConfigurationRequest Request Object

func (UpdateEntityConfigurationRequest) String

type UpdateEntityConfigurationResponse

type UpdateEntityConfigurationResponse struct {

	// 修改实例参数的异步任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 参数修改涉及范围(实例,组,节点)否需要重启。 - false不需要重启 - true需要重启。
	RestartRequired *bool `json:"restart_required,omitempty"`
	HttpStatusCode  int   `json:"-"`
}

UpdateEntityConfigurationResponse Response Object

func (UpdateEntityConfigurationResponse) String

type UpdateInstanceNameRequest

type UpdateInstanceNameRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *UpdateNameRequestBody `json:"body,omitempty"`
}

UpdateInstanceNameRequest Request Object

func (UpdateInstanceNameRequest) String

func (o UpdateInstanceNameRequest) String() string

type UpdateInstanceNameResponse

type UpdateInstanceNameResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateInstanceNameResponse Response Object

func (UpdateInstanceNameResponse) String

type UpdateInstancePortRequest

type UpdateInstancePortRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *UpdatePortRequestBody `json:"body,omitempty"`
}

UpdateInstancePortRequest Request Object

func (UpdateInstancePortRequest) String

func (o UpdateInstancePortRequest) String() string

type UpdateInstancePortResponse

type UpdateInstancePortResponse struct {

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 实例当前端口号。
	Port           *int32 `json:"port,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateInstancePortResponse Response Object

func (UpdateInstancePortResponse) String

type UpdateInstanceRemarkRequest

type UpdateInstanceRemarkRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *UpdateInstanceRemarkRequestBody `json:"body,omitempty"`
}

UpdateInstanceRemarkRequest Request Object

func (UpdateInstanceRemarkRequest) String

type UpdateInstanceRemarkRequestBody

type UpdateInstanceRemarkRequestBody struct {

	// 实例备注内容。 长度不能超过64位,不支持回车和>!<\"&'=特殊字符。
	Remark string `json:"remark"`
}

func (UpdateInstanceRemarkRequestBody) String

type UpdateInstanceRemarkResponse

type UpdateInstanceRemarkResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateInstanceRemarkResponse Response Object

func (UpdateInstanceRemarkResponse) String

type UpdateNameRequestBody

type UpdateNameRequestBody struct {

	// 新实例名称。用于表示实例的名称,允许和已有名称重复。取值范围:长度为4~64位,必须以字母开头(A~Z或a~z),区分大小写,可以包含字母、数字(0~9)、中划线(-)或者下划线(_),不能包含其他特殊字符。
	NewInstanceName string `json:"new_instance_name"`
}

func (UpdateNameRequestBody) String

func (o UpdateNameRequestBody) String() string

type UpdatePortRequestBody

type UpdatePortRequestBody struct {

	// 新端口号。端口号有效范围为2100~9500,27017,27018,27019。
	Port int32 `json:"port"`
}

func (UpdatePortRequestBody) String

func (o UpdatePortRequestBody) String() string

type UpdateReplSetNameRequest

type UpdateReplSetNameRequest struct {

	// 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。
	InstanceId string `json:"instance_id"`

	Body *MongoUpdateReplSetV3RequestBody `json:"body,omitempty"`
}

UpdateReplSetNameRequest Request Object

func (UpdateReplSetNameRequest) String

func (o UpdateReplSetNameRequest) String() string

type UpdateReplSetNameResponse

type UpdateReplSetNameResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateReplSetNameResponse Response Object

func (UpdateReplSetNameResponse) String

func (o UpdateReplSetNameResponse) String() string

type UpdateSecurityGroupRequest

type UpdateSecurityGroupRequest struct {

	// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
	InstanceId string `json:"instance_id"`

	Body *UpdateSecurityGroupRequestBody `json:"body,omitempty"`
}

UpdateSecurityGroupRequest Request Object

func (UpdateSecurityGroupRequest) String

type UpdateSecurityGroupRequestBody

type UpdateSecurityGroupRequestBody struct {

	// 新的安全组ID。
	SecurityGroupId string `json:"security_group_id"`
}

func (UpdateSecurityGroupRequestBody) String

type UpdateSecurityGroupResponse

type UpdateSecurityGroupResponse struct {

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 实例当前安全组。
	SecurityGroupId *string `json:"security_group_id,omitempty"`
	HttpStatusCode  int     `json:"-"`
}

UpdateSecurityGroupResponse Response Object

func (UpdateSecurityGroupResponse) String

type UpgradeDatabaseVersionRequest

type UpgradeDatabaseVersionRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	Body *UpgradeDatabaseVersionRequestBody `json:"body,omitempty"`
}

UpgradeDatabaseVersionRequest Request Object

func (UpgradeDatabaseVersionRequest) String

type UpgradeDatabaseVersionRequestBody

type UpgradeDatabaseVersionRequestBody struct {

	// 升级模式。  取值为“minimized_interrupt_time”为中断时间最短优先模式:升级过程对业务影响相对较小的升级方式  取值为“minimized_upgrade_time”为升级时长最短优先模式:升级过程时长相对较快的升级方式。  默认取值为“minimized_interrupt_time”。
	UpgradeMode *string `json:"upgrade_mode,omitempty"`
}

func (UpgradeDatabaseVersionRequestBody) String

type UpgradeDatabaseVersionResponse

type UpgradeDatabaseVersionResponse struct {

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpgradeDatabaseVersionResponse Response Object

func (UpgradeDatabaseVersionResponse) String

type Volume

type Volume struct {

	// 磁盘大小。单位:GB。
	Size string `json:"size"`

	// 磁盘使用量。单位:GB。
	Used string `json:"used"`
}

Volume volume信息。

func (Volume) String

func (o Volume) String() string

type WeakPasswordCheckRequestBody

type WeakPasswordCheckRequestBody struct {

	// 密码
	Password string `json:"password"`
}

func (WeakPasswordCheckRequestBody) String

Source Files

Jump to

Keyboard shortcuts

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