Versions in this module Expand all Collapse all v0 v0.22.152 Nov 23, 2026 v0.22.151 Nov 20, 2026 v0.22.150 Nov 17, 2026 v0.22.149 Nov 13, 2026 v0.22.148 Nov 12, 2026 v0.22.147 Nov 11, 2026 v0.22.146 Nov 10, 2026 v0.22.145 Nov 5, 2026 Changes in this version + type CreateUPgSQLInstanceParamLabels struct + Key *string + Value *string + type CreateUPgSQLInstanceParamSecGroupId struct + Id *string + Priority *int type CreateUPgSQLInstanceRequest + BackupZone *string + Labels []CreateUPgSQLInstanceParamLabels + SecGroupId []CreateUPgSQLInstanceParamSecGroupId v0.22.144 Nov 4, 2026 v0.22.143 Nov 3, 2026 v0.22.142 Oct 29, 2026 Changes in this version + type BackupUPgSQLLogRequest struct + BackupFile *string + BackupName *string + BeginTime *int + EndTime *int + InstanceID *string + LogType *string + type BackupUPgSQLLogResponse struct + Message string + type BackupUPgSQLRequest struct + BackupMethod *int + BackupName *string + Blacklist *string + InstanceID *string + type BackupUPgSQLResponse struct + BackupID string + Message string + type CreateUPgSQLInstanceRequest struct + AdminPassword *string + DBVersion *string + DiskSpace *string + InstanceMode *string + MachineType *string + Name *string + ParamGroupID *int + Port *int + SubnetID *string + VPCID *string + type CreateUPgSQLInstanceResponse struct + InstanceID string + Message string + type CreateUPgSQLParamTemplateRequest struct + DBVersion *string + Description *string + GroupName *string + SrcGroupID *int + type CreateUPgSQLParamTemplateResponse struct + GroupID int + Message string + type CreateUPgSQLReadonlyParamLabels struct + Key *string + Value *string + type CreateUPgSQLReadonlyParamSecGroupId struct + Id *string + Priority *int + type CreateUPgSQLReadonlyRequest struct + DiskSpace *int + Labels []CreateUPgSQLReadonlyParamLabels + MachineType *string + Name *string + Port *int + SecGroupId []CreateUPgSQLReadonlyParamSecGroupId + SrcInstanceID *string + SubnetID *string + VPCID *string + type CreateUPgSQLReadonlyResponse struct + InstanceID string + type DeleteUPgSQLInstanceRequest struct + InstanceID *string + type DeleteUPgSQLInstanceResponse struct + Message string + type DeleteUPgSQLParamTemplateRequest struct + GroupID *int + type DeleteUPgSQLParamTemplateResponse struct + Message string + type DownloadUPgSQLParamTemplateRequest struct + GroupID *int + type DownloadUPgSQLParamTemplateResponse struct + Content string + Message string + type GetUPgSQLBackupStrategyRequest struct + InstanceID *string + type GetUPgSQLBackupStrategyResponse struct + BackupMethod string + BackupTimeRange string + BackupWeek string + Message string + type GetUPgSQLBackupURLRequest struct + BackupID *string + InstanceID *string + type GetUPgSQLBackupURLResponse struct + BackupPath string + InnerBackupPath string + Message string + type GetUPgSQLInstanceLogRequest struct + AccountID *int + BeginTime *int + CompanyID *int + DBId *string + EndTime *int + InstanceID *string + LogType *string + ZoneID *int + type GetUPgSQLInstanceLogResponse struct + Log string + type GetUPgSQLInstanceParamRequest struct + InstanceID *string + type GetUPgSQLInstanceParamResponse struct + Data []Param + type GetUPgSQLInstancePriceRequest struct + ChargeType *string + DiskSpace *int + InstanceMode *string + MachineType *string + Quantity *int + type GetUPgSQLInstancePriceResponse struct + PriceSet []UPgSQLInstancePriceSet + type GetUPgSQLInstanceRequest struct + InstanceID *string + type GetUPgSQLInstanceResponse struct + DataSet UDBInstance + Message string + type GetUPgSQLParamTemplateRequest struct + GroupID *int + type GetUPgSQLParamTemplateResponse struct + Data []Param + Message string + type GetUPgSQLUpgradePriceRequest struct + DiskSpace *int + InstanceID *string + InstanceMode *string + MachineType *string + type GetUPgSQLUpgradePriceResponse struct + OriginalPrice float64 + Price float64 + type ListUPgSQLBackupRequest struct + BackupType *int + InstanceID *string + Limit *int + Offset *int + type ListUPgSQLBackupResponse struct + DataSet []UPgSQLBackup + Message string + TotalCount int + type ListUPgSQLInstanceRequest struct + type ListUPgSQLInstanceResponse struct + DataSet []UDBInstanceSet + Message string + type ListUPgSQLLogRequest struct + BeginTime *int + EndTime *int + InstanceID *string + type ListUPgSQLLogResponse struct + DataSet []LogSet + Message string + type ListUPgSQLMachineTypeRequest struct + type ListUPgSQLMachineTypeResponse struct + DataSet []PgSQLMachineType + Message string + type ListUPgSQLParamTemplateRequest struct + Count *int + Offset *int + type ListUPgSQLParamTemplateResponse struct + Data []TemplateGroup + Message string + type ListUPgSQLVersionRequest struct + type ListUPgSQLVersionResponse struct + DataSet []PgSQLVersion + Message string + type LogSet struct + BeginTime int + EndTime int + Name string + Size int + type Param struct + AllowedVal string + ApplyType int + FormatType int + Key string + Modifiable bool + Value string + ValueType int + type PgSQLMachineType struct + Cpu int + Description string + ID string + Memory int + Os string + type PgSQLVersion struct + Available string + DBVersion string + type RestartUPgSQLInstanceRequest struct + ForceToRestart *bool + InstanceID *string + RestartHost *bool + type RestartUPgSQLInstanceResponse struct + Message string + type StartUPgSQLInstanceRequest struct + InstanceID *string + type StartUPgSQLInstanceResponse struct + Message string + type StopUPgSQLCreatingReadonlyRequest struct + InstanceID *string + type StopUPgSQLCreatingReadonlyResponse struct + type StopUPgSQLInstanceRequest struct + ForceToStop *bool + InstanceID *string + StopHost *bool + type StopUPgSQLInstanceResponse struct + Message string + type TemplateGroup struct + DBVersion string + Description string + GroupID int + GroupName string + Modifiable bool + ParamGroupTypeName string + type UDBInstance struct + AdminUser string + BackupBeginTime int + BackupCount int + BackupDate string + BackupTimeRange int + BackupZone string + Cpu int + CreateTime int + DBVersion string + DataFileSize float64 + DiskSpace int + DiskUsedSize float64 + ExpiredTime int + IP string + InstanceID string + InstanceMode string + LogFileSize float64 + MachineType string + MemoryLimit int + ModifyTime int + Name string + ParamGroupID int + Port int + Remark string + SecGroupStatus int + State string + SubnetID string + SystemFileSize float64 + VPCID string + Zone string + type UDBInstanceSet struct + CreateTime int + DBVersion string + DataSet []UDBReadonlyInstance + ExpiredTime int + IP string + InstanceID string + InstanceMode string + MachineType string + Name string + Remark string + State string + SubnetID string + VPCID string + Zone string + type UDBPostgreSQLClient struct + func NewClient(config *ucloud.Config, credential *auth.Credential) *UDBPostgreSQLClient + func (c *UDBPostgreSQLClient) BackupUPgSQL(req *BackupUPgSQLRequest) (*BackupUPgSQLResponse, error) + func (c *UDBPostgreSQLClient) BackupUPgSQLLog(req *BackupUPgSQLLogRequest) (*BackupUPgSQLLogResponse, error) + func (c *UDBPostgreSQLClient) CreateUPgSQLInstance(req *CreateUPgSQLInstanceRequest) (*CreateUPgSQLInstanceResponse, error) + func (c *UDBPostgreSQLClient) CreateUPgSQLParamTemplate(req *CreateUPgSQLParamTemplateRequest) (*CreateUPgSQLParamTemplateResponse, error) + func (c *UDBPostgreSQLClient) CreateUPgSQLReadonly(req *CreateUPgSQLReadonlyRequest) (*CreateUPgSQLReadonlyResponse, error) + func (c *UDBPostgreSQLClient) DeleteUPgSQLInstance(req *DeleteUPgSQLInstanceRequest) (*DeleteUPgSQLInstanceResponse, error) + func (c *UDBPostgreSQLClient) DeleteUPgSQLParamTemplate(req *DeleteUPgSQLParamTemplateRequest) (*DeleteUPgSQLParamTemplateResponse, error) + func (c *UDBPostgreSQLClient) DownloadUPgSQLParamTemplate(req *DownloadUPgSQLParamTemplateRequest) (*DownloadUPgSQLParamTemplateResponse, error) + func (c *UDBPostgreSQLClient) GetUPgSQLBackupStrategy(req *GetUPgSQLBackupStrategyRequest) (*GetUPgSQLBackupStrategyResponse, error) + func (c *UDBPostgreSQLClient) GetUPgSQLBackupURL(req *GetUPgSQLBackupURLRequest) (*GetUPgSQLBackupURLResponse, error) + func (c *UDBPostgreSQLClient) GetUPgSQLInstance(req *GetUPgSQLInstanceRequest) (*GetUPgSQLInstanceResponse, error) + func (c *UDBPostgreSQLClient) GetUPgSQLInstanceLog(req *GetUPgSQLInstanceLogRequest) (*GetUPgSQLInstanceLogResponse, error) + func (c *UDBPostgreSQLClient) GetUPgSQLInstanceParam(req *GetUPgSQLInstanceParamRequest) (*GetUPgSQLInstanceParamResponse, error) + func (c *UDBPostgreSQLClient) GetUPgSQLInstancePrice(req *GetUPgSQLInstancePriceRequest) (*GetUPgSQLInstancePriceResponse, error) + func (c *UDBPostgreSQLClient) GetUPgSQLParamTemplate(req *GetUPgSQLParamTemplateRequest) (*GetUPgSQLParamTemplateResponse, error) + func (c *UDBPostgreSQLClient) GetUPgSQLUpgradePrice(req *GetUPgSQLUpgradePriceRequest) (*GetUPgSQLUpgradePriceResponse, error) + func (c *UDBPostgreSQLClient) ListUPgSQLBackup(req *ListUPgSQLBackupRequest) (*ListUPgSQLBackupResponse, error) + func (c *UDBPostgreSQLClient) ListUPgSQLInstance(req *ListUPgSQLInstanceRequest) (*ListUPgSQLInstanceResponse, error) + func (c *UDBPostgreSQLClient) ListUPgSQLLog(req *ListUPgSQLLogRequest) (*ListUPgSQLLogResponse, error) + func (c *UDBPostgreSQLClient) ListUPgSQLMachineType(req *ListUPgSQLMachineTypeRequest) (*ListUPgSQLMachineTypeResponse, error) + func (c *UDBPostgreSQLClient) ListUPgSQLParamTemplate(req *ListUPgSQLParamTemplateRequest) (*ListUPgSQLParamTemplateResponse, error) + func (c *UDBPostgreSQLClient) ListUPgSQLVersion(req *ListUPgSQLVersionRequest) (*ListUPgSQLVersionResponse, error) + func (c *UDBPostgreSQLClient) NewBackupUPgSQLLogRequest() *BackupUPgSQLLogRequest + func (c *UDBPostgreSQLClient) NewBackupUPgSQLRequest() *BackupUPgSQLRequest + func (c *UDBPostgreSQLClient) NewCreateUPgSQLInstanceRequest() *CreateUPgSQLInstanceRequest + func (c *UDBPostgreSQLClient) NewCreateUPgSQLParamTemplateRequest() *CreateUPgSQLParamTemplateRequest + func (c *UDBPostgreSQLClient) NewCreateUPgSQLReadonlyRequest() *CreateUPgSQLReadonlyRequest + func (c *UDBPostgreSQLClient) NewDeleteUPgSQLInstanceRequest() *DeleteUPgSQLInstanceRequest + func (c *UDBPostgreSQLClient) NewDeleteUPgSQLParamTemplateRequest() *DeleteUPgSQLParamTemplateRequest + func (c *UDBPostgreSQLClient) NewDownloadUPgSQLParamTemplateRequest() *DownloadUPgSQLParamTemplateRequest + func (c *UDBPostgreSQLClient) NewGetUPgSQLBackupStrategyRequest() *GetUPgSQLBackupStrategyRequest + func (c *UDBPostgreSQLClient) NewGetUPgSQLBackupURLRequest() *GetUPgSQLBackupURLRequest + func (c *UDBPostgreSQLClient) NewGetUPgSQLInstanceLogRequest() *GetUPgSQLInstanceLogRequest + func (c *UDBPostgreSQLClient) NewGetUPgSQLInstanceParamRequest() *GetUPgSQLInstanceParamRequest + func (c *UDBPostgreSQLClient) NewGetUPgSQLInstancePriceRequest() *GetUPgSQLInstancePriceRequest + func (c *UDBPostgreSQLClient) NewGetUPgSQLInstanceRequest() *GetUPgSQLInstanceRequest + func (c *UDBPostgreSQLClient) NewGetUPgSQLParamTemplateRequest() *GetUPgSQLParamTemplateRequest + func (c *UDBPostgreSQLClient) NewGetUPgSQLUpgradePriceRequest() *GetUPgSQLUpgradePriceRequest + func (c *UDBPostgreSQLClient) NewListUPgSQLBackupRequest() *ListUPgSQLBackupRequest + func (c *UDBPostgreSQLClient) NewListUPgSQLInstanceRequest() *ListUPgSQLInstanceRequest + func (c *UDBPostgreSQLClient) NewListUPgSQLLogRequest() *ListUPgSQLLogRequest + func (c *UDBPostgreSQLClient) NewListUPgSQLMachineTypeRequest() *ListUPgSQLMachineTypeRequest + func (c *UDBPostgreSQLClient) NewListUPgSQLParamTemplateRequest() *ListUPgSQLParamTemplateRequest + func (c *UDBPostgreSQLClient) NewListUPgSQLVersionRequest() *ListUPgSQLVersionRequest + func (c *UDBPostgreSQLClient) NewRestartUPgSQLInstanceRequest() *RestartUPgSQLInstanceRequest + func (c *UDBPostgreSQLClient) NewStartUPgSQLInstanceRequest() *StartUPgSQLInstanceRequest + func (c *UDBPostgreSQLClient) NewStopUPgSQLCreatingReadonlyRequest() *StopUPgSQLCreatingReadonlyRequest + func (c *UDBPostgreSQLClient) NewStopUPgSQLInstanceRequest() *StopUPgSQLInstanceRequest + func (c *UDBPostgreSQLClient) NewUpdateUPgSQLAttributeRequest() *UpdateUPgSQLAttributeRequest + func (c *UDBPostgreSQLClient) NewUpdateUPgSQLBackupStrategyRequest() *UpdateUPgSQLBackupStrategyRequest + func (c *UDBPostgreSQLClient) NewUpdateUPgSQLPasswordRequest() *UpdateUPgSQLPasswordRequest + func (c *UDBPostgreSQLClient) NewUpgradeUPgSQLInstanceRequest() *UpgradeUPgSQLInstanceRequest + func (c *UDBPostgreSQLClient) NewUploadUPgSQLParamTemplateRequest() *UploadUPgSQLParamTemplateRequest + func (c *UDBPostgreSQLClient) RestartUPgSQLInstance(req *RestartUPgSQLInstanceRequest) (*RestartUPgSQLInstanceResponse, error) + func (c *UDBPostgreSQLClient) StartUPgSQLInstance(req *StartUPgSQLInstanceRequest) (*StartUPgSQLInstanceResponse, error) + func (c *UDBPostgreSQLClient) StopUPgSQLCreatingReadonly(req *StopUPgSQLCreatingReadonlyRequest) (*StopUPgSQLCreatingReadonlyResponse, error) + func (c *UDBPostgreSQLClient) StopUPgSQLInstance(req *StopUPgSQLInstanceRequest) (*StopUPgSQLInstanceResponse, error) + func (c *UDBPostgreSQLClient) UpdateUPgSQLAttribute(req *UpdateUPgSQLAttributeRequest) (*UpdateUPgSQLAttributeResponse, error) + func (c *UDBPostgreSQLClient) UpdateUPgSQLBackupStrategy(req *UpdateUPgSQLBackupStrategyRequest) (*UpdateUPgSQLBackupStrategyResponse, error) + func (c *UDBPostgreSQLClient) UpdateUPgSQLPassword(req *UpdateUPgSQLPasswordRequest) (*UpdateUPgSQLPasswordResponse, error) + func (c *UDBPostgreSQLClient) UpgradeUPgSQLInstance(req *UpgradeUPgSQLInstanceRequest) (*UpgradeUPgSQLInstanceResponse, error) + func (c *UDBPostgreSQLClient) UploadUPgSQLParamTemplate(req *UploadUPgSQLParamTemplateRequest) (*UploadUPgSQLParamTemplateResponse, error) + type UDBReadonlyInstance struct + CreateTime int + DBVersion string + ExpiredTime int + IP string + InstanceID string + InstanceMode string + MachineType string + Name string + Remark string + State string + SubnetID string + VPCID string + Zone string + type UPgSQLBackup struct + BackupEndTime int + BackupID string + BackupName string + BackupSize int + BackupStartTime int + BackupType int + InstanceID string + Region string + State string + type UPgSQLInstancePriceSet struct + ChargeType string + OriginalPrice float64 + Price float64 + type UpdateUPgSQLAttributeRequest struct + InstanceID *string + Name *string + Remark *string + type UpdateUPgSQLAttributeResponse struct + Message string + type UpdateUPgSQLBackupStrategyRequest struct + BackupMethod *string + BackupTimeRange *string + BackupWeek *string + InstanceID *string + type UpdateUPgSQLBackupStrategyResponse struct + Message string + type UpdateUPgSQLPasswordRequest struct + InstanceID *string + Name *string + Password *string + type UpdateUPgSQLPasswordResponse struct + Message string + type UpgradeUPgSQLInstanceRequest struct + DiskSpace *int + InstanceID *string + InstanceMode *string + MachineType *string + type UpgradeUPgSQLInstanceResponse struct + Message string + type UploadUPgSQLParamTemplateRequest struct + Content *string + DBVersion *string + Description *string + GroupName *string + ParamGroupType *string + type UploadUPgSQLParamTemplateResponse struct + GroupID int + Message string