1. Registry
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudInstanceFlavor
Viewing docs for OVHCloud v2.19.1
published on Tuesday, Aug 18, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.19.1
published on Tuesday, Aug 18, 2026 by OVHcloud

    Use this data source to retrieve information about a flavor available in a public cloud project. This is read-only reference data: it describes a hardware sizing (vCPUs, RAM, disks) the project can create instances from, not an existing resource.

    Using getCloudInstanceFlavor

    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 getCloudInstanceFlavor(args: GetCloudInstanceFlavorArgs, opts?: InvokeOptions): Promise<GetCloudInstanceFlavorResult>
    function getCloudInstanceFlavorOutput(args: GetCloudInstanceFlavorOutputArgs, opts?: InvokeOutputOptions): Output<GetCloudInstanceFlavorResult>
    def get_cloud_instance_flavor(id: Optional[str] = None,
                                  service_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetCloudInstanceFlavorResult
    def get_cloud_instance_flavor_output(id: pulumi.Input[Optional[str]] = None,
                                  service_name: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetCloudInstanceFlavorResult]
    func GetCloudInstanceFlavor(ctx *Context, args *GetCloudInstanceFlavorArgs, opts ...InvokeOption) (*GetCloudInstanceFlavorResult, error)
    func GetCloudInstanceFlavorOutput(ctx *Context, args *GetCloudInstanceFlavorOutputArgs, opts ...InvokeOption) GetCloudInstanceFlavorResultOutput

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

    public static class GetCloudInstanceFlavor 
    {
        public static Task<GetCloudInstanceFlavorResult> InvokeAsync(GetCloudInstanceFlavorArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudInstanceFlavorResult> Invoke(GetCloudInstanceFlavorInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudInstanceFlavorResult> Invoke(GetCloudInstanceFlavorInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetCloudInstanceFlavorResult> getCloudInstanceFlavor(GetCloudInstanceFlavorArgs args, InvokeOptions options)
    public static Output<GetCloudInstanceFlavorResult> getCloudInstanceFlavor(GetCloudInstanceFlavorArgs args, InvokeOptions options)
    public static Output<GetCloudInstanceFlavorResult> getCloudInstanceFlavor(GetCloudInstanceFlavorArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudInstanceFlavor:getCloudInstanceFlavor
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_instance_flavor" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The OpenStack/Nova flavor ID to look up. Stable within a region and used to reference the flavor when creating an instance.
    ServiceName string
    Service name of the resource representing the id of the cloud project.
    Id string
    The OpenStack/Nova flavor ID to look up. Stable within a region and used to reference the flavor when creating an instance.
    ServiceName string
    Service name of the resource representing the id of the cloud project.
    id string
    The OpenStack/Nova flavor ID to look up. Stable within a region and used to reference the flavor when creating an instance.
    service_name string
    Service name of the resource representing the id of the cloud project.
    id String
    The OpenStack/Nova flavor ID to look up. Stable within a region and used to reference the flavor when creating an instance.
    serviceName String
    Service name of the resource representing the id of the cloud project.
    id string
    The OpenStack/Nova flavor ID to look up. Stable within a region and used to reference the flavor when creating an instance.
    serviceName string
    Service name of the resource representing the id of the cloud project.
    id str
    The OpenStack/Nova flavor ID to look up. Stable within a region and used to reference the flavor when creating an instance.
    service_name str
    Service name of the resource representing the id of the cloud project.
    id String
    The OpenStack/Nova flavor ID to look up. Stable within a region and used to reference the flavor when creating an instance.
    serviceName String
    Service name of the resource representing the id of the cloud project.

    getCloudInstanceFlavor Result

    The following output properties are available:

    Description string
    Free-form description of the flavor as reported by the backend. May be empty when no description is advertised for this flavor.
    Disk int
    Size of the flavor's root disk in GB. This is the primary system disk provisioned for instances created from this flavor.
    Ephemeral int
    Size of the flavor's ephemeral disk in GB. Ephemeral storage is transient: its contents do not survive a rebuild or deletion of the instance. Zero when the flavor provides no ephemeral disk.
    Id string
    IsPublic bool
    Whether the flavor is publicly available to the project. Private flavors are only visible to the projects they have been explicitly shared with.
    Location GetCloudInstanceFlavorLocation
    Region (and, where applicable, availability zone) where this flavor is offered. The flavor catalog is per-region: a flavor returned for one region is not guaranteed to exist, or to carry the same characteristics, in another:
    Name string
    The backend flavor name (for example b2-7, c2-15). This is the commercial/technical name used to identify the sizing in the catalog.
    Ram int
    Amount of memory provided by the flavor, expressed in MB.
    ServiceName string
    Swap int
    Size of the flavor's swap space in MB. Zero when the flavor provides no swap.
    Vcpus int
    Number of virtual CPUs provided by the flavor.
    Description string
    Free-form description of the flavor as reported by the backend. May be empty when no description is advertised for this flavor.
    Disk int
    Size of the flavor's root disk in GB. This is the primary system disk provisioned for instances created from this flavor.
    Ephemeral int
    Size of the flavor's ephemeral disk in GB. Ephemeral storage is transient: its contents do not survive a rebuild or deletion of the instance. Zero when the flavor provides no ephemeral disk.
    Id string
    IsPublic bool
    Whether the flavor is publicly available to the project. Private flavors are only visible to the projects they have been explicitly shared with.
    Location GetCloudInstanceFlavorLocation
    Region (and, where applicable, availability zone) where this flavor is offered. The flavor catalog is per-region: a flavor returned for one region is not guaranteed to exist, or to carry the same characteristics, in another:
    Name string
    The backend flavor name (for example b2-7, c2-15). This is the commercial/technical name used to identify the sizing in the catalog.
    Ram int
    Amount of memory provided by the flavor, expressed in MB.
    ServiceName string
    Swap int
    Size of the flavor's swap space in MB. Zero when the flavor provides no swap.
    Vcpus int
    Number of virtual CPUs provided by the flavor.
    description string
    Free-form description of the flavor as reported by the backend. May be empty when no description is advertised for this flavor.
    disk number
    Size of the flavor's root disk in GB. This is the primary system disk provisioned for instances created from this flavor.
    ephemeral number
    Size of the flavor's ephemeral disk in GB. Ephemeral storage is transient: its contents do not survive a rebuild or deletion of the instance. Zero when the flavor provides no ephemeral disk.
    id string
    is_public bool
    Whether the flavor is publicly available to the project. Private flavors are only visible to the projects they have been explicitly shared with.
    location object
    Region (and, where applicable, availability zone) where this flavor is offered. The flavor catalog is per-region: a flavor returned for one region is not guaranteed to exist, or to carry the same characteristics, in another:
    name string
    The backend flavor name (for example b2-7, c2-15). This is the commercial/technical name used to identify the sizing in the catalog.
    ram number
    Amount of memory provided by the flavor, expressed in MB.
    service_name string
    swap number
    Size of the flavor's swap space in MB. Zero when the flavor provides no swap.
    vcpus number
    Number of virtual CPUs provided by the flavor.
    description String
    Free-form description of the flavor as reported by the backend. May be empty when no description is advertised for this flavor.
    disk Integer
    Size of the flavor's root disk in GB. This is the primary system disk provisioned for instances created from this flavor.
    ephemeral Integer
    Size of the flavor's ephemeral disk in GB. Ephemeral storage is transient: its contents do not survive a rebuild or deletion of the instance. Zero when the flavor provides no ephemeral disk.
    id String
    isPublic Boolean
    Whether the flavor is publicly available to the project. Private flavors are only visible to the projects they have been explicitly shared with.
    location GetCloudInstanceFlavorLocation
    Region (and, where applicable, availability zone) where this flavor is offered. The flavor catalog is per-region: a flavor returned for one region is not guaranteed to exist, or to carry the same characteristics, in another:
    name String
    The backend flavor name (for example b2-7, c2-15). This is the commercial/technical name used to identify the sizing in the catalog.
    ram Integer
    Amount of memory provided by the flavor, expressed in MB.
    serviceName String
    swap Integer
    Size of the flavor's swap space in MB. Zero when the flavor provides no swap.
    vcpus Integer
    Number of virtual CPUs provided by the flavor.
    description string
    Free-form description of the flavor as reported by the backend. May be empty when no description is advertised for this flavor.
    disk number
    Size of the flavor's root disk in GB. This is the primary system disk provisioned for instances created from this flavor.
    ephemeral number
    Size of the flavor's ephemeral disk in GB. Ephemeral storage is transient: its contents do not survive a rebuild or deletion of the instance. Zero when the flavor provides no ephemeral disk.
    id string
    isPublic boolean
    Whether the flavor is publicly available to the project. Private flavors are only visible to the projects they have been explicitly shared with.
    location GetCloudInstanceFlavorLocation
    Region (and, where applicable, availability zone) where this flavor is offered. The flavor catalog is per-region: a flavor returned for one region is not guaranteed to exist, or to carry the same characteristics, in another:
    name string
    The backend flavor name (for example b2-7, c2-15). This is the commercial/technical name used to identify the sizing in the catalog.
    ram number
    Amount of memory provided by the flavor, expressed in MB.
    serviceName string
    swap number
    Size of the flavor's swap space in MB. Zero when the flavor provides no swap.
    vcpus number
    Number of virtual CPUs provided by the flavor.
    description str
    Free-form description of the flavor as reported by the backend. May be empty when no description is advertised for this flavor.
    disk int
    Size of the flavor's root disk in GB. This is the primary system disk provisioned for instances created from this flavor.
    ephemeral int
    Size of the flavor's ephemeral disk in GB. Ephemeral storage is transient: its contents do not survive a rebuild or deletion of the instance. Zero when the flavor provides no ephemeral disk.
    id str
    is_public bool
    Whether the flavor is publicly available to the project. Private flavors are only visible to the projects they have been explicitly shared with.
    location GetCloudInstanceFlavorLocation
    Region (and, where applicable, availability zone) where this flavor is offered. The flavor catalog is per-region: a flavor returned for one region is not guaranteed to exist, or to carry the same characteristics, in another:
    name str
    The backend flavor name (for example b2-7, c2-15). This is the commercial/technical name used to identify the sizing in the catalog.
    ram int
    Amount of memory provided by the flavor, expressed in MB.
    service_name str
    swap int
    Size of the flavor's swap space in MB. Zero when the flavor provides no swap.
    vcpus int
    Number of virtual CPUs provided by the flavor.
    description String
    Free-form description of the flavor as reported by the backend. May be empty when no description is advertised for this flavor.
    disk Number
    Size of the flavor's root disk in GB. This is the primary system disk provisioned for instances created from this flavor.
    ephemeral Number
    Size of the flavor's ephemeral disk in GB. Ephemeral storage is transient: its contents do not survive a rebuild or deletion of the instance. Zero when the flavor provides no ephemeral disk.
    id String
    isPublic Boolean
    Whether the flavor is publicly available to the project. Private flavors are only visible to the projects they have been explicitly shared with.
    location Property Map
    Region (and, where applicable, availability zone) where this flavor is offered. The flavor catalog is per-region: a flavor returned for one region is not guaranteed to exist, or to carry the same characteristics, in another:
    name String
    The backend flavor name (for example b2-7, c2-15). This is the commercial/technical name used to identify the sizing in the catalog.
    ram Number
    Amount of memory provided by the flavor, expressed in MB.
    serviceName String
    swap Number
    Size of the flavor's swap space in MB. Zero when the flavor provides no swap.
    vcpus Number
    Number of virtual CPUs provided by the flavor.

    Supporting Types

    GetCloudInstanceFlavorLocation

    AvailabilityZone string
    Availability zone within the region.
    Region string
    Region code.
    AvailabilityZone string
    Availability zone within the region.
    Region string
    Region code.
    availability_zone string
    Availability zone within the region.
    region string
    Region code.
    availabilityZone String
    Availability zone within the region.
    region String
    Region code.
    availabilityZone string
    Availability zone within the region.
    region string
    Region code.
    availability_zone str
    Availability zone within the region.
    region str
    Region code.
    availabilityZone String
    Availability zone within the region.
    region String
    Region code.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.19.1
    published on Tuesday, Aug 18, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial