flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getDcsFlavors
Explore with Pulumi AI
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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- Cache
Mode string - The mode of a cache engine. The valid values are as follows:
- Cpu
Architecture 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.
- Engine
Version 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
, or6.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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- Cache
Mode string - The mode of a cache engine. The valid values are as follows:
- Cpu
Architecture 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.
- Engine
Version 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
, or6.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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- cache
Mode String - The mode of a cache engine. The valid values are as follows:
- cpu
Architecture 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.
- engine
Version 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
, or6.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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- cache
Mode string - The mode of a cache engine. The valid values are as follows:
- cpu
Architecture 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.
- engine
Version 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
, or6.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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- 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
, or6.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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- cache
Mode String - The mode of a cache engine. The valid values are as follows:
- cpu
Architecture 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.
- engine
Version 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
, or6.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<Get
Dcs Flavors Flavor> - A list of DCS flavors.
- Id string
- Region string
- Cache
Mode string - The mode of a cache instance.
- Cpu
Architecture 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.
- Engine
Version string - Name string
- The flavor name of the cache instance.
- Capacity float64
- The total memory of the cache, in GB.
- Flavors
[]Get
Dcs Flavors Flavor - A list of DCS flavors.
- Id string
- Region string
- Cache
Mode string - The mode of a cache instance.
- Cpu
Architecture 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.
- Engine
Version string - Name string
- The flavor name of the cache instance.
- capacity Double
- The total memory of the cache, in GB.
- flavors
List<Get
Dcs Flavors Flavor> - A list of DCS flavors.
- id String
- region String
- cache
Mode String - The mode of a cache instance.
- cpu
Architecture 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.
- engine
Version String - name String
- The flavor name of the cache instance.
- capacity number
- The total memory of the cache, in GB.
- flavors
Get
Dcs Flavors Flavor[] - A list of DCS flavors.
- id string
- region string
- cache
Mode string - The mode of a cache instance.
- cpu
Architecture 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.
- engine
Version string - name string
- The flavor name of the cache instance.
- capacity float
- The total memory of the cache, in GB.
- flavors
Sequence[Get
Dcs Flavors Flavor] - 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
- cache
Mode String - The mode of a cache instance.
- cpu
Architecture 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.
- engine
Version String - name String
- The flavor name of the cache instance.
Supporting Types
GetDcsFlavorsFlavor
- Available
Zones List<string> - An array of available zones where the cache specification can be used.
- Cache
Mode 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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- Charging
Modes List<string> - Cpu
Architecture 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.
- Engine
Versions string - Supported versions of the specification.
- Ip
Count double - Number of IP addresses corresponding to the specifications.
- Name string
- The flavor name of the cache instance.
- Available
Zones []string - An array of available zones where the cache specification can be used.
- Cache
Mode 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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- Charging
Modes []string - Cpu
Architecture 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.
- Engine
Versions string - Supported versions of the specification.
- Ip
Count float64 - Number of IP addresses corresponding to the specifications.
- Name string
- The flavor name of the cache instance.
- available
Zones List<String> - An array of available zones where the cache specification can be used.
- cache
Mode 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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- charging
Modes List<String> - cpu
Architecture 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.
- engine
Versions String - Supported versions of the specification.
- ip
Count Double - Number of IP addresses corresponding to the specifications.
- name String
- The flavor name of the cache instance.
- available
Zones string[] - An array of available zones where the cache specification can be used.
- cache
Mode 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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- charging
Modes string[] - cpu
Architecture 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.
- engine
Versions string - Supported versions of the specification.
- ip
Count 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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- 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.
- available
Zones List<String> - An array of available zones where the cache specification can be used.
- cache
Mode 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
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- charging
Modes List<String> - cpu
Architecture 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.
- engine
Versions String - Supported versions of the specification.
- ip
Count 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 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud