1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getDcsFlavors
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getDcsFlavors

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get a list of available DCS flavors.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const flavors = flexibleengine.getDcsFlavors({
        capacity: 4,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    flavors = flexibleengine.get_dcs_flavors(capacity=4)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.GetDcsFlavors(ctx, &flexibleengine.GetDcsFlavorsArgs{
    			Capacity: 4,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var flavors = Flexibleengine.GetDcsFlavors.Invoke(new()
        {
            Capacity = 4,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetDcsFlavorsArgs;
    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 flavors = FlexibleengineFunctions.getDcsFlavors(GetDcsFlavorsArgs.builder()
                .capacity("4")
                .build());
    
        }
    }
    
    variables:
      flavors:
        fn::invoke:
          function: flexibleengine:getDcsFlavors
          arguments:
            capacity: '4'
    

    Using getDcsFlavors

    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 getDcsFlavors(args: GetDcsFlavorsArgs, opts?: InvokeOptions): Promise<GetDcsFlavorsResult>
    function getDcsFlavorsOutput(args: GetDcsFlavorsOutputArgs, opts?: InvokeOptions): Output<GetDcsFlavorsResult>
    def get_dcs_flavors(cache_mode: Optional[str] = None,
                        capacity: Optional[float] = None,
                        cpu_architecture: Optional[str] = None,
                        engine: Optional[str] = None,
                        engine_version: Optional[str] = None,
                        id: Optional[str] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDcsFlavorsResult
    def get_dcs_flavors_output(cache_mode: Optional[pulumi.Input[str]] = None,
                        capacity: Optional[pulumi.Input[float]] = None,
                        cpu_architecture: Optional[pulumi.Input[str]] = None,
                        engine: Optional[pulumi.Input[str]] = None,
                        engine_version: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        region: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDcsFlavorsResult]
    func GetDcsFlavors(ctx *Context, args *GetDcsFlavorsArgs, opts ...InvokeOption) (*GetDcsFlavorsResult, error)
    func GetDcsFlavorsOutput(ctx *Context, args *GetDcsFlavorsOutputArgs, opts ...InvokeOption) GetDcsFlavorsResultOutput

    > Note: This function is named GetDcsFlavors in the Go SDK.

    public static class GetDcsFlavors 
    {
        public static Task<GetDcsFlavorsResult> InvokeAsync(GetDcsFlavorsArgs args, InvokeOptions? opts = null)
        public static Output<GetDcsFlavorsResult> Invoke(GetDcsFlavorsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcsFlavorsResult> getDcsFlavors(GetDcsFlavorsArgs args, InvokeOptions options)
    public static Output<GetDcsFlavorsResult> getDcsFlavors(GetDcsFlavorsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getDcsFlavors:getDcsFlavors
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Capacity double
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    CacheMode string
    The mode of a cache engine. The valid values are as follows:
    CpuArchitecture string
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    Engine string
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    EngineVersion string
    The version of a cache engine. It is mandatory when the engine is Redis, the value can be 3.0, 4.0, 5.0, or 6.0.
    Id string
    Name string
    The flavor name of the cache instance.
    Region string
    Specifies the region in which to obtain the DCS flavors. If omitted, the provider-level region will be used.
    Capacity float64
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    CacheMode string
    The mode of a cache engine. The valid values are as follows:
    CpuArchitecture string
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    Engine string
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    EngineVersion string
    The version of a cache engine. It is mandatory when the engine is Redis, the value can be 3.0, 4.0, 5.0, or 6.0.
    Id string
    Name string
    The flavor name of the cache instance.
    Region string
    Specifies the region in which to obtain the DCS flavors. If omitted, the provider-level region will be used.
    capacity Double
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    cacheMode String
    The mode of a cache engine. The valid values are as follows:
    cpuArchitecture String
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    engine String
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    engineVersion String
    The version of a cache engine. It is mandatory when the engine is Redis, the value can be 3.0, 4.0, 5.0, or 6.0.
    id String
    name String
    The flavor name of the cache instance.
    region String
    Specifies the region in which to obtain the DCS flavors. If omitted, the provider-level region will be used.
    capacity number
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    cacheMode string
    The mode of a cache engine. The valid values are as follows:
    cpuArchitecture string
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    engine string
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    engineVersion string
    The version of a cache engine. It is mandatory when the engine is Redis, the value can be 3.0, 4.0, 5.0, or 6.0.
    id string
    name string
    The flavor name of the cache instance.
    region string
    Specifies the region in which to obtain the DCS flavors. If omitted, the provider-level region will be used.
    capacity float
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    cache_mode str
    The mode of a cache engine. The valid values are as follows:
    cpu_architecture str
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    engine str
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    engine_version str
    The version of a cache engine. It is mandatory when the engine is Redis, the value can be 3.0, 4.0, 5.0, or 6.0.
    id str
    name str
    The flavor name of the cache instance.
    region str
    Specifies the region in which to obtain the DCS flavors. If omitted, the provider-level region will be used.
    capacity Number
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    cacheMode String
    The mode of a cache engine. The valid values are as follows:
    cpuArchitecture String
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    engine String
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    engineVersion String
    The version of a cache engine. It is mandatory when the engine is Redis, the value can be 3.0, 4.0, 5.0, or 6.0.
    id String
    name String
    The flavor name of the cache instance.
    region String
    Specifies the region in which to obtain the DCS flavors. If omitted, the provider-level region will be used.

    getDcsFlavors Result

    The following output properties are available:

    Capacity double
    The total memory of the cache, in GB.
    Flavors List<GetDcsFlavorsFlavor>
    A list of DCS flavors.
    Id string
    Region string
    CacheMode string
    The mode of a cache instance.
    CpuArchitecture string
    The CPU architecture of cache instance. Value is x86_64 or aarch64.
    Engine string
    The engine of the cache instance. Value is redis or memcached.
    EngineVersion string
    Name string
    The flavor name of the cache instance.
    Capacity float64
    The total memory of the cache, in GB.
    Flavors []GetDcsFlavorsFlavor
    A list of DCS flavors.
    Id string
    Region string
    CacheMode string
    The mode of a cache instance.
    CpuArchitecture string
    The CPU architecture of cache instance. Value is x86_64 or aarch64.
    Engine string
    The engine of the cache instance. Value is redis or memcached.
    EngineVersion string
    Name string
    The flavor name of the cache instance.
    capacity Double
    The total memory of the cache, in GB.
    flavors List<GetDcsFlavorsFlavor>
    A list of DCS flavors.
    id String
    region String
    cacheMode String
    The mode of a cache instance.
    cpuArchitecture String
    The CPU architecture of cache instance. Value is x86_64 or aarch64.
    engine String
    The engine of the cache instance. Value is redis or memcached.
    engineVersion String
    name String
    The flavor name of the cache instance.
    capacity number
    The total memory of the cache, in GB.
    flavors GetDcsFlavorsFlavor[]
    A list of DCS flavors.
    id string
    region string
    cacheMode string
    The mode of a cache instance.
    cpuArchitecture string
    The CPU architecture of cache instance. Value is x86_64 or aarch64.
    engine string
    The engine of the cache instance. Value is redis or memcached.
    engineVersion string
    name string
    The flavor name of the cache instance.
    capacity float
    The total memory of the cache, in GB.
    flavors Sequence[GetDcsFlavorsFlavor]
    A list of DCS flavors.
    id str
    region str
    cache_mode str
    The mode of a cache instance.
    cpu_architecture str
    The CPU architecture of cache instance. Value is x86_64 or aarch64.
    engine str
    The engine of the cache instance. Value is redis or memcached.
    engine_version str
    name str
    The flavor name of the cache instance.
    capacity Number
    The total memory of the cache, in GB.
    flavors List<Property Map>
    A list of DCS flavors.
    id String
    region String
    cacheMode String
    The mode of a cache instance.
    cpuArchitecture String
    The CPU architecture of cache instance. Value is x86_64 or aarch64.
    engine String
    The engine of the cache instance. Value is redis or memcached.
    engineVersion String
    name String
    The flavor name of the cache instance.

    Supporting Types

    GetDcsFlavorsFlavor

    AvailableZones List<string>
    An array of available zones where the cache specification can be used.
    CacheMode string
    The mode of a cache engine. The valid values are as follows:
    Capacity double
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    ChargingModes List<string>
    CpuArchitecture string
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    Engine string
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    EngineVersions string
    Supported versions of the specification.
    IpCount double
    Number of IP addresses corresponding to the specifications.
    Name string
    The flavor name of the cache instance.
    AvailableZones []string
    An array of available zones where the cache specification can be used.
    CacheMode string
    The mode of a cache engine. The valid values are as follows:
    Capacity float64
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    ChargingModes []string
    CpuArchitecture string
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    Engine string
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    EngineVersions string
    Supported versions of the specification.
    IpCount float64
    Number of IP addresses corresponding to the specifications.
    Name string
    The flavor name of the cache instance.
    availableZones List<String>
    An array of available zones where the cache specification can be used.
    cacheMode String
    The mode of a cache engine. The valid values are as follows:
    capacity Double
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    chargingModes List<String>
    cpuArchitecture String
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    engine String
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    engineVersions String
    Supported versions of the specification.
    ipCount Double
    Number of IP addresses corresponding to the specifications.
    name String
    The flavor name of the cache instance.
    availableZones string[]
    An array of available zones where the cache specification can be used.
    cacheMode string
    The mode of a cache engine. The valid values are as follows:
    capacity number
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    chargingModes string[]
    cpuArchitecture string
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    engine string
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    engineVersions string
    Supported versions of the specification.
    ipCount number
    Number of IP addresses corresponding to the specifications.
    name string
    The flavor name of the cache instance.
    available_zones Sequence[str]
    An array of available zones where the cache specification can be used.
    cache_mode str
    The mode of a cache engine. The valid values are as follows:
    capacity float
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    charging_modes Sequence[str]
    cpu_architecture str
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    engine str
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    engine_versions str
    Supported versions of the specification.
    ip_count float
    Number of IP addresses corresponding to the specifications.
    name str
    The flavor name of the cache instance.
    availableZones List<String>
    An array of available zones where the cache specification can be used.
    cacheMode String
    The mode of a cache engine. The valid values are as follows:
    capacity Number
    The total memory of the cache, in GB.

    • Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values: 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32 and 64. Cluster instance specifications support 4,8,16,24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768 and 1024.
    • Redis3.0: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64. Proxy cluster instance specifications support 64, 128, 256, 512, and 1024.
    • Memcached: Stand-alone and active/standby type instance values: 2, 4, 8, 16, 32 and 64.
    chargingModes List<String>
    cpuArchitecture String
    The CPU architecture of cache instance. Valid values x86_64 and aarch64.
    engine String
    The engine of the cache instance. Valid values are Redis and Memcached. Default value is Redis.
    engineVersions String
    Supported versions of the specification.
    ipCount Number
    Number of IP addresses corresponding to the specifications.
    name String
    The flavor name of the cache instance.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud