postgresql

package
v1.81.91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	POSTGRESQL_PAYTYPE_PREPAID  = "prepaid"
	POSTGRESQL_PAYTYPE_POSTPAID = "postpaid"
)
View Source
const (
	COMMON_PAYTYPE_PREPAID  = "PREPAID"
	COMMON_PAYTYPE_POSTPAID = "POSTPAID_BY_HOUR"
)
View Source
const (
	POSTGRESQL_DB_VERSION_9_3_5 = "9.3.5"
	POSTGRESQL_DB_VERSION_9_5_4 = "9.5.4"
	POSTGRESQL_DB_VERSION_10_4  = "10.4"
)
View Source
const (
	POSTGRESQL_KERNEL_UPGRADE_IMMEDIATELY     = 0
	POSTGRESQL_KERNEL_UPGRADE_SPECIFIED_TIME  = 1
	POSTGRESQL_KERNEL_UPGRADE_MAINTAIN_WINDOW = 2
)
View Source
const (
	POSTGRESQL_DB_CHARSET_UTF8   = "UTF8"
	POSTGRESQL_DB_CHARSET_LATIN1 = "LATIN1"
)
View Source
const (
	POSTGRESQL_STAUTS_RUNNING  = "running"
	POSTGRESQL_STAUTS_ISOLATED = "isolated"
)
View Source
const (
	SYNC_MODE_SEMI  = "Semi-sync"
	SYNC_MODE_ASYNC = "Async"
)

Variables

View Source
var POSTGRESQL_PAYTYPE = []string{COMMON_PAYTYPE_POSTPAID}
View Source
var POSTGRESQL_RETRYABLE_STATUS = []string{
	"initing",
	"expanding",
	"switching",

	"deployment changing",
}

Functions

func DataSourceTencentCloudPostgresqlBackupDownloadUrls

func DataSourceTencentCloudPostgresqlBackupDownloadUrls() *schema.Resource

func DataSourceTencentCloudPostgresqlBaseBackups

func DataSourceTencentCloudPostgresqlBaseBackups() *schema.Resource

func DataSourceTencentCloudPostgresqlDbInstanceClasses

func DataSourceTencentCloudPostgresqlDbInstanceClasses() *schema.Resource

func DataSourceTencentCloudPostgresqlDbInstanceVersions

func DataSourceTencentCloudPostgresqlDbInstanceVersions() *schema.Resource

func DataSourceTencentCloudPostgresqlDefaultParameters

func DataSourceTencentCloudPostgresqlDefaultParameters() *schema.Resource

func DataSourceTencentCloudPostgresqlInstances

func DataSourceTencentCloudPostgresqlInstances() *schema.Resource

func DataSourceTencentCloudPostgresqlLogBackups

func DataSourceTencentCloudPostgresqlLogBackups() *schema.Resource

func DataSourceTencentCloudPostgresqlParameterTemplates

func DataSourceTencentCloudPostgresqlParameterTemplates() *schema.Resource

func DataSourceTencentCloudPostgresqlReadonlyGroups

func DataSourceTencentCloudPostgresqlReadonlyGroups() *schema.Resource

func DataSourceTencentCloudPostgresqlRecoveryTime

func DataSourceTencentCloudPostgresqlRecoveryTime() *schema.Resource

func DataSourceTencentCloudPostgresqlRegions

func DataSourceTencentCloudPostgresqlRegions() *schema.Resource

func DataSourceTencentCloudPostgresqlSpecinfos

func DataSourceTencentCloudPostgresqlSpecinfos() *schema.Resource

func DataSourceTencentCloudPostgresqlXlogs

func DataSourceTencentCloudPostgresqlXlogs() *schema.Resource

func DataSourceTencentCloudPostgresqlZones

func DataSourceTencentCloudPostgresqlZones() *schema.Resource

func ResourceTencentCloudPostgresqlBackupDownloadRestrictionConfig

func ResourceTencentCloudPostgresqlBackupDownloadRestrictionConfig() *schema.Resource

func ResourceTencentCloudPostgresqlBackupPlanConfig

func ResourceTencentCloudPostgresqlBackupPlanConfig() *schema.Resource

func ResourceTencentCloudPostgresqlBaseBackup

func ResourceTencentCloudPostgresqlBaseBackup() *schema.Resource

