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 given flavor in a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const flavor = ovh.getCloudProjectFlavor({
serviceName: "YYYY",
id: "XXXX",
});
import pulumi
import pulumi_ovh as ovh
flavor = ovh.get_cloud_project_flavor(service_name="YYYY",
id="XXXX")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ovh.GetCloudProjectFlavor(ctx, &ovh.GetCloudProjectFlavorArgs{
ServiceName: "YYYY",
Id: "XXXX",
}, 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 flavor = Ovh.GetCloudProjectFlavor.Invoke(new()
{
ServiceName = "YYYY",
Id = "XXXX",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetCloudProjectFlavorArgs;
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 = OvhFunctions.getCloudProjectFlavor(GetCloudProjectFlavorArgs.builder()
.serviceName("YYYY")
.id("XXXX")
.build());
}
}
variables:
flavor:
fn::invoke:
function: ovh:getCloudProjectFlavor
arguments:
serviceName: YYYY
id: XXXX
Using getCloudProjectFlavor
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 getCloudProjectFlavor(args: GetCloudProjectFlavorArgs, opts?: InvokeOptions): Promise<GetCloudProjectFlavorResult>
function getCloudProjectFlavorOutput(args: GetCloudProjectFlavorOutputArgs, opts?: InvokeOptions): Output<GetCloudProjectFlavorResult>def get_cloud_project_flavor(id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudProjectFlavorResult
def get_cloud_project_flavor_output(id: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudProjectFlavorResult]func GetCloudProjectFlavor(ctx *Context, args *GetCloudProjectFlavorArgs, opts ...InvokeOption) (*GetCloudProjectFlavorResult, error)
func GetCloudProjectFlavorOutput(ctx *Context, args *GetCloudProjectFlavorOutputArgs, opts ...InvokeOption) GetCloudProjectFlavorResultOutput> Note: This function is named GetCloudProjectFlavor in the Go SDK.
public static class GetCloudProjectFlavor
{
public static Task<GetCloudProjectFlavorResult> InvokeAsync(GetCloudProjectFlavorArgs args, InvokeOptions? opts = null)
public static Output<GetCloudProjectFlavorResult> Invoke(GetCloudProjectFlavorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudProjectFlavorResult> getCloudProjectFlavor(GetCloudProjectFlavorArgs args, InvokeOptions options)
public static Output<GetCloudProjectFlavorResult> getCloudProjectFlavor(GetCloudProjectFlavorArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getCloudProjectFlavor:getCloudProjectFlavor
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Flavor id
- Service
Name string - Service name
- Id string
- Flavor id
- Service
Name string - Service name
- id String
- Flavor id
- service
Name String - Service name
- id string
- Flavor id
- service
Name string - Service name
- id str
- Flavor id
- service_
name str - Service name
- id String
- Flavor id
- service
Name String - Service name
getCloudProjectFlavor Result
The following output properties are available:
- Available bool
- Available in stock
- Capabilities
List<Get
Cloud Project 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 GetCloud Project 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
- Service
Name string - Service name
- Type string
- Flavor type
- Vcpus double
- Number of VCPUs
- Available bool
- Available in stock
- Capabilities
[]Get
Cloud Project 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 GetCloud Project 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
- Service
Name string - Service name
- Type string
- Flavor type
- Vcpus float64
- Number of VCPUs
- available Boolean
- Available in stock
- capabilities
List<Get
Cloud Project 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 GetCloud Project 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
- service
Name String - Service name
- type String
- Flavor type
- vcpus Double
- Number of VCPUs
- available boolean
- Available in stock
- capabilities
Get
Cloud Project 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 GetCloud Project 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
- service
Name string - Service name
- type string
- Flavor type
- vcpus number
- Number of VCPUs
- available bool
- Available in stock
- capabilities
Sequence[Get
Cloud Project 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 GetCloud Project 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
- service_
name str - Service name
- 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
- service
Name String - Service name
- type String
- Flavor type
- vcpus Number
- Number of VCPUs
Supporting Types
GetCloudProjectFlavorCapability
GetCloudProjectFlavorPlanCodes
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
