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",
},
],
});
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",
},
])
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
})
}
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",
},
},
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args BgpvpnPortAssociateV2Args
- 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 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 string
- The unique name of the resource.
- args BgpvpnPortAssociateV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BgpvpnPortAssociateV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
},
});
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"),
},
},
})
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());
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",
}])
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",
}],
});
type: openstack:BgpvpnPortAssociateV2
properties:
advertiseFixedIps: false
bgpvpnId: string
portId: string
projectId: string
region: string
routes:
- bgpvpnId: string
localPref: 0
prefix: string
type: string
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:
- Bgpvpn
Id string - The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- Port
Id string - 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 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 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.
Open Stack. Inputs. Bgpvpn Port Associate V2Route> - A list of dictionaries containing the following keys:
- Bgpvpn
Id string - The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- Port
Id string - 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 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 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
[]Bgpvpn
Port Associate V2Route Args - A list of dictionaries containing the following keys:
- bgpvpn
Id String - The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- port
Id String - The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- advertise
Fixed BooleanIps - A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- project
Id 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 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<Bgpvpn
Port Associate V2Route> - A list of dictionaries containing the following keys:
- bgpvpn
Id string - The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- port
Id string - The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- advertise
Fixed booleanIps - A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- project
Id 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 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
Bgpvpn
Port Associate 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
advsvc
role 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
region
argument of the provider is used. Changing this creates a new BGP VPN port association. - routes
Sequence[Bgpvpn
Port Associate V2Route Args] - A list of dictionaries containing the following keys:
- bgpvpn
Id String - The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- port
Id String - The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- advertise
Fixed BooleanIps - A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- project
Id 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 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)
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.
- Advertise
Fixed boolIps - A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- Bgpvpn
Id string - The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- Port
Id string - The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- Project
Id 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 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.
Open Stack. Inputs. Bgpvpn Port Associate 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 string - The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- Port
Id string - The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- Project
Id 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 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
[]Bgpvpn
Port Associate V2Route Args - A list of dictionaries containing the following keys:
- advertise
Fixed BooleanIps - A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- bgpvpn
Id String - The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- port
Id String - The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- project
Id 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 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<Bgpvpn
Port Associate V2Route> - A list of dictionaries containing the following keys:
- advertise
Fixed booleanIps - A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- bgpvpn
Id string - The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- port
Id string - The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- project
Id 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 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
Bgpvpn
Port Associate 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
advsvc
role 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
region
argument of the provider is used. Changing this creates a new BGP VPN port association. - routes
Sequence[Bgpvpn
Port Associate V2Route Args] - A list of dictionaries containing the following keys:
- advertise
Fixed BooleanIps - A boolean flag indicating whether fixed IPs should be advertised. Defaults to true.
- bgpvpn
Id String - The ID of the BGP VPN to which the port will be associated. Changing this creates a new BGP VPN port association.
- port
Id String - The ID of the port to be associated with the BGP VPN. Changing this creates a new BGP VPN port association.
- project
Id 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 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 string
- Can be
prefix
orbgpvpn
. For theprefix
type, the CIDR prefix (v4 or v6) must be specified in theprefix
key. For thebgpvpn
type, the BGP VPN ID must be specified in thebgpvpn_id
key. - Bgpvpn
Id string - The ID of the BGP VPN to be advertised. Required
if
type
isbgpvpn
. Conflicts withprefix
. - Local
Pref 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
isprefix
. Conflicts withbgpvpn_id
.
- Type string
- Can be
prefix
orbgpvpn
. For theprefix
type, the CIDR prefix (v4 or v6) must be specified in theprefix
key. For thebgpvpn
type, the BGP VPN ID must be specified in thebgpvpn_id
key. - Bgpvpn
Id string - The ID of the BGP VPN to be advertised. Required
if
type
isbgpvpn
. Conflicts withprefix
. - Local
Pref 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
isprefix
. Conflicts withbgpvpn_id
.
- type String
- Can be
prefix
orbgpvpn
. For theprefix
type, the CIDR prefix (v4 or v6) must be specified in theprefix
key. For thebgpvpn
type, the BGP VPN ID must be specified in thebgpvpn_id
key. - bgpvpn
Id String - The ID of the BGP VPN to be advertised. Required
if
type
isbgpvpn
. Conflicts withprefix
. - local
Pref 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
isprefix
. Conflicts withbgpvpn_id
.
- type string
- Can be
prefix
orbgpvpn
. For theprefix
type, the CIDR prefix (v4 or v6) must be specified in theprefix
key. For thebgpvpn
type, the BGP VPN ID must be specified in thebgpvpn_id
key. - bgpvpn
Id string - The ID of the BGP VPN to be advertised. Required
if
type
isbgpvpn
. Conflicts withprefix
. - local
Pref 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
isprefix
. Conflicts withbgpvpn_id
.
- type str
- Can be
prefix
orbgpvpn
. For theprefix
type, the CIDR prefix (v4 or v6) must be specified in theprefix
key. For thebgpvpn
type, the BGP VPN ID must be specified in thebgpvpn_id
key. - bgpvpn_
id str - The ID of the BGP VPN to be advertised. Required
if
type
isbgpvpn
. 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
type
isprefix
. Conflicts withbgpvpn_id
.
- type String
- Can be
prefix
orbgpvpn
. For theprefix
type, the CIDR prefix (v4 or v6) must be specified in theprefix
key. For thebgpvpn
type, the BGP VPN ID must be specified in thebgpvpn_id
key. - bgpvpn
Id String - The ID of the BGP VPN to be advertised. Required
if
type
isbgpvpn
. Conflicts withprefix
. - local
Pref 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
isprefix
. 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:index/bgpvpnPortAssociateV2:BgpvpnPortAssociateV2 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
openstack
Terraform Provider.