1. Registry
  2. Packages
  3. Ucloud Provider
  4. API Docs
  5. getUdbMysqlMachineTypes
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud
ucloud
Viewing docs for ucloud 1.49.0
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 dictionary
    data "ucloud_get_udb_mysql_machine_types" "name" {
        # arguments
    }

    The following arguments are supported:

    AvailabilityZone string
    Availability zone where the machine types are available.
    Id string
    The ID of the machine type, e.g. o.mysql2m.small.
    InstanceMode string
    The instance mode to filter, possible values are: Normal, HA.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    AvailabilityZone string
    Availability zone where the machine types are available.
    Id string
    The ID of the machine type, e.g. o.mysql2m.small.
    InstanceMode string
    The instance mode to filter, possible values are: Normal, HA.
    OutputFile 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).
    availabilityZone String
    Availability zone where the machine types are available.
    id String
    The ID of the machine type, e.g. o.mysql2m.small.
    instanceMode String
    The instance mode to filter, possible values are: Normal, HA.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    availabilityZone string
    Availability zone where the machine types are available.
    id string
    The ID of the machine type, e.g. o.mysql2m.small.
    instanceMode string
    The instance mode to filter, possible values are: Normal, HA.
    outputFile 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).
    availabilityZone String
    Availability zone where the machine types are available.
    id String
    The ID of the machine type, e.g. o.mysql2m.small.
    instanceMode String
    The instance mode to filter, possible values are: Normal, HA.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getUdbMysqlMachineTypes Result

    The following output properties are available:

    AvailabilityZone string
    Id string
    The ID of the machine type, e.g. o.mysql2m.small.
    TotalCount double
    Total number of machine types that satisfy the condition.
    UdbMysqlMachineTypes List<GetUdbMysqlMachineTypesUdbMysqlMachineType>
    It is a nested type which documented below.
    InstanceMode string
    OutputFile string
    AvailabilityZone string
    Id string
    The ID of the machine type, e.g. o.mysql2m.small.
    TotalCount float64
    Total number of machine types that satisfy the condition.
    UdbMysqlMachineTypes []GetUdbMysqlMachineTypesUdbMysqlMachineType
    It is a nested type which documented below.
    InstanceMode string
    OutputFile 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_machine_types list(object)
    It is a nested type which documented below.
    instance_mode string
    output_file string
    availabilityZone String
    id String
    The ID of the machine type, e.g. o.mysql2m.small.
    totalCount Double
    Total number of machine types that satisfy the condition.
    udbMysqlMachineTypes List<GetUdbMysqlMachineTypesUdbMysqlMachineType>
    It is a nested type which documented below.
    instanceMode String
    outputFile String
    availabilityZone string
    id string
    The ID of the machine type, e.g. o.mysql2m.small.
    totalCount number
    Total number of machine types that satisfy the condition.
    udbMysqlMachineTypes GetUdbMysqlMachineTypesUdbMysqlMachineType[]
    It is a nested type which documented below.
    instanceMode string
    outputFile 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_machine_types Sequence[GetUdbMysqlMachineTypesUdbMysqlMachineType]
    It is a nested type which documented below.
    instance_mode str
    output_file str
    availabilityZone String
    id String
    The ID of the machine type, e.g. o.mysql2m.small.
    totalCount Number
    Total number of machine types that satisfy the condition.
    udbMysqlMachineTypes List<Property Map>
    It is a nested type which documented below.
    instanceMode String
    outputFile 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).
    SpecificationClass string
    The specification class, O for nvme.
    StorageClass string
    The storage class, CLOUD_RSSD for 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).
    SpecificationClass string
    The specification class, O for nvme.
    StorageClass string
    The storage class, CLOUD_RSSD for 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, O for nvme.
    storage_class string
    The storage class, CLOUD_RSSD for 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).
    specificationClass String
    The specification class, O for nvme.
    storageClass String
    The storage class, CLOUD_RSSD for 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).
    specificationClass string
    The specification class, O for nvme.
    storageClass string
    The storage class, CLOUD_RSSD for 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, O for nvme.
    storage_class str
    The storage class, CLOUD_RSSD for 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).
    specificationClass String
    The specification class, O for nvme.
    storageClass String
    The storage class, CLOUD_RSSD for nvme.

    Package Details

    Repository
    ucloud ucloud/terraform-provider-ucloud
    License
    Notes
    This Pulumi package is based on the ucloud Terraform Provider.
    ucloud
    Viewing docs for ucloud 1.49.0
    published on Tuesday, Oct 27, 2026 by ucloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial