database

package
v1.71.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 27 Imported by: 0

README

Terraform IBM Provider Cloud Databases

This area is primarily for IBM provider contributors and maintainers. For information on using Terraform and the IBM provider, see the links below.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceIBMDatabaseBackup added in v1.42.0

func DataSourceIBMDatabaseBackup() *schema.Resource

func DataSourceIBMDatabaseBackupRead added in v1.42.0

func DataSourceIBMDatabaseBackupRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DataSourceIBMDatabaseBackups added in v1.42.0

func DataSourceIBMDatabaseBackups() *schema.Resource

func DataSourceIBMDatabaseBackupsBackupToMap added in v1.42.0

func DataSourceIBMDatabaseBackupsBackupToMap(model *clouddatabasesv5.Backup) (map[string]interface{}, error)

func DataSourceIBMDatabaseBackupsID added in v1.42.0

func DataSourceIBMDatabaseBackupsID(d *schema.ResourceData) string

DataSourceIBMDatabaseBackupsID returns a reasonable ID for the list.

func DataSourceIBMDatabaseBackupsRead added in v1.42.0

func DataSourceIBMDatabaseBackupsRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DataSourceIBMDatabaseBackupsValidator added in v1.46.0

func DataSourceIBMDatabaseBackupsValidator() *validate.ResourceValidator

func DataSourceIBMDatabaseConnection added in v1.41.0

func DataSourceIBMDatabaseConnection() *schema.Resource

func DataSourceIBMDatabaseConnectionConnectionAuthenticationToMap added in v1.41.0

func DataSourceIBMDatabaseConnectionConnectionAuthenticationToMap(model *clouddatabasesv5.ConnectionAuthentication) (map[string]interface{}, error)

func DataSourceIBMDatabaseConnectionConnectionBundleToMap added in v1.41.0

func DataSourceIBMDatabaseConnectionConnectionBundleToMap(model *clouddatabasesv5.ConnectionBundle) (map[string]interface{}, error)

func DataSourceIBMDatabaseConnectionConnectionCertificateToMap added in v1.41.0

func DataSourceIBMDatabaseConnectionConnectionCertificateToMap(model *clouddatabasesv5.ConnectionCertificate) (map[string]interface{}, error)

func DataSourceIBMDatabaseConnectionConnectionCliToMap added in v1.41.0

func DataSourceIBMDatabaseConnectionConnectionCliToMap(model *clouddatabasesv5.ConnectionCli) (map[string]interface{}, error)

func DataSourceIBMDatabaseConnectionConnectionHostToMap added in v1.41.0

func DataSourceIBMDatabaseConnectionConnectionHostToMap(model *clouddatabasesv5.ConnectionHost) (map[string]interface{}, error)

func DataSourceIBMDatabaseConnectionConnectionURIToMap added in v1.41.0

func DataSourceIBMDatabaseConnectionConnectionURIToMap(model *clouddatabasesv5.ConnectionURI) (map[string]interface{}, error)

func DataSourceIBMDatabaseConnectionID added in v1.41.0

func DataSourceIBMDatabaseConnectionID(d *schema.ResourceData) string

DataSourceIBMDatabaseConnectionID returns a reasonable ID for the list.

func DataSourceIBMDatabaseConnectionMongoDbConnectionURIToMap added in v1.41.0

func DataSourceIBMDatabaseConnectionMongoDbConnectionURIToMap(model *clouddatabasesv5.MongoDbConnectionURI) (map[string]interface{}, error)

func DataSourceIBMDatabaseConnectionMySQLConnectionURIToMap added in v1.41.0

func DataSourceIBMDatabaseConnectionMySQLConnectionURIToMap(model *clouddatabasesv5.MySQLConnectionURI) (map[string]interface{}, error)

func DataSourceIBMDatabaseConnectionPostgreSQLConnectionURIToMap added in v1.41.0

func DataSourceIBMDatabaseConnectionPostgreSQLConnectionURIToMap(model *clouddatabasesv5.PostgreSQLConnectionURI) (map[string]interface{}, error)

func DataSourceIBMDatabaseConnectionRead added in v1.41.0

func DataSourceIBMDatabaseConnectionRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DataSourceIBMDatabaseConnectionRedisConnectionURIToMap added in v1.41.0

func DataSourceIBMDatabaseConnectionRedisConnectionURIToMap(model *clouddatabasesv5.RedisConnectionURI) (map[string]interface{}, error)

func DataSourceIBMDatabaseConnectionValidator added in v1.46.0

func DataSourceIBMDatabaseConnectionValidator() *validate.ResourceValidator

func DataSourceIBMDatabaseInstance

func DataSourceIBMDatabaseInstance() *schema.Resource

func DataSourceIBMDatabaseInstanceValidator added in v1.46.0

func DataSourceIBMDatabaseInstanceValidator() *validate.ResourceValidator

func DataSourceIBMDatabasePointInTimeRecovery added in v1.42.0

func DataSourceIBMDatabasePointInTimeRecovery() *schema.Resource

func DataSourceIBMDatabasePointInTimeRecoveryRead added in v1.42.0

