OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud
ovh.getOvhcloudConnectDatacenters
Explore with Pulumi AI
Use this data source to retrieve information about Datacenters for an Ovhcloud Connect product.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const dcs = ovh.getOvhcloudConnectDatacenters({
serviceName: "XXX",
});
import pulumi
import pulumi_ovh as ovh
dcs = ovh.get_ovhcloud_connect_datacenters(service_name="XXX")
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.GetOvhcloudConnectDatacenters(ctx, &ovh.GetOvhcloudConnectDatacentersArgs{
ServiceName: "XXX",
}, 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 dcs = Ovh.GetOvhcloudConnectDatacenters.Invoke(new()
{
ServiceName = "XXX",
});
});
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.GetOvhcloudConnectDatacentersArgs;
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 dcs = OvhFunctions.getOvhcloudConnectDatacenters(GetOvhcloudConnectDatacentersArgs.builder()
.serviceName("XXX")
.build());
}
}
variables:
dcs:
fn::invoke:
function: ovh:getOvhcloudConnectDatacenters
arguments:
serviceName: XXX
Using getOvhcloudConnectDatacenters
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 getOvhcloudConnectDatacenters(args: GetOvhcloudConnectDatacentersArgs, opts?: InvokeOptions): Promise<GetOvhcloudConnectDatacentersResult>
function getOvhcloudConnectDatacentersOutput(args: GetOvhcloudConnectDatacentersOutputArgs, opts?: InvokeOptions): Output<GetOvhcloudConnectDatacentersResult>
def get_ovhcloud_connect_datacenters(service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOvhcloudConnectDatacentersResult
def get_ovhcloud_connect_datacenters_output(service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOvhcloudConnectDatacentersResult]
func GetOvhcloudConnectDatacenters(ctx *Context, args *GetOvhcloudConnectDatacentersArgs, opts ...InvokeOption) (*GetOvhcloudConnectDatacentersResult, error)
func GetOvhcloudConnectDatacentersOutput(ctx *Context, args *GetOvhcloudConnectDatacentersOutputArgs, opts ...InvokeOption) GetOvhcloudConnectDatacentersResultOutput
> Note: This function is named GetOvhcloudConnectDatacenters
in the Go SDK.
public static class GetOvhcloudConnectDatacenters
{
public static Task<GetOvhcloudConnectDatacentersResult> InvokeAsync(GetOvhcloudConnectDatacentersArgs args, InvokeOptions? opts = null)
public static Output<GetOvhcloudConnectDatacentersResult> Invoke(GetOvhcloudConnectDatacentersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOvhcloudConnectDatacentersResult> getOvhcloudConnectDatacenters(GetOvhcloudConnectDatacentersArgs args, InvokeOptions options)
public static Output<GetOvhcloudConnectDatacentersResult> getOvhcloudConnectDatacenters(GetOvhcloudConnectDatacentersArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getOvhcloudConnectDatacenters:getOvhcloudConnectDatacenters
arguments:
# arguments dictionary
The following arguments are supported:
- Service
Name string - Service name
- Service
Name string - Service name
- service
Name String - Service name
- service
Name string - Service name
- service_
name str - Service name
- service
Name String - Service name
getOvhcloudConnectDatacenters Result
The following output properties are available:
- Datacenters
List<Get
Ovhcloud Connect Datacenters Datacenter> - Id string
- The provider-assigned unique ID for this managed resource.
- Service
Name string - Service name
- Datacenters
[]Get
Ovhcloud Connect Datacenters Datacenter - Id string
- The provider-assigned unique ID for this managed resource.
- Service
Name string - Service name
- datacenters
List<Get
Ovhcloud Connect Datacenters Datacenter> - id String
- The provider-assigned unique ID for this managed resource.
- service
Name String - Service name
- datacenters
Get
Ovhcloud Connect Datacenters Datacenter[] - id string
- The provider-assigned unique ID for this managed resource.
- service
Name string - Service name
- datacenters
Sequence[Get
Ovhcloud Connect Datacenters Datacenter] - id str
- The provider-assigned unique ID for this managed resource.
- service_
name str - Service name
- datacenters List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- service
Name String - Service name
Supporting Types
GetOvhcloudConnectDatacentersDatacenter
- Available bool
- Get availability to add new configuration on it
- Id double
- Id
- Name string
- name of the datacenter
- Region string
- region of the datacenter
- Region
Type string - region type of the datacenter
- Available bool
- Get availability to add new configuration on it
- Id float64
- Id
- Name string
- name of the datacenter
- Region string
- region of the datacenter
- Region
Type string - region type of the datacenter
- available Boolean
- Get availability to add new configuration on it
- id Double
- Id
- name String
- name of the datacenter
- region String
- region of the datacenter
- region
Type String - region type of the datacenter
- available boolean
- Get availability to add new configuration on it
- id number
- Id
- name string
- name of the datacenter
- region string
- region of the datacenter
- region
Type string - region type of the datacenter
- available bool
- Get availability to add new configuration on it
- id float
- Id
- name str
- name of the datacenter
- region str
- region of the datacenter
- region_
type str - region type of the datacenter
- available Boolean
- Get availability to add new configuration on it
- id Number
- Id
- name String
- name of the datacenter
- region String
- region of the datacenter
- region
Type String - region type of the datacenter
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.