openstack.BgpvpnNetworkAssociateV2
Explore with Pulumi AI
Manages a V2 BGP VPN network association resource within OpenStack.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const association1 = new openstack.BgpvpnNetworkAssociateV2("association_1", {
bgpvpnId: "e7189337-5684-46ee-bcb1-44f1a57066c9",
networkId: "de83d56c-4d2f-44f7-ac24-af393252204f",
});
import pulumi
import pulumi_openstack as openstack
association1 = openstack.BgpvpnNetworkAssociateV2("association_1",
bgpvpn_id="e7189337-5684-46ee-bcb1-44f1a57066c9",
network_id="de83d56c-4d2f-44f7-ac24-af393252204f")
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.NewBgpvpnNetworkAssociateV2(ctx, "association_1", &openstack.BgpvpnNetworkAssociateV2Args{
BgpvpnId: pulumi.String("e7189337-5684-46ee-bcb1-44f1a57066c9"),
NetworkId: pulumi.String("de83d56c-4d2f-44f7-ac24-af393252204f"),
})
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.BgpvpnNetworkAssociateV2("association_1", new()
{
BgpvpnId = "e7189337-5684-46ee-bcb1-44f1a57066c9",
NetworkId = "de83d56c-4d2f-44f7-ac24-af393252204f",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.BgpvpnNetworkAssociateV2;
import com.pulumi.openstack.BgpvpnNetworkAssociateV2Args;
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 BgpvpnNetworkAssociateV2("association1", BgpvpnNetworkAssociateV2Args.builder()
.bgpvpnId("e7189337-5684-46ee-bcb1-44f1a57066c9")
.networkId("de83d56c-4d2f-44f7-ac24-af393252204f")
.build());
}
}
resources:
association1:
type: openstack:BgpvpnNetworkAssociateV2
name: association_1
properties:
bgpvpnId: e7189337-5684-46ee-bcb1-44f1a57066c9
networkId: de83d56c-4d2f-44f7-ac24-af393252204f
Create BgpvpnNetworkAssociateV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BgpvpnNetworkAssociateV2(name: string, args: BgpvpnNetworkAssociateV2Args, opts?: CustomResourceOptions);
@overload
def BgpvpnNetworkAssociateV2(resource_name: str,
args: BgpvpnNetworkAssociateV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def BgpvpnNetworkAssociateV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
bgpvpn_id: Optional[str] = None,
network_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None)
func NewBgpvpnNetworkAssociateV2(ctx *Context, name string, args BgpvpnNetworkAssociateV2Args, opts ...ResourceOption) (*BgpvpnNetworkAssociateV2, error)
public BgpvpnNetworkAssociateV2(string name, BgpvpnNetworkAssociateV2Args args, CustomResourceOptions? opts = null)
public BgpvpnNetworkAssociateV2(String name, BgpvpnNetworkAssociateV2Args args)
public BgpvpnNetworkAssociateV2(String name, BgpvpnNetworkAssociateV2Args args, CustomResourceOptions options)
type: openstack:BgpvpnNetworkAssociateV2
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 BgpvpnNetworkAssociateV2Args
- 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 BgpvpnNetworkAssociateV2Args
- 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 BgpvpnNetworkAssociateV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BgpvpnNetworkAssociateV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BgpvpnNetworkAssociateV2Args
- 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 bgpvpnNetworkAssociateV2Resource = new OpenStack.BgpvpnNetworkAssociateV2("bgpvpnNetworkAssociateV2Resource", new()
{
BgpvpnId = "string",
NetworkId = "string",
ProjectId = "string",
Region = "string",
});
example, err := openstack.NewBgpvpnNetworkAssociateV2(ctx, "bgpvpnNetworkAssociateV2Resource", &openstack.BgpvpnNetworkAssociateV2Args{
BgpvpnId: pulumi.String("string"),
NetworkId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
})
var bgpvpnNetworkAssociateV2Resource = new BgpvpnNetworkAssociateV2("bgpvpnNetworkAssociateV2Resource", BgpvpnNetworkAssociateV2Args.builder()
.bgpvpnId("string")
.networkId("string")
.projectId("string")
.region("string")
.build());
bgpvpn_network_associate_v2_resource = openstack.BgpvpnNetworkAssociateV2("bgpvpnNetworkAssociateV2Resource",
bgpvpn_id="string",
network_id="string",
project_id="string",
region="string")
const bgpvpnNetworkAssociateV2Resource = new openstack.BgpvpnNetworkAssociateV2("bgpvpnNetworkAssociateV2Resource", {
bgpvpnId: "string",
networkId: "string",
projectId: "string",
region: "string",
});
type: openstack:BgpvpnNetworkAssociateV2
properties:
bgpvpnId: string
networkId: string
projectId: string
region: string
BgpvpnNetworkAssociateV2 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 BgpvpnNetworkAssociateV2 resource accepts the following input properties:
- Bgpvpn
Id string - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- Network
Id string - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- Project
Id string - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
- Bgpvpn
Id string - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- Network
Id string - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- Project
Id string - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
- bgpvpn
Id String - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- network
Id String - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- project
Id String - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
- bgpvpn
Id string - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- network
Id string - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- project
Id string - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
- bgpvpn_
id str - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- network_
id str - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- project_
id str - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - region str
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
- bgpvpn
Id String - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- network
Id String - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- project
Id String - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
Outputs
All input properties are implicitly available as output properties. Additionally, the BgpvpnNetworkAssociateV2 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 BgpvpnNetworkAssociateV2 Resource
Get an existing BgpvpnNetworkAssociateV2 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?: BgpvpnNetworkAssociateV2State, opts?: CustomResourceOptions): BgpvpnNetworkAssociateV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bgpvpn_id: Optional[str] = None,
network_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None) -> BgpvpnNetworkAssociateV2
func GetBgpvpnNetworkAssociateV2(ctx *Context, name string, id IDInput, state *BgpvpnNetworkAssociateV2State, opts ...ResourceOption) (*BgpvpnNetworkAssociateV2, error)
public static BgpvpnNetworkAssociateV2 Get(string name, Input<string> id, BgpvpnNetworkAssociateV2State? state, CustomResourceOptions? opts = null)
public static BgpvpnNetworkAssociateV2 get(String name, Output<String> id, BgpvpnNetworkAssociateV2State 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.
- Bgpvpn
Id string - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- Network
Id string - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- Project
Id string - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
- Bgpvpn
Id string - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- Network
Id string - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- Project
Id string - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
- bgpvpn
Id String - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- network
Id String - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- project
Id String - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
- bgpvpn
Id string - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- network
Id string - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- project
Id string - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
- bgpvpn_
id str - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- network_
id str - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- project_
id str - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - region str
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
- bgpvpn
Id String - The ID of the BGP VPN to which the network will be associated. Changing this creates a new BGP VPN network association
- network
Id String - The ID of the network to be associated with the BGP VPN. Changing this creates a new BGP VPN network association.
- project
Id String - The ID of the project that owns the BGP VPN network
association. Only administrative and users with
advsvc
role can specify a project ID other than their own. Changing this creates a new BGP VPN network association. - region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a BGP VPN network association. If
omitted, the
region
argument of the provider is used. Changing this creates a new BGP VPN network association.
Import
BGP VPN network associations can be imported using the BGP VPN ID and BGP VPN
network association ID separated by a slash, e.g.:
hcl
$ pulumi import openstack:index/bgpvpnNetworkAssociateV2:BgpvpnNetworkAssociateV2 association_1 2145aaa9-edaa-44fb-9815-e47a96677a72/67bb952a-f9d1-4fc8-ae84-082253a879d4
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.