func ResourceTencentCloudPostgresqlDeleteLogBackupOperation

func ResourceTencentCloudPostgresqlDeleteLogBackupOperation() *schema.Resource

func ResourceTencentCloudPostgresqlDisisolateDbInstanceOperation

func ResourceTencentCloudPostgresqlDisisolateDbInstanceOperation() *schema.Resource

func ResourceTencentCloudPostgresqlInstance

func ResourceTencentCloudPostgresqlInstance() *schema.Resource

func ResourceTencentCloudPostgresqlInstanceHAConfig

func ResourceTencentCloudPostgresqlInstanceHAConfig() *schema.Resource

func ResourceTencentCloudPostgresqlIsolateDbInstanceOperation

func ResourceTencentCloudPostgresqlIsolateDbInstanceOperation() *schema.Resource

func ResourceTencentCloudPostgresqlModifyAccountRemarkOperation

func ResourceTencentCloudPostgresqlModifyAccountRemarkOperation() *schema.Resource

func ResourceTencentCloudPostgresqlModifySwitchTimePeriodOperation

func ResourceTencentCloudPostgresqlModifySwitchTimePeriodOperation() *schema.Resource

func ResourceTencentCloudPostgresqlParameterTemplate

func ResourceTencentCloudPostgresqlParameterTemplate() *schema.Resource

func ResourceTencentCloudPostgresqlReadonlyAttachment

func ResourceTencentCloudPostgresqlReadonlyAttachment() *schema.Resource

func ResourceTencentCloudPostgresqlReadonlyGroup

func ResourceTencentCloudPostgresqlReadonlyGroup() *schema.Resource

func ResourceTencentCloudPostgresqlReadonlyInstance

func ResourceTencentCloudPostgresqlReadonlyInstance() *schema.Resource

func ResourceTencentCloudPostgresqlRebalanceReadonlyGroupOperation

func ResourceTencentCloudPostgresqlRebalanceReadonlyGroupOperation() *schema.Resource

func ResourceTencentCloudPostgresqlRenewDbInstanceOperation

func ResourceTencentCloudPostgresqlRenewDbInstanceOperation() *schema.Resource

func ResourceTencentCloudPostgresqlRestartDbInstanceOperation

func ResourceTencentCloudPostgresqlRestartDbInstanceOperation() *schema.Resource

func ResourceTencentCloudPostgresqlSecurityGroupConfig

func ResourceTencentCloudPostgresqlSecurityGroupConfig() *schema.Resource

Types

type PostgresqlService

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

func NewPostgresqlService

func NewPostgresqlService(client *connectivity.TencentCloudClient) PostgresqlService

func (*PostgresqlService) CheckDBInstanceStatus

func (me *PostgresqlService) CheckDBInstanceStatus(ctx context.Context, instanceId string, retryMinutes ...int) error

func (*PostgresqlService) CreatePostgresqlInstance

func (me *PostgresqlService) CreatePostgresqlInstance(
	ctx context.Context,
	name, dbVersion, dbMajorVersion, dbKernelVersion, chargeType, specCode string, autoRenewFlag, projectId, period int, subnetId, vpcId, zone string,
	securityGroups []string,
	storage int,
	username, password, charset string,
	dbNodeSet []*postgresql.DBNode,
	needSupportTde int, kmsKeyId, kmsRegion string, autoVoucher int, voucherIds []*string,
) (instanceId string, errRet error)

func (*PostgresqlService) DeletePostgresqlBaseBackupById

func (me *PostgresqlService) DeletePostgresqlBaseBackupById(ctx context.Context, dBInstanceId string, baseBackupId string) (errRet error)

func (*PostgresqlService) DeletePostgresqlDBInstanceNetworkAccessById

func (me *PostgresqlService) DeletePostgresqlDBInstanceNetworkAccessById(ctx context.Context, dBInstanceId, vpcId, subnetId, vip string) (errRet error)

func (*PostgresqlService) DeletePostgresqlInstance

func (me *PostgresqlService) DeletePostgresqlInstance(ctx context.Context, instanceId string) (errRet error)

func (*PostgresqlService) DeletePostgresqlParameterTemplateById

func (me *PostgresqlService) DeletePostgresqlParameterTemplateById(ctx context.Context, templateId string) (errRet error)

func (*PostgresqlService) DeletePostgresqlReadOnlyGroupById

func (me *PostgresqlService) DeletePostgresqlReadOnlyGroupById(ctx context.Context, groupId string) (errRet error)

func (*PostgresqlService) DeletePostgresqlReadonlyGroupNetworkAccessById

func (me *PostgresqlService) DeletePostgresqlReadonlyGroupNetworkAccessById(ctx context.Context, readOnlyGroupId, vpcId, subnetId, vip string) (errRet error)

func (*PostgresqlService) DescribeBackupPlans

func (me *PostgresqlService) DescribeBackupPlans(ctx context.Context, request *postgresql.DescribeBackupPlansRequest) (result []*postgresql.BackupPlan, errRet error)

func (*PostgresqlService) DescribeDBEncryptionKeys

func (me *PostgresqlService) DescribeDBEncryptionKeys(ctx context.Context, request *postgresql.DescribeEncryptionKeysRequest) (has bool, key *postgresql.EncryptionKey, errRet error)

func (*PostgresqlService) DescribeDBInstanceAttribute

func (me *PostgresqlService) DescribeDBInstanceAttribute(ctx context.Context, request *postgresql.DescribeDBInstanceAttributeRequest) (ins *postgresql.DBInstance, errRet error)

func (*PostgresqlService) DescribeDBXlogs

func (me *PostgresqlService) DescribeDBXlogs(ctx context.Context, request *postgresql.DescribeDBXlogsRequest) (xlogs []*postgresql.Xlog, errRet error)

func (*PostgresqlService) DescribeOrders

func (me *PostgresqlService) DescribeOrders(ctx context.Context, dealIds []*string) (deals []*postgresql.PgDeal, errRet error)

func (*PostgresqlService) DescribePgParams

func (me *PostgresqlService) DescribePgParams(ctx context.Context, instanceId string) (params map[string]string, err error)

func (*PostgresqlService) DescribePostgresqlBackupDownloadRestrictionConfigById

func (me *PostgresqlService) DescribePostgresqlBackupDownloadRestrictionConfigById(ctx context.Context, restrictionType string) (BackupDownloadRestrictionConfig *postgresql.DescribeBackupDownloadRestrictionResponseParams, errRet error)

func (*PostgresqlService) DescribePostgresqlBackupDownloadUrlsByFilter

func (me *PostgresqlService) DescribePostgresqlBackupDownloadUrlsByFilter(ctx context.Context, param map[string]interface{}) (BackupDownloadUrl *string, errRet error)

func (*PostgresqlService) DescribePostgresqlBackupPlanConfigById

func (me *PostgresqlService) DescribePostgresqlBackupPlanConfigById(ctx context.Context, dBInstanceId string) (BackupPlanConfig *postgresql.BackupPlan, errRet error)

func (*PostgresqlService) DescribePostgresqlBaseBackupById

func (me *PostgresqlService) DescribePostgresqlBaseBackupById(ctx context.Context, baseBackupId string) (BaseBackup *postgresql.BaseBackup, errRet error)

func (*PostgresqlService) DescribePostgresqlBaseBackupsByFilter

func (me *PostgresqlService) DescribePostgresqlBaseBackupsByFilter(ctx context.Context, param map[string]interface{}) (BaseBackups []*postgresql.BaseBackup, errRet error)

func (*PostgresqlService) DescribePostgresqlDBInstanceNetInfosById

func (me *PostgresqlService) DescribePostgresqlDBInstanceNetInfosById(ctx context.Context, dBInstanceId string) (netInfos []*postgresql.DBInstanceNetInfo, errRet error)

func (*PostgresqlService) DescribePostgresqlDbInstanceClassesByFilter

func (me *PostgresqlService) DescribePostgresqlDbInstanceClassesByFilter(ctx context.Context, param map[string]interface{}) (DbInstanceClasses []*postgresql.ClassInfo, errRet error)

func (*PostgresqlService) DescribePostgresqlDbInstanceVersionsByFilter

func (me *PostgresqlService) DescribePostgresqlDbInstanceVersionsByFilter(ctx context.Context) (DbInstanceVersions []*postgresql.Version, errRet error)

