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

ovh.CloudProject.ProjectRegion

Explore with Pulumi AI

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const region = new ovh.cloudproject.ProjectRegion("region", {
        serviceName: "<public cloud project ID>",
        region: "EU-WEST-LZ-LUX-A",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    region = ovh.cloudproject.ProjectRegion("region",
        service_name="<public cloud project ID>",
        region="EU-WEST-LZ-LUX-A")
    
    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.NewProjectRegion(ctx, "region", &cloudproject.ProjectRegionArgs{
    			ServiceName: pulumi.String("<public cloud project ID>"),
    			Region:      pulumi.String("EU-WEST-LZ-LUX-A"),
    		})
    		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 region = new Ovh.CloudProject.ProjectRegion("region", new()
        {
            ServiceName = "<public cloud project ID>",
            Region = "EU-WEST-LZ-LUX-A",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.ovhcloud.pulumi.ovh.CloudProject.ProjectRegion;
    import com.ovhcloud.pulumi.ovh.CloudProject.ProjectRegionArgs;
    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) {
            var region = new ProjectRegion("region", ProjectRegionArgs.builder()
                .serviceName("<public cloud project ID>")
                .region("EU-WEST-LZ-LUX-A")
                .build());
    
        }
    }
    
    resources:
      region:
        type: ovh:CloudProject:ProjectRegion
        properties:
          serviceName: <public cloud project ID>
          region: EU-WEST-LZ-LUX-A
    

    Create ProjectRegion Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProjectRegion(name: string, args: ProjectRegionArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectRegion(resource_name: str,
                      args: ProjectRegionArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectRegion(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      region: Optional[str] = None,
                      service_name: Optional[str] = None)
    func NewProjectRegion(ctx *Context, name string, args ProjectRegionArgs, opts ...ResourceOption) (*ProjectRegion, error)
    public ProjectRegion(string name, ProjectRegionArgs args, CustomResourceOptions? opts = null)
    public ProjectRegion(String name, ProjectRegionArgs args)
    public ProjectRegion(String name, ProjectRegionArgs args, CustomResourceOptions options)
    
    type: ovh:CloudProject:ProjectRegion
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ProjectRegionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProjectRegionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ProjectRegionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectRegionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectRegionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var projectRegionResource = new Ovh.CloudProject.ProjectRegion("projectRegionResource", new()
    {
        Region = "string",
        ServiceName = "string",
    });
    
    example, err := cloudproject.NewProjectRegion(ctx, "projectRegionResource", &cloudproject.ProjectRegionArgs{
    	Region:      pulumi.String("string"),
    	ServiceName: pulumi.String("string"),
    })
    
    var projectRegionResource = new ProjectRegion("projectRegionResource", ProjectRegionArgs.builder()
        .region("string")
        .serviceName("string")
        .build());
    
    project_region_resource = ovh.cloudproject.ProjectRegion("projectRegionResource",
        region="string",
        service_name="string")
    
    const projectRegionResource = new ovh.cloudproject.ProjectRegion("projectRegionResource", {
        region: "string",
        serviceName: "string",
    });
    
    type: ovh:CloudProject:ProjectRegion
    properties:
        region: string
        serviceName: string
    

    ProjectRegion Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ProjectRegion resource accepts the following input properties:

    Region string
    Region to add to your project
    ServiceName string
    Service name
    Region string
    Region to add to your project
    ServiceName string
    Service name
    region String
    Region to add to your project
    serviceName String
    Service name
    region string
    Region to add to your project
    serviceName string
    Service name
    region str
    Region to add to your project
    service_name str
    Service name
    region String
    Region to add to your project
    serviceName String
    Service name

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProjectRegion resource produces the following output properties:

    AvailabilityZones List<string>
    Availability zones of the region
    ContinentCode string
    Region continent code
    CountryCode string
    Region country code
    DatacenterLocation string
    Location of the datacenter where the region is
    Id string
    The provider-assigned unique ID for this managed resource.
    IpCountries List<string>
    Allowed countries for failover ip
    Name string
    Region name
    RegionName string
    Region name
    Services List<ProjectRegionService>
    Details about components status
    Status string
    Openstack region status
    Type string
    Region type
    AvailabilityZones []string
    Availability zones of the region
    ContinentCode string
    Region continent code
    CountryCode string
    Region country code
    DatacenterLocation string
    Location of the datacenter where the region is
    Id string
    The provider-assigned unique ID for this managed resource.
    IpCountries []string
    Allowed countries for failover ip
    Name string
    Region name
    RegionName string
    Region name
    Services []ProjectRegionService
    Details about components status
    Status string
    Openstack region status
    Type string
    Region type
    availabilityZones List<String>
    Availability zones of the region
    continentCode String
    Region continent code
    countryCode String
    Region country code
    datacenterLocation String
    Location of the datacenter where the region is
    id String
    The provider-assigned unique ID for this managed resource.
    ipCountries List<String>
    Allowed countries for failover ip
    name String
    Region name
    regionName String
    Region name
    services List<ProjectRegionService>
    Details about components status
    status String
    Openstack region status
    type String
    Region type
    availabilityZones string[]
    Availability zones of the region
    continentCode string
    Region continent code
    countryCode string
    Region country code
    datacenterLocation string
    Location of the datacenter where the region is
    id string
    The provider-assigned unique ID for this managed resource.
    ipCountries string[]
    Allowed countries for failover ip
    name string
    Region name
    regionName string
    Region name
    services ProjectRegionService[]
    Details about components status
    status string
    Openstack region status
    type string
    Region type
    availability_zones Sequence[str]
    Availability zones of the region
    continent_code str
    Region continent code
    country_code str
    Region country code
    datacenter_location str
    Location of the datacenter where the region is
    id str
    The provider-assigned unique ID for this managed resource.
    ip_countries Sequence[str]
    Allowed countries for failover ip
    name str
    Region name
    region_name str
    Region name
    services Sequence[ProjectRegionService]
    Details about components status
    status str
    Openstack region status
    type str
    Region type
    availabilityZones List<String>
    Availability zones of the region
    continentCode String
    Region continent code
    countryCode String
    Region country code
    datacenterLocation String
    Location of the datacenter where the region is
    id String
    The provider-assigned unique ID for this managed resource.
    ipCountries List<String>
    Allowed countries for failover ip
    name String
    Region name
    regionName String
    Region name
    services List<Property Map>
    Details about components status
    status String
    Openstack region status
    type String
    Region type

    Look up Existing ProjectRegion Resource

    Get an existing ProjectRegion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ProjectRegionState, opts?: CustomResourceOptions): ProjectRegion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zones: Optional[Sequence[str]] = None,
            continent_code: Optional[str] = None,
            country_code: Optional[str] = None,
            datacenter_location: Optional[str] = None,
            ip_countries: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            region_name: Optional[str] = None,
            service_name: Optional[str] = None,
            services: Optional[Sequence[ProjectRegionServiceArgs]] = None,
            status: Optional[str] = None,
            type: Optional[str] = None) -> ProjectRegion
    func GetProjectRegion(ctx *Context, name string, id IDInput, state *ProjectRegionState, opts ...ResourceOption) (*ProjectRegion, error)
    public static ProjectRegion Get(string name, Input<string> id, ProjectRegionState? state, CustomResourceOptions? opts = null)
    public static ProjectRegion get(String name, Output<String> id, ProjectRegionState state, CustomResourceOptions options)
    resources:  _:    type: ovh:CloudProject:ProjectRegion    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AvailabilityZones List<string>
    Availability zones of the region
    ContinentCode string
    Region continent code
    CountryCode string
    Region country code
    DatacenterLocation string
    Location of the datacenter where the region is
    IpCountries List<string>
    Allowed countries for failover ip
    Name string
    Region name
    Region string
    Region to add to your project
    RegionName string
    Region name
    ServiceName string
    Service name
    Services List<ProjectRegionService>
    Details about components status
    Status string
    Openstack region status
    Type string
    Region type
    AvailabilityZones []string
    Availability zones of the region
    ContinentCode string
    Region continent code
    CountryCode string
    Region country code
    DatacenterLocation string
    Location of the datacenter where the region is
    IpCountries []string
    Allowed countries for failover ip
    Name string
    Region name
    Region string
    Region to add to your project
    RegionName string
    Region name
    ServiceName string
    Service name
    Services []ProjectRegionServiceArgs
    Details about components status
    Status string
    Openstack region status
    Type string
    Region type
    availabilityZones List<String>
    Availability zones of the region
    continentCode String
    Region continent code
    countryCode String
    Region country code
    datacenterLocation String
    Location of the datacenter where the region is
    ipCountries List<String>
    Allowed countries for failover ip
    name String
    Region name
    region String
    Region to add to your project
    regionName String
    Region name
    serviceName String
    Service name
    services List<ProjectRegionService>
    Details about components status
    status String
    Openstack region status
    type String
    Region type
    availabilityZones string[]
    Availability zones of the region
    continentCode string
    Region continent code
    countryCode string
    Region country code
    datacenterLocation string
    Location of the datacenter where the region is
    ipCountries string[]
    Allowed countries for failover ip
    name string
    Region name
    region string
    Region to add to your project
    regionName string
    Region name
    serviceName string
    Service name
    services ProjectRegionService[]
    Details about components status
    status string
    Openstack region status
    type string
    Region type
    availability_zones Sequence[str]
    Availability zones of the region
    continent_code str
    Region continent code
    country_code str
    Region country code
    datacenter_location str
    Location of the datacenter where the region is
    ip_countries Sequence[str]
    Allowed countries for failover ip
    name str
    Region name
    region str
    Region to add to your project
    region_name str
    Region name
    service_name str
    Service name
    services Sequence[ProjectRegionServiceArgs]
    Details about components status
    status str
    Openstack region status
    type str
    Region type
    availabilityZones List<String>
    Availability zones of the region
    continentCode String
    Region continent code
    countryCode String
    Region country code
    datacenterLocation String
    Location of the datacenter where the region is
    ipCountries List<String>
    Allowed countries for failover ip
    name String
    Region name
    region String
    Region to add to your project
    regionName String
    Region name
    serviceName String
    Service name
    services List<Property Map>
    Details about components status
    status String
    Openstack region status
    type String
    Region type

    Supporting Types

    ProjectRegionService, ProjectRegionServiceArgs

    Endpoint string
    Endpoint URL
    Name string
    Service name
    Status string
    Service status
    Endpoint string
    Endpoint URL
    Name string
    Service name
    Status string
    Service status
    endpoint String
    Endpoint URL
    name String
    Service name
    status String
    Service status
    endpoint string
    Endpoint URL
    name string
    Service name
    status string
    Service status
    endpoint str
    Endpoint URL
    name str
    Service name
    status str
    Service status
    endpoint String
    Endpoint URL
    name String
    Service name
    status String
    Service status

    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