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
Use this data source to retrieve information about a region associated with a public cloud project. The region must be associated with the project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const GRA1 = ovh.CloudProject.getRegion({
serviceName: "XXXXXX",
name: "GRA1",
});
import pulumi
import pulumi_ovh as ovh
gra1 = ovh.CloudProject.get_region(service_name="XXXXXX",
name="GRA1")
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.GetRegion(ctx, &cloudproject.GetRegionArgs{
ServiceName: "XXXXXX",
Name: "GRA1",
}, 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 GRA1 = Ovh.CloudProject.GetRegion.Invoke(new()
{
ServiceName = "XXXXXX",
Name = "GRA1",
});
});
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.GetRegionArgs;
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 GRA1 = CloudProjectFunctions.getRegion(GetRegionArgs.builder()
.serviceName("XXXXXX")
.name("GRA1")
.build());
}
}
variables:
GRA1:
fn::invoke:
function: ovh:CloudProject:getRegion
arguments:
serviceName: XXXXXX
name: GRA1
Using getRegion
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 getRegion(args: GetRegionArgs, opts?: InvokeOptions): Promise<GetRegionResult>
function getRegionOutput(args: GetRegionOutputArgs, opts?: InvokeOptions): Output<GetRegionResult>def get_region(name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegionResult
def get_region_output(name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegionResult]func GetRegion(ctx *Context, args *GetRegionArgs, opts ...InvokeOption) (*GetRegionResult, error)
func GetRegionOutput(ctx *Context, args *GetRegionOutputArgs, opts ...InvokeOption) GetRegionResultOutput> Note: This function is named GetRegion in the Go SDK.
public static class GetRegion
{
public static Task<GetRegionResult> InvokeAsync(GetRegionArgs args, InvokeOptions? opts = null)
public static Output<GetRegionResult> Invoke(GetRegionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRegionResult> getRegion(GetRegionArgs args, InvokeOptions options)
public static Output<GetRegionResult> getRegion(GetRegionArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getRegion:getRegion
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of the region associated with the public cloud project.
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Name string
- The name of the region associated with the public cloud project.
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- name String
- The name of the region associated with the public cloud project.
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- name string
- The name of the region associated with the public cloud project.
- service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- name str
- The name of the region associated with the public cloud project.
- service_
name str - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- name String
- The name of the region associated with the public cloud project.
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getRegion Result
The following output properties are available:
- Availability
Zones List<string> - Availability zones of the region
- Continent
Code string - The code of the geographic continent the region is running. E.g.: EU for Europe, US for America...
- Country
Code string - Region country code
- Datacenter
Location string - The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Countries List<string> - Allowed countries for failover IP
- Name string
- the name of the public cloud service
- Service
Name string - Services
List<Get
Region Service> - The list of public cloud services running within the region
- Status string
- the status of the service
- Type string
- Region type (localzone | region | region-3-az)
- Availability
Zones []string - Availability zones of the region
- Continent
Code string - The code of the geographic continent the region is running. E.g.: EU for Europe, US for America...
- Country
Code string - Region country code
- Datacenter
Location string - The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Countries []string - Allowed countries for failover IP
- Name string
- the name of the public cloud service
- Service
Name string - Services
[]Get
Region Service - The list of public cloud services running within the region
- Status string
- the status of the service
- Type string
- Region type (localzone | region | region-3-az)
- availability
Zones List<String> - Availability zones of the region
- continent
Code String - The code of the geographic continent the region is running. E.g.: EU for Europe, US for America...
- country
Code String - Region country code
- datacenter
Location String - The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Countries List<String> - Allowed countries for failover IP
- name String
- the name of the public cloud service
- service
Name String - services
List<Get
Region Service> - The list of public cloud services running within the region
- status String
- the status of the service
- type String
- Region type (localzone | region | region-3-az)
- availability
Zones string[] - Availability zones of the region
- continent
Code string - The code of the geographic continent the region is running. E.g.: EU for Europe, US for America...
- country
Code string - Region country code
- datacenter
Location string - The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Countries string[] - Allowed countries for failover IP
- name string
- the name of the public cloud service
- service
Name string - services
Get
Region Service[] - The list of public cloud services running within the region
- status string
- the status of the service
- type string
- Region type (localzone | region | region-3-az)
- availability_
zones Sequence[str] - Availability zones of the region
- continent_
code str - The code of the geographic continent the region is running. E.g.: EU for Europe, US for America...
- country_
code str - Region country code
- datacenter_
location str - The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
countries Sequence[str] - Allowed countries for failover IP
- name str
- the name of the public cloud service
- service_
name str - services
Sequence[Get
Region Service] - The list of public cloud services running within the region
- status str
- the status of the service
- type str
- Region type (localzone | region | region-3-az)
- availability
Zones List<String> - Availability zones of the region
- continent
Code String - The code of the geographic continent the region is running. E.g.: EU for Europe, US for America...
- country
Code String - Region country code
- datacenter
Location String - The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Countries List<String> - Allowed countries for failover IP
- name String
- the name of the public cloud service
- service
Name String - services List<Property Map>
- The list of public cloud services running within the region
- status String
- the status of the service
- type String
- Region type (localzone | region | region-3-az)
Supporting Types
GetRegionService
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