func (*PostgresqlService) DescribePostgresqlDefaultParametersByFilter

func (me *PostgresqlService) DescribePostgresqlDefaultParametersByFilter(ctx context.Context, param map[string]interface{}) (DefaultParameters []*postgresql.ParamInfo, errRet error)

func (*PostgresqlService) DescribePostgresqlInstanceById

func (me *PostgresqlService) DescribePostgresqlInstanceById(ctx context.Context, instanceId string) (instance *postgresql.DBInstance, has bool, errRet error)

func (*PostgresqlService) DescribePostgresqlInstanceHAConfigById

func (me *PostgresqlService) DescribePostgresqlInstanceHAConfigById(ctx context.Context, instanceId string) (haConfig *postgresql.DescribeDBInstanceHAConfigResponseParams, errRet error)

func (*PostgresqlService) DescribePostgresqlInstances

func (me *PostgresqlService) DescribePostgresqlInstances(ctx context.Context, filter []*postgresql.Filter) (instanceList []*postgresql.DBInstance, errRet error)

func (*PostgresqlService) DescribePostgresqlLogBackupsByFilter

func (me *PostgresqlService) DescribePostgresqlLogBackupsByFilter(ctx context.Context, param map[string]interface{}) (LogBackups []*postgresql.LogBackup, errRet error)

func (*PostgresqlService) DescribePostgresqlParameterTemplateById

func (me *PostgresqlService) DescribePostgresqlParameterTemplateById(ctx context.Context, templateId string) (ParameterTemplate *postgresql.DescribeParameterTemplateAttributesResponseParams, errRet error)

func (*PostgresqlService) DescribePostgresqlParameterTemplatesByFilter

func (me *PostgresqlService) DescribePostgresqlParameterTemplatesByFilter(ctx context.Context, param map[string]interface{}) (ParameterTemplates []*postgresql.ParameterTemplate, errRet error)

func (*PostgresqlService) DescribePostgresqlReadOnlyGroupById

func (me *PostgresqlService) DescribePostgresqlReadOnlyGroupById(ctx context.Context, dbInstanceId string) (instanceList []*postgresql.ReadOnlyGroup, errRet error)

func (*PostgresqlService) DescribePostgresqlReadonlyGroupNetInfosById

func (me *PostgresqlService) DescribePostgresqlReadonlyGroupNetInfosById(ctx context.Context, dbInstanceId, roGroupId string) (netInfos []*postgresql.DBInstanceNetInfo, errRet error)

func (*PostgresqlService) DescribePostgresqlReadonlyGroups

func (me *PostgresqlService) DescribePostgresqlReadonlyGroups(ctx context.Context, filter []*postgresql.Filter) (instanceList []*postgresql.ReadOnlyGroup, errRet error)

func (*PostgresqlService) DescribePostgresqlReadonlyGroupsByFilter

func (me *PostgresqlService) DescribePostgresqlReadonlyGroupsByFilter(ctx context.Context, param map[string]interface{}) (ReadOnlyGroups []*postgresql.ReadOnlyGroup, errRet error)

func (*PostgresqlService) DescribePostgresqlRecoveryTimeByFilter

func (me *PostgresqlService) DescribePostgresqlRecoveryTimeByFilter(ctx context.Context, param map[string]interface{}) (ret *postgresql.DescribeAvailableRecoveryTimeResponseParams, errRet error)

func (*PostgresqlService) DescribePostgresqlRegionsByFilter

func (me *PostgresqlService) DescribePostgresqlRegionsByFilter(ctx context.Context) (Regions []*postgresql.RegionInfo, errRet error)

func (*PostgresqlService) DescribePostgresqlSecurityGroupConfigById

func (me *PostgresqlService) DescribePostgresqlSecurityGroupConfigById(ctx context.Context, dBInstanceId string, readOnlyGroupId string) (SecurityGroupConfigs []*postgresql.SecurityGroup, errRet error)

func (*PostgresqlService) DescribePostgresqlZonesByFilter

func (me *PostgresqlService) DescribePostgresqlZonesByFilter(ctx context.Context) (Zones []*postgresql.ZoneInfo, errRet error)

func (*PostgresqlService) DescribeRootUser

func (me *PostgresqlService) DescribeRootUser(ctx context.Context, instanceId string) (accounts []*postgresql.AccountInfo, errRet error)

