Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Retrieves the available flavors on the given public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/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(name_filter: Optional[str] = None,
region: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFlavorsResult
def get_flavors_output(name_filter: Optional[pulumi.Input[str]] = None,
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:
- Service
Name string - Service name
- Name
Filter string - Filter flavors using the given name (strict equality, e.g. b2-7)
- Region string
- Flavor region
- Service
Name string - Service name
- Name
Filter string - Filter flavors using the given name (strict equality, e.g. b2-7)
- Region string
- Flavor region
- service
Name String - Service name
- name
Filter String - Filter flavors using the given name (strict equality, e.g. b2-7)
- region String
- Flavor region
- service
Name string - Service name
- name
Filter string - Filter flavors using the given name (strict equality, e.g. b2-7)
- region string
- Flavor region
- service_
name str - Service name
- name_
filter str - Filter flavors using the given name (strict equality, e.g. b2-7)
- region str
- Flavor region
- service
Name String - Service name
- name
Filter String - Filter flavors using the given name (strict equality, e.g. b2-7)
- region String
- Flavor region
getFlavors Result
The following output properties are available:
- Flavors
List<Get
Flavors Flavor> - Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Flavor region
- Service
Name string - Service name
- Name
Filter string - Filter flavors using the given name (strict equality, e.g. b2-7)
- Flavors
[]Get
Flavors Flavor - Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Flavor region
- Service
Name string - Service name
- Name
Filter string - Filter flavors using the given name (strict equality, e.g. b2-7)
- flavors
List<Get
Flavors Flavor> - id String
- The provider-assigned unique ID for this managed resource.
- region String
- Flavor region
- service
Name String - Service name
- name
Filter String - Filter flavors using the given name (strict equality, e.g. b2-7)
- flavors
Get
Flavors Flavor[] - id string
- The provider-assigned unique ID for this managed resource.
- region string
- Flavor region
- service
Name string - Service name
- name
Filter string - Filter flavors using the given name (strict equality, e.g. b2-7)
- flavors
Sequence[Get
Flavors Flavor] - id str
- The provider-assigned unique ID for this managed resource.
- region str
- Flavor region
- service_
name str - Service name
- name_
filter str - Filter flavors using the given name (strict equality, e.g. b2-7)
- flavors List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Flavor region
- service
Name String - Service name
- name
Filter String - Filter flavors using the given name (strict equality, e.g. b2-7)
Supporting Types
GetFlavorsFlavor
- Available bool
- Available in stock
- Capabilities
List<Get
Flavors Flavor Capability> - Capabilities of the flavor
- Disk double
- Number of disks
- Id string
- Flavor id
- Inbound
Bandwidth double - Max capacity of inbound traffic in Mbit/s
- Name string
- Flavor name
- Os
Type string - OS to install on
- Outbound
Bandwidth double - Max capacity of outbound traffic in Mbit/s
- Plan
Codes 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
[]Get
Flavors Flavor Capability - Capabilities of the flavor
- Disk float64
- Number of disks
- Id string
- Flavor id
- Inbound
Bandwidth float64 - Max capacity of inbound traffic in Mbit/s
- Name string
- Flavor name
- Os
Type string - OS to install on
- Outbound
Bandwidth float64 - Max capacity of outbound traffic in Mbit/s
- Plan
Codes 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<Get
Flavors Flavor Capability> - Capabilities of the flavor
- disk Double
- Number of disks
- id String
- Flavor id
- inbound
Bandwidth Double - Max capacity of inbound traffic in Mbit/s
- name String
- Flavor name
- os
Type String - OS to install on
- outbound
Bandwidth Double - Max capacity of outbound traffic in Mbit/s
- plan
Codes 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
Get
Flavors Flavor Capability[] - Capabilities of the flavor
- disk number
- Number of disks
- id string
- Flavor id
- inbound
Bandwidth number - Max capacity of inbound traffic in Mbit/s
- name string
- Flavor name
- os
Type string - OS to install on
- outbound
Bandwidth number - Max capacity of outbound traffic in Mbit/s
- plan
Codes 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[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 GetFlavors 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
- inbound
Bandwidth Number - Max capacity of inbound traffic in Mbit/s
- name String
- Flavor name
- os
Type String - OS to install on
- outbound
Bandwidth Number - Max capacity of outbound traffic in Mbit/s
- plan
Codes 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.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
