udb

package
v0.0.0-...-6ede62d Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbInstance

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

Provides a Database instance resource.

> **Note** Please do confirm if any task pending submission before reset your password, since the password reset will take effect immediately.

> This content is derived from https://github.com/terraform-providers/terraform-provider-ucloud/blob/master/website/docs/r/db_instance.html.markdown.

func GetDbInstance

func GetDbInstance(ctx *pulumi.Context,
	name string, id pulumi.ID, state *DbInstanceState, opts ...pulumi.ResourceOpt) (*DbInstance, error)

GetDbInstance gets an existing DbInstance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDbInstance

func NewDbInstance(ctx *pulumi.Context,
	name string, args *DbInstanceArgs, opts ...pulumi.ResourceOpt) (*DbInstance, error)

NewDbInstance registers a new resource with the given unique name, arguments, and options.

func (*DbInstance) AvailabilityZone

func (r *DbInstance) AvailabilityZone() *pulumi.StringOutput

Availability zone where database instance is located. Such as: "cn-bj2-02". You may refer to [list of availability zone](https://docs.ucloud.cn/api/summary/regionlist)

func (*DbInstance) BackupBeginTime

func (r *DbInstance) BackupBeginTime() *pulumi.IntOutput

Specifies when the backup starts, measured in hour, it starts at one o'clock of 1, 2, 3, 4 in the morning by default.

func (*DbInstance) BackupBlackLists

func (r *DbInstance) BackupBlackLists() *pulumi.ArrayOutput

The backup for database such as "test.%" or table such as "city.address" specified in the black lists are not supported.

func (*DbInstance) BackupCount

func (r *DbInstance) BackupCount() *pulumi.IntOutput

Specifies the number of backup saved per week, it is 7 backups saved per week by default.

func (*DbInstance) BackupDate

func (r *DbInstance) BackupDate() *pulumi.StringOutput

Specifies whether the backup took place from Sunday to Saturday by displaying 7 digits. 0 stands for backup disabled and 1 stands for backup enabled. The rightmost digit specifies whether the backup took place on Sunday, and the digits from right to left specify whether the backup took place from Monday to Saturday, it's mandatory required to backup twice per week at least. such as: digits "1100000" stands for the backup took place on Saturday and Friday.

func (*DbInstance) ChargeType

func (r *DbInstance) ChargeType() *pulumi.StringOutput

The charge type of db instance, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`).

func (*DbInstance) CreateTime

func (r *DbInstance) CreateTime() *pulumi.StringOutput

The creation time of database, formatted by RFC3339 time string.

func (*DbInstance) Duration

func (r *DbInstance) Duration() *pulumi.IntOutput

The duration that you will buy the db instance (Default: `1`). The value is `0` when pay by month and the instance will be vaild till the last day of that month. It is not required when `dynamic` (pay by hour).

func (*DbInstance) Engine

func (r *DbInstance) Engine() *pulumi.StringOutput

The type of database engine, possible values are: "mysql", "percona".

func (*DbInstance) EngineVersion

func (r *DbInstance) EngineVersion() *pulumi.StringOutput

The database engine version, possible values are: "5.5", "5.6", "5.7". - 5.5/5.6/5.7 for mysql and percona engine.

func (*DbInstance) ExpireTime

func (r *DbInstance) ExpireTime() *pulumi.StringOutput

The expiration time of database, formatted by RFC3339 time string.

func (*DbInstance) ID

func (r *DbInstance) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*DbInstance) InstanceStorage

func (r *DbInstance) InstanceStorage() *pulumi.IntOutput

Specifies the allocated storage size in gigabytes (GB), range from 20 to 3000GB. The volume adjustment must be a multiple of 10 GB. The maximum disk volume for SSD type are: - 500GB if the memory chosen is equal or less than 8GB; - 1000GB if the memory chosen is from 12 to 24GB; - 2000GB if the memory chosen is 32GB; - 3000GB if the memory chosen is equal or more than 48GB.

func (*DbInstance) InstanceType

func (r *DbInstance) InstanceType() *pulumi.StringOutput

func (*DbInstance) ModifyTime

func (r *DbInstance) ModifyTime() *pulumi.StringOutput

The modification time of database, formatted by RFC3339 time string.

func (*DbInstance) Name

func (r *DbInstance) Name() *pulumi.StringOutput

func (*DbInstance) Password

func (r *DbInstance) Password() *pulumi.StringOutput

func (*DbInstance) Port

func (r *DbInstance) Port() *pulumi.IntOutput

The port on which the database accepts connections, the default port is 3306 for mysql and percona.

func (*DbInstance) PrivateIp

func (r *DbInstance) PrivateIp() *pulumi.StringOutput

The private IP address assigned to the database instance.

func (*DbInstance) StandbyZone

func (r *DbInstance) StandbyZone() *pulumi.StringOutput

Availability zone where the standby database instance is located for the high availability database instance with multiple zone; The disaster recovery of data center can be activated by switching to the standby database instance for the high availability database instance.

func (*DbInstance) Status

func (r *DbInstance) Status() *pulumi.StringOutput

Specifies the status of database, possible values are: `Init`, `Fail`, `Starting`, `Running`, `Shutdown`, `Shutoff`, `Delete`, `Upgrading`, `Promoting`, `Recovering` and `Recover fail`.

func (*DbInstance) SubnetId

func (r *DbInstance) SubnetId() *pulumi.StringOutput

The ID of subnet.

func (*DbInstance) Tag

func (r *DbInstance) Tag() *pulumi.StringOutput

A tag assigned to database instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).

func (*DbInstance) URN

func (r *DbInstance) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*DbInstance) VpcId

func (r *DbInstance) VpcId() *pulumi.StringOutput

The ID of VPC linked to the database instances.

type DbInstanceArgs

type DbInstanceArgs struct {
	// Availability zone where database instance is located. Such as: "cn-bj2-02". You may refer to [list of availability zone](https://docs.ucloud.cn/api/summary/regionlist)
	AvailabilityZone interface{}
	// Specifies when the backup starts, measured in hour, it starts at one o'clock of 1, 2, 3, 4 in the morning by default.
	BackupBeginTime interface{}
	// The backup for database such as "test.%" or table such as "city.address" specified in the black lists are not supported.
	BackupBlackLists interface{}
	// Specifies the number of backup saved per week, it is 7 backups saved per week by default.
	BackupCount interface{}
	// Specifies whether the backup took place from Sunday to Saturday by displaying 7 digits. 0 stands for backup disabled and 1 stands for backup enabled. The rightmost digit specifies whether the backup took place on Sunday, and the digits from right to left specify whether the backup took place from Monday to Saturday, it's mandatory required to backup twice per week at least. such as: digits "1100000" stands for the backup took place on Saturday and Friday.
	BackupDate interface{}
	// The charge type of db instance, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`).
	ChargeType interface{}
	// The duration that you will buy the db instance (Default: `1`). The value is `0` when pay by month and the instance will be vaild till the last day of that month. It is not required when `dynamic` (pay by hour).
	Duration interface{}
	// The type of database engine, possible values are: "mysql", "percona".
	Engine interface{}
	// The database engine version, possible values are: "5.5", "5.6", "5.7".
	// - 5.5/5.6/5.7 for mysql and percona engine.
	EngineVersion interface{}
	// Specifies the allocated storage size in gigabytes (GB), range from 20 to 3000GB. The volume adjustment must be a multiple of 10 GB. The maximum disk volume for SSD type are:
	// - 500GB if the memory chosen is equal or less than 8GB;
	// - 1000GB if the memory chosen is from 12 to 24GB;
	// - 2000GB if the memory chosen is 32GB;
	// - 3000GB if the memory chosen is equal or more than 48GB.
	InstanceStorage interface{}
	InstanceType    interface{}
	Name            interface{}
	Password        interface{}
	// The port on which the database accepts connections, the default port is 3306 for mysql and percona.
	Port interface{}
	// Availability zone where the standby database instance is located for the high availability database instance with multiple zone; The disaster recovery of data center can be activated by switching to the standby database instance for the high availability database instance.
	StandbyZone interface{}
	// The ID of subnet.
	SubnetId interface{}
	// A tag assigned to database instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag interface{}
	// The ID of VPC linked to the database instances.
	VpcId interface{}
}