func (*PostgresqlService) DescribeSpecinfos

func (me *PostgresqlService) DescribeSpecinfos(ctx context.Context, zone string) (specCodeList []*postgresql.SpecItemInfo, errRet error)

func (*PostgresqlService) InitPostgresqlInstance

func (me *PostgresqlService) InitPostgresqlInstance(ctx context.Context, instanceId string, username string, password string, charset string) (errRet error)

func (*PostgresqlService) IsolatePostgresqlInstance

func (me *PostgresqlService) IsolatePostgresqlInstance(ctx context.Context, instanceId string) (errRet error)

func (*PostgresqlService) ModifyBackupPlan

func (me *PostgresqlService) ModifyBackupPlan(ctx context.Context, request *postgresql.ModifyBackupPlanRequest) (errRet error)

func (*PostgresqlService) ModifyDBInstanceDeployment

func (me *PostgresqlService) ModifyDBInstanceDeployment(ctx context.Context, request *postgresql.ModifyDBInstanceDeploymentRequest) (errRet error)

func (*PostgresqlService) ModifyPgParams

func (me *PostgresqlService) ModifyPgParams(ctx context.Context, instanceId string, paramEntrys map[string]string) (err error)

func (*PostgresqlService) ModifyPostgresqlInstanceName

func (me *PostgresqlService) ModifyPostgresqlInstanceName(ctx context.Context, instanceId string, name string) (errRet error)

func (*PostgresqlService) ModifyPostgresqlInstanceProjectId

func (me *PostgresqlService) ModifyPostgresqlInstanceProjectId(ctx context.Context, instanceId string, projectId int) (errRet error)

func (*PostgresqlService) ModifyPublicService

func (me *PostgresqlService) ModifyPublicService(ctx context.Context, openInternet bool, instanceId string) (errRet error)

func (*PostgresqlService) PostgresqlDBInstanceNetworkAccessStateRefreshFunc

func (me *PostgresqlService) PostgresqlDBInstanceNetworkAccessStateRefreshFunc(dBInstanceId, vpcId, subnetId, oldVip, newVip string, failStates []string) resource.StateRefreshFunc

func (*PostgresqlService) PostgresqlDBInstanceStateRefreshFunc

func (me *PostgresqlService) PostgresqlDBInstanceStateRefreshFunc(dbInstanceId string, failStates []string) resource.StateRefreshFunc

func (*PostgresqlService) PostgresqlDbInstanceOperationStateRefreshFunc

func (me *PostgresqlService) PostgresqlDbInstanceOperationStateRefreshFunc(instanceId string, failStates []string) resource.StateRefreshFunc

func (*PostgresqlService) PostgresqlReadonlyGroupNetworkAccessStateRefreshFunc

func (me *PostgresqlService) PostgresqlReadonlyGroupNetworkAccessStateRefreshFunc(dbInstanceId, roGroupId, vpcId, subnetId, oldVip, newVip string, failStates []string) resource.StateRefreshFunc

func (*PostgresqlService) PostgresqlReadonlyGroupStateRefreshFunc

func (me *PostgresqlService) PostgresqlReadonlyGroupStateRefreshFunc(dbInstanceId, roGroupId string, failStates []string) resource.StateRefreshFunc

func (*PostgresqlService) PostgresqlUpgradeKernelVersionRefreshFunc

func (me *PostgresqlService) PostgresqlUpgradeKernelVersionRefreshFunc(instanceId string, failStates []string) resource.StateRefreshFunc

func (*PostgresqlService) SetPostgresqlInstanceAutoRenewFlag

func (me *PostgresqlService) SetPostgresqlInstanceAutoRenewFlag(ctx context.Context, instanceId string, autoRenewFlag int) (errRet error)

func (*PostgresqlService) SetPostgresqlInstanceRootPassword

func (me *PostgresqlService) SetPostgresqlInstanceRootPassword(ctx context.Context, instanceId string, password string) (errRet error)

func (*PostgresqlService) UpgradePostgresqlInstance

func (me *PostgresqlService) UpgradePostgresqlInstance(ctx context.Context, instanceId string, memory int, storage int, cpu int) (errRet error)

Source Files

Jump to

Keyboard shortcuts

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