ovh.OvhcloudConnectPopConfig
Explore with Pulumi AI
Creates a pop configuration for an Ovhcloud Connect product.
Please take a look at the list of available types
in the Required
section in order to know the list of available type configurations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const occ = ovh.OVHcloud.Connect({
serviceName: "XXX",
});
const pop = new ovh.OvhcloudConnectPopConfig("pop", {
serviceName: occ.then(occ => occ.serviceName),
interfaceId: occ.then(occ => occ.interfaceLists?.[0]),
type: "l3",
customerBgpArea: 65400,
ovhBgpArea: 65401,
subnet: "I.I.I.I/30",
});
import pulumi
import pulumi_ovh as ovh
occ = ovh.OVHcloud.connect(service_name="XXX")
pop = ovh.OvhcloudConnectPopConfig("pop",
service_name=occ.service_name,
interface_id=occ.interface_lists[0],
type="l3",
customer_bgp_area=65400,
ovh_bgp_area=65401,
subnet="I.I.I.I/30")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/ovhcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
occ, err := ovhcloud.Connect(ctx, &ovhcloud.ConnectArgs{
ServiceName: "XXX",
}, nil)
if err != nil {
return err
}
_, err = ovh.NewOvhcloudConnectPopConfig(ctx, "pop", &ovh.OvhcloudConnectPopConfigArgs{
ServiceName: pulumi.String(occ.ServiceName),
InterfaceId: pulumi.Float64(occ.InterfaceLists[0]),
Type: pulumi.String("l3"),
CustomerBgpArea: pulumi.Float64(65400),
OvhBgpArea: pulumi.Float64(65401),
Subnet: pulumi.String("I.I.I.I/30"),
})
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 occ = Ovh.OVHcloud.Connect.Invoke(new()
{
ServiceName = "XXX",
});
var pop = new Ovh.OvhcloudConnectPopConfig("pop", new()
{
ServiceName = occ.Apply(connectResult => connectResult.ServiceName),
InterfaceId = occ.Apply(connectResult => connectResult.InterfaceLists[0]),
Type = "l3",
CustomerBgpArea = 65400,
OvhBgpArea = 65401,
Subnet = "I.I.I.I/30",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OVHcloud.OVHcloudFunctions;
import com.pulumi.ovh.OVHcloud.inputs.ConnectArgs;
import com.ovhcloud.pulumi.ovh.OvhcloudConnectPopConfig;
import com.ovhcloud.pulumi.ovh.OvhcloudConnectPopConfigArgs;
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 occ = OVHcloudFunctions.Connect(ConnectArgs.builder()
.serviceName("XXX")
.build());
var pop = new OvhcloudConnectPopConfig("pop", OvhcloudConnectPopConfigArgs.builder()
.serviceName(occ.serviceName())
.interfaceId(occ.interfaceLists()[0])
.type("l3")
.customerBgpArea(65400.0)
.ovhBgpArea(65401.0)
.subnet("I.I.I.I/30")
.build());
}
}
resources:
pop:
type: ovh:OvhcloudConnectPopConfig
properties:
serviceName: ${occ.serviceName}
interfaceId: ${occ.interfaceLists[0]}
type: l3
customerBgpArea: 65400
ovhBgpArea: 65401
subnet: I.I.I.I/30
variables:
occ:
fn::invoke:
function: ovh:OVHcloud:Connect
arguments:
serviceName: XXX
Create OvhcloudConnectPopConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OvhcloudConnectPopConfig(name: string, args: OvhcloudConnectPopConfigArgs, opts?: CustomResourceOptions);
@overload
def OvhcloudConnectPopConfig(resource_name: str,
args: OvhcloudConnectPopConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OvhcloudConnectPopConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
interface_id: Optional[float] = None,
service_name: Optional[str] = None,
type: Optional[str] = None,
customer_bgp_area: Optional[float] = None,
ovh_bgp_area: Optional[float] = None,
subnet: Optional[str] = None)
func NewOvhcloudConnectPopConfig(ctx *Context, name string, args OvhcloudConnectPopConfigArgs, opts ...ResourceOption) (*OvhcloudConnectPopConfig, error)
public OvhcloudConnectPopConfig(string name, OvhcloudConnectPopConfigArgs args, CustomResourceOptions? opts = null)
public OvhcloudConnectPopConfig(String name, OvhcloudConnectPopConfigArgs args)
public OvhcloudConnectPopConfig(String name, OvhcloudConnectPopConfigArgs args, CustomResourceOptions options)
type: ovh:OvhcloudConnectPopConfig
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 OvhcloudConnectPopConfigArgs
- 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 OvhcloudConnectPopConfigArgs
- 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 OvhcloudConnectPopConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OvhcloudConnectPopConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OvhcloudConnectPopConfigArgs
- 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 ovhcloudConnectPopConfigResource = new Ovh.OvhcloudConnectPopConfig("ovhcloudConnectPopConfigResource", new()
{
InterfaceId = 0,
ServiceName = "string",
Type = "string",
CustomerBgpArea = 0,
OvhBgpArea = 0,
Subnet = "string",
});
example, err := ovh.NewOvhcloudConnectPopConfig(ctx, "ovhcloudConnectPopConfigResource", &ovh.OvhcloudConnectPopConfigArgs{
InterfaceId: pulumi.Float64(0),
ServiceName: pulumi.String("string"),
Type: pulumi.String("string"),
CustomerBgpArea: pulumi.Float64(0),
OvhBgpArea: pulumi.Float64(0),
Subnet: pulumi.String("string"),
})
var ovhcloudConnectPopConfigResource = new OvhcloudConnectPopConfig("ovhcloudConnectPopConfigResource", OvhcloudConnectPopConfigArgs.builder()
.interfaceId(0.0)
.serviceName("string")
.type("string")
.customerBgpArea(0.0)
.ovhBgpArea(0.0)
.subnet("string")
.build());
ovhcloud_connect_pop_config_resource = ovh.OvhcloudConnectPopConfig("ovhcloudConnectPopConfigResource",
interface_id=0,
service_name="string",
type="string",
customer_bgp_area=0,
ovh_bgp_area=0,
subnet="string")
const ovhcloudConnectPopConfigResource = new ovh.OvhcloudConnectPopConfig("ovhcloudConnectPopConfigResource", {
interfaceId: 0,
serviceName: "string",
type: "string",
customerBgpArea: 0,
ovhBgpArea: 0,
subnet: "string",
});
type: ovh:OvhcloudConnectPopConfig
properties:
customerBgpArea: 0
interfaceId: 0
ovhBgpArea: 0
serviceName: string
subnet: string
type: string
OvhcloudConnectPopConfig 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 OvhcloudConnectPopConfig resource accepts the following input properties:
- Interface
Id double - ID of the interface
- Service
Name string - Service name
- Type string
- Type of the pop configuration
- Customer
Bgp doubleArea - Customer Private AS
- Ovh
Bgp doubleArea - OVH Private AS
- Subnet string
- Subnet should be a /30, first IP for OVH, second IP for customer
- Interface
Id float64 - ID of the interface
- Service
Name string - Service name
- Type string
- Type of the pop configuration
- Customer
Bgp float64Area - Customer Private AS
- Ovh
Bgp float64Area - OVH Private AS
- Subnet string
- Subnet should be a /30, first IP for OVH, second IP for customer
- interface
Id Double - ID of the interface
- service
Name String - Service name
- type String
- Type of the pop configuration
- customer
Bgp DoubleArea - Customer Private AS
- ovh
Bgp DoubleArea - OVH Private AS
- subnet String
- Subnet should be a /30, first IP for OVH, second IP for customer
- interface
Id number - ID of the interface
- service
Name string - Service name
- type string
- Type of the pop configuration
- customer
Bgp numberArea - Customer Private AS
- ovh
Bgp numberArea - OVH Private AS
- subnet string
- Subnet should be a /30, first IP for OVH, second IP for customer
- interface_
id float - ID of the interface
- service_
name str - Service name
- type str
- Type of the pop configuration
- customer_
bgp_ floatarea - Customer Private AS
- ovh_
bgp_ floatarea - OVH Private AS
- subnet str
- Subnet should be a /30, first IP for OVH, second IP for customer
- interface
Id Number - ID of the interface
- service
Name String - Service name
- type String
- Type of the pop configuration
- customer
Bgp NumberArea - Customer Private AS
- ovh
Bgp NumberArea - OVH Private AS
- subnet String
- Subnet should be a /30, first IP for OVH, second IP for customer
Outputs
All input properties are implicitly available as output properties. Additionally, the OvhcloudConnectPopConfig resource produces the following output properties:
Look up Existing OvhcloudConnectPopConfig Resource
Get an existing OvhcloudConnectPopConfig 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?: OvhcloudConnectPopConfigState, opts?: CustomResourceOptions): OvhcloudConnectPopConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
customer_bgp_area: Optional[float] = None,
interface_id: Optional[float] = None,
ovh_bgp_area: Optional[float] = None,
service_name: Optional[str] = None,
status: Optional[str] = None,
subnet: Optional[str] = None,
type: Optional[str] = None) -> OvhcloudConnectPopConfig
func GetOvhcloudConnectPopConfig(ctx *Context, name string, id IDInput, state *OvhcloudConnectPopConfigState, opts ...ResourceOption) (*OvhcloudConnectPopConfig, error)
public static OvhcloudConnectPopConfig Get(string name, Input<string> id, OvhcloudConnectPopConfigState? state, CustomResourceOptions? opts = null)
public static OvhcloudConnectPopConfig get(String name, Output<String> id, OvhcloudConnectPopConfigState state, CustomResourceOptions options)
resources: _: type: ovh:OvhcloudConnectPopConfig 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.
- Customer
Bgp doubleArea - Customer Private AS
- Interface
Id double - ID of the interface
- Ovh
Bgp doubleArea - OVH Private AS
- Service
Name string - Service name
- Status string
- Status of the pop configuration
- Subnet string
- Subnet should be a /30, first IP for OVH, second IP for customer
- Type string
- Type of the pop configuration
- Customer
Bgp float64Area - Customer Private AS
- Interface
Id float64 - ID of the interface
- Ovh
Bgp float64Area - OVH Private AS
- Service
Name string - Service name
- Status string
- Status of the pop configuration
- Subnet string
- Subnet should be a /30, first IP for OVH, second IP for customer
- Type string
- Type of the pop configuration
- customer
Bgp DoubleArea - Customer Private AS
- interface
Id Double - ID of the interface
- ovh
Bgp DoubleArea - OVH Private AS
- service
Name String - Service name
- status String
- Status of the pop configuration
- subnet String
- Subnet should be a /30, first IP for OVH, second IP for customer
- type String
- Type of the pop configuration
- customer
Bgp numberArea - Customer Private AS
- interface
Id number - ID of the interface
- ovh
Bgp numberArea - OVH Private AS
- service
Name string - Service name
- status string
- Status of the pop configuration
- subnet string
- Subnet should be a /30, first IP for OVH, second IP for customer
- type string
- Type of the pop configuration
- customer_
bgp_ floatarea - Customer Private AS
- interface_
id float - ID of the interface
- ovh_
bgp_ floatarea - OVH Private AS
- service_
name str - Service name
- status str
- Status of the pop configuration
- subnet str
- Subnet should be a /30, first IP for OVH, second IP for customer
- type str
- Type of the pop configuration
- customer
Bgp NumberArea - Customer Private AS
- interface
Id Number - ID of the interface
- ovh
Bgp NumberArea - OVH Private AS
- service
Name String - Service name
- status String
- Status of the pop configuration
- subnet String
- Subnet should be a /30, first IP for OVH, second IP for customer
- type String
- Type of the pop configuration
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.