Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud
published on Tuesday, Oct 27, 2026 by ucloud
ucloud
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud
published on Tuesday, Oct 27, 2026 by ucloud
This data source provides a list of MySQL machine types.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const example = ucloud.getUdbMysqlMachineTypes({
availabilityZone: "cn-bj2-05",
});
import pulumi
import pulumi_ucloud as ucloud
example = ucloud.get_udb_mysql_machine_types(availability_zone="cn-bj2-05")
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.GetUdbMysqlMachineTypes(ctx, &ucloud.GetUdbMysqlMachineTypesArgs{
AvailabilityZone: "cn-bj2-05",
}, nil)
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 = Ucloud.GetUdbMysqlMachineTypes.Invoke(new()
{
AvailabilityZone = "cn-bj2-05",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.UcloudFunctions;
import com.pulumi.ucloud.inputs.GetUdbMysqlMachineTypesArgs;
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) {
final var example = UcloudFunctions.getUdbMysqlMachineTypes(GetUdbMysqlMachineTypesArgs.builder()
.availabilityZone("cn-bj2-05")
.build());
}
}
variables:
example:
fn::invoke:
function: ucloud:getUdbMysqlMachineTypes
arguments:
availabilityZone: cn-bj2-05
Example coming soon!
Using getUdbMysqlMachineTypes
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUdbMysqlMachineTypes(args: GetUdbMysqlMachineTypesArgs, opts?: InvokeOptions): Promise<GetUdbMysqlMachineTypesResult>
function getUdbMysqlMachineTypesOutput(args: GetUdbMysqlMachineTypesOutputArgs, opts?: InvokeOutputOptions): Output<GetUdbMysqlMachineTypesResult>def get_udb_mysql_machine_types(availability_zone: Optional[str] = None,
id: Optional[str] = None,
instance_mode: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUdbMysqlMachineTypesResult
def get_udb_mysql_machine_types_output(availability_zone: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
instance_mode: pulumi.Input[Optional[str]] = None,
output_file: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetUdbMysqlMachineTypesResult]func GetUdbMysqlMachineTypes(ctx *Context, args *GetUdbMysqlMachineTypesArgs, opts ...InvokeOption) (*GetUdbMysqlMachineTypesResult, error)
func GetUdbMysqlMachineTypesOutput(ctx *Context, args *GetUdbMysqlMachineTypesOutputArgs, opts ...InvokeOption) GetUdbMysqlMachineTypesResultOutput> Note: This function is named GetUdbMysqlMachineTypes in the Go SDK.
public static class GetUdbMysqlMachineTypes
{
public static Task<GetUdbMysqlMachineTypesResult> InvokeAsync(GetUdbMysqlMachineTypesArgs args, InvokeOptions? opts = null)
public static Output<GetUdbMysqlMachineTypesResult> Invoke(GetUdbMysqlMachineTypesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetUdbMysqlMachineTypesResult> Invoke(GetUdbMysqlMachineTypesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetUdbMysqlMachineTypesResult> getUdbMysqlMachineTypes(GetUdbMysqlMachineTypesArgs args, InvokeOptions options)
public static Output<GetUdbMysqlMachineTypesResult> getUdbMysqlMachineTypes(GetUdbMysqlMachineTypesArgs args, InvokeOptions options)
public static Output<GetUdbMysqlMachineTypesResult> getUdbMysqlMachineTypes(GetUdbMysqlMachineTypesArgs args, InvokeOutputOptions options)
fn::invoke:
function: ucloud:index/getUdbMysqlMachineTypes:getUdbMysqlMachineTypes
arguments:
# arguments dictionarydata "ucloud_get_udb_mysql_machine_types" "name" {
# arguments
}The following arguments are supported:
- Availability
Zone string - Availability zone where the machine types are available.
- Id string
- The ID of the machine type, e.g.
o.mysql2m.small. - Instance
Mode string - The instance mode to filter, possible values are:
Normal,HA. - Output
File string - File name where to save data source results (after running
pulumi preview).
- Availability
Zone string - Availability zone where the machine types are available.
- Id string
- The ID of the machine type, e.g.
o.mysql2m.small. - Instance
Mode string - The instance mode to filter, possible values are:
Normal,HA. - Output
File string - File name where to save data source results (after running
pulumi preview).
- availability_
zone string - Availability zone where the machine types are available.
- id string
- The ID of the machine type, e.g.
o.mysql2m.small. - instance_
mode string - The instance mode to filter, possible values are:
Normal,HA. - output_
file string - File name where to save data source results (after running
pulumi preview).
- availability
Zone String - Availability zone where the machine types are available.
- id String
- The ID of the machine type, e.g.
o.mysql2m.small. - instance
Mode String - The instance mode to filter, possible values are:
Normal,HA. - output
File String - File name where to save data source results (after running
pulumi preview).
- availability
Zone string - Availability zone where the machine types are available.
- id string
- The ID of the machine type, e.g.
o.mysql2m.small. - instance
Mode string - The instance mode to filter, possible values are:
Normal,HA. - output
File string - File name where to save data source results (after running
pulumi preview).
- availability_
zone str - Availability zone where the machine types are available.
- id str
- The ID of the machine type, e.g.
o.mysql2m.small. - instance_
mode str - The instance mode to filter, possible values are:
Normal,HA. - output_
file str - File name where to save data source results (after running
pulumi preview).
- availability
Zone String - Availability zone where the machine types are available.
- id String
- The ID of the machine type, e.g.
o.mysql2m.small. - instance
Mode String - The instance mode to filter, possible values are:
Normal,HA. - output
File String - File name where to save data source results (after running
pulumi preview).
getUdbMysqlMachineTypes Result
The following output properties are available:
- Availability
Zone string - Id string
- The ID of the machine type, e.g.
o.mysql2m.small. - Total
Count double - Total number of machine types that satisfy the condition.
- Udb
Mysql List<GetMachine Types Udb Mysql Machine Types Udb Mysql Machine Type> - It is a nested type which documented below.
- Instance
Mode string - Output
File string
- Availability
Zone string - Id string
- The ID of the machine type, e.g.
o.mysql2m.small. - Total
Count float64 - Total number of machine types that satisfy the condition.
- Udb
Mysql []GetMachine Types Udb Mysql Machine Types Udb Mysql Machine Type - It is a nested type which documented below.
- Instance
Mode string - Output
File string
- availability_
zone string - id string
- The ID of the machine type, e.g.
o.mysql2m.small. - total_
count number - Total number of machine types that satisfy the condition.
- udb_
mysql_ list(object)machine_ types - It is a nested type which documented below.
- instance_
mode string - output_
file string
- availability
Zone String - id String
- The ID of the machine type, e.g.
o.mysql2m.small. - total
Count Double - Total number of machine types that satisfy the condition.
- udb
Mysql List<GetMachine Types Udb Mysql Machine Types Udb Mysql Machine Type> - It is a nested type which documented below.
- instance
Mode String - output
File String
- availability
Zone string - id string
- The ID of the machine type, e.g.
o.mysql2m.small. - total
Count number - Total number of machine types that satisfy the condition.
- udb
Mysql GetMachine Types Udb Mysql Machine Types Udb Mysql Machine Type[] - It is a nested type which documented below.
- instance
Mode string - output
File string
- availability_
zone str - id str
- The ID of the machine type, e.g.
o.mysql2m.small. - total_
count float - Total number of machine types that satisfy the condition.
- udb_
mysql_ Sequence[Getmachine_ types Udb Mysql Machine Types Udb Mysql Machine Type] - It is a nested type which documented below.
- instance_
mode str - output_
file str
- availability
Zone String - id String
- The ID of the machine type, e.g.
o.mysql2m.small. - total
Count Number - Total number of machine types that satisfy the condition.
- udb
Mysql List<Property Map>Machine Types - It is a nested type which documented below.
- instance
Mode String - output
File String
Supporting Types
GetUdbMysqlMachineTypesUdbMysqlMachineType
- Cpu double
- The number of CPU cores.
- Description string
- The description of the machine type.
- Group string
- The memory/cpu ratio group.
- Id string
- The ID of the machine type, e.g.
o.mysql2m.small. - Memory double
- The size of memory in gigabytes (GB).
- Specification
Class string - The specification class,
Ofor nvme. - Storage
Class string - The storage class,
CLOUD_RSSDfor nvme.
- Cpu float64
- The number of CPU cores.
- Description string
- The description of the machine type.
- Group string
- The memory/cpu ratio group.
- Id string
- The ID of the machine type, e.g.
o.mysql2m.small. - Memory float64
- The size of memory in gigabytes (GB).
- Specification
Class string - The specification class,
Ofor nvme. - Storage
Class string - The storage class,
CLOUD_RSSDfor nvme.
- cpu number
- The number of CPU cores.
- description string
- The description of the machine type.
- group string
- The memory/cpu ratio group.
- id string
- The ID of the machine type, e.g.
o.mysql2m.small. - memory number
- The size of memory in gigabytes (GB).
- specification_
class string - The specification class,
Ofor nvme. - storage_
class string - The storage class,
CLOUD_RSSDfor nvme.
- cpu Double
- The number of CPU cores.
- description String
- The description of the machine type.
- group String
- The memory/cpu ratio group.
- id String
- The ID of the machine type, e.g.
o.mysql2m.small. - memory Double
- The size of memory in gigabytes (GB).
- specification
Class String - The specification class,
Ofor nvme. - storage
Class String - The storage class,
CLOUD_RSSDfor nvme.
- cpu number
- The number of CPU cores.
- description string
- The description of the machine type.
- group string
- The memory/cpu ratio group.
- id string
- The ID of the machine type, e.g.
o.mysql2m.small. - memory number
- The size of memory in gigabytes (GB).
- specification
Class string - The specification class,
Ofor nvme. - storage
Class string - The storage class,
CLOUD_RSSDfor nvme.
- cpu float
- The number of CPU cores.
- description str
- The description of the machine type.
- group str
- The memory/cpu ratio group.
- id str
- The ID of the machine type, e.g.
o.mysql2m.small. - memory float
- The size of memory in gigabytes (GB).
- specification_
class str - The specification class,
Ofor nvme. - storage_
class str - The storage class,
CLOUD_RSSDfor nvme.
- cpu Number
- The number of CPU cores.
- description String
- The description of the machine type.
- group String
- The memory/cpu ratio group.
- id String
- The ID of the machine type, e.g.
o.mysql2m.small. - memory Number
- The size of memory in gigabytes (GB).
- specification
Class String - The specification class,
Ofor nvme. - storage
Class String - The storage class,
CLOUD_RSSDfor nvme.
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloudTerraform Provider.
ucloud
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud
published on Tuesday, Oct 27, 2026 by ucloud