openstack.bgpvpn.NetworkAssociateV2
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.bgpvpn.NetworkAssociateV2("association_1", {
bgpvpnId: "e7189337-5684-46ee-bcb1-44f1a57066c9",
networkId: "de83d56c-4d2f-44f7-ac24-af393252204f",
});
import pulumi
import pulumi_openstack as openstack
association1 = openstack.bgpvpn.NetworkAssociateV2("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/bgpvpn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bgpvpn.NewNetworkAssociateV2(ctx, "association_1", &bgpvpn.NetworkAssociateV2Args{
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.BGPVPN.NetworkAssociateV2("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.bgpvpn.NetworkAssociateV2;
import com.pulumi.openstack.bgpvpn.NetworkAssociateV2Args;
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 NetworkAssociateV2("association1", NetworkAssociateV2Args.builder()
.bgpvpnId("e7189337-5684-46ee-bcb1-44f1a57066c9")
.networkId("de83d56c-4d2f-44f7-ac24-af393252204f")
.build());
}
}
resources:
association1:
type: openstack:bgpvpn:NetworkAssociateV2
name: association_1
properties:
bgpvpnId: e7189337-5684-46ee-bcb1-44f1a57066c9
networkId: de83d56c-4d2f-44f7-ac24-af393252204f
Create NetworkAssociateV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkAssociateV2(name: string, args: NetworkAssociateV2Args, opts?: CustomResourceOptions);
@overload
def NetworkAssociateV2(resource_name: str,
args: NetworkAssociateV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkAssociateV2(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 NewNetworkAssociateV2(ctx *Context, name string, args NetworkAssociateV2Args, opts ...ResourceOption) (*NetworkAssociateV2, error)
public NetworkAssociateV2(string name, NetworkAssociateV2Args args, CustomResourceOptions? opts = null)
public NetworkAssociateV2(String name, NetworkAssociateV2Args args)
public NetworkAssociateV2(String name, NetworkAssociateV2Args args, CustomResourceOptions options)
type: openstack:bgpvpn:NetworkAssociateV2
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 NetworkAssociateV2Args
- 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 NetworkAssociateV2Args
- 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 NetworkAssociateV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkAssociateV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkAssociateV2Args
- 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 networkAssociateV2Resource = new OpenStack.BGPVPN.NetworkAssociateV2("networkAssociateV2Resource", new()
{
BgpvpnId = "string",
NetworkId = "string",
ProjectId = "string",
Region = "string",
});
example, err := bgpvpn.NewNetworkAssociateV2(ctx, "networkAssociateV2Resource", &bgpvpn.NetworkAssociateV2Args{
BgpvpnId: pulumi.String("string"),
NetworkId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
})
var networkAssociateV2Resource = new NetworkAssociateV2("networkAssociateV2Resource", NetworkAssociateV2Args.builder()
.bgpvpnId("string")
.networkId("string")
.projectId("string")
.region("string")
.build());
network_associate_v2_resource = openstack.bgpvpn.NetworkAssociateV2("networkAssociateV2Resource",
bgpvpn_id="string",
network_id="string",
project_id="string",
region="string")
const networkAssociateV2Resource = new openstack.bgpvpn.NetworkAssociateV2("networkAssociateV2Resource", {
bgpvpnId: "string",
networkId: "string",
projectId: "string",
region: "string",
});
type: openstack:bgpvpn:NetworkAssociateV2
properties:
bgpvpnId: string
networkId: string
projectId: string
region: string
NetworkAssociateV2 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 NetworkAssociateV2 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 NetworkAssociateV2 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 NetworkAssociateV2 Resource
Get an existing NetworkAssociateV2 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?: NetworkAssociateV2State, opts?: CustomResourceOptions): NetworkAssociateV2
@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) -> NetworkAssociateV2
func GetNetworkAssociateV2(ctx *Context, name string, id IDInput, state *NetworkAssociateV2State, opts ...ResourceOption) (*NetworkAssociateV2, error)
public static NetworkAssociateV2 Get(string name, Input<string> id, NetworkAssociateV2State? state, CustomResourceOptions? opts = null)
public static NetworkAssociateV2 get(String name, Output<String> id, NetworkAssociateV2State state, CustomResourceOptions options)
resources: _: type: openstack:bgpvpn:NetworkAssociateV2 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.
- 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:bgpvpn/networkAssociateV2:NetworkAssociateV2 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.