OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud
ovh.CloudProject.getFlavors
Explore with Pulumi AI
Retrieves the available flavors on the given public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const flavors = ovh.CloudProject.getFlavors({
    serviceName: "YYYY",
});
import pulumi
import pulumi_ovh as ovh
flavors = ovh.CloudProject.get_flavors(service_name="YYYY")
package main
import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudproject.GetFlavors(ctx, &cloudproject.GetFlavorsArgs{
			ServiceName: "YYYY",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var flavors = Ovh.CloudProject.GetFlavors.Invoke(new()
    {
        ServiceName = "YYYY",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetFlavorsArgs;
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 = CloudProjectFunctions.getFlavors(GetFlavorsArgs.builder()
            .serviceName("YYYY")
            .build());
    }
}
variables:
  flavors:
    fn::invoke:
      function: ovh:CloudProject:getFlavors
      arguments:
        serviceName: YYYY
Using getFlavors
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 getFlavors(args: GetFlavorsArgs, opts?: InvokeOptions): Promise<GetFlavorsResult>
function getFlavorsOutput(args: GetFlavorsOutputArgs, opts?: InvokeOptions): Output<GetFlavorsResult>def get_flavors(region: Optional[str] = None,
                service_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetFlavorsResult
def get_flavors_output(region: Optional[pulumi.Input[str]] = None,
                service_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetFlavorsResult]func GetFlavors(ctx *Context, args *GetFlavorsArgs, opts ...InvokeOption) (*GetFlavorsResult, error)
func GetFlavorsOutput(ctx *Context, args *GetFlavorsOutputArgs, opts ...InvokeOption) GetFlavorsResultOutput> Note: This function is named GetFlavors in the Go SDK.
public static class GetFlavors 
{
    public static Task<GetFlavorsResult> InvokeAsync(GetFlavorsArgs args, InvokeOptions? opts = null)
    public static Output<GetFlavorsResult> Invoke(GetFlavorsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFlavorsResult> getFlavors(GetFlavorsArgs args, InvokeOptions options)
public static Output<GetFlavorsResult> getFlavors(GetFlavorsArgs args, InvokeOptions options)
fn::invoke:
  function: ovh:CloudProject/getFlavors:getFlavors
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ServiceName string
- Service name
- Region string
- Flavor region
- ServiceName string
- Service name
- Region string
- Flavor region
- serviceName String
- Service name
- region String
- Flavor region
- serviceName string
- Service name
- region string
- Flavor region
- service_name str
- Service name
- region str
- Flavor region
- serviceName String
- Service name
- region String
- Flavor region
getFlavors Result
The following output properties are available:
- Flavors
List<GetFlavors Flavor> 
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Flavor region
- ServiceName string
- Service name
- Flavors
[]GetFlavors Flavor 
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Flavor region
- ServiceName string
- Service name
- flavors
List<GetFlavors Flavor> 
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Flavor region
- serviceName String
- Service name
- flavors
GetFlavors Flavor[] 
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Flavor region
- serviceName string
- Service name
- flavors
Sequence[cloudproject.Get Flavors Flavor] 
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- Flavor region
- service_name str
- Service name
- flavors List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Flavor region
- serviceName String
- Service name
Supporting Types
GetFlavorsFlavor  
- Available bool
- Available in stock
- Capabilities
List<GetFlavors Flavor Capability> 
- Capabilities of the flavor
- Disk double
- Number of disks
- Id string
- Flavor id
- InboundBandwidth double
- Max capacity of inbound traffic in Mbit/s
- Name string
- Flavor name
- OsType string
- OS to install on
- OutboundBandwidth double
- Max capacity of outbound traffic in Mbit/s
- PlanCodes GetFlavors Flavor Plan Codes 
- Plan codes to order instances
- Quota double
- Number instance you can spawn with your actual quota
- Ram double
- Ram quantity (Gio)
- Region string
- Flavor region
- Type string
- Flavor type
- Vcpus double
- Number of VCPUs
- Available bool
- Available in stock
- Capabilities
[]GetFlavors Flavor Capability 
- Capabilities of the flavor
- Disk float64
- Number of disks
- Id string
- Flavor id
- InboundBandwidth float64
- Max capacity of inbound traffic in Mbit/s
- Name string
- Flavor name
- OsType string
- OS to install on
- OutboundBandwidth float64
- Max capacity of outbound traffic in Mbit/s
- PlanCodes GetFlavors Flavor Plan Codes 
- Plan codes to order instances
- Quota float64
- Number instance you can spawn with your actual quota
- Ram float64
- Ram quantity (Gio)
- Region string
- Flavor region
- Type string
- Flavor type
- Vcpus float64
- Number of VCPUs
- available Boolean
- Available in stock
- capabilities
List<GetFlavors Flavor Capability> 
- Capabilities of the flavor
- disk Double
- Number of disks
- id String
- Flavor id
- inboundBandwidth Double
- Max capacity of inbound traffic in Mbit/s
- name String
- Flavor name
- osType String
- OS to install on
- outboundBandwidth Double
- Max capacity of outbound traffic in Mbit/s
- planCodes GetFlavors Flavor Plan Codes 
- Plan codes to order instances
- quota Double
- Number instance you can spawn with your actual quota
- ram Double
- Ram quantity (Gio)
- region String
- Flavor region
- type String
- Flavor type
- vcpus Double
- Number of VCPUs
- available boolean
- Available in stock
- capabilities
GetFlavors Flavor Capability[] 
- Capabilities of the flavor
- disk number
- Number of disks
- id string
- Flavor id
- inboundBandwidth number
- Max capacity of inbound traffic in Mbit/s
- name string
- Flavor name
- osType string
- OS to install on
- outboundBandwidth number
- Max capacity of outbound traffic in Mbit/s
- planCodes GetFlavors Flavor Plan Codes 
- Plan codes to order instances
- quota number
- Number instance you can spawn with your actual quota
- ram number
- Ram quantity (Gio)
- region string
- Flavor region
- type string
- Flavor type
- vcpus number
- Number of VCPUs
- available bool
- Available in stock
- capabilities
Sequence[cloudproject.Get Flavors Flavor Capability] 
- Capabilities of the flavor
- disk float
- Number of disks
- id str
- Flavor id
- inbound_bandwidth float
- Max capacity of inbound traffic in Mbit/s
- name str
- Flavor name
- os_type str
- OS to install on
- outbound_bandwidth float
- Max capacity of outbound traffic in Mbit/s
- plan_codes cloudproject.Get Flavors Flavor Plan Codes 
- Plan codes to order instances
- quota float
- Number instance you can spawn with your actual quota
- ram float
- Ram quantity (Gio)
- region str
- Flavor region
- type str
- Flavor type
- vcpus float
- Number of VCPUs
- available Boolean
- Available in stock
- capabilities List<Property Map>
- Capabilities of the flavor
- disk Number
- Number of disks
- id String
- Flavor id
- inboundBandwidth Number
- Max capacity of inbound traffic in Mbit/s
- name String
- Flavor name
- osType String
- OS to install on
- outboundBandwidth Number
- Max capacity of outbound traffic in Mbit/s
- planCodes Property Map
- Plan codes to order instances
- quota Number
- Number instance you can spawn with your actual quota
- ram Number
- Ram quantity (Gio)
- region String
- Flavor region
- type String
- Flavor type
- vcpus Number
- Number of VCPUs
GetFlavorsFlavorCapability   
GetFlavorsFlavorPlanCodes    
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ovhTerraform Provider.