ovh.OvhcloudConnectPopDatacenterExtraConfig
Creates an extra datacenter 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 popCfgs = ovh.getOvhcloudConnectConfigPops({
    serviceName: "XXX",
});
const datacenterCfgs = Promise.all([popCfgs, popCfgs]).then(([popCfgs, popCfgs1]) => ovh.getOvhcloudConnectConfigPopDatacenters({
    serviceName: popCfgs.serviceName,
    configPopId: popCfgs1.popConfigs?.[0]?.id,
}));
const extra = new ovh.OvhcloudConnectPopDatacenterExtraConfig("extra", {
    serviceName: popCfgs.then(popCfgs => popCfgs.serviceName),
    configPopId: popCfgs.then(popCfgs => popCfgs.popConfigs?.[0]?.id),
    configDatacenterId: datacenterCfgs.then(datacenterCfgs => datacenterCfgs.datacenterConfigs?.[0]?.id),
    type: "network",
    nextHop: "P.P.P.P",
    subnet: "I.I.I.I/M",
});
import pulumi
import pulumi_ovh as ovh
pop_cfgs = ovh.get_ovhcloud_connect_config_pops(service_name="XXX")
datacenter_cfgs = ovh.get_ovhcloud_connect_config_pop_datacenters(service_name=pop_cfgs.service_name,
    config_pop_id=pop_cfgs.pop_configs[0].id)
extra = ovh.OvhcloudConnectPopDatacenterExtraConfig("extra",
    service_name=pop_cfgs.service_name,
    config_pop_id=pop_cfgs.pop_configs[0].id,
    config_datacenter_id=datacenter_cfgs.datacenter_configs[0].id,
    type="network",
    next_hop="P.P.P.P",
    subnet="I.I.I.I/M")
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 {
		popCfgs, err := ovh.GetOvhcloudConnectConfigPops(ctx, &ovh.GetOvhcloudConnectConfigPopsArgs{
			ServiceName: "XXX",
		}, nil)
		if err != nil {
			return err
		}
		datacenterCfgs, err := ovh.GetOvhcloudConnectConfigPopDatacenters(ctx, &ovh.GetOvhcloudConnectConfigPopDatacentersArgs{
			ServiceName: popCfgs.ServiceName,
			ConfigPopId: popCfgs.PopConfigs[0].Id,
		}, nil)
		if err != nil {
			return err
		}
		_, err = ovh.NewOvhcloudConnectPopDatacenterExtraConfig(ctx, "extra", &ovh.OvhcloudConnectPopDatacenterExtraConfigArgs{
			ServiceName:        pulumi.String(popCfgs.ServiceName),
			ConfigPopId:        pulumi.Float64(popCfgs.PopConfigs[0].Id),
			ConfigDatacenterId: pulumi.Float64(datacenterCfgs.DatacenterConfigs[0].Id),
			Type:               pulumi.String("network"),
			NextHop:            pulumi.String("P.P.P.P"),
			Subnet:             pulumi.String("I.I.I.I/M"),
		})
		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 popCfgs = Ovh.GetOvhcloudConnectConfigPops.Invoke(new()
    {
        ServiceName = "XXX",
    });
    var datacenterCfgs = Ovh.GetOvhcloudConnectConfigPopDatacenters.Invoke(new()
    {
        ServiceName = popCfgs.Apply(getOvhcloudConnectConfigPopsResult => getOvhcloudConnectConfigPopsResult.ServiceName),
        ConfigPopId = popCfgs.Apply(getOvhcloudConnectConfigPopsResult => getOvhcloudConnectConfigPopsResult.PopConfigs[0]?.Id),
    });
    var extra = new Ovh.OvhcloudConnectPopDatacenterExtraConfig("extra", new()
    {
        ServiceName = popCfgs.Apply(getOvhcloudConnectConfigPopsResult => getOvhcloudConnectConfigPopsResult.ServiceName),
        ConfigPopId = popCfgs.Apply(getOvhcloudConnectConfigPopsResult => getOvhcloudConnectConfigPopsResult.PopConfigs[0]?.Id),
        ConfigDatacenterId = datacenterCfgs.Apply(getOvhcloudConnectConfigPopDatacentersResult => getOvhcloudConnectConfigPopDatacentersResult.DatacenterConfigs[0]?.Id),
        Type = "network",
        NextHop = "P.P.P.P",
        Subnet = "I.I.I.I/M",
    });
});
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.GetOvhcloudConnectConfigPopsArgs;
import com.pulumi.ovh.inputs.GetOvhcloudConnectConfigPopDatacentersArgs;
import com.ovhcloud.pulumi.ovh.OvhcloudConnectPopDatacenterExtraConfig;
import com.ovhcloud.pulumi.ovh.OvhcloudConnectPopDatacenterExtraConfigArgs;
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 popCfgs = OvhFunctions.getOvhcloudConnectConfigPops(GetOvhcloudConnectConfigPopsArgs.builder()
            .serviceName("XXX")
            .build());
        final var datacenterCfgs = OvhFunctions.getOvhcloudConnectConfigPopDatacenters(GetOvhcloudConnectConfigPopDatacentersArgs.builder()
            .serviceName(popCfgs.serviceName())
            .configPopId(popCfgs.popConfigs()[0].id())
            .build());
        var extra = new OvhcloudConnectPopDatacenterExtraConfig("extra", OvhcloudConnectPopDatacenterExtraConfigArgs.builder()
            .serviceName(popCfgs.serviceName())
            .configPopId(popCfgs.popConfigs()[0].id())
            .configDatacenterId(datacenterCfgs.datacenterConfigs()[0].id())
            .type("network")
            .nextHop("P.P.P.P")
            .subnet("I.I.I.I/M")
            .build());
    }
}
resources:
  extra:
    type: ovh:OvhcloudConnectPopDatacenterExtraConfig
    properties:
      serviceName: ${popCfgs.serviceName}
      configPopId: ${popCfgs.popConfigs[0].id}
      configDatacenterId: ${datacenterCfgs.datacenterConfigs[0].id}
      type: network
      nextHop: P.P.P.P
      subnet: I.I.I.I/M
