OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud
ovh.getLocation
Explore with Pulumi AI
Get available regions and their availability zones
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const paris = ovh.getLocation({
name: "eu-west-par",
});
import pulumi
import pulumi_ovh as ovh
paris = ovh.get_location(name="eu-west-par")
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.GetLocation(ctx, &ovh.GetLocationArgs{
Name: "eu-west-par",
}, 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 paris = Ovh.GetLocation.Invoke(new()
{
Name = "eu-west-par",
});
});
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.GetLocationArgs;
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 paris = OvhFunctions.getLocation(GetLocationArgs.builder()
.name("eu-west-par")
.build());
}
}
variables:
paris:
fn::invoke:
function: ovh:getLocation
arguments:
name: eu-west-par
Using getLocation
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 getLocation(args: GetLocationArgs, opts?: InvokeOptions): Promise<GetLocationResult>
function getLocationOutput(args: GetLocationOutputArgs, opts?: InvokeOptions): Output<GetLocationResult>
def get_location(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLocationResult
def get_location_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLocationResult]
func GetLocation(ctx *Context, args *GetLocationArgs, opts ...InvokeOption) (*GetLocationResult, error)
func GetLocationOutput(ctx *Context, args *GetLocationOutputArgs, opts ...InvokeOption) GetLocationResultOutput
> Note: This function is named GetLocation
in the Go SDK.
public static class GetLocation
{
public static Task<GetLocationResult> InvokeAsync(GetLocationArgs args, InvokeOptions? opts = null)
public static Output<GetLocationResult> Invoke(GetLocationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLocationResult> getLocation(GetLocationArgs args, InvokeOptions options)
public static Output<GetLocationResult> getLocation(GetLocationArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getLocation:getLocation
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name
- Name string
- Name
- name String
- Name
- name string
- Name
- name str
- Name
- name String
- Name
getLocation Result
The following output properties are available:
- Availability
Zones List<string> - List of availability zones for the region
- Cardinal
Point string - Cardinal direction where the region is located
- City
Code string - ISO code of the city
- City
Latitude double - Geographical latitude of the city
- City
Longitude double - Geographical longitude of the city
- City
Name string - Full name of the city
- Code string
- Region's short code
- Country
Code string - ISO code of the country
- Country
Name string - Full name of the country
- Geography
Code string - Short code representing the geographical area
- Geography
Name string - Name of the geographical area
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Location of the region
- Name string
- Name
- Opening
Year double - Year the region was opened
- Specific
Type string - Specific typology of the region
- Type string
- General typology of the region
- Availability
Zones []string - List of availability zones for the region
- Cardinal
Point string - Cardinal direction where the region is located
- City
Code string - ISO code of the city
- City
Latitude float64 - Geographical latitude of the city
- City
Longitude float64 - Geographical longitude of the city
- City
Name string - Full name of the city
- Code string
- Region's short code
- Country
Code string - ISO code of the country
- Country
Name string - Full name of the country
- Geography
Code string - Short code representing the geographical area
- Geography
Name string - Name of the geographical area
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Location of the region
- Name string
- Name
- Opening
Year float64 - Year the region was opened
- Specific
Type string - Specific typology of the region
- Type string
- General typology of the region
- availability
Zones List<String> - List of availability zones for the region
- cardinal
Point String - Cardinal direction where the region is located
- city
Code String - ISO code of the city
- city
Latitude Double - Geographical latitude of the city
- city
Longitude Double - Geographical longitude of the city
- city
Name String - Full name of the city
- code String
- Region's short code
- country
Code String - ISO code of the country
- country
Name String - Full name of the country
- geography
Code String - Short code representing the geographical area
- geography
Name String - Name of the geographical area
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- Location of the region
- name String
- Name
- opening
Year Double - Year the region was opened
- specific
Type String - Specific typology of the region
- type String
- General typology of the region
- availability
Zones string[] - List of availability zones for the region
- cardinal
Point string - Cardinal direction where the region is located
- city
Code string - ISO code of the city
- city
Latitude number - Geographical latitude of the city
- city
Longitude number - Geographical longitude of the city
- city
Name string - Full name of the city
- code string
- Region's short code
- country
Code string - ISO code of the country
- country
Name string - Full name of the country
- geography
Code string - Short code representing the geographical area
- geography
Name string - Name of the geographical area
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- Location of the region
- name string
- Name
- opening
Year number - Year the region was opened
- specific
Type string - Specific typology of the region
- type string
- General typology of the region
- availability_
zones Sequence[str] - List of availability zones for the region
- cardinal_
point str - Cardinal direction where the region is located
- city_
code str - ISO code of the city
- city_
latitude float - Geographical latitude of the city
- city_
longitude float - Geographical longitude of the city
- city_
name str - Full name of the city
- code str
- Region's short code
- country_
code str - ISO code of the country
- country_
name str - Full name of the country
- geography_
code str - Short code representing the geographical area
- geography_
name str - Name of the geographical area
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- Location of the region
- name str
- Name
- opening_
year float - Year the region was opened
- specific_
type str - Specific typology of the region
- type str
- General typology of the region
- availability
Zones List<String> - List of availability zones for the region
- cardinal
Point String - Cardinal direction where the region is located
- city
Code String - ISO code of the city
- city
Latitude Number - Geographical latitude of the city
- city
Longitude Number - Geographical longitude of the city
- city
Name String - Full name of the city
- code String
- Region's short code
- country
Code String - ISO code of the country
- country
Name String - Full name of the country
- geography
Code String - Short code representing the geographical area
- geography
Name String - Name of the geographical area
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- Location of the region
- name String
- Name
- opening
Year Number - Year the region was opened
- specific
Type String - Specific typology of the region
- type String
- General typology of the region
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.