published on Tuesday, Oct 27, 2026 by ucloud
published on Tuesday, Oct 27, 2026 by ucloud
Provides a MySQL instance resource on the nvme machine type.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const example = new ucloud.UdbMysqlInstance("example", {
availabilityZone: "cn-bj2-05",
name: "tf-example-mysql",
dbVersion: "mysql-8.0",
machineType: "o.mysql2m.small",
diskSpace: 20,
password: "2018_UClou",
});
import pulumi
import pulumi_ucloud as ucloud
example = ucloud.UdbMysqlInstance("example",
availability_zone="cn-bj2-05",
name="tf-example-mysql",
db_version="mysql-8.0",
machine_type="o.mysql2m.small",
disk_space=20,
password="2018_UClou")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ucloud.NewUdbMysqlInstance(ctx, "example", &ucloud.UdbMysqlInstanceArgs{
AvailabilityZone: pulumi.String("cn-bj2-05"),
Name: pulumi.String("tf-example-mysql"),
DbVersion: pulumi.String("mysql-8.0"),
MachineType: pulumi.String("o.mysql2m.small"),
DiskSpace: pulumi.Float64(20),
Password: pulumi.String("2018_UClou"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;
return await Deployment.RunAsync(() =>
{
var example = new Ucloud.UdbMysqlInstance("example", new()
{
AvailabilityZone = "cn-bj2-05",
Name = "tf-example-mysql",
DbVersion = "mysql-8.0",
MachineType = "o.mysql2m.small",
DiskSpace = 20,
Password = "2018_UClou",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.UdbMysqlInstance;
import com.pulumi.ucloud.UdbMysqlInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new UdbMysqlInstance("example", UdbMysqlInstanceArgs.builder()
.availabilityZone("cn-bj2-05")
.name("tf-example-mysql")
.dbVersion("mysql-8.0")
.machineType("o.mysql2m.small")
.diskSpace(20.0)
.password("2018_UClou")
.build());
}
}
resources:
example:
type: ucloud:UdbMysqlInstance
properties:
availabilityZone: cn-bj2-05
name: tf-example-mysql
dbVersion: mysql-8.0
machineType: o.mysql2m.small
diskSpace: 20
password: 2018_UClou
Example coming soon!
Create UdbMysqlInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UdbMysqlInstance(name: string, args: UdbMysqlInstanceArgs, opts?: CustomResourceOptions);@overload
def UdbMysqlInstance(resource_name: str,
args: UdbMysqlInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UdbMysqlInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
disk_space: Optional[float] = None,
availability_zone: Optional[str] = None,
machine_type: Optional[str] = None,
param_group_id: Optional[str] = None,
duration: Optional[float] = None,
instance_mode: Optional[str] = None,
db_version: Optional[str] = None,
name: Optional[str] = None,
charge_type: Optional[str] = None,
password: Optional[str] = None,
port: Optional[float] = None,
subnet_id: Optional[str] = None,
tag: Optional[str] = None,
timeouts: Optional[UdbMysqlInstanceTimeoutsArgs] = None,
udb_mysql_instance_id: Optional[str] = None,
vpc_id: Optional[str] = None)func NewUdbMysqlInstance(ctx *Context, name string, args UdbMysqlInstanceArgs, opts ...ResourceOption) (*UdbMysqlInstance, error)public UdbMysqlInstance(string name, UdbMysqlInstanceArgs args, CustomResourceOptions? opts = null)
public UdbMysqlInstance(String name, UdbMysqlInstanceArgs args)
public UdbMysqlInstance(String name, UdbMysqlInstanceArgs args, CustomResourceOptions options)
type: ucloud:UdbMysqlInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ucloud_udb_mysql_instance" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args UdbMysqlInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UdbMysqlInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UdbMysqlInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UdbMysqlInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UdbMysqlInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var udbMysqlInstanceResource = new Ucloud.UdbMysqlInstance("udbMysqlInstanceResource", new()
{
DiskSpace = 0.0,
AvailabilityZone = "string",
MachineType = "string",
ParamGroupId = "string",
Duration = 0.0,
InstanceMode = "string",
DbVersion = "string",
Name = "string",
ChargeType = "string",
Password = "string",
Port = 0.0,
SubnetId = "string",
Tag = "string",
Timeouts = new Ucloud.Inputs.UdbMysqlInstanceTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
UdbMysqlInstanceId = "string",
VpcId = "string",
});
example, err := ucloud.NewUdbMysqlInstance(ctx, "udbMysqlInstanceResource", &ucloud.UdbMysqlInstanceArgs{
DiskSpace: pulumi.Float64(0),
AvailabilityZone: pulumi.String("string"),
MachineType: pulumi.String("string"),
ParamGroupId: pulumi.String("string"),
Duration: pulumi.Float64(0),
InstanceMode: pulumi.String("string"),
DbVersion: pulumi.String("string"),
Name: pulumi.String("string"),
ChargeType: pulumi.String("string"),
Password: pulumi.String("string"),
Port: pulumi.Float64(0),
SubnetId: pulumi.String("string"),
Tag: pulumi.String("string"),
Timeouts: &ucloud.UdbMysqlInstanceTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
UdbMysqlInstanceId: pulumi.String("string"),
VpcId: pulumi.String("string"),
})
resource "ucloud_udb_mysql_instance" "udbMysqlInstanceResource" {
lifecycle {
create_before_destroy = true
}
disk_space = 0
availability_zone = "string"
machine_type = "string"
param_group_id = "string"
duration = 0
instance_mode = "string"
db_version = "string"
name = "string"
charge_type = "string"
password = "string"
port = 0
subnet_id = "string"
tag = "string"
_ {
timeouts = {
create = "string"
delete = "string"
update = "string"
}
}
udb_mysql_instance_id = "string"
vpc_id = "string"
}
var udbMysqlInstanceResource = new UdbMysqlInstance("udbMysqlInstanceResource", UdbMysqlInstanceArgs.builder()
.diskSpace(0.0)
.availabilityZone("string")
.machineType("string")
.paramGroupId("string")
.duration(0.0)
.instanceMode("string")
.dbVersion("string")
.name("string")
.chargeType("string")
.password("string")
.port(0.0)
.subnetId("string")
.tag("string")
.timeouts(UdbMysqlInstanceTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.udbMysqlInstanceId("string")
.vpcId("string")
.build());
udb_mysql_instance_resource = ucloud.UdbMysqlInstance("udbMysqlInstanceResource",
disk_space=float(0),
availability_zone="string",
machine_type="string",
param_group_id="string",
duration=float(0),
instance_mode="string",
db_version="string",
name="string",
charge_type="string",
password="string",
port=float(0),
subnet_id="string",
tag="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
udb_mysql_instance_id="string",
vpc_id="string")
const udbMysqlInstanceResource = new ucloud.UdbMysqlInstance("udbMysqlInstanceResource", {
diskSpace: 0,
availabilityZone: "string",
machineType: "string",
paramGroupId: "string",
duration: 0,
instanceMode: "string",
dbVersion: "string",
name: "string",
chargeType: "string",
password: "string",
port: 0,
subnetId: "string",
tag: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
udbMysqlInstanceId: "string",
vpcId: "string",
});
type: ucloud:UdbMysqlInstance
properties:
availabilityZone: string
chargeType: string
dbVersion: string
diskSpace: 0
duration: 0
instanceMode: string
machineType: string
name: string
paramGroupId: string
password: string
port: 0
subnetId: string
tag: string
timeouts:
create: string
delete: string
update: string
udbMysqlInstanceId: string
vpcId: string
UdbMysqlInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The UdbMysqlInstance resource accepts the following input properties:
- Availability
Zone string - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- Disk
Space double - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- Machine
Type string - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - Charge
Type string - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - Db
Version string - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - Duration double
- The duration that you will buy the instance. (Default:
1). - Instance
Mode string - The instance mode, possible values are:
Normal,HA. (Default:HA). - Name string
- Param
Group stringId - The ID of the parameter group. If not specified, the default template for the db version is used.
- Password string
- Port double
- The port on which the database accepts connections. (Default:
3306). - Subnet
Id string - The ID of the subnet linked to the instance.
- Tag string
- A tag assigned to the instance.
- Timeouts
Udb
Mysql Instance Timeouts - Udb
Mysql stringInstance Id - The ID of the MySQL instance.
- Vpc
Id string - The ID of the VPC linked to the instance.
- Availability
Zone string - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- Disk
Space float64 - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- Machine
Type string - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - Charge
Type string - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - Db
Version string - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - Duration float64
- The duration that you will buy the instance. (Default:
1). - Instance
Mode string - The instance mode, possible values are:
Normal,HA. (Default:HA). - Name string
- Param
Group stringId - The ID of the parameter group. If not specified, the default template for the db version is used.
- Password string
- Port float64
- The port on which the database accepts connections. (Default:
3306). - Subnet
Id string - The ID of the subnet linked to the instance.
- Tag string
- A tag assigned to the instance.
- Timeouts
Udb
Mysql Instance Timeouts Args - Udb
Mysql stringInstance Id - The ID of the MySQL instance.
- Vpc
Id string - The ID of the VPC linked to the instance.
- availability_
zone string - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- disk_
space number - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- machine_
type string - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - charge_
type string - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - db_
version string - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - duration number
- The duration that you will buy the instance. (Default:
1). - instance_
mode string - The instance mode, possible values are:
Normal,HA. (Default:HA). - name string
- param_
group_ stringid - The ID of the parameter group. If not specified, the default template for the db version is used.
- password string
- port number
- The port on which the database accepts connections. (Default:
3306). - subnet_
id string - The ID of the subnet linked to the instance.
- tag string
- A tag assigned to the instance.
- timeouts object
- udb_
mysql_ stringinstance_ id - The ID of the MySQL instance.
- vpc_
id string - The ID of the VPC linked to the instance.
- availability
Zone String - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- disk
Space Double - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- machine
Type String - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - charge
Type String - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - db
Version String - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - duration Double
- The duration that you will buy the instance. (Default:
1). - instance
Mode String - The instance mode, possible values are:
Normal,HA. (Default:HA). - name String
- param
Group StringId - The ID of the parameter group. If not specified, the default template for the db version is used.
- password String
- port Double
- The port on which the database accepts connections. (Default:
3306). - subnet
Id String - The ID of the subnet linked to the instance.
- tag String
- A tag assigned to the instance.
- timeouts
Udb
Mysql Instance Timeouts - udb
Mysql StringInstance Id - The ID of the MySQL instance.
- vpc
Id String - The ID of the VPC linked to the instance.
- availability
Zone string - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- disk
Space number - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- machine
Type string - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - charge
Type string - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - db
Version string - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - duration number
- The duration that you will buy the instance. (Default:
1). - instance
Mode string - The instance mode, possible values are:
Normal,HA. (Default:HA). - name string
- param
Group stringId - The ID of the parameter group. If not specified, the default template for the db version is used.
- password string
- port number
- The port on which the database accepts connections. (Default:
3306). - subnet
Id string - The ID of the subnet linked to the instance.
- tag string
- A tag assigned to the instance.
- timeouts
Udb
Mysql Instance Timeouts - udb
Mysql stringInstance Id - The ID of the MySQL instance.
- vpc
Id string - The ID of the VPC linked to the instance.
- availability_
zone str - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- disk_
space float - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- machine_
type str - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - charge_
type str - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - db_
version str - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - duration float
- The duration that you will buy the instance. (Default:
1). - instance_
mode str - The instance mode, possible values are:
Normal,HA. (Default:HA). - name str
- param_
group_ strid - The ID of the parameter group. If not specified, the default template for the db version is used.
- password str
- port float
- The port on which the database accepts connections. (Default:
3306). - subnet_
id str - The ID of the subnet linked to the instance.
- tag str
- A tag assigned to the instance.
- timeouts
Udb
Mysql Instance Timeouts Args - udb_
mysql_ strinstance_ id - The ID of the MySQL instance.
- vpc_
id str - The ID of the VPC linked to the instance.
- availability
Zone String - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- disk
Space Number - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- machine
Type String - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - charge
Type String - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - db
Version String - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - duration Number
- The duration that you will buy the instance. (Default:
1). - instance
Mode String - The instance mode, possible values are:
Normal,HA. (Default:HA). - name String
- param
Group StringId - The ID of the parameter group. If not specified, the default template for the db version is used.
- password String
- port Number
- The port on which the database accepts connections. (Default:
3306). - subnet
Id String - The ID of the subnet linked to the instance.
- tag String
- A tag assigned to the instance.
- timeouts Property Map
- udb
Mysql StringInstance Id - The ID of the MySQL instance.
- vpc
Id String - The ID of the VPC linked to the instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the UdbMysqlInstance resource produces the following output properties:
- Cpu double
- The number of CPU cores.
- Create
Time string - The time when the instance was created.
- Expire
Time string - The expiration time of the instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory double
- The size of memory in gigabytes (GB).
- Modify
Time string - The last modified time of the instance.
- Private
Ip string - The private IP address assigned to the instance.
- Status string
- The current status of the instance.
- Cpu float64
- The number of CPU cores.
- Create
Time string - The time when the instance was created.
- Expire
Time string - The expiration time of the instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory float64
- The size of memory in gigabytes (GB).
- Modify
Time string - The last modified time of the instance.
- Private
Ip string - The private IP address assigned to the instance.
- Status string
- The current status of the instance.
- cpu number
- The number of CPU cores.
- create_
time string - The time when the instance was created.
- expire_
time string - The expiration time of the instance.
- id string
- The provider-assigned unique ID for this managed resource.
- memory number
- The size of memory in gigabytes (GB).
- modify_
time string - The last modified time of the instance.
- private_
ip string - The private IP address assigned to the instance.
- status string
- The current status of the instance.
- cpu Double
- The number of CPU cores.
- create
Time String - The time when the instance was created.
- expire
Time String - The expiration time of the instance.
- id String
- The provider-assigned unique ID for this managed resource.
- memory Double
- The size of memory in gigabytes (GB).
- modify
Time String - The last modified time of the instance.
- private
Ip String - The private IP address assigned to the instance.
- status String
- The current status of the instance.
- cpu number
- The number of CPU cores.
- create
Time string - The time when the instance was created.
- expire
Time string - The expiration time of the instance.
- id string
- The provider-assigned unique ID for this managed resource.
- memory number
- The size of memory in gigabytes (GB).
- modify
Time string - The last modified time of the instance.
- private
Ip string - The private IP address assigned to the instance.
- status string
- The current status of the instance.
- cpu float
- The number of CPU cores.
- create_
time str - The time when the instance was created.
- expire_
time str - The expiration time of the instance.
- id str
- The provider-assigned unique ID for this managed resource.
- memory float
- The size of memory in gigabytes (GB).
- modify_
time str - The last modified time of the instance.
- private_
ip str - The private IP address assigned to the instance.
- status str
- The current status of the instance.
- cpu Number
- The number of CPU cores.
- create
Time String - The time when the instance was created.
- expire
Time String - The expiration time of the instance.
- id String
- The provider-assigned unique ID for this managed resource.
- memory Number
- The size of memory in gigabytes (GB).
- modify
Time String - The last modified time of the instance.
- private
Ip String - The private IP address assigned to the instance.
- status String
- The current status of the instance.
Look up Existing UdbMysqlInstance Resource
Get an existing UdbMysqlInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UdbMysqlInstanceState, opts?: CustomResourceOptions): UdbMysqlInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
charge_type: Optional[str] = None,
cpu: Optional[float] = None,
create_time: Optional[str] = None,
db_version: Optional[str] = None,
disk_space: Optional[float] = None,
duration: Optional[float] = None,
expire_time: Optional[str] = None,
instance_mode: Optional[str] = None,
machine_type: Optional[str] = None,
memory: Optional[float] = None,
modify_time: Optional[str] = None,
name: Optional[str] = None,
param_group_id: Optional[str] = None,
password: Optional[str] = None,
port: Optional[float] = None,
private_ip: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tag: Optional[str] = None,
timeouts: Optional[UdbMysqlInstanceTimeoutsArgs] = None,
udb_mysql_instance_id: Optional[str] = None,
vpc_id: Optional[str] = None) -> UdbMysqlInstancefunc GetUdbMysqlInstance(ctx *Context, name string, id IDInput, state *UdbMysqlInstanceState, opts ...ResourceOption) (*UdbMysqlInstance, error)public static UdbMysqlInstance Get(string name, Input<string> id, UdbMysqlInstanceState? state, CustomResourceOptions? opts = null)public static UdbMysqlInstance get(String name, Output<String> id, UdbMysqlInstanceState state, CustomResourceOptions options)resources: _: type: ucloud:UdbMysqlInstance get: id: ${id}import {
to = ucloud_udb_mysql_instance.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Availability
Zone string - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- Charge
Type string - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - Cpu double
- The number of CPU cores.
- Create
Time string - The time when the instance was created.
- Db
Version string - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - Disk
Space double - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- Duration double
- The duration that you will buy the instance. (Default:
1). - Expire
Time string - The expiration time of the instance.
- Instance
Mode string - The instance mode, possible values are:
Normal,HA. (Default:HA). - Machine
Type string - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - Memory double
- The size of memory in gigabytes (GB).
- Modify
Time string - The last modified time of the instance.
- Name string
- Param
Group stringId - The ID of the parameter group. If not specified, the default template for the db version is used.
- Password string
- Port double
- The port on which the database accepts connections. (Default:
3306). - Private
Ip string - The private IP address assigned to the instance.
- Status string
- The current status of the instance.
- Subnet
Id string - The ID of the subnet linked to the instance.
- Tag string
- A tag assigned to the instance.
- Timeouts
Udb
Mysql Instance Timeouts - Udb
Mysql stringInstance Id - The ID of the MySQL instance.
- Vpc
Id string - The ID of the VPC linked to the instance.
- Availability
Zone string - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- Charge
Type string - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - Cpu float64
- The number of CPU cores.
- Create
Time string - The time when the instance was created.
- Db
Version string - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - Disk
Space float64 - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- Duration float64
- The duration that you will buy the instance. (Default:
1). - Expire
Time string - The expiration time of the instance.
- Instance
Mode string - The instance mode, possible values are:
Normal,HA. (Default:HA). - Machine
Type string - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - Memory float64
- The size of memory in gigabytes (GB).
- Modify
Time string - The last modified time of the instance.
- Name string
- Param
Group stringId - The ID of the parameter group. If not specified, the default template for the db version is used.
- Password string
- Port float64
- The port on which the database accepts connections. (Default:
3306). - Private
Ip string - The private IP address assigned to the instance.
- Status string
- The current status of the instance.
- Subnet
Id string - The ID of the subnet linked to the instance.
- Tag string
- A tag assigned to the instance.
- Timeouts
Udb
Mysql Instance Timeouts Args - Udb
Mysql stringInstance Id - The ID of the MySQL instance.
- Vpc
Id string - The ID of the VPC linked to the instance.
- availability_
zone string - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- charge_
type string - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - cpu number
- The number of CPU cores.
- create_
time string - The time when the instance was created.
- db_
version string - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - disk_
space number - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- duration number
- The duration that you will buy the instance. (Default:
1). - expire_
time string - The expiration time of the instance.
- instance_
mode string - The instance mode, possible values are:
Normal,HA. (Default:HA). - machine_
type string - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - memory number
- The size of memory in gigabytes (GB).
- modify_
time string - The last modified time of the instance.
- name string
- param_
group_ stringid - The ID of the parameter group. If not specified, the default template for the db version is used.
- password string
- port number
- The port on which the database accepts connections. (Default:
3306). - private_
ip string - The private IP address assigned to the instance.
- status string
- The current status of the instance.
- subnet_
id string - The ID of the subnet linked to the instance.
- tag string
- A tag assigned to the instance.
- timeouts object
- udb_
mysql_ stringinstance_ id - The ID of the MySQL instance.
- vpc_
id string - The ID of the VPC linked to the instance.
- availability
Zone String - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- charge
Type String - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - cpu Double
- The number of CPU cores.
- create
Time String - The time when the instance was created.
- db
Version String - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - disk
Space Double - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- duration Double
- The duration that you will buy the instance. (Default:
1). - expire
Time String - The expiration time of the instance.
- instance
Mode String - The instance mode, possible values are:
Normal,HA. (Default:HA). - machine
Type String - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - memory Double
- The size of memory in gigabytes (GB).
- modify
Time String - The last modified time of the instance.
- name String
- param
Group StringId - The ID of the parameter group. If not specified, the default template for the db version is used.
- password String
- port Double
- The port on which the database accepts connections. (Default:
3306). - private
Ip String - The private IP address assigned to the instance.
- status String
- The current status of the instance.
- subnet
Id String - The ID of the subnet linked to the instance.
- tag String
- A tag assigned to the instance.
- timeouts
Udb
Mysql Instance Timeouts - udb
Mysql StringInstance Id - The ID of the MySQL instance.
- vpc
Id String - The ID of the VPC linked to the instance.
- availability
Zone string - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- charge
Type string - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - cpu number
- The number of CPU cores.
- create
Time string - The time when the instance was created.
- db
Version string - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - disk
Space number - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- duration number
- The duration that you will buy the instance. (Default:
1). - expire
Time string - The expiration time of the instance.
- instance
Mode string - The instance mode, possible values are:
Normal,HA. (Default:HA). - machine
Type string - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - memory number
- The size of memory in gigabytes (GB).
- modify
Time string - The last modified time of the instance.
- name string
- param
Group stringId - The ID of the parameter group. If not specified, the default template for the db version is used.
- password string
- port number
- The port on which the database accepts connections. (Default:
3306). - private
Ip string - The private IP address assigned to the instance.
- status string
- The current status of the instance.
- subnet
Id string - The ID of the subnet linked to the instance.
- tag string
- A tag assigned to the instance.
- timeouts
Udb
Mysql Instance Timeouts - udb
Mysql stringInstance Id - The ID of the MySQL instance.
- vpc
Id string - The ID of the VPC linked to the instance.
- availability_
zone str - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- charge_
type str - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - cpu float
- The number of CPU cores.
- create_
time str - The time when the instance was created.
- db_
version str - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - disk_
space float - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- duration float
- The duration that you will buy the instance. (Default:
1). - expire_
time str - The expiration time of the instance.
- instance_
mode str - The instance mode, possible values are:
Normal,HA. (Default:HA). - machine_
type str - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - memory float
- The size of memory in gigabytes (GB).
- modify_
time str - The last modified time of the instance.
- name str
- param_
group_ strid - The ID of the parameter group. If not specified, the default template for the db version is used.
- password str
- port float
- The port on which the database accepts connections. (Default:
3306). - private_
ip str - The private IP address assigned to the instance.
- status str
- The current status of the instance.
- subnet_
id str - The ID of the subnet linked to the instance.
- tag str
- A tag assigned to the instance.
- timeouts
Udb
Mysql Instance Timeouts Args - udb_
mysql_ strinstance_ id - The ID of the MySQL instance.
- vpc_
id str - The ID of the VPC linked to the instance.
- availability
Zone String - Availability zone where the MySQL instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
- charge
Type String - The charge type of the instance, possible values are:
Month,Year,Dynamic. (Default:Month). - cpu Number
- The number of CPU cores.
- create
Time String - The time when the instance was created.
- db
Version String - The MySQL database version, possible values are:
mysql-5.7,mysql-8.0,mysql-8.4. (Default:mysql-8.0). - disk
Space Number - The allocated storage size in gigabytes (GB), range from 20 to 32000. Changing this triggers a resize (storage upgrade).
- duration Number
- The duration that you will buy the instance. (Default:
1). - expire
Time String - The expiration time of the instance.
- instance
Mode String - The instance mode, possible values are:
Normal,HA. (Default:HA). - machine
Type String - The machine type of the MySQL instance, e.g.
o.mysql2m.smallfor 1C2G. Seeucloud.getUdbMysqlMachineTypesdata source for the full list. Changing this triggers a resize (CPU/memory upgrade). - memory Number
- The size of memory in gigabytes (GB).
- modify
Time String - The last modified time of the instance.
- name String
- param
Group StringId - The ID of the parameter group. If not specified, the default template for the db version is used.
- password String
- port Number
- The port on which the database accepts connections. (Default:
3306). - private
Ip String - The private IP address assigned to the instance.
- status String
- The current status of the instance.
- subnet
Id String - The ID of the subnet linked to the instance.
- tag String
- A tag assigned to the instance.
- timeouts Property Map
- udb
Mysql StringInstance Id - The ID of the MySQL instance.
- vpc
Id String - The ID of the VPC linked to the instance.
Supporting Types
UdbMysqlInstanceTimeouts, UdbMysqlInstanceTimeoutsArgs
Import
MySQL instances can be imported using their ID:
$ pulumi import ucloud:index/udbMysqlInstance:UdbMysqlInstance example <instance-id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloudTerraform Provider.
published on Tuesday, Oct 27, 2026 by ucloud