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

flexibleengine.getCssFlavors

Explore with Pulumi AI

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

    Use this data source to get available flavors of FlexibleEngine CSS node instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const test = flexibleengine.getCssFlavors({
        memory: 32,
        type: "ess",
        vcpus: 4,
        version: "7.9.3",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    test = flexibleengine.get_css_flavors(memory=32,
        type="ess",
        vcpus=4,
        version="7.9.3")
    
    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.GetCssFlavors(ctx, &flexibleengine.GetCssFlavorsArgs{
    			Memory:  pulumi.Float64Ref(32),
    			Type:    pulumi.StringRef("ess"),
    			Vcpus:   pulumi.Float64Ref(4),
    			Version: pulumi.StringRef("7.9.3"),
    		}, 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 test = Flexibleengine.GetCssFlavors.Invoke(new()
        {
            Memory = 32,
            Type = "ess",
            Vcpus = 4,
            Version = "7.9.3",
        });
    
    });
    
    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.GetCssFlavorsArgs;
    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 test = FlexibleengineFunctions.getCssFlavors(GetCssFlavorsArgs.builder()
                .memory(32)
                .type("ess")
                .vcpus(4)
                .version("7.9.3")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getCssFlavors
          arguments:
            memory: 32
            type: ess
            vcpus: 4
            version: 7.9.3
    

    Using getCssFlavors

    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 getCssFlavors(args: GetCssFlavorsArgs, opts?: InvokeOptions): Promise<GetCssFlavorsResult>
    function getCssFlavorsOutput(args: GetCssFlavorsOutputArgs, opts?: InvokeOptions): Output<GetCssFlavorsResult>
    def get_css_flavors(id: Optional[str] = None,
                        memory: Optional[float] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None,
                        type: Optional[str] = None,
                        vcpus: Optional[float] = None,
                        version: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCssFlavorsResult
    def get_css_flavors_output(id: Optional[pulumi.Input[str]] = None,
                        memory: Optional[pulumi.Input[float]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        region: Optional[pulumi.Input[str]] = None,
                        type: Optional[pulumi.Input[str]] = None,
                        vcpus: Optional[pulumi.Input[float]] = None,
                        version: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetCssFlavorsResult]
    func GetCssFlavors(ctx *Context, args *GetCssFlavorsArgs, opts ...InvokeOption) (*GetCssFlavorsResult, error)
    func GetCssFlavorsOutput(ctx *Context, args *GetCssFlavorsOutputArgs, opts ...InvokeOption) GetCssFlavorsResultOutput

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

    public static class GetCssFlavors 
    {
        public static Task<GetCssFlavorsResult> InvokeAsync(GetCssFlavorsArgs args, InvokeOptions? opts = null)
        public static Output<GetCssFlavorsResult> Invoke(GetCssFlavorsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCssFlavorsResult> getCssFlavors(GetCssFlavorsArgs args, InvokeOptions options)
    public static Output<GetCssFlavorsResult> getCssFlavors(GetCssFlavorsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getCssFlavors:getCssFlavors
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of CSS flavor.
    Memory double
    Specifies the memory size(GB) in the CSS flavor.
    Name string
    Specifies the name of the CSS flavor.
    Region string
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    Type string
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    Vcpus double
    Specifies the number of vCPUs in the CSS flavor.
    Version string
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.
    Id string
    The ID of CSS flavor.
    Memory float64
    Specifies the memory size(GB) in the CSS flavor.
    Name string
    Specifies the name of the CSS flavor.
    Region string
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    Type string
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    Vcpus float64
    Specifies the number of vCPUs in the CSS flavor.
    Version string
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.
    id String
    The ID of CSS flavor.
    memory Double
    Specifies the memory size(GB) in the CSS flavor.
    name String
    Specifies the name of the CSS flavor.
    region String
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    type String
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    vcpus Double
    Specifies the number of vCPUs in the CSS flavor.
    version String
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.
    id string
    The ID of CSS flavor.
    memory number
    Specifies the memory size(GB) in the CSS flavor.
    name string
    Specifies the name of the CSS flavor.
    region string
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    type string
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    vcpus number
    Specifies the number of vCPUs in the CSS flavor.
    version string
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.
    id str
    The ID of CSS flavor.
    memory float
    Specifies the memory size(GB) in the CSS flavor.
    name str
    Specifies the name of the CSS flavor.
    region str
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    type str
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    vcpus float
    Specifies the number of vCPUs in the CSS flavor.
    version str
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.
    id String
    The ID of CSS flavor.
    memory Number
    Specifies the memory size(GB) in the CSS flavor.
    name String
    Specifies the name of the CSS flavor.
    region String
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    type String
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    vcpus Number
    Specifies the number of vCPUs in the CSS flavor.
    version String
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.

    getCssFlavors Result

    The following output properties are available:

    Flavors List<GetCssFlavorsFlavor>
    Indicates the flavor information. The flavors object structure is documented below.
    Id string
    The ID of CSS flavor.
    Region string
    The region where the node resides.
    Memory double
    The memory size in GB.
    Name string
    The name of the CSS flavor. It is referenced by node_config.flavor in flexibleengine_css_cluster.
    Type string
    The node instance type.
    Vcpus double
    The number of vCPUs.
    Version string
    The engine version.
    Flavors []GetCssFlavorsFlavor
    Indicates the flavor information. The flavors object structure is documented below.
    Id string
    The ID of CSS flavor.
    Region string
    The region where the node resides.
    Memory float64
    The memory size in GB.
    Name string
    The name of the CSS flavor. It is referenced by node_config.flavor in flexibleengine_css_cluster.
    Type string
    The node instance type.
    Vcpus float64
    The number of vCPUs.
    Version string
    The engine version.
    flavors List<GetCssFlavorsFlavor>
    Indicates the flavor information. The flavors object structure is documented below.
    id String
    The ID of CSS flavor.
    region String
    The region where the node resides.
    memory Double
    The memory size in GB.
    name String
    The name of the CSS flavor. It is referenced by node_config.flavor in flexibleengine_css_cluster.
    type String
    The node instance type.
    vcpus Double
    The number of vCPUs.
    version String
    The engine version.
    flavors GetCssFlavorsFlavor[]
    Indicates the flavor information. The flavors object structure is documented below.
    id string
    The ID of CSS flavor.
    region string
    The region where the node resides.
    memory number
    The memory size in GB.
    name string
    The name of the CSS flavor. It is referenced by node_config.flavor in flexibleengine_css_cluster.
    type string
    The node instance type.
    vcpus number
    The number of vCPUs.
    version string
    The engine version.
    flavors Sequence[GetCssFlavorsFlavor]
    Indicates the flavor information. The flavors object structure is documented below.
    id str
    The ID of CSS flavor.
    region str
    The region where the node resides.
    memory float
    The memory size in GB.
    name str
    The name of the CSS flavor. It is referenced by node_config.flavor in flexibleengine_css_cluster.
    type str
    The node instance type.
    vcpus float
    The number of vCPUs.
    version str
    The engine version.
    flavors List<Property Map>
    Indicates the flavor information. The flavors object structure is documented below.
    id String
    The ID of CSS flavor.
    region String
    The region where the node resides.
    memory Number
    The memory size in GB.
    name String
    The name of the CSS flavor. It is referenced by node_config.flavor in flexibleengine_css_cluster.
    type String
    The node instance type.
    vcpus Number
    The number of vCPUs.
    version String
    The engine version.

    Supporting Types

    GetCssFlavorsFlavor

    DiskRange string
    The disk capacity range of an instance, in GB.
    Id string
    The ID of CSS flavor.
    Memory double
    Specifies the memory size(GB) in the CSS flavor.
    Name string
    Specifies the name of the CSS flavor.
    Region string
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    Type string
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    Vcpus double
    Specifies the number of vCPUs in the CSS flavor.
    Version string
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.
    DiskRange string
    The disk capacity range of an instance, in GB.
    Id string
    The ID of CSS flavor.
    Memory float64
    Specifies the memory size(GB) in the CSS flavor.
    Name string
    Specifies the name of the CSS flavor.
    Region string
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    Type string
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    Vcpus float64
    Specifies the number of vCPUs in the CSS flavor.
    Version string
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.
    diskRange String
    The disk capacity range of an instance, in GB.
    id String
    The ID of CSS flavor.
    memory Double
    Specifies the memory size(GB) in the CSS flavor.
    name String
    Specifies the name of the CSS flavor.
    region String
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    type String
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    vcpus Double
    Specifies the number of vCPUs in the CSS flavor.
    version String
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.
    diskRange string
    The disk capacity range of an instance, in GB.
    id string
    The ID of CSS flavor.
    memory number
    Specifies the memory size(GB) in the CSS flavor.
    name string
    Specifies the name of the CSS flavor.
    region string
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    type string
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    vcpus number
    Specifies the number of vCPUs in the CSS flavor.
    version string
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.
    disk_range str
    The disk capacity range of an instance, in GB.
    id str
    The ID of CSS flavor.
    memory float
    Specifies the memory size(GB) in the CSS flavor.
    name str
    Specifies the name of the CSS flavor.
    region str
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    type str
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    vcpus float
    Specifies the number of vCPUs in the CSS flavor.
    version str
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.
    diskRange String
    The disk capacity range of an instance, in GB.
    id String
    The ID of CSS flavor.
    memory Number
    Specifies the memory size(GB) in the CSS flavor.
    name String
    Specifies the name of the CSS flavor.
    region String
    Specifies the region in which to obtain the CSS flavors. If omitted, the provider-level region will be used.
    type String
    Specifies the node instance type. The options are ess, ess-cold, ess-master and ess-client.
    vcpus Number
    Specifies the number of vCPUs in the CSS flavor.
    version String
    Specifies the engine version. The options are 6.5.4, 7.1.1, 7.6.2, 7.9.3 and 7.10.2.

    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