1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getCssFlavorV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getCssFlavorV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for CSS flavor you can get at documentation portal

    Use this data source to search matching CSS cluster flavor from OpenTelekomCloud.

    Example Usage

    Search by name

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const flavor = opentelekomcloud.getCssFlavorV1({
        name: "css.medium.8",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    flavor = opentelekomcloud.get_css_flavor_v1(name="css.medium.8")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetCssFlavorV1(ctx, &opentelekomcloud.GetCssFlavorV1Args{
    			Name: pulumi.StringRef("css.medium.8"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var flavor = Opentelekomcloud.GetCssFlavorV1.Invoke(new()
        {
            Name = "css.medium.8",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetCssFlavorV1Args;
    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 flavor = OpentelekomcloudFunctions.getCssFlavorV1(GetCssFlavorV1Args.builder()
                .name("css.medium.8")
                .build());
    
        }
    }
    
    variables:
      flavor:
        fn::invoke:
          function: opentelekomcloud:getCssFlavorV1
          arguments:
            name: css.medium.8
    

    Search by specs

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const flavor = opentelekomcloud.getCssFlavorV1({
        diskRange: {
            minFrom: 320,
            minTo: 800,
        },
        minCpu: 4,
        minRam: 32,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    flavor = opentelekomcloud.get_css_flavor_v1(disk_range={
            "min_from": 320,
            "min_to": 800,
        },
        min_cpu=4,
        min_ram=32)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetCssFlavorV1(ctx, &opentelekomcloud.GetCssFlavorV1Args{
    			DiskRange: opentelekomcloud.GetCssFlavorV1DiskRange{
    				MinFrom: pulumi.Float64Ref(320),
    				MinTo:   pulumi.Float64Ref(800),
    			},
    			MinCpu: pulumi.Float64Ref(4),
    			MinRam: pulumi.Float64Ref(32),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var flavor = Opentelekomcloud.GetCssFlavorV1.Invoke(new()
        {
            DiskRange = new Opentelekomcloud.Inputs.GetCssFlavorV1DiskRangeInputArgs
            {
                MinFrom = 320,
                MinTo = 800,
            },
            MinCpu = 4,
            MinRam = 32,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetCssFlavorV1Args;
    import com.pulumi.opentelekomcloud.inputs.GetCssFlavorV1DiskRangeArgs;
    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 flavor = OpentelekomcloudFunctions.getCssFlavorV1(GetCssFlavorV1Args.builder()
                .diskRange(GetCssFlavorV1DiskRangeArgs.builder()
                    .minFrom(320)
                    .minTo(800)
                    .build())
                .minCpu(4)
                .minRam(32)
                .build());
    
        }
    }
    
    variables:
      flavor:
        fn::invoke:
          function: opentelekomcloud:getCssFlavorV1
          arguments:
            diskRange:
              minFrom: 320
              minTo: 800
            minCpu: 4
            minRam: 32
    

    Using getCssFlavorV1

    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 getCssFlavorV1(args: GetCssFlavorV1Args, opts?: InvokeOptions): Promise<GetCssFlavorV1Result>
    function getCssFlavorV1Output(args: GetCssFlavorV1OutputArgs, opts?: InvokeOptions): Output<GetCssFlavorV1Result>
    def get_css_flavor_v1(disk_range: Optional[GetCssFlavorV1DiskRange] = None,
                          id: Optional[str] = None,
                          min_cpu: Optional[float] = None,
                          min_ram: Optional[float] = None,
                          name: Optional[str] = None,
                          type: Optional[str] = None,
                          version: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetCssFlavorV1Result
    def get_css_flavor_v1_output(disk_range: Optional[pulumi.Input[GetCssFlavorV1DiskRangeArgs]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          min_cpu: Optional[pulumi.Input[float]] = None,
                          min_ram: Optional[pulumi.Input[float]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          type: Optional[pulumi.Input[str]] = None,
                          version: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetCssFlavorV1Result]
    func GetCssFlavorV1(ctx *Context, args *GetCssFlavorV1Args, opts ...InvokeOption) (*GetCssFlavorV1Result, error)
    func GetCssFlavorV1Output(ctx *Context, args *GetCssFlavorV1OutputArgs, opts ...InvokeOption) GetCssFlavorV1ResultOutput

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

    public static class GetCssFlavorV1 
    {
        public static Task<GetCssFlavorV1Result> InvokeAsync(GetCssFlavorV1Args args, InvokeOptions? opts = null)
        public static Output<GetCssFlavorV1Result> Invoke(GetCssFlavorV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCssFlavorV1Result> getCssFlavorV1(GetCssFlavorV1Args args, InvokeOptions options)
    public static Output<GetCssFlavorV1Result> getCssFlavorV1(GetCssFlavorV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getCssFlavorV1:getCssFlavorV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DiskRange GetCssFlavorV1DiskRange
    Disk range restrictions the flavor should match. Disk range describes available storage volume of the CSS node. Unit: GB.
    Id string
    Flavor ID.
    MinCpu double
    Minimal count of CPU the flavor should have.
    MinRam double
    Minimal RAM size (GB) the flavor should have.
    Name string
    Name of the flavor.
    Type string
    Flavor type, one of ess, ess-master, ess-client, ess-cold. Default is ess.
    Version string
    Version of cluster.
    DiskRange GetCssFlavorV1DiskRange
    Disk range restrictions the flavor should match. Disk range describes available storage volume of the CSS node. Unit: GB.
    Id string
    Flavor ID.
    MinCpu float64
    Minimal count of CPU the flavor should have.
    MinRam float64
    Minimal RAM size (GB) the flavor should have.
    Name string
    Name of the flavor.
    Type string
    Flavor type, one of ess, ess-master, ess-client, ess-cold. Default is ess.
    Version string
    Version of cluster.
    diskRange GetCssFlavorV1DiskRange
    Disk range restrictions the flavor should match. Disk range describes available storage volume of the CSS node. Unit: GB.
    id String
    Flavor ID.
    minCpu Double
    Minimal count of CPU the flavor should have.
    minRam Double
    Minimal RAM size (GB) the flavor should have.
    name String
    Name of the flavor.
    type String
    Flavor type, one of ess, ess-master, ess-client, ess-cold. Default is ess.
    version String
    Version of cluster.
    diskRange GetCssFlavorV1DiskRange
    Disk range restrictions the flavor should match. Disk range describes available storage volume of the CSS node. Unit: GB.
    id string
    Flavor ID.
    minCpu number
    Minimal count of CPU the flavor should have.
    minRam number
    Minimal RAM size (GB) the flavor should have.
    name string
    Name of the flavor.
    type string
    Flavor type, one of ess, ess-master, ess-client, ess-cold. Default is ess.
    version string
    Version of cluster.
    disk_range GetCssFlavorV1DiskRange
    Disk range restrictions the flavor should match. Disk range describes available storage volume of the CSS node. Unit: GB.
    id str
    Flavor ID.
    min_cpu float
    Minimal count of CPU the flavor should have.
    min_ram float
    Minimal RAM size (GB) the flavor should have.
    name str
    Name of the flavor.
    type str
    Flavor type, one of ess, ess-master, ess-client, ess-cold. Default is ess.
    version str
    Version of cluster.
    diskRange Property Map
    Disk range restrictions the flavor should match. Disk range describes available storage volume of the CSS node. Unit: GB.
    id String
    Flavor ID.
    minCpu Number
    Minimal count of CPU the flavor should have.
    minRam Number
    Minimal RAM size (GB) the flavor should have.
    name String
    Name of the flavor.
    type String
    Flavor type, one of ess, ess-master, ess-client, ess-cold. Default is ess.
    version String
    Version of cluster.

    getCssFlavorV1 Result

    The following output properties are available:

    Cpu double
    Flavor CPU count.
    Id string
    Flavor ID.
    Name string
    Flavor name.
    Ram double
    Flavor RAM (GB).
    Region string
    Region the flavor is available.
    Version string
    DiskRange GetCssFlavorV1DiskRange
    Disk range specifications.
    MinCpu double
    MinRam double
    Type string
    Cpu float64
    Flavor CPU count.
    Id string
    Flavor ID.
    Name string
    Flavor name.
    Ram float64
    Flavor RAM (GB).
    Region string
    Region the flavor is available.
    Version string
    DiskRange GetCssFlavorV1DiskRange
    Disk range specifications.
    MinCpu float64
    MinRam float64
    Type string
    cpu Double
    Flavor CPU count.
    id String
    Flavor ID.
    name String
    Flavor name.
    ram Double
    Flavor RAM (GB).
    region String
    Region the flavor is available.
    version String
    diskRange GetCssFlavorV1DiskRange
    Disk range specifications.
    minCpu Double
    minRam Double
    type String
    cpu number
    Flavor CPU count.
    id string
    Flavor ID.
    name string
    Flavor name.
    ram number
    Flavor RAM (GB).
    region string
    Region the flavor is available.
    version string
    diskRange GetCssFlavorV1DiskRange
    Disk range specifications.
    minCpu number
    minRam number
    type string
    cpu float
    Flavor CPU count.
    id str
    Flavor ID.
    name str
    Flavor name.
    ram float
    Flavor RAM (GB).
    region str
    Region the flavor is available.
    version str
    disk_range GetCssFlavorV1DiskRange
    Disk range specifications.
    min_cpu float
    min_ram float
    type str
    cpu Number
    Flavor CPU count.
    id String
    Flavor ID.
    name String
    Flavor name.
    ram Number
    Flavor RAM (GB).
    region String
    Region the flavor is available.
    version String
    diskRange Property Map
    Disk range specifications.
    minCpu Number
    minRam Number
    type String

    Supporting Types

    GetCssFlavorV1DiskRange

    From double
    Minimal disk volume the flavor can have
    To double
    Maximum disk volume the flavor can have
    MinFrom double
    Minimal disk range start.
    MinTo double
    Minimal disk range end.
    From float64
    Minimal disk volume the flavor can have
    To float64
    Maximum disk volume the flavor can have
    MinFrom float64
    Minimal disk range start.
    MinTo float64
    Minimal disk range end.
    from Double
    Minimal disk volume the flavor can have
    to Double
    Maximum disk volume the flavor can have
    minFrom Double
    Minimal disk range start.
    minTo Double
    Minimal disk range end.
    from number
    Minimal disk volume the flavor can have
    to number
    Maximum disk volume the flavor can have
    minFrom number
    Minimal disk range start.
    minTo number
    Minimal disk range end.
    from_ float
    Minimal disk volume the flavor can have
    to float
    Maximum disk volume the flavor can have
    min_from float
    Minimal disk range start.
    min_to float
    Minimal disk range end.
    from Number
    Minimal disk volume the flavor can have
    to Number
    Maximum disk volume the flavor can have
    minFrom Number
    Minimal disk range start.
    minTo Number
    Minimal disk range end.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud