ovh.CloudProject.ProjectRegion
Explore with Pulumi AI
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
- Service
Name string - Service name
- Region string
- Region to add to your project
- Service
Name string - Service name
- region String
- Region to add to your project
- service
Name String - Service name
- region string
- Region to add to your project
- service
Name string - Service name
- region str
- Region to add to your project
- service_
name str - Service name
- region String
- Region to add to your project
- service
Name String - Service name
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectRegion resource produces the following output properties:
- Availability
Zones List<string> - Availability zones of the region
- Continent
Code string - Region continent code
- Country
Code string - Region country code
- Datacenter
Location string - Location of the datacenter where the region is
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Countries List<string> - Allowed countries for failover ip
- Name string
- Region name
- Region
Name string - Region name
- Services
List<Project
Region Service> - Details about components status
- Status string
- Openstack region status
- Type string
- Region type
- Availability
Zones []string - Availability zones of the region
- Continent
Code string - Region continent code
- Country
Code string - Region country code
- Datacenter
Location string - Location of the datacenter where the region is
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Countries []string - Allowed countries for failover ip
- Name string
- Region name
- Region
Name string - Region name
- Services
[]Project
Region Service - Details about components status
- Status string
- Openstack region status
- Type string
- Region type
- availability
Zones List<String> - Availability zones of the region
- continent
Code String - Region continent code
- country
Code String - Region country code
- datacenter
Location String - Location of the datacenter where the region is
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Countries List<String> - Allowed countries for failover ip
- name String
- Region name
- region
Name String - Region name
- services
List<Project
Region Service> - Details about components status
- status String
- Openstack region status
- type String
- Region type
- availability
Zones string[] - Availability zones of the region
- continent
Code string - Region continent code
- country
Code string - Region country code
- datacenter
Location string - Location of the datacenter where the region is
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Countries string[] - Allowed countries for failover ip
- name string
- Region name
- region
Name string - Region name
- services
Project
Region Service[] - 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[Project
Region Service] - Details about components status
- status str
- Openstack region status
- type str
- Region type
- availability
Zones List<String> - Availability zones of the region
- continent
Code String - Region continent code
- country
Code String - Region country code
- datacenter
Location String - Location of the datacenter where the region is
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Countries List<String> - Allowed countries for failover ip
- name String
- Region name
- region
Name 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.
- Availability
Zones List<string> - Availability zones of the region
- Continent
Code string - Region continent code
- Country
Code string - Region country code
- Datacenter
Location string - Location of the datacenter where the region is
- Ip
Countries List<string> - Allowed countries for failover ip
- Name string
- Region name
- Region string
- Region to add to your project
- Region
Name string - Region name
- Service
Name string - Service name
- Services
List<Project
Region Service> - Details about components status
- Status string
- Openstack region status
- Type string
- Region type
- Availability
Zones []string - Availability zones of the region
- Continent
Code string - Region continent code
- Country
Code string - Region country code
- Datacenter
Location string - Location of the datacenter where the region is
- Ip
Countries []string - Allowed countries for failover ip
- Name string
- Region name
- Region string
- Region to add to your project
- Region
Name string - Region name
- Service
Name string - Service name
- Services
[]Project
Region Service Args - Details about components status
- Status string
- Openstack region status
- Type string
- Region type
- availability
Zones List<String> - Availability zones of the region
- continent
Code String - Region continent code
- country
Code String - Region country code
- datacenter
Location String - Location of the datacenter where the region is
- ip
Countries List<String> - Allowed countries for failover ip
- name String
- Region name
- region String
- Region to add to your project
- region
Name String - Region name
- service
Name String - Service name
- services
List<Project
Region Service> - Details about components status
- status String
- Openstack region status
- type String
- Region type
- availability
Zones string[] - Availability zones of the region
- continent
Code string - Region continent code
- country
Code string - Region country code
- datacenter
Location string - Location of the datacenter where the region is
- ip
Countries string[] - Allowed countries for failover ip
- name string
- Region name
- region string
- Region to add to your project
- region
Name string - Region name
- service
Name string - Service name
- services
Project
Region Service[] - 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[Project
Region Service Args] - Details about components status
- status str
- Openstack region status
- type str
- Region type
- availability
Zones List<String> - Availability zones of the region
- continent
Code String - Region continent code
- country
Code String - Region country code
- datacenter
Location String - Location of the datacenter where the region is
- ip
Countries List<String> - Allowed countries for failover ip
- name String
- Region name
- region String
- Region to add to your project
- region
Name String - Region name
- service
Name String - Service name
- services List<Property Map>
- Details about components status
- status String
- Openstack region status
- type String
- Region type
Supporting Types
ProjectRegionService, ProjectRegionServiceArgs
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.