openstack.bgpvpn.PortAssociateV2
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.bgpvpn.PortAssociateV2("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",
        },
    ],
});
import pulumi
import pulumi_openstack as openstack
association1 = openstack.bgpvpn.PortAssociateV2("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",
        },
    ])
package main
import (
	"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/bgpvpn"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bgpvpn.NewPortAssociateV2(ctx, "association_1", &bgpvpn.PortAssociateV2Args{
			BgpvpnId: pulumi.String("19382ec5-8098-47d9-a9c6-6270c91103f4"),
			PortId:   pulumi.String("b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f"),
			Routes: bgpvpn.PortAssociateV2RouteArray{
				&bgpvpn.PortAssociateV2RouteArgs{
					Type:   pulumi.String("prefix"),
					Prefix: pulumi.String("192.168.170.1/32"),
				},
				&bgpvpn.PortAssociateV2RouteArgs{
					Type:     pulumi.String("bgpvpn"),
					BgpvpnId: pulumi.String("35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() => 
{
    var association1 = new OpenStack.BGPVPN.PortAssociateV2("association_1", new()
    {
        BgpvpnId = "19382ec5-8098-47d9-a9c6-6270c91103f4",
        PortId = "b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f",
        Routes = new[]
        {
            new OpenStack.BGPVPN.Inputs.PortAssociateV2RouteArgs
            {
                Type = "prefix",
                Prefix = "192.168.170.1/32",
            },
            new OpenStack.BGPVPN.Inputs.PortAssociateV2RouteArgs
            {
                Type = "bgpvpn",
                BgpvpnId = "35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.bgpvpn.PortAssociateV2;
import com.pulumi.openstack.bgpvpn.PortAssociateV2Args;
import com.pulumi.openstack.bgpvpn.inputs.PortAssociateV2RouteArgs;
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 PortAssociateV2("association1", PortAssociateV2Args.builder()
            .bgpvpnId("19382ec5-8098-47d9-a9c6-6270c91103f4")
            .portId("b83a95b8-c2c8-4eac-9a9e-ddc85bd1266f")
            .routes(            
                PortAssociateV2RouteArgs.builder()
                    .type("prefix")
                    .prefix("192.168.170.1/32")
                    .build(),
                PortAssociateV2RouteArgs.builder()
                    .type("bgpvpn")
                    .bgpvpnId("35af1cc6-3d0f-4c5d-86f8-8cdb508d3f0c")
                    .build())
            .build());
    }
}
resources:
  association1:
    type: openstack:bgpvpn:PortAssociateV2
    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
Create PortAssociateV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PortAssociateV2(name: string, args: PortAssociateV2Args, opts?: CustomResourceOptions);@overload
def PortAssociateV2(resource_name: str,
                    args: PortAssociateV2Args,
                    opts: Optional[ResourceOptions] = None)
@overload
def PortAssociateV2(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[PortAssociateV2RouteArgs]] = None)func NewPortAssociateV2(ctx *Context, name string, args PortAssociateV2Args, opts ...ResourceOption) (*PortAssociateV2, error)public PortAssociateV2(string name, PortAssociateV2Args args, CustomResourceOptions? opts = null)
public PortAssociateV2(String name, PortAssociateV2Args args)
public PortAssociateV2(String name, PortAssociateV2Args args, CustomResourceOptions options)
type: openstack:bgpvpn:PortAssociateV2
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 PortAssociateV2Args
- 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 PortAssociateV2Args
- 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 PortAssociateV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortAssociateV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PortAssociateV2Args
- 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 portAssociateV2Resource = new OpenStack.BGPVPN.PortAssociateV2("portAssociateV2Resource", new()
{
    BgpvpnId = "string",
    PortId = "string",
    AdvertiseFixedIps = false,
    ProjectId = "string",
    Region = "string",
    Routes = new[]
    {
        new OpenStack.BGPVPN.Inputs.PortAssociateV2RouteArgs
        {
            Type = "string",
            BgpvpnId = "string",
            LocalPref = 0,
            Prefix = "string",
        },
    },
});
example, err := bgpvpn.NewPortAssociateV2(ctx, "portAssociateV2Resource", &bgpvpn.PortAssociateV2Args{
	BgpvpnId:          pulumi.String("string"),
	PortId:            pulumi.String("string"),
	AdvertiseFixedIps: pulumi.Bool(false),
	ProjectId:         pulumi.String("string"),
	Region:            pulumi.String("string"),
	Routes: bgpvpn.PortAssociateV2RouteArray{
		&bgpvpn.PortAssociateV2RouteArgs{
			Type:      pulumi.String("string"),
			BgpvpnId:  pulumi.String("string"),
			LocalPref: pulumi.Int(0),
			Prefix:    pulumi.String("string"),
		},
	},
})
var portAssociateV2Resource = new PortAssociateV2("portAssociateV2Resource", PortAssociateV2Args.builder()
    .bgpvpnId("string")
    .portId("string")
    .advertiseFixedIps(false)
    .projectId("string")
    .region("string")
    .routes(PortAssociateV2RouteArgs.builder()
        .type("string")
        .bgpvpnId("string")
        .localPref(0)
        .prefix("string")
        .build())
    .build());
port_associate_v2_resource = openstack.bgpvpn.PortAssociateV2("portAssociateV2Resource",
    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",
    }])
const portAssociateV2Resource = new openstack.bgpvpn.PortAssociateV2("portAssociateV2Resource", {
    bgpvpnId: "string",
    portId: "string",
    advertiseFixedIps: false,
    projectId: "string",
    region: "string",
    routes: [{
        type: "string",
        bgpvpnId: "string",
        localPref: 0,
        prefix: "string",
    }],
});
type: openstack:bgpvpn:PortAssociateV2
properties:
    advertiseFixedIps: false
    bgpvpnId: string
    portId: string
    projectId: string
    region: string
    routes:
        - bgpvpnId: string
          localPref: 0
          prefix: string
          type: string
PortAssociateV2 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 PortAssociateV2 resource accepts the following input properties:
- BgpvpnId string
- The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- PortId string
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- AdvertiseFixed boolIps 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- ProjectId string
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- Region 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 regionargument of the provider is used. Changing this creates a new BGP VPN port association.
- Routes
List<Pulumi.Open Stack. BGPVPN. Inputs. Port Associate V2Route> 
- A list of dictionaries containing the following keys:
- BgpvpnId string
- The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- PortId string
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- AdvertiseFixed boolIps 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- ProjectId string
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- Region 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 regionargument of the provider is used. Changing this creates a new BGP VPN port association.
- Routes
[]PortAssociate V2Route Args 
- A list of dictionaries containing the following keys:
- bgpvpnId String
- The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- portId String
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- advertiseFixed BooleanIps 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- projectId String
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- region 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 regionargument of the provider is used. Changing this creates a new BGP VPN port association.
- routes
List<PortAssociate V2Route> 
- A list of dictionaries containing the following keys:
- bgpvpnId string
- The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- portId string
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- advertiseFixed booleanIps 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- projectId string
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- region 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 regionargument of the provider is used. Changing this creates a new BGP VPN port association.
- routes
PortAssociate V2Route[] 
- A list of dictionaries containing the following keys:
- bgpvpn_id 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 str
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- advertise_fixed_ boolips 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- project_id str
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- region 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 regionargument of the provider is used. Changing this creates a new BGP VPN port association.
- routes
Sequence[PortAssociate V2Route Args] 
- A list of dictionaries containing the following keys:
- bgpvpnId String
- The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- portId String
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- advertiseFixed BooleanIps 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- projectId String
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- region 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 regionargument 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 PortAssociateV2 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 PortAssociateV2 Resource
Get an existing PortAssociateV2 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?: PortAssociateV2State, opts?: CustomResourceOptions): PortAssociateV2@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[PortAssociateV2RouteArgs]] = None) -> PortAssociateV2func GetPortAssociateV2(ctx *Context, name string, id IDInput, state *PortAssociateV2State, opts ...ResourceOption) (*PortAssociateV2, error)public static PortAssociateV2 Get(string name, Input<string> id, PortAssociateV2State? state, CustomResourceOptions? opts = null)public static PortAssociateV2 get(String name, Output<String> id, PortAssociateV2State state, CustomResourceOptions options)resources:  _:    type: openstack:bgpvpn:PortAssociateV2    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.
- AdvertiseFixed boolIps 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- BgpvpnId string
- The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- PortId string
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- ProjectId string
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- Region 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 regionargument of the provider is used. Changing this creates a new BGP VPN port association.
- Routes
List<Pulumi.Open Stack. BGPVPN. Inputs. Port Associate V2Route> 
- A list of dictionaries containing the following keys:
- AdvertiseFixed boolIps 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- BgpvpnId string
- The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- PortId string
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- ProjectId string
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- Region 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 regionargument of the provider is used. Changing this creates a new BGP VPN port association.
- Routes
[]PortAssociate V2Route Args 
- A list of dictionaries containing the following keys:
- advertiseFixed BooleanIps 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- bgpvpnId String
- The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- portId String
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- projectId String
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- region 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 regionargument of the provider is used. Changing this creates a new BGP VPN port association.
- routes
List<PortAssociate V2Route> 
- A list of dictionaries containing the following keys:
- advertiseFixed booleanIps 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- bgpvpnId string
- The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- portId string
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- projectId string
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- region 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 regionargument of the provider is used. Changing this creates a new BGP VPN port association.
- routes
PortAssociate V2Route[] 
- A list of dictionaries containing the following keys:
- advertise_fixed_ boolips 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- bgpvpn_id 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 str
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- project_id str
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- region 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 regionargument of the provider is used. Changing this creates a new BGP VPN port association.
- routes
Sequence[PortAssociate V2Route Args] 
- A list of dictionaries containing the following keys:
- advertiseFixed BooleanIps 
- A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- bgpvpnId String
- The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- portId String
- The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- projectId String
- The ID of the project that owns the port
association. Only administrative and users with advsvcrole can specify a project ID other than their own. Changing this creates a new BGP VPN port association.
- region 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 regionargument 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
PortAssociateV2Route, PortAssociateV2RouteArgs      
- Type string
- Can be prefixorbgpvpn. For theprefixtype, the CIDR prefix (v4 or v6) must be specified in theprefixkey. For thebgpvpntype, the BGP VPN ID must be specified in thebgpvpn_idkey.
- BgpvpnId string
- The ID of the BGP VPN to be advertised. Required
if typeisbgpvpn. Conflicts withprefix.
- 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 typeisprefix. Conflicts withbgpvpn_id.
- Type string
- Can be prefixorbgpvpn. For theprefixtype, the CIDR prefix (v4 or v6) must be specified in theprefixkey. For thebgpvpntype, the BGP VPN ID must be specified in thebgpvpn_idkey.
- BgpvpnId string
- The ID of the BGP VPN to be advertised. Required
if typeisbgpvpn. Conflicts withprefix.
- 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 typeisprefix. Conflicts withbgpvpn_id.
- type String
- Can be prefixorbgpvpn. For theprefixtype, the CIDR prefix (v4 or v6) must be specified in theprefixkey. For thebgpvpntype, the BGP VPN ID must be specified in thebgpvpn_idkey.
- bgpvpnId String
- The ID of the BGP VPN to be advertised. Required
if typeisbgpvpn. Conflicts withprefix.
- 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 typeisprefix. Conflicts withbgpvpn_id.
- type string
- Can be prefixorbgpvpn. For theprefixtype, the CIDR prefix (v4 or v6) must be specified in theprefixkey. For thebgpvpntype, the BGP VPN ID must be specified in thebgpvpn_idkey.
- bgpvpnId string
- The ID of the BGP VPN to be advertised. Required
if typeisbgpvpn. Conflicts withprefix.
- 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 typeisprefix. Conflicts withbgpvpn_id.
- type str
- Can be prefixorbgpvpn. For theprefixtype, the CIDR prefix (v4 or v6) must be specified in theprefixkey. For thebgpvpntype, the BGP VPN ID must be specified in thebgpvpn_idkey.
- bgpvpn_id str
- The ID of the BGP VPN to be advertised. Required
if typeisbgpvpn. Conflicts withprefix.
- 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 typeisprefix. Conflicts withbgpvpn_id.
- type String
- Can be prefixorbgpvpn. For theprefixtype, the CIDR prefix (v4 or v6) must be specified in theprefixkey. For thebgpvpntype, the BGP VPN ID must be specified in thebgpvpn_idkey.
- bgpvpnId String
- The ID of the BGP VPN to be advertised. Required
if typeisbgpvpn. Conflicts withprefix.
- 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 typeisprefix. Conflicts withbgpvpn_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:bgpvpn/portAssociateV2:PortAssociateV2 association_1 5bb44ecf-f8fe-4d75-8fc5-313f96ee2696/8f8fc660-3f28-414e-896a-0c7c51162fcf
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 openstackTerraform Provider.