variables:
  popCfgs:
    fn::invoke:
      function: ovh:getOvhcloudConnectConfigPops
      arguments:
        serviceName: XXX
  datacenterCfgs:
    fn::invoke:
      function: ovh:getOvhcloudConnectConfigPopDatacenters
      arguments:
        serviceName: ${popCfgs.serviceName}
        configPopId: ${popCfgs.popConfigs[0].id}
Create OvhcloudConnectPopDatacenterExtraConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OvhcloudConnectPopDatacenterExtraConfig(name: string, args: OvhcloudConnectPopDatacenterExtraConfigArgs, opts?: CustomResourceOptions);@overload
def OvhcloudConnectPopDatacenterExtraConfig(resource_name: str,
                                            args: OvhcloudConnectPopDatacenterExtraConfigArgs,
                                            opts: Optional[ResourceOptions] = None)
@overload
def OvhcloudConnectPopDatacenterExtraConfig(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            config_datacenter_id: Optional[float] = None,
                                            config_pop_id: Optional[float] = None,
                                            service_name: Optional[str] = None,
                                            type: Optional[str] = None,
                                            bgp_neighbor_area: Optional[float] = None,
                                            bgp_neighbor_ip: Optional[str] = None,
                                            next_hop: Optional[str] = None,
                                            subnet: Optional[str] = None)func NewOvhcloudConnectPopDatacenterExtraConfig(ctx *Context, name string, args OvhcloudConnectPopDatacenterExtraConfigArgs, opts ...ResourceOption) (*OvhcloudConnectPopDatacenterExtraConfig, error)public OvhcloudConnectPopDatacenterExtraConfig(string name, OvhcloudConnectPopDatacenterExtraConfigArgs args, CustomResourceOptions? opts = null)
public OvhcloudConnectPopDatacenterExtraConfig(String name, OvhcloudConnectPopDatacenterExtraConfigArgs args)
public OvhcloudConnectPopDatacenterExtraConfig(String name, OvhcloudConnectPopDatacenterExtraConfigArgs args, CustomResourceOptions options)
type: ovh:OvhcloudConnectPopDatacenterExtraConfig
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 OvhcloudConnectPopDatacenterExtraConfigArgs
- 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 OvhcloudConnectPopDatacenterExtraConfigArgs
- 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 OvhcloudConnectPopDatacenterExtraConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OvhcloudConnectPopDatacenterExtraConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OvhcloudConnectPopDatacenterExtraConfigArgs
- 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 ovhcloudConnectPopDatacenterExtraConfigResource = new Ovh.OvhcloudConnectPopDatacenterExtraConfig("ovhcloudConnectPopDatacenterExtraConfigResource", new()
{
    ConfigDatacenterId = 0,
    ConfigPopId = 0,
    ServiceName = "string",
    Type = "string",
    BgpNeighborArea = 0,
    BgpNeighborIp = "string",
    NextHop = "string",
    Subnet = "string",
});
example, err := ovh.NewOvhcloudConnectPopDatacenterExtraConfig(ctx, "ovhcloudConnectPopDatacenterExtraConfigResource", &ovh.OvhcloudConnectPopDatacenterExtraConfigArgs{
	ConfigDatacenterId: pulumi.Float64(0),
	ConfigPopId:        pulumi.Float64(0),
	ServiceName:        pulumi.String("string"),
	Type:               pulumi.String("string"),
	BgpNeighborArea:    pulumi.Float64(0),
	BgpNeighborIp:      pulumi.String("string"),
	NextHop:            pulumi.String("string"),
	Subnet:             pulumi.String("string"),
})
var ovhcloudConnectPopDatacenterExtraConfigResource = new OvhcloudConnectPopDatacenterExtraConfig("ovhcloudConnectPopDatacenterExtraConfigResource", OvhcloudConnectPopDatacenterExtraConfigArgs.builder()
    .configDatacenterId(0.0)
    .configPopId(0.0)
    .serviceName("string")
    .type("string")
    .bgpNeighborArea(0.0)
    .bgpNeighborIp("string")
    .nextHop("string")
    .subnet("string")
    .build());
ovhcloud_connect_pop_datacenter_extra_config_resource = ovh.OvhcloudConnectPopDatacenterExtraConfig("ovhcloudConnectPopDatacenterExtraConfigResource",
    config_datacenter_id=0,
    config_pop_id=0,
    service_name="string",
    type="string",
    bgp_neighbor_area=0,
    bgp_neighbor_ip="string",
    next_hop="string",
    subnet="string")
const ovhcloudConnectPopDatacenterExtraConfigResource = new ovh.OvhcloudConnectPopDatacenterExtraConfig("ovhcloudConnectPopDatacenterExtraConfigResource", {
    configDatacenterId: 0,
    configPopId: 0,
    serviceName: "string",
    type: "string",
    bgpNeighborArea: 0,
    bgpNeighborIp: "string",
    nextHop: "string",
    subnet: "string",
});
type: ovh:OvhcloudConnectPopDatacenterExtraConfig
properties:
    bgpNeighborArea: 0
    bgpNeighborIp: string
    configDatacenterId: 0
    configPopId: 0
    nextHop: string
    serviceName: string
    subnet: string
    type: string
OvhcloudConnectPopDatacenterExtraConfig 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 OvhcloudConnectPopDatacenterExtraConfig resource accepts the following input properties:
- ConfigDatacenter doubleId 
- ID of the datacenter configuration
- ConfigPop doubleId 
- ID of the pop configuration
- ServiceName string
- Service name
- Type string
- Type of the configuration
- BgpNeighbor doubleArea 
- BGP AS number
- BgpNeighbor stringIp 
- Router IP for BGP
- NextHop string
- Static route next hop
- Subnet string
- Static route ip
- ConfigDatacenter float64Id 
- ID of the datacenter configuration
- ConfigPop float64Id 
- ID of the pop configuration
- ServiceName string
- Service name
- Type string
- Type of the configuration
- BgpNeighbor float64Area 
- BGP AS number
- BgpNeighbor stringIp 
- Router IP for BGP
- NextHop string
- Static route next hop
- Subnet string
- Static route ip
- configDatacenter DoubleId 
- ID of the datacenter configuration
- configPop DoubleId 
- ID of the pop configuration
- serviceName String
- Service name
- type String
- Type of the configuration
- bgpNeighbor DoubleArea 
- BGP AS number
- bgpNeighbor StringIp 
- Router IP for BGP
- nextHop String
- Static route next hop
- subnet String
- Static route ip
- configDatacenter numberId 
- ID of the datacenter configuration
- configPop numberId 
- ID of the pop configuration
- serviceName string
- Service name
- type string
- Type of the configuration
- bgpNeighbor numberArea 
- BGP AS number
- bgpNeighbor stringIp 
- Router IP for BGP
- nextHop string
- Static route next hop
- subnet string
- Static route ip
- config_datacenter_ floatid 
- ID of the datacenter configuration
- config_pop_ floatid 
- ID of the pop configuration
- service_name str
- Service name
- type str
- Type of the configuration
- bgp_neighbor_ floatarea 
- BGP AS number
- bgp_neighbor_ strip 
- Router IP for BGP
- next_hop str
- Static route next hop
- subnet str
- Static route ip
- configDatacenter NumberId 
- ID of the datacenter configuration
- configPop NumberId 
- ID of the pop configuration
- serviceName String
- Service name
- type String
- Type of the configuration
- bgpNeighbor NumberArea 
- BGP AS number
- bgpNeighbor StringIp 
- Router IP for BGP
- nextHop String
- Static route next hop
- subnet String
- Static route ip
Outputs
All input properties are implicitly available as output properties. Additionally, the OvhcloudConnectPopDatacenterExtraConfig resource produces the following output properties:
Look up Existing OvhcloudConnectPopDatacenterExtraConfig Resource
Get an existing OvhcloudConnectPopDatacenterExtraConfig 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?: OvhcloudConnectPopDatacenterExtraConfigState, opts?: CustomResourceOptions): OvhcloudConnectPopDatacenterExtraConfig@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bgp_neighbor_area: Optional[float] = None,
        bgp_neighbor_ip: Optional[str] = None,
        config_datacenter_id: Optional[float] = None,
        config_pop_id: Optional[float] = None,
        next_hop: Optional[str] = None,
        service_name: Optional[str] = None,
        status: Optional[str] = None,
        subnet: Optional[str] = None,
        type: Optional[str] = None) -> OvhcloudConnectPopDatacenterExtraConfigfunc GetOvhcloudConnectPopDatacenterExtraConfig(ctx *Context, name string, id IDInput, state *OvhcloudConnectPopDatacenterExtraConfigState, opts ...ResourceOption) (*OvhcloudConnectPopDatacenterExtraConfig, error)public static OvhcloudConnectPopDatacenterExtraConfig Get(string name, Input<string> id, OvhcloudConnectPopDatacenterExtraConfigState? state, CustomResourceOptions? opts = null)public static OvhcloudConnectPopDatacenterExtraConfig get(String name, Output<String> id, OvhcloudConnectPopDatacenterExtraConfigState state, CustomResourceOptions options)resources:  _:    type: ovh:OvhcloudConnectPopDatacenterExtraConfig    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.
- BgpNeighbor doubleArea 
- BGP AS number
- BgpNeighbor stringIp 
- Router IP for BGP
- ConfigDatacenter doubleId 
- ID of the datacenter configuration
- ConfigPop doubleId 
- ID of the pop configuration
- NextHop string
- Static route next hop
- ServiceName string
- Service name
- Status string
- Status of the pop configuration
- Subnet string
- Static route ip
- Type string
- Type of the configuration
- BgpNeighbor float64Area 
- BGP AS number
- BgpNeighbor stringIp 
- Router IP for BGP
- ConfigDatacenter float64Id 
- ID of the datacenter configuration
- ConfigPop float64Id 
- ID of the pop configuration
- NextHop string
- Static route next hop
- ServiceName string
- Service name
- Status string
- Status of the pop configuration
- Subnet string
- Static route ip
- Type string
- Type of the configuration
- bgpNeighbor DoubleArea 
- BGP AS number
- bgpNeighbor StringIp 
- Router IP for BGP
- configDatacenter DoubleId 
- ID of the datacenter configuration
- configPop DoubleId 
- ID of the pop configuration
- nextHop String
- Static route next hop
- serviceName String
- Service name
- status String
- Status of the pop configuration
- subnet String
- Static route ip
- type String
- Type of the configuration
- bgpNeighbor numberArea 
- BGP AS number
- bgpNeighbor stringIp 
- Router IP for BGP
- configDatacenter numberId 
- ID of the datacenter configuration
- configPop numberId 
- ID of the pop configuration
- nextHop string
- Static route next hop
- serviceName string
- Service name
- status string
- Status of the pop configuration
- subnet string
- Static route ip
- type string
- Type of the configuration
- bgp_neighbor_ floatarea 
- BGP AS number
- bgp_neighbor_ strip 
- Router IP for BGP
- config_datacenter_ floatid 
- ID of the datacenter configuration
- config_pop_ floatid 
- ID of the pop configuration
- next_hop str
- Static route next hop
- service_name str
- Service name
- status str
- Status of the pop configuration
- subnet str
- Static route ip
- type str
- Type of the configuration
- bgpNeighbor NumberArea 
- BGP AS number
- bgpNeighbor StringIp 
- Router IP for BGP
- configDatacenter NumberId 
- ID of the datacenter configuration
- configPop NumberId 
- ID of the pop configuration
- nextHop String
- Static route next hop
- serviceName String
- Service name
- status String
- Status of the pop configuration
- subnet String
- Static route ip
- type String
- Type of the configuration
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ovhTerraform Provider.
