1. Packages
  2. Openstack Provider
  3. API Docs
  4. BgpvpnV2
OpenStack v4.1.3 published on Wednesday, Aug 21, 2024 by Pulumi

openstack.BgpvpnV2

Explore with Pulumi AI

openstack logo
OpenStack v4.1.3 published on Wednesday, Aug 21, 2024 by Pulumi

    Manages a V2 BGP VPN service resource within OpenStack.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const bgpvpn1 = new openstack.BgpvpnV2("bgpvpn_1", {
        name: "bgpvpn1",
        routeDistinguishers: ["64512:1"],
        routeTargets: ["64512:1"],
        importTargets: ["64512:2"],
        exportTargets: ["64512:3"],
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    bgpvpn1 = openstack.BgpvpnV2("bgpvpn_1",
        name="bgpvpn1",
        route_distinguishers=["64512:1"],
        route_targets=["64512:1"],
        import_targets=["64512:2"],
        export_targets=["64512:3"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := openstack.NewBgpvpnV2(ctx, "bgpvpn_1", &openstack.BgpvpnV2Args{
    			Name: pulumi.String("bgpvpn1"),
    			RouteDistinguishers: pulumi.StringArray{
    				pulumi.String("64512:1"),
    			},
    			RouteTargets: pulumi.StringArray{
    				pulumi.String("64512:1"),
    			},
    			ImportTargets: pulumi.StringArray{
    				pulumi.String("64512:2"),
    			},
    			ExportTargets: pulumi.StringArray{
    				pulumi.String("64512:3"),
    			},
    		})
    		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 bgpvpn1 = new OpenStack.BgpvpnV2("bgpvpn_1", new()
        {
            Name = "bgpvpn1",
            RouteDistinguishers = new[]
            {
                "64512:1",
            },
            RouteTargets = new[]
            {
                "64512:1",
            },
            ImportTargets = new[]
            {
                "64512:2",
            },
            ExportTargets = new[]
            {
                "64512:3",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.BgpvpnV2;
    import com.pulumi.openstack.BgpvpnV2Args;
    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 bgpvpn1 = new BgpvpnV2("bgpvpn1", BgpvpnV2Args.builder()
                .name("bgpvpn1")
                .routeDistinguishers("64512:1")
                .routeTargets("64512:1")
                .importTargets("64512:2")
                .exportTargets("64512:3")
                .build());
    
        }
    }
    
    resources:
      bgpvpn1:
        type: openstack:BgpvpnV2
        name: bgpvpn_1
        properties:
          name: bgpvpn1
          routeDistinguishers:
            - 64512:1
          routeTargets:
            - 64512:1
          importTargets:
            - 64512:2
          exportTargets:
            - 64512:3
    

    Create BgpvpnV2 Resource

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

    Constructor syntax

    new BgpvpnV2(name: string, args?: BgpvpnV2Args, opts?: CustomResourceOptions);
    @overload
    def BgpvpnV2(resource_name: str,
                 args: Optional[BgpvpnV2Args] = None,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def BgpvpnV2(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 export_targets: Optional[Sequence[str]] = None,
                 import_targets: Optional[Sequence[str]] = None,
                 local_pref: Optional[int] = None,
                 name: Optional[str] = None,
                 project_id: Optional[str] = None,
                 region: Optional[str] = None,
                 route_distinguishers: Optional[Sequence[str]] = None,
                 route_targets: Optional[Sequence[str]] = None,
                 type: Optional[str] = None,
                 vni: Optional[int] = None)
    func NewBgpvpnV2(ctx *Context, name string, args *BgpvpnV2Args, opts ...ResourceOption) (*BgpvpnV2, error)
    public BgpvpnV2(string name, BgpvpnV2Args? args = null, CustomResourceOptions? opts = null)
    public BgpvpnV2(String name, BgpvpnV2Args args)
    public BgpvpnV2(String name, BgpvpnV2Args args, CustomResourceOptions options)
    
    type: openstack:BgpvpnV2
    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 BgpvpnV2Args
    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 BgpvpnV2Args
    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 BgpvpnV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BgpvpnV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BgpvpnV2Args
    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 bgpvpnV2Resource = new OpenStack.BgpvpnV2("bgpvpnV2Resource", new()
    {
        ExportTargets = new[]
        {
            "string",
        },
        ImportTargets = new[]
        {
            "string",
        },
        LocalPref = 0,
        Name = "string",
        ProjectId = "string",
        Region = "string",
        RouteDistinguishers = new[]
        {
            "string",
        },
        RouteTargets = new[]
        {
            "string",
        },
        Type = "string",
        Vni = 0,
    });
    
    example, err := openstack.NewBgpvpnV2(ctx, "bgpvpnV2Resource", &openstack.BgpvpnV2Args{
    	ExportTargets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ImportTargets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LocalPref: pulumi.Int(0),
    	Name:      pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    	Region:    pulumi.String("string"),
    	RouteDistinguishers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RouteTargets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Type: pulumi.String("string"),
    	Vni:  pulumi.Int(0),
    })
    
    var bgpvpnV2Resource = new BgpvpnV2("bgpvpnV2Resource", BgpvpnV2Args.builder()
        .exportTargets("string")
        .importTargets("string")
        .localPref(0)
        .name("string")
        .projectId("string")
        .region("string")
        .routeDistinguishers("string")
        .routeTargets("string")
        .type("string")
        .vni(0)
        .build());
    
    bgpvpn_v2_resource = openstack.BgpvpnV2("bgpvpnV2Resource",
        export_targets=["string"],
        import_targets=["string"],
        local_pref=0,
        name="string",
        project_id="string",
        region="string",
        route_distinguishers=["string"],
        route_targets=["string"],
        type="string",
        vni=0)
    
    const bgpvpnV2Resource = new openstack.BgpvpnV2("bgpvpnV2Resource", {
        exportTargets: ["string"],
        importTargets: ["string"],
        localPref: 0,
        name: "string",
        projectId: "string",
        region: "string",
        routeDistinguishers: ["string"],
        routeTargets: ["string"],
        type: "string",
        vni: 0,
    });
    
    type: openstack:BgpvpnV2
    properties:
        exportTargets:
            - string
        importTargets:
            - string
        localPref: 0
        name: string
        projectId: string
        region: string
        routeDistinguishers:
            - string
        routeTargets:
            - string
        type: string
        vni: 0
    

    BgpvpnV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The BgpvpnV2 resource accepts the following input properties:

    ExportTargets List<string>
    A list of additional Route Targets that will be used for export.
    ImportTargets List<string>
    A list of additional Route Targets that will be imported.
    LocalPref int
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    Name string
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    ProjectId string
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    RouteDistinguishers List<string>
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    RouteTargets List<string>
    A list of Route Targets that will be both imported and used for export.
    Type string
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    Vni int
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.
    ExportTargets []string
    A list of additional Route Targets that will be used for export.
    ImportTargets []string
    A list of additional Route Targets that will be imported.
    LocalPref int
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    Name string
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    ProjectId string
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    RouteDistinguishers []string
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    RouteTargets []string
    A list of Route Targets that will be both imported and used for export.
    Type string
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    Vni int
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.
    exportTargets List<String>
    A list of additional Route Targets that will be used for export.
    importTargets List<String>
    A list of additional Route Targets that will be imported.
    localPref Integer
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    name String
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    projectId String
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    routeDistinguishers List<String>
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    routeTargets List<String>
    A list of Route Targets that will be both imported and used for export.
    type String
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    vni Integer
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.
    exportTargets string[]
    A list of additional Route Targets that will be used for export.
    importTargets string[]
    A list of additional Route Targets that will be imported.
    localPref number
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    name string
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    projectId string
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    routeDistinguishers string[]
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    routeTargets string[]
    A list of Route Targets that will be both imported and used for export.
    type string
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    vni number
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.
    export_targets Sequence[str]
    A list of additional Route Targets that will be used for export.
    import_targets Sequence[str]
    A list of additional Route Targets that will be imported.
    local_pref int
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    name str
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    project_id str
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    route_distinguishers Sequence[str]
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    route_targets Sequence[str]
    A list of Route Targets that will be both imported and used for export.
    type str
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    vni int
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.
    exportTargets List<String>
    A list of additional Route Targets that will be used for export.
    importTargets List<String>
    A list of additional Route Targets that will be imported.
    localPref Number
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    name String
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    projectId String
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    routeDistinguishers List<String>
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    routeTargets List<String>
    A list of Route Targets that will be both imported and used for export.
    type String
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    vni Number
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Networks List<string>
    A list of network IDs that are associated with the BGP VPN.
    Ports List<string>
    A list of port IDs that are associated with the BGP VPN.
    Routers List<string>
    A list of router IDs that are associated with the BGP VPN.
    Shared bool
    Indicates whether the BGP VPN is shared across projects.
    Id string
    The provider-assigned unique ID for this managed resource.
    Networks []string
    A list of network IDs that are associated with the BGP VPN.
    Ports []string
    A list of port IDs that are associated with the BGP VPN.
    Routers []string
    A list of router IDs that are associated with the BGP VPN.
    Shared bool
    Indicates whether the BGP VPN is shared across projects.
    id String
    The provider-assigned unique ID for this managed resource.
    networks List<String>
    A list of network IDs that are associated with the BGP VPN.
    ports List<String>
    A list of port IDs that are associated with the BGP VPN.
    routers List<String>
    A list of router IDs that are associated with the BGP VPN.
    shared Boolean
    Indicates whether the BGP VPN is shared across projects.
    id string
    The provider-assigned unique ID for this managed resource.
    networks string[]
    A list of network IDs that are associated with the BGP VPN.
    ports string[]
    A list of port IDs that are associated with the BGP VPN.
    routers string[]
    A list of router IDs that are associated with the BGP VPN.
    shared boolean
    Indicates whether the BGP VPN is shared across projects.
    id str
    The provider-assigned unique ID for this managed resource.
    networks Sequence[str]
    A list of network IDs that are associated with the BGP VPN.
    ports Sequence[str]
    A list of port IDs that are associated with the BGP VPN.
    routers Sequence[str]
    A list of router IDs that are associated with the BGP VPN.
    shared bool
    Indicates whether the BGP VPN is shared across projects.
    id String
    The provider-assigned unique ID for this managed resource.
    networks List<String>
    A list of network IDs that are associated with the BGP VPN.
    ports List<String>
    A list of port IDs that are associated with the BGP VPN.
    routers List<String>
    A list of router IDs that are associated with the BGP VPN.
    shared Boolean
    Indicates whether the BGP VPN is shared across projects.

    Look up Existing BgpvpnV2 Resource

    Get an existing BgpvpnV2 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?: BgpvpnV2State, opts?: CustomResourceOptions): BgpvpnV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            export_targets: Optional[Sequence[str]] = None,
            import_targets: Optional[Sequence[str]] = None,
            local_pref: Optional[int] = None,
            name: Optional[str] = None,
            networks: Optional[Sequence[str]] = None,
            ports: Optional[Sequence[str]] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            route_distinguishers: Optional[Sequence[str]] = None,
            route_targets: Optional[Sequence[str]] = None,
            routers: Optional[Sequence[str]] = None,
            shared: Optional[bool] = None,
            type: Optional[str] = None,
            vni: Optional[int] = None) -> BgpvpnV2
    func GetBgpvpnV2(ctx *Context, name string, id IDInput, state *BgpvpnV2State, opts ...ResourceOption) (*BgpvpnV2, error)
    public static BgpvpnV2 Get(string name, Input<string> id, BgpvpnV2State? state, CustomResourceOptions? opts = null)
    public static BgpvpnV2 get(String name, Output<String> id, BgpvpnV2State 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.
    The following state arguments are supported:
    ExportTargets List<string>
    A list of additional Route Targets that will be used for export.
    ImportTargets List<string>
    A list of additional Route Targets that will be imported.
    LocalPref int
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    Name string
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    Networks List<string>
    A list of network IDs that are associated with the BGP VPN.
    Ports List<string>
    A list of port IDs that are associated with the BGP VPN.
    ProjectId string
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    RouteDistinguishers List<string>
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    RouteTargets List<string>
    A list of Route Targets that will be both imported and used for export.
    Routers List<string>
    A list of router IDs that are associated with the BGP VPN.
    Shared bool
    Indicates whether the BGP VPN is shared across projects.
    Type string
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    Vni int
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.
    ExportTargets []string
    A list of additional Route Targets that will be used for export.
    ImportTargets []string
    A list of additional Route Targets that will be imported.
    LocalPref int
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    Name string
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    Networks []string
    A list of network IDs that are associated with the BGP VPN.
    Ports []string
    A list of port IDs that are associated with the BGP VPN.
    ProjectId string
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    RouteDistinguishers []string
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    RouteTargets []string
    A list of Route Targets that will be both imported and used for export.
    Routers []string
    A list of router IDs that are associated with the BGP VPN.
    Shared bool
    Indicates whether the BGP VPN is shared across projects.
    Type string
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    Vni int
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.
    exportTargets List<String>
    A list of additional Route Targets that will be used for export.
    importTargets List<String>
    A list of additional Route Targets that will be imported.
    localPref Integer
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    name String
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    networks List<String>
    A list of network IDs that are associated with the BGP VPN.
    ports List<String>
    A list of port IDs that are associated with the BGP VPN.
    projectId String
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    routeDistinguishers List<String>
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    routeTargets List<String>
    A list of Route Targets that will be both imported and used for export.
    routers List<String>
    A list of router IDs that are associated with the BGP VPN.
    shared Boolean
    Indicates whether the BGP VPN is shared across projects.
    type String
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    vni Integer
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.
    exportTargets string[]
    A list of additional Route Targets that will be used for export.
    importTargets string[]
    A list of additional Route Targets that will be imported.
    localPref number
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    name string
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    networks string[]
    A list of network IDs that are associated with the BGP VPN.
    ports string[]
    A list of port IDs that are associated with the BGP VPN.
    projectId string
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    routeDistinguishers string[]
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    routeTargets string[]
    A list of Route Targets that will be both imported and used for export.
    routers string[]
    A list of router IDs that are associated with the BGP VPN.
    shared boolean
    Indicates whether the BGP VPN is shared across projects.
    type string
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    vni number
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.
    export_targets Sequence[str]
    A list of additional Route Targets that will be used for export.
    import_targets Sequence[str]
    A list of additional Route Targets that will be imported.
    local_pref int
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    name str
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    networks Sequence[str]
    A list of network IDs that are associated with the BGP VPN.
    ports Sequence[str]
    A list of port IDs that are associated with the BGP VPN.
    project_id str
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    route_distinguishers Sequence[str]
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    route_targets Sequence[str]
    A list of Route Targets that will be both imported and used for export.
    routers Sequence[str]
    A list of router IDs that are associated with the BGP VPN.
    shared bool
    Indicates whether the BGP VPN is shared across projects.
    type str
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    vni int
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.
    exportTargets List<String>
    A list of additional Route Targets that will be used for export.
    importTargets List<String>
    A list of additional Route Targets that will be imported.
    localPref Number
    The default BGP LOCAL_PREF of routes that will be advertised to the BGP VPN, unless overridden per-route.
    name String
    The name of the BGP VPN. Changing this updates the name of the existing BGP VPN.
    networks List<String>
    A list of network IDs that are associated with the BGP VPN.
    ports List<String>
    A list of port IDs that are associated with the BGP VPN.
    projectId String
    The ID of the project that owns the BGPVPN. Only administrative and users with advsvc role can specify a project ID other than their own. Changing this creates a new BGP VPN.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a BGP VPN service. If omitted, the region argument of the provider is used. Changing this creates a new BGP VPN.
    routeDistinguishers List<String>
    A list of route distinguisher strings. If specified, one of these RDs will be used to advertise VPN routes.
    routeTargets List<String>
    A list of Route Targets that will be both imported and used for export.
    routers List<String>
    A list of router IDs that are associated with the BGP VPN.
    shared Boolean
    Indicates whether the BGP VPN is shared across projects.
    type String
    The type of the BGP VPN (either l2 or l3). Changing this creates a new BGP VPN. Defaults to l3.
    vni Number
    The globally-assigned VXLAN VNI for the BGP VPN. Changing this creates a new BGP VPN.

    Import

    BGP VPNs can be imported using the id, e.g.

    hcl

    $ pulumi import openstack:index/bgpvpnV2:BgpvpnV2 bgpvpn_1 1eec2c66-6be2-4305-af3f-354c9b81f18c
    

    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.
    openstack logo
    OpenStack v4.1.3 published on Wednesday, Aug 21, 2024 by Pulumi