func DataSourceIBMDatabasePointInTimeRecoveryRead(context context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DataSourceIBMDatabasePointInTimeRecoveryValidator added in v1.46.0

func DataSourceIBMDatabasePointInTimeRecoveryValidator() *validate.ResourceValidator

func DataSourceIBMDatabaseRemotes added in v1.42.0

func DataSourceIBMDatabaseRemotes() *schema.Resource

func DataSourceIBMDatabaseRemotesValidator added in v1.46.0

func DataSourceIBMDatabaseRemotesValidator() *validate.ResourceValidator

func DataSourceIBMDatabaseTask added in v1.44.0

func DataSourceIBMDatabaseTask() *schema.Resource

func DataSourceIBMDatabaseTasks added in v1.44.0

func DataSourceIBMDatabaseTasks() *schema.Resource

func DataSourceIBMDatabaseTasksID added in v1.44.0

func DataSourceIBMDatabaseTasksID(d *schema.ResourceData) string

DataSourceIBMDatabaseTasksID returns a reasonable ID for the list.

func DataSourceIBMDatabaseTasksTaskToMap added in v1.44.0

func DataSourceIBMDatabaseTasksTaskToMap(model *clouddatabasesv5.Task) (map[string]interface{}, error)

func DataSourceIBMDatabaseTasksValidator added in v1.46.0

func DataSourceIBMDatabaseTasksValidator() *validate.ResourceValidator

func DatabaseUserPasswordValidator added in v1.61.0

func DatabaseUserPasswordValidator(userType string) schema.SchemaValidateFunc

func ResourceIBMDatabaseInstance

func ResourceIBMDatabaseInstance() *schema.Resource

func ResourceIBMICDValidator

func ResourceIBMICDValidator() *validate.ResourceValidator

Types

type CountLimit

type CountLimit struct {
	Units           string
	AllocationCount int
	MinimumCount    int
	MaximumCount    int
	StepSizeCount   int
	IsAdjustable    bool
	IsOptional      bool
	CanScaleDown    bool
}

type DatabaseUser added in v1.61.0

type DatabaseUser struct {
	Username string
	Password string
	Role     *string
	Type     string
}

func (*DatabaseUser) Create added in v1.61.0

func (u *DatabaseUser) Create(instanceID string, d *schema.ResourceData, meta interface{}) (err error)

func (*DatabaseUser) Delete added in v1.61.0

func (u *DatabaseUser) Delete(instanceID string, d *schema.ResourceData, meta interface{}) (err error)

func (*DatabaseUser) ID added in v1.61.0

func (u *DatabaseUser) ID() (id string)

func (*DatabaseUser) Update added in v1.61.0

func (u *DatabaseUser) Update(instanceID string, d *schema.ResourceData, meta interface{}) (err error)

func (*DatabaseUser) ValidateOpsManagerRole added in v1.61.0

func (u *DatabaseUser) ValidateOpsManagerRole() (err error)

func (*DatabaseUser) ValidatePassword added in v1.61.0

func (u *DatabaseUser) ValidatePassword() (err error)

func (*DatabaseUser) ValidateRBACRole added in v1.61.0

func (u *DatabaseUser) ValidateRBACRole() (err error)

type Group added in v1.41.0

type Group struct {
	ID         string
	Members    *GroupResource
	Memory     *GroupResource
	Disk       *GroupResource
	CPU        *GroupResource
	HostFlavor *HostFlavorGroupResource
}

type GroupResource added in v1.41.0

type GroupResource struct {
	Units                        string
	Allocation                   int
	Minimum                      int
	Maximum                      int
	StepSize                     int
	IsAdjustable                 bool
	IsOptional                   bool
	CanScaleDown                 bool
	CPUEnforcementRatioCeilingMb int
	CPUEnforcementRatioMb        int
}

type HostFlavorGroupResource added in v1.62.0

type HostFlavorGroupResource struct {
	ID string
}

type Params

type Params struct {
	Version             string  `json:"version,omitempty"`
	KeyProtectKey       string  `json:"disk_encryption_key_crn,omitempty"`
	BackUpEncryptionCRN string  `json:"backup_encryption_key_crn,omitempty"`
	Memory              int     `json:"members_memory_allocation_mb,omitempty"`
	Disk                int     `json:"members_disk_allocation_mb,omitempty"`
	CPU                 int     `json:"members_cpu_allocation_count,omitempty"`
	HostFlavor          string  `json:"members_host_flavor,omitempty"`
	KeyProtectInstance  string  `json:"disk_encryption_instance_crn,omitempty"`
	ServiceEndpoints    string  `json:"service-endpoints,omitempty"`
	BackupID            string  `json:"backup-id,omitempty"`
	RemoteLeaderID      string  `json:"remote_leader_id,omitempty"`
	PITRDeploymentID    string  `json:"point_in_time_recovery_deployment_id,omitempty"`
	PITRTimeStamp       *string `json:"point_in_time_recovery_time,omitempty"`
	OfflineRestore      bool    `json:"offline_restore,omitempty"`
}

Jump to

Keyboard shortcuts

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