azure-native.network.VirtualHubBgpConnection
Explore with Pulumi AI
Virtual Appliance Site resource. API Version: 2020-11-01.
Example Usage
VirtualHubRouteTableV2Put
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var virtualHubBgpConnection = new AzureNative.Network.VirtualHubBgpConnection("virtualHubBgpConnection", new()
{
ConnectionName = "conn1",
PeerAsn = 20000,
PeerIp = "192.168.1.5",
ResourceGroupName = "rg1",
VirtualHubName = "hub1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewVirtualHubBgpConnection(ctx, "virtualHubBgpConnection", &network.VirtualHubBgpConnectionArgs{
ConnectionName: pulumi.String("conn1"),
PeerAsn: pulumi.Float64(20000),
PeerIp: pulumi.String("192.168.1.5"),
ResourceGroupName: pulumi.String("rg1"),
VirtualHubName: pulumi.String("hub1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.VirtualHubBgpConnection;
import com.pulumi.azurenative.network.VirtualHubBgpConnectionArgs;
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 virtualHubBgpConnection = new VirtualHubBgpConnection("virtualHubBgpConnection", VirtualHubBgpConnectionArgs.builder()
.connectionName("conn1")
.peerAsn(20000)
.peerIp("192.168.1.5")
.resourceGroupName("rg1")
.virtualHubName("hub1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
virtual_hub_bgp_connection = azure_native.network.VirtualHubBgpConnection("virtualHubBgpConnection",
connection_name="conn1",
peer_asn=20000,
peer_ip="192.168.1.5",
resource_group_name="rg1",
virtual_hub_name="hub1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const virtualHubBgpConnection = new azure_native.network.VirtualHubBgpConnection("virtualHubBgpConnection", {
connectionName: "conn1",
peerAsn: 20000,
peerIp: "192.168.1.5",
resourceGroupName: "rg1",
virtualHubName: "hub1",
});
resources:
virtualHubBgpConnection:
type: azure-native:network:VirtualHubBgpConnection
properties:
connectionName: conn1
peerAsn: 20000
peerIp: 192.168.1.5
resourceGroupName: rg1
virtualHubName: hub1
Create VirtualHubBgpConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualHubBgpConnection(name: string, args: VirtualHubBgpConnectionArgs, opts?: CustomResourceOptions);
@overload
def VirtualHubBgpConnection(resource_name: str,
args: VirtualHubBgpConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualHubBgpConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
virtual_hub_name: Optional[str] = None,
connection_name: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
peer_asn: Optional[float] = None,
peer_ip: Optional[str] = None)
func NewVirtualHubBgpConnection(ctx *Context, name string, args VirtualHubBgpConnectionArgs, opts ...ResourceOption) (*VirtualHubBgpConnection, error)
public VirtualHubBgpConnection(string name, VirtualHubBgpConnectionArgs args, CustomResourceOptions? opts = null)
public VirtualHubBgpConnection(String name, VirtualHubBgpConnectionArgs args)
public VirtualHubBgpConnection(String name, VirtualHubBgpConnectionArgs args, CustomResourceOptions options)
type: azure-native:network:VirtualHubBgpConnection
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 VirtualHubBgpConnectionArgs
- 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 VirtualHubBgpConnectionArgs
- 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 VirtualHubBgpConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualHubBgpConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualHubBgpConnectionArgs
- 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 virtualHubBgpConnectionResource = new AzureNative.Network.VirtualHubBgpConnection("virtualHubBgpConnectionResource", new()
{
ResourceGroupName = "string",
VirtualHubName = "string",
ConnectionName = "string",
Id = "string",
Name = "string",
PeerAsn = 0,
PeerIp = "string",
});
example, err := network.NewVirtualHubBgpConnection(ctx, "virtualHubBgpConnectionResource", &network.VirtualHubBgpConnectionArgs{
ResourceGroupName: "string",
VirtualHubName: "string",
ConnectionName: "string",
Id: "string",
Name: "string",
PeerAsn: 0,
PeerIp: "string",
})
var virtualHubBgpConnectionResource = new VirtualHubBgpConnection("virtualHubBgpConnectionResource", VirtualHubBgpConnectionArgs.builder()
.resourceGroupName("string")
.virtualHubName("string")
.connectionName("string")
.id("string")
.name("string")
.peerAsn(0)
.peerIp("string")
.build());
virtual_hub_bgp_connection_resource = azure_native.network.VirtualHubBgpConnection("virtualHubBgpConnectionResource",
resource_group_name=string,
virtual_hub_name=string,
connection_name=string,
id=string,
name=string,
peer_asn=0,
peer_ip=string)
const virtualHubBgpConnectionResource = new azure_native.network.VirtualHubBgpConnection("virtualHubBgpConnectionResource", {
resourceGroupName: "string",
virtualHubName: "string",
connectionName: "string",
id: "string",
name: "string",
peerAsn: 0,
peerIp: "string",
});
type: azure-native:network:VirtualHubBgpConnection
properties:
connectionName: string
id: string
name: string
peerAsn: 0
peerIp: string
resourceGroupName: string
virtualHubName: string
VirtualHubBgpConnection 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 VirtualHubBgpConnection resource accepts the following input properties:
- Resource
Group stringName - The resource group name of the VirtualHub.
- Virtual
Hub stringName - The name of the VirtualHub.
- Connection
Name string - The name of the connection.
- Id string
- Resource ID.
- Name string
- Name of the connection.
- Peer
Asn double - Peer ASN.
- Peer
Ip string - Peer IP.
- Resource
Group stringName - The resource group name of the VirtualHub.
- Virtual
Hub stringName - The name of the VirtualHub.
- Connection
Name string - The name of the connection.
- Id string
- Resource ID.
- Name string
- Name of the connection.
- Peer
Asn float64 - Peer ASN.
- Peer
Ip string - Peer IP.
- resource
Group StringName - The resource group name of the VirtualHub.
- virtual
Hub StringName - The name of the VirtualHub.
- connection
Name String - The name of the connection.
- id String
- Resource ID.
- name String
- Name of the connection.
- peer
Asn Double - Peer ASN.
- peer
Ip String - Peer IP.
- resource
Group stringName - The resource group name of the VirtualHub.
- virtual
Hub stringName - The name of the VirtualHub.
- connection
Name string - The name of the connection.
- id string
- Resource ID.
- name string
- Name of the connection.
- peer
Asn number - Peer ASN.
- peer
Ip string - Peer IP.
- resource_
group_ strname - The resource group name of the VirtualHub.
- virtual_
hub_ strname - The name of the VirtualHub.
- connection_
name str - The name of the connection.
- id str
- Resource ID.
- name str
- Name of the connection.
- peer_
asn float - Peer ASN.
- peer_
ip str - Peer IP.
- resource
Group StringName - The resource group name of the VirtualHub.
- virtual
Hub StringName - The name of the VirtualHub.
- connection
Name String - The name of the connection.
- id String
- Resource ID.
- name String
- Name of the connection.
- peer
Asn Number - Peer ASN.
- peer
Ip String - Peer IP.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualHubBgpConnection resource produces the following output properties:
- Connection
State string - The current state of the VirtualHub to Peer.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The provisioning state of the resource.
- Type string
- Connection type.
- Connection
State string - The current state of the VirtualHub to Peer.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The provisioning state of the resource.
- Type string
- Connection type.
- connection
State String - The current state of the VirtualHub to Peer.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The provisioning state of the resource.
- type String
- Connection type.
- connection
State string - The current state of the VirtualHub to Peer.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- provisioning
State string - The provisioning state of the resource.
- type string
- Connection type.
- connection_
state str - The current state of the VirtualHub to Peer.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- provisioning_
state str - The provisioning state of the resource.
- type str
- Connection type.
- connection
State String - The current state of the VirtualHub to Peer.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The provisioning state of the resource.
- type String
- Connection type.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:VirtualHubBgpConnection conn1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/bgpConnections/conn1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0