1. Packages
  2. OVH
  3. API Docs
  4. getOvhcloudConnectDatacenters
OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud

ovh.getOvhcloudConnectDatacenters

Explore with Pulumi AI

ovh logo
OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud

    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:

    ServiceName string
    Service name
    ServiceName string
    Service name
    serviceName String
    Service name
    serviceName string
    Service name
    service_name str
    Service name
    serviceName String
    Service name

    getOvhcloudConnectDatacenters Result

    The following output properties are available:

    Datacenters List<GetOvhcloudConnectDatacentersDatacenter>
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    Service name
    Datacenters []GetOvhcloudConnectDatacentersDatacenter
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    Service name
    datacenters List<GetOvhcloudConnectDatacentersDatacenter>
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    Service name
    datacenters GetOvhcloudConnectDatacentersDatacenter[]
    id string
    The provider-assigned unique ID for this managed resource.
    serviceName string
    Service name
    datacenters Sequence[GetOvhcloudConnectDatacentersDatacenter]
    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.
    serviceName 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
    RegionType 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
    RegionType 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
    regionType 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
    regionType 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
    regionType 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.
    ovh logo
    OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud