1. Packages
  2. Openstack Provider
  3. API Docs
  4. BgpvpnPortAssociateV2
OpenStack v5.0.3 published on Wednesday, Feb 12, 2025 by Pulumi

openstack.BgpvpnPortAssociateV2

Explore with Pulumi AI

Manages a V2 BGP VPN port association resource within OpenStack.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const association1 = new openstack.BgpvpnPortAssociateV2("association_1", {
    bgpvpnId: "19382ec5-8098-47d9-a9c6-6270c91103f4",
    portId: "b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f",
    routes: [
        {
            type: "prefix",
            prefix: "192.168.170.1/32",
        },
        {
            type: "bgpvpn",
            bgpvpnId: "35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c",
        },
    ],
});
Copy
import pulumi
import pulumi_openstack as openstack

association1 = openstack.BgpvpnPortAssociateV2("association_1",
    bgpvpn_id="19382ec5-8098-47d9-a9c6-6270c91103f4",
    port_id="b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f",
    routes=[
        {
            "type": "prefix",
            "prefix": "192.168.170.1/32",
        },
        {
            "type": "bgpvpn",
            "bgpvpn_id": "35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c",
        },
    ])
Copy
package main

import (
	"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := openstack.NewBgpvpnPortAssociateV2(ctx, "association_1", &openstack.BgpvpnPortAssociateV2Args{
			BgpvpnId: pulumi.String("19382ec5-8098-47d9-a9c6-6270c91103f4"),
			PortId:   pulumi.String("b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f"),
			Routes: openstack.BgpvpnPortAssociateV2RouteArray{
				&openstack.BgpvpnPortAssociateV2RouteArgs{
					Type:   pulumi.String("prefix"),
					Prefix: pulumi.String("192.168.170.1/32"),
				},
				&openstack.BgpvpnPortAssociateV2RouteArgs{
					Type:     pulumi.String("bgpvpn"),
					BgpvpnId: pulumi.String("35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;

return await Deployment.RunAsync(() => 
{
    var association1 = new OpenStack.BgpvpnPortAssociateV2("association_1", new()
    {
        BgpvpnId = "19382ec5-8098-47d9-a9c6-6270c91103f4",
        PortId = "b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f",
        Routes = new[]
        {
            new OpenStack.Inputs.BgpvpnPortAssociateV2RouteArgs
            {
                Type = "prefix",
                Prefix = "192.168.170.1/32",
            },
            new OpenStack.Inputs.BgpvpnPortAssociateV2RouteArgs
            {
                Type = "bgpvpn",
                BgpvpnId = "35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.BgpvpnPortAssociateV2;
import com.pulumi.openstack.BgpvpnPortAssociateV2Args;
import com.pulumi.openstack.inputs.BgpvpnPortAssociateV2RouteArgs;
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 association1 = new BgpvpnPortAssociateV2("association1", BgpvpnPortAssociateV2Args.builder()
            .bgpvpnId("19382ec5-8098-47d9-a9c6-6270c91103f4")
            .portId("b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f")
            .routes(            
                BgpvpnPortAssociateV2RouteArgs.builder()
                    .type("prefix")
                    .prefix("192.168.170.1/32")
                    .build(),
                BgpvpnPortAssociateV2RouteArgs.builder()
                    .type("bgpvpn")
                    .bgpvpnId("35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c")
                    .build())
            .build());

    }
}
Copy
resources:
  association1:
    type: openstack:BgpvpnPortAssociateV2
    name: association_1
    properties:
      bgpvpnId: 19382ec5-8098-47d9-a9c6-6270c91103f4
      portId: b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f
      routes:
        - type: prefix
          prefix: 192.168.170.1/32
        - type: bgpvpn
          bgpvpnId: 35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c
Copy

Create BgpvpnPortAssociateV2 Resource

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

Constructor syntax

new BgpvpnPortAssociateV2(name: string, args: BgpvpnPortAssociateV2Args, opts?: CustomResourceOptions);
@overload
def BgpvpnPortAssociateV2(resource_name: str,
                          args: BgpvpnPortAssociateV2Args,
                          opts: Optional[ResourceOptions] = None)

@overload
def BgpvpnPortAssociateV2(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          bgpvpn_id: Optional[str] = None,
                          port_id: Optional[str] = None,
                          advertise_fixed_ips: Optional[bool] = None,
                          project_id: Optional[str] = None,
                          region: Optional[str] = None,
                          routes: Optional[Sequence[BgpvpnPortAssociateV2RouteArgs]] = None)
func NewBgpvpnPortAssociateV2(ctx *Context, name string, args BgpvpnPortAssociateV2Args, opts ...ResourceOption) (*BgpvpnPortAssociateV2, error)
public BgpvpnPortAssociateV2(string name, BgpvpnPortAssociateV2Args args, CustomResourceOptions? opts = null)
public BgpvpnPortAssociateV2(String name, BgpvpnPortAssociateV2Args args)
public BgpvpnPortAssociateV2(String name, BgpvpnPortAssociateV2Args args, CustomResourceOptions options)
type: openstack:BgpvpnPortAssociateV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BgpvpnPortAssociateV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BgpvpnPortAssociateV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BgpvpnPortAssociateV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BgpvpnPortAssociateV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BgpvpnPortAssociateV2Args
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 bgpvpnPortAssociateV2Resource = new OpenStack.BgpvpnPortAssociateV2("bgpvpnPortAssociateV2Resource", new()
{
    BgpvpnId = "string",
    PortId = "string",
    AdvertiseFixedIps = false,
    ProjectId = "string",
    Region = "string",
    Routes = new[]
    {
        new OpenStack.Inputs.BgpvpnPortAssociateV2RouteArgs
        {
            Type = "string",
            BgpvpnId = "string",
            LocalPref = 0,
            Prefix = "string",
        },
    },
});
Copy
example, err := openstack.NewBgpvpnPortAssociateV2(ctx, "bgpvpnPortAssociateV2Resource", &openstack.BgpvpnPortAssociateV2Args{
	BgpvpnId:          pulumi.String("string"),
	PortId:            pulumi.String("string"),
	AdvertiseFixedIps: pulumi.Bool(false),
	ProjectId:         pulumi.String("string"),
	Region:            pulumi.String("string"),
	Routes: openstack.BgpvpnPortAssociateV2RouteArray{
		&openstack.BgpvpnPortAssociateV2RouteArgs{
			Type:      pulumi.String("string"),
			BgpvpnId:  pulumi.String("string"),
			LocalPref: pulumi.Int(0),
			Prefix:    pulumi.String("string"),
		},
	},
})
Copy
var bgpvpnPortAssociateV2Resource = new BgpvpnPortAssociateV2("bgpvpnPortAssociateV2Resource", BgpvpnPortAssociateV2Args.builder()
    .bgpvpnId("string")
    .portId("string")
    .advertiseFixedIps(false)
    .projectId("string")
    .region("string")
    .routes(BgpvpnPortAssociateV2RouteArgs.builder()
        .type("string")
        .bgpvpnId("string")
        .localPref(0)
        .prefix("string")
        .build())
    .build());
Copy
bgpvpn_port_associate_v2_resource = openstack.BgpvpnPortAssociateV2("bgpvpnPortAssociateV2Resource",
    bgpvpn_id="string",
    port_id="string",
    advertise_fixed_ips=False,
    project_id="string",
    region="string",
    routes=[{
        "type": "string",
        "bgpvpn_id": "string",
        "local_pref": 0,
        "prefix": "string",
    }])
Copy
const bgpvpnPortAssociateV2Resource = new openstack.BgpvpnPortAssociateV2("bgpvpnPortAssociateV2Resource", {
    bgpvpnId: "string",
    portId: "string",
    advertiseFixedIps: false,
    projectId: "string",
    region: "string",
    routes: [{
        type: "string",
        bgpvpnId: "string",
        localPref: 0,
        prefix: "string",
    }],
});
Copy
type: openstack:BgpvpnPortAssociateV2
properties:
    advertiseFixedIps: false
    bgpvpnId: string
    portId: string
    projectId: string
    region: string
    routes:
        - bgpvpnId: string
          localPref: 0
          prefix: string
          type: string
Copy

BgpvpnPortAssociateV2 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 BgpvpnPortAssociateV2 resource accepts the following input properties:

BgpvpnId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
PortId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
AdvertiseFixedIps bool
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
ProjectId Changes to this property will trigger replacement. string
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
Region Changes to this property will trigger replacement. string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
Routes List<Pulumi.OpenStack.Inputs.BgpvpnPortAssociateV2Route>
A list of dictionaries containing the following keys:
BgpvpnId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
PortId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
AdvertiseFixedIps bool
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
ProjectId Changes to this property will trigger replacement. string
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
Region Changes to this property will trigger replacement. string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
Routes []BgpvpnPortAssociateV2RouteArgs
A list of dictionaries containing the following keys:
bgpvpnId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
portId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
advertiseFixedIps Boolean
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
projectId Changes to this property will trigger replacement. String
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
region Changes to this property will trigger replacement. String
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
routes List<BgpvpnPortAssociateV2Route>
A list of dictionaries containing the following keys:
bgpvpnId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
portId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
advertiseFixedIps boolean
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
projectId Changes to this property will trigger replacement. string
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
region Changes to this property will trigger replacement. string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
routes BgpvpnPortAssociateV2Route[]
A list of dictionaries containing the following keys:
bgpvpn_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
port_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
bool
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
project_id Changes to this property will trigger replacement. str
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
region Changes to this property will trigger replacement. str
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
routes Sequence[BgpvpnPortAssociateV2RouteArgs]
A list of dictionaries containing the following keys:
bgpvpnId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
portId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
advertiseFixedIps Boolean
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
projectId Changes to this property will trigger replacement. String
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
region Changes to this property will trigger replacement. String
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
routes List<Property Map>
A list of dictionaries containing the following keys:

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing BgpvpnPortAssociateV2 Resource

Get an existing BgpvpnPortAssociateV2 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?: BgpvpnPortAssociateV2State, opts?: CustomResourceOptions): BgpvpnPortAssociateV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        advertise_fixed_ips: Optional[bool] = None,
        bgpvpn_id: Optional[str] = None,
        port_id: Optional[str] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        routes: Optional[Sequence[BgpvpnPortAssociateV2RouteArgs]] = None) -> BgpvpnPortAssociateV2
func GetBgpvpnPortAssociateV2(ctx *Context, name string, id IDInput, state *BgpvpnPortAssociateV2State, opts ...ResourceOption) (*BgpvpnPortAssociateV2, error)
public static BgpvpnPortAssociateV2 Get(string name, Input<string> id, BgpvpnPortAssociateV2State? state, CustomResourceOptions? opts = null)
public static BgpvpnPortAssociateV2 get(String name, Output<String> id, BgpvpnPortAssociateV2State state, CustomResourceOptions options)
resources:  _:    type: openstack:BgpvpnPortAssociateV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AdvertiseFixedIps bool
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
BgpvpnId Changes to this property will trigger replacement. string
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
PortId Changes to this property will trigger replacement. string
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
ProjectId Changes to this property will trigger replacement. string
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
Region Changes to this property will trigger replacement. string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
Routes List<Pulumi.OpenStack.Inputs.BgpvpnPortAssociateV2Route>
A list of dictionaries containing the following keys:
AdvertiseFixedIps bool
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
BgpvpnId Changes to this property will trigger replacement. string
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
PortId Changes to this property will trigger replacement. string
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
ProjectId Changes to this property will trigger replacement. string
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
Region Changes to this property will trigger replacement. string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
Routes []BgpvpnPortAssociateV2RouteArgs
A list of dictionaries containing the following keys:
advertiseFixedIps Boolean
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
bgpvpnId Changes to this property will trigger replacement. String
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
portId Changes to this property will trigger replacement. String
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
projectId Changes to this property will trigger replacement. String
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
region Changes to this property will trigger replacement. String
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
routes List<BgpvpnPortAssociateV2Route>
A list of dictionaries containing the following keys:
advertiseFixedIps boolean
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
bgpvpnId Changes to this property will trigger replacement. string
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
portId Changes to this property will trigger replacement. string
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
projectId Changes to this property will trigger replacement. string
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
region Changes to this property will trigger replacement. string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
routes BgpvpnPortAssociateV2Route[]
A list of dictionaries containing the following keys:
advertise_fixed_ips bool
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
bgpvpn_id Changes to this property will trigger replacement. str
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
port_id Changes to this property will trigger replacement. str
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
project_id Changes to this property will trigger replacement. str
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
region Changes to this property will trigger replacement. str
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
routes Sequence[BgpvpnPortAssociateV2RouteArgs]
A list of dictionaries containing the following keys:
advertiseFixedIps Boolean
A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
bgpvpnId Changes to this property will trigger replacement. String
The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
portId Changes to this property will trigger replacement. String
The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
projectId Changes to this property will trigger replacement. String
The ID of the project that owns the port association. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
region Changes to this property will trigger replacement. String
The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN port association. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN port association.
routes List<Property Map>
A list of dictionaries containing the following keys:

Supporting Types

BgpvpnPortAssociateV2Route
, BgpvpnPortAssociateV2RouteArgs

Type This property is required. string
Can be prefix or bgpvpn. For the prefix type, the CIDR prefix (v4 or v6) must be specified in the prefix key. For the bgpvpn type, the BGP VPN ID must be specified in the bgpvpn_id key.
BgpvpnId string
The ID of the BGP VPN to be advertised. Required if type is bgpvpn. Conflicts with prefix.
LocalPref int
The BGP LOCAL_PREF value of the routes that will be advertised.
Prefix string
The CIDR prefix (v4 or v6) to be advertised. Required if type is prefix. Conflicts with bgpvpn_id.
Type This property is required. string
Can be prefix or bgpvpn. For the prefix type, the CIDR prefix (v4 or v6) must be specified in the prefix key. For the bgpvpn type, the BGP VPN ID must be specified in the bgpvpn_id key.
BgpvpnId string
The ID of the BGP VPN to be advertised. Required if type is bgpvpn. Conflicts with prefix.
LocalPref int
The BGP LOCAL_PREF value of the routes that will be advertised.
Prefix string
The CIDR prefix (v4 or v6) to be advertised. Required if type is prefix. Conflicts with bgpvpn_id.
type This property is required. String
Can be prefix or bgpvpn. For the prefix type, the CIDR prefix (v4 or v6) must be specified in the prefix key. For the bgpvpn type, the BGP VPN ID must be specified in the bgpvpn_id key.
bgpvpnId String
The ID of the BGP VPN to be advertised. Required if type is bgpvpn. Conflicts with prefix.
localPref Integer
The BGP LOCAL_PREF value of the routes that will be advertised.
prefix String
The CIDR prefix (v4 or v6) to be advertised. Required if type is prefix. Conflicts with bgpvpn_id.
type This property is required. string
Can be prefix or bgpvpn. For the prefix type, the CIDR prefix (v4 or v6) must be specified in the prefix key. For the bgpvpn type, the BGP VPN ID must be specified in the bgpvpn_id key.
bgpvpnId string
The ID of the BGP VPN to be advertised. Required if type is bgpvpn. Conflicts with prefix.
localPref number
The BGP LOCAL_PREF value of the routes that will be advertised.
prefix string
The CIDR prefix (v4 or v6) to be advertised. Required if type is prefix. Conflicts with bgpvpn_id.
type This property is required. str
Can be prefix or bgpvpn. For the prefix type, the CIDR prefix (v4 or v6) must be specified in the prefix key. For the bgpvpn type, the BGP VPN ID must be specified in the bgpvpn_id key.
bgpvpn_id str
The ID of the BGP VPN to be advertised. Required if type is bgpvpn. Conflicts with prefix.
local_pref int
The BGP LOCAL_PREF value of the routes that will be advertised.
prefix str
The CIDR prefix (v4 or v6) to be advertised. Required if type is prefix. Conflicts with bgpvpn_id.
type This property is required. String
Can be prefix or bgpvpn. For the prefix type, the CIDR prefix (v4 or v6) must be specified in the prefix key. For the bgpvpn type, the BGP VPN ID must be specified in the bgpvpn_id key.
bgpvpnId String
The ID of the BGP VPN to be advertised. Required if type is bgpvpn. Conflicts with prefix.
localPref Number
The BGP LOCAL_PREF value of the routes that will be advertised.
prefix String
The CIDR prefix (v4 or v6) to be advertised. Required if type is prefix. Conflicts with bgpvpn_id.

Import

BGP VPN port associations can be imported using the BGP VPN ID and BGP VPN port

association ID separated by a slash, e.g.:

hcl

$ pulumi import openstack:index/bgpvpnPortAssociateV2:BgpvpnPortAssociateV2 association_1 5bb44ecf-f8fe-4d75-8fc5-313f96ee2696/8f8fc660-3f28-414e-896a-0c7c51162fcf
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
OpenStack pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.