The set of arguments for constructing a DbInstance resource.

type DbInstanceState

type DbInstanceState struct {
	// Availability zone where database instance is located. Such as: "cn-bj2-02". You may refer to [list of availability zone](https://docs.ucloud.cn/api/summary/regionlist)
	AvailabilityZone interface{}
	// Specifies when the backup starts, measured in hour, it starts at one o'clock of 1, 2, 3, 4 in the morning by default.
	BackupBeginTime interface{}
	// The backup for database such as "test.%" or table such as "city.address" specified in the black lists are not supported.
	BackupBlackLists interface{}
	// Specifies the number of backup saved per week, it is 7 backups saved per week by default.
	BackupCount interface{}
	// Specifies whether the backup took place from Sunday to Saturday by displaying 7 digits. 0 stands for backup disabled and 1 stands for backup enabled. The rightmost digit specifies whether the backup took place on Sunday, and the digits from right to left specify whether the backup took place from Monday to Saturday, it's mandatory required to backup twice per week at least. such as: digits "1100000" stands for the backup took place on Saturday and Friday.
	BackupDate interface{}
	// The charge type of db instance, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`).
	ChargeType interface{}
	// The creation time of database, formatted by RFC3339 time string.
	CreateTime interface{}
	// The duration that you will buy the db instance (Default: `1`). The value is `0` when pay by month and the instance will be vaild till the last day of that month. It is not required when `dynamic` (pay by hour).
	Duration interface{}
	// The type of database engine, possible values are: "mysql", "percona".
	Engine interface{}
	// The database engine version, possible values are: "5.5", "5.6", "5.7".
	// - 5.5/5.6/5.7 for mysql and percona engine.
	EngineVersion interface{}
	// The expiration time of database, formatted by RFC3339 time string.
	ExpireTime interface{}
	// Specifies the allocated storage size in gigabytes (GB), range from 20 to 3000GB. The volume adjustment must be a multiple of 10 GB. The maximum disk volume for SSD type are:
	// - 500GB if the memory chosen is equal or less than 8GB;
	// - 1000GB if the memory chosen is from 12 to 24GB;
	// - 2000GB if the memory chosen is 32GB;
	// - 3000GB if the memory chosen is equal or more than 48GB.
	InstanceStorage interface{}
	InstanceType    interface{}
	// The modification time of database, formatted by RFC3339 time string.
	ModifyTime interface{}
	Name       interface{}
	Password   interface{}
	// The port on which the database accepts connections, the default port is 3306 for mysql and percona.
	Port interface{}
	// The private IP address assigned to the database instance.
	PrivateIp interface{}
	// Availability zone where the standby database instance is located for the high availability database instance with multiple zone; The disaster recovery of data center can be activated by switching to the standby database instance for the high availability database instance.
	StandbyZone interface{}
	// Specifies the status of database, possible values are: `Init`, `Fail`, `Starting`, `Running`, `Shutdown`, `Shutoff`, `Delete`, `Upgrading`, `Promoting`, `Recovering` and `Recover fail`.
	Status interface{}
	// The ID of subnet.
	SubnetId interface{}
	// A tag assigned to database instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag interface{}
	// The ID of VPC linked to the database instances.
	VpcId interface{}
}

Input properties used for looking up and filtering DbInstance resources.

Jump to

Keyboard shortcuts

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