Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Use this data source to list the regions available for a public cloud project, using the OVHcloud API v2. All pages are fetched, so the full list of regions is returned.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
export = async () => {
const regions = await ovh.getCloudRegions({
serviceName: "<public cloud project ID>",
});
return {
regions: regions.regions,
};
}
import pulumi
import pulumi_ovh as ovh
regions = ovh.get_cloud_regions(service_name="<public cloud project ID>")
pulumi.export("regions", regions.regions)
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 {
regions, err := ovh.GetCloudRegions(ctx, &ovh.GetCloudRegionsArgs{
ServiceName: "<public cloud project ID>",
}, nil)
if err != nil {
return err
}
ctx.Export("regions", regions.Regions)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var regions = Ovh.GetCloudRegions.Invoke(new()
{
ServiceName = "<public cloud project ID>",
});
return new Dictionary<string, object?>
{
["regions"] = regions.Apply(getCloudRegionsResult => getCloudRegionsResult.Regions),
};
});
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.GetCloudRegionsArgs;
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 regions = OvhFunctions.getCloudRegions(GetCloudRegionsArgs.builder()
.serviceName("<public cloud project ID>")
.build());
ctx.export("regions", regions.regions());
}
}
variables:
regions:
fn::invoke:
function: ovh:getCloudRegions
arguments:
serviceName: <public cloud project ID>
outputs:
regions: ${regions.regions}
Example coming soon!
Using getCloudRegions
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 getCloudRegions(args: GetCloudRegionsArgs, opts?: InvokeOptions): Promise<GetCloudRegionsResult>
function getCloudRegionsOutput(args: GetCloudRegionsOutputArgs, opts?: InvokeOptions): Output<GetCloudRegionsResult>def get_cloud_regions(service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudRegionsResult
def get_cloud_regions_output(service_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudRegionsResult]func GetCloudRegions(ctx *Context, args *GetCloudRegionsArgs, opts ...InvokeOption) (*GetCloudRegionsResult, error)
func GetCloudRegionsOutput(ctx *Context, args *GetCloudRegionsOutputArgs, opts ...InvokeOption) GetCloudRegionsResultOutput> Note: This function is named GetCloudRegions in the Go SDK.
public static class GetCloudRegions
{
public static Task<GetCloudRegionsResult> InvokeAsync(GetCloudRegionsArgs args, InvokeOptions? opts = null)
public static Output<GetCloudRegionsResult> Invoke(GetCloudRegionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudRegionsResult> getCloudRegions(GetCloudRegionsArgs args, InvokeOptions options)
public static Output<GetCloudRegionsResult> getCloudRegions(GetCloudRegionsArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getCloudRegions:getCloudRegions
arguments:
# arguments dictionarydata "ovh_get_cloud_regions" "name" {
# arguments
}The following arguments are supported:
- Service
Name string - The id of the public cloud project.
- Service
Name string - The id of the public cloud project.
- service_
name string - The id of the public cloud project.
- service
Name String - The id of the public cloud project.
- service
Name string - The id of the public cloud project.
- service_
name str - The id of the public cloud project.
- service
Name String - The id of the public cloud project.
getCloudRegions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Regions
List<Get
Cloud Regions Region> - The list of regions available for the project. Each region exports:
- Service
Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- Regions
[]Get
Cloud Regions Region - The list of regions available for the project. Each region exports:
- Service
Name string
- id string
- The provider-assigned unique ID for this managed resource.
- regions list(object)
- The list of regions available for the project. Each region exports:
- service_
name string
- id String
- The provider-assigned unique ID for this managed resource.
- regions
List<Get
Cloud Regions Region> - The list of regions available for the project. Each region exports:
- service
Name String
- id string
- The provider-assigned unique ID for this managed resource.
- regions
Get
Cloud Regions Region[] - The list of regions available for the project. Each region exports:
- service
Name string
- id str
- The provider-assigned unique ID for this managed resource.
- regions
Sequence[Get
Cloud Regions Region] - The list of regions available for the project. Each region exports:
- service_
name str
- id String
- The provider-assigned unique ID for this managed resource.
- regions List<Property Map>
- The list of regions available for the project. Each region exports:
- service
Name String
Supporting Types
GetCloudRegionsRegion
- Availability
Zones List<string> - Availability zones available in the region.
- Continent string
- Continent code of the region.
- Country string
- Country code of the region.
- Datacenter
Name string - Display name of the datacenter hosting the region.
- Name string
- Name of the region (e.g.
GRA11). - Services List<string>
- Available OpenStack services in the region.
- Status string
- Region status (
ENABLED,DISABLEDorMAINTENANCE).
- Availability
Zones []string - Availability zones available in the region.
- Continent string
- Continent code of the region.
- Country string
- Country code of the region.
- Datacenter
Name string - Display name of the datacenter hosting the region.
- Name string
- Name of the region (e.g.
GRA11). - Services []string
- Available OpenStack services in the region.
- Status string
- Region status (
ENABLED,DISABLEDorMAINTENANCE).
- availability_
zones list(string) - Availability zones available in the region.
- continent string
- Continent code of the region.
- country string
- Country code of the region.
- datacenter_
name string - Display name of the datacenter hosting the region.
- name string
- Name of the region (e.g.
GRA11). - services list(string)
- Available OpenStack services in the region.
- status string
- Region status (
ENABLED,DISABLEDorMAINTENANCE).
- availability
Zones List<String> - Availability zones available in the region.
- continent String
- Continent code of the region.
- country String
- Country code of the region.
- datacenter
Name String - Display name of the datacenter hosting the region.
- name String
- Name of the region (e.g.
GRA11). - services List<String>
- Available OpenStack services in the region.
- status String
- Region status (
ENABLED,DISABLEDorMAINTENANCE).
- availability
Zones string[] - Availability zones available in the region.
- continent string
- Continent code of the region.
- country string
- Country code of the region.
- datacenter
Name string - Display name of the datacenter hosting the region.
- name string
- Name of the region (e.g.
GRA11). - services string[]
- Available OpenStack services in the region.
- status string
- Region status (
ENABLED,DISABLEDorMAINTENANCE).
- availability_
zones Sequence[str] - Availability zones available in the region.
- continent str
- Continent code of the region.
- country str
- Country code of the region.
- datacenter_
name str - Display name of the datacenter hosting the region.
- name str
- Name of the region (e.g.
GRA11). - services Sequence[str]
- Available OpenStack services in the region.
- status str
- Region status (
ENABLED,DISABLEDorMAINTENANCE).
- availability
Zones List<String> - Availability zones available in the region.
- continent String
- Continent code of the region.
- country String
- Country code of the region.
- datacenter
Name String - Display name of the datacenter hosting the region.
- name String
- Name of the region (e.g.
GRA11). - services List<String>
- Available OpenStack services in the region.
- status String
- Region status (
ENABLED,DISABLEDorMAINTENANCE).
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.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud