Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

CloudProjectNetworkPrivate

Creates a private network in a public cloud project.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Lbrlabs.PulumiPackage.Ovh;

return await Deployment.RunAsync(() => 
{
    var net = new Ovh.CloudProjectNetworkPrivate("net", new()
    {
        Regions = new[]
        {
            "GRA1",
            "BHS1",
        },
        ServiceName = "XXXXXX",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.NewCloudProjectNetworkPrivate(ctx, "net", &ovh.CloudProjectNetworkPrivateArgs{
			Regions: pulumi.StringArray{
				pulumi.String("GRA1"),
				pulumi.String("BHS1"),
			},
			ServiceName: pulumi.String("XXXXXX"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProjectNetworkPrivate;
import com.pulumi.ovh.CloudProjectNetworkPrivateArgs;
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 net = new CloudProjectNetworkPrivate("net", CloudProjectNetworkPrivateArgs.builder()        
            .regions(            
                "GRA1",
                "BHS1")
            .serviceName("XXXXXX")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh

net = ovh.CloudProjectNetworkPrivate("net",
    regions=[
        "GRA1",
        "BHS1",
    ],
    service_name="XXXXXX")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const net = new ovh.CloudProjectNetworkPrivate("net", {
    regions: [
        "GRA1",
        "BHS1",
    ],
    serviceName: "XXXXXX",
});
resources:
  net:
    type: ovh:CloudProjectNetworkPrivate
    properties:
      regions:
        - GRA1
        - BHS1
      serviceName: XXXXXX

Create a CloudProjectNetworkPrivate Resource

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

name string
The unique name of the resource.
args CloudProjectNetworkPrivateArgs
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 CloudProjectNetworkPrivateArgs
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 CloudProjectNetworkPrivateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CloudProjectNetworkPrivateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CloudProjectNetworkPrivateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CloudProjectNetworkPrivate Resource Properties

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

Inputs

The CloudProjectNetworkPrivate resource accepts the following input properties:

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Name string

The name of the network.

Regions List<string>

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

VlanId int

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Name string

The name of the network.

Regions []string

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

VlanId int

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name String

The name of the network.

regions List<String>

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

vlanId Integer

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name string

The name of the network.

regions string[]

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

vlanId number

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name str

The name of the network.

regions Sequence[str]

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

vlan_id int

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name String

The name of the network.

regions List<String>

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

vlanId Number

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

RegionsAttributes List<Lbrlabs.PulumiPackage.Ovh.Outputs.CloudProjectNetworkPrivateRegionsAttribute>

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
RegionsStatuses List<Lbrlabs.PulumiPackage.Ovh.Outputs.CloudProjectNetworkPrivateRegionsStatus>

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

Status string

the status of the network. should be normally set to 'ACTIVE'.

Type string

the type of the network. Either 'private' or 'public'.

Id string

The provider-assigned unique ID for this managed resource.

RegionsAttributes []CloudProjectNetworkPrivateRegionsAttribute

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
RegionsStatuses []CloudProjectNetworkPrivateRegionsStatus

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

Status string

the status of the network. should be normally set to 'ACTIVE'.

Type string

the type of the network. Either 'private' or 'public'.

id String

The provider-assigned unique ID for this managed resource.

regionsAttributes List<CloudProjectNetworkPrivateRegionsAttribute>

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
regionsStatuses List<CloudProjectNetworkPrivateRegionsStatus>

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

status String

the status of the network. should be normally set to 'ACTIVE'.

type String

the type of the network. Either 'private' or 'public'.

id string

The provider-assigned unique ID for this managed resource.

regionsAttributes CloudProjectNetworkPrivateRegionsAttribute[]

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
regionsStatuses CloudProjectNetworkPrivateRegionsStatus[]

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

status string

the status of the network. should be normally set to 'ACTIVE'.

type string

the type of the network. Either 'private' or 'public'.

id str

The provider-assigned unique ID for this managed resource.

regions_attributes Sequence[CloudProjectNetworkPrivateRegionsAttribute]

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
regions_statuses Sequence[CloudProjectNetworkPrivateRegionsStatus]

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

status str

the status of the network. should be normally set to 'ACTIVE'.

type str

the type of the network. Either 'private' or 'public'.

id String

The provider-assigned unique ID for this managed resource.

regionsAttributes List<Property Map>

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
regionsStatuses List<Property Map>

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

status String

the status of the network. should be normally set to 'ACTIVE'.

type String

the type of the network. Either 'private' or 'public'.

Look up an Existing CloudProjectNetworkPrivate Resource

Get an existing CloudProjectNetworkPrivate 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?: CloudProjectNetworkPrivateState, opts?: CustomResourceOptions): CloudProjectNetworkPrivate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        regions: Optional[Sequence[str]] = None,
        regions_attributes: Optional[Sequence[CloudProjectNetworkPrivateRegionsAttributeArgs]] = None,
        regions_statuses: Optional[Sequence[CloudProjectNetworkPrivateRegionsStatusArgs]] = None,
        service_name: Optional[str] = None,
        status: Optional[str] = None,
        type: Optional[str] = None,
        vlan_id: Optional[int] = None) -> CloudProjectNetworkPrivate
func GetCloudProjectNetworkPrivate(ctx *Context, name string, id IDInput, state *CloudProjectNetworkPrivateState, opts ...ResourceOption) (*CloudProjectNetworkPrivate, error)
public static CloudProjectNetworkPrivate Get(string name, Input<string> id, CloudProjectNetworkPrivateState? state, CustomResourceOptions? opts = null)
public static CloudProjectNetworkPrivate get(String name, Output<String> id, CloudProjectNetworkPrivateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
Name string

The name of the network.

Regions List<string>

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

RegionsAttributes List<Lbrlabs.PulumiPackage.Ovh.Inputs.CloudProjectNetworkPrivateRegionsAttributeArgs>

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
RegionsStatuses List<Lbrlabs.PulumiPackage.Ovh.Inputs.CloudProjectNetworkPrivateRegionsStatusArgs>

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Status string

the status of the network. should be normally set to 'ACTIVE'.

Type string

the type of the network. Either 'private' or 'public'.

VlanId int

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

Name string

The name of the network.

Regions []string

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

RegionsAttributes []CloudProjectNetworkPrivateRegionsAttributeArgs

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
RegionsStatuses []CloudProjectNetworkPrivateRegionsStatusArgs

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Status string

the status of the network. should be normally set to 'ACTIVE'.

Type string

the type of the network. Either 'private' or 'public'.

VlanId int

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

name String

The name of the network.

regions List<String>

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

regionsAttributes List<CloudProjectNetworkPrivateRegionsAttributeArgs>

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
regionsStatuses List<CloudProjectNetworkPrivateRegionsStatusArgs>

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status String

the status of the network. should be normally set to 'ACTIVE'.

type String

the type of the network. Either 'private' or 'public'.

vlanId Integer

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

name string

The name of the network.

regions string[]

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

regionsAttributes CloudProjectNetworkPrivateRegionsAttributeArgs[]

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
regionsStatuses CloudProjectNetworkPrivateRegionsStatusArgs[]

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status string

the status of the network. should be normally set to 'ACTIVE'.

type string

the type of the network. Either 'private' or 'public'.

vlanId number

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

name str

The name of the network.

regions Sequence[str]

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

regions_attributes Sequence[CloudProjectNetworkPrivateRegionsAttributeArgs]

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
regions_statuses Sequence[CloudProjectNetworkPrivateRegionsStatusArgs]

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status str

the status of the network. should be normally set to 'ACTIVE'.

type str

the type of the network. Either 'private' or 'public'.

vlan_id int

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

name String

The name of the network.

regions List<String>

an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

regionsAttributes List<Property Map>

A map representing information about the region.

  • regions_attributes/region - The id of the region.
  • regions_attributes/status - The status of the network in the region.
  • regions_attributes/openstackid - The private network id in the region.
regionsStatuses List<Property Map>

(Deprecated) A map representing the status of the network per region.

  • regions_status/region - (Deprecated) The id of the region.
  • regions_status/status - (Deprecated) The status of the network in the region.

Deprecated:

use the regions_attributes field instead

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status String

the status of the network. should be normally set to 'ACTIVE'.

type String

the type of the network. Either 'private' or 'public'.

vlanId Number

a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

Supporting Types

CloudProjectNetworkPrivateRegionsAttribute

Status string

the status of the network. should be normally set to 'ACTIVE'.

Openstackid string
Region string
Status string

the status of the network. should be normally set to 'ACTIVE'.

Openstackid string
Region string
status String

the status of the network. should be normally set to 'ACTIVE'.

openstackid String
region String
status string

the status of the network. should be normally set to 'ACTIVE'.

openstackid string
region string
status str

the status of the network. should be normally set to 'ACTIVE'.

openstackid str
region str
status String

the status of the network. should be normally set to 'ACTIVE'.

openstackid String
region String

CloudProjectNetworkPrivateRegionsStatus

Status string

the status of the network. should be normally set to 'ACTIVE'.

Region string
Status string

the status of the network. should be normally set to 'ACTIVE'.

Region string
status String

the status of the network. should be normally set to 'ACTIVE'.

region String
status string

the status of the network. should be normally set to 'ACTIVE'.

region string
status str

the status of the network. should be normally set to 'ACTIVE'.

region str
status String

the status of the network. should be normally set to 'ACTIVE'.

region String

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.