LocalNetworkGateway
Manages a local network gateway connection over which specific connections can be configured.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = new Azure.Core.ResourceGroup("example", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var home = new Azure.Network.LocalNetworkGateway("home", new Azure.Network.LocalNetworkGatewayArgs
{
ResourceGroupName = example.Name,
Location = example.Location,
GatewayAddress = "12.13.14.15",
AddressSpaces =
{
"10.0.0.0/16",
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/network"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Location: pulumi.String("West US"),
})
if err != nil {
return err
}
_, err = network.NewLocalNetworkGateway(ctx, "home", &network.LocalNetworkGatewayArgs{
ResourceGroupName: example.Name,
Location: example.Location,
GatewayAddress: pulumi.String("12.13.14.15"),
AddressSpaces: pulumi.StringArray{
pulumi.String("10.0.0.0/16"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example", location="West US")
home = azure.network.LocalNetworkGateway("home",
resource_group_name=example.name,
location=example.location,
gateway_address="12.13.14.15",
address_spaces=["10.0.0.0/16"])import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {location: "West US"});
const home = new azure.network.LocalNetworkGateway("home", {
resourceGroupName: example.name,
location: example.location,
gatewayAddress: "12.13.14.15",
addressSpaces: ["10.0.0.0/16"],
});Create a LocalNetworkGateway Resource
new LocalNetworkGateway(name: string, args: LocalNetworkGatewayArgs, opts?: CustomResourceOptions);def LocalNetworkGateway(resource_name, opts=None, address_spaces=None, bgp_settings=None, gateway_address=None, location=None, name=None, resource_group_name=None, tags=None, __props__=None);func NewLocalNetworkGateway(ctx *Context, name string, args LocalNetworkGatewayArgs, opts ...ResourceOption) (*LocalNetworkGateway, error)public LocalNetworkGateway(string name, LocalNetworkGatewayArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args LocalNetworkGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LocalNetworkGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LocalNetworkGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
LocalNetworkGateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The LocalNetworkGateway resource accepts the following input properties:
- Address
Spaces List<string> The list of string CIDRs representing the address spaces the gateway exposes.
- Gateway
Address string The IP address of the gateway to which to connect.
- Resource
Group stringName The name of the resource group in which to create the local network gateway.
- Bgp
Settings LocalNetwork Gateway Bgp Settings Args A
bgp_settingsblock as defined below containing the Local Network Gateway’s BGP speaker settings.- Location string
The location/region where the local network gateway is created. Changing this forces a new resource to be created.
- Name string
The name of the local network gateway. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Address
Spaces []string The list of string CIDRs representing the address spaces the gateway exposes.
- Gateway
Address string The IP address of the gateway to which to connect.
- Resource
Group stringName The name of the resource group in which to create the local network gateway.
- Bgp
Settings LocalNetwork Gateway Bgp Settings A
bgp_settingsblock as defined below containing the Local Network Gateway’s BGP speaker settings.- Location string
The location/region where the local network gateway is created. Changing this forces a new resource to be created.
- Name string
The name of the local network gateway. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- address
Spaces string[] The list of string CIDRs representing the address spaces the gateway exposes.
- gateway
Address string The IP address of the gateway to which to connect.
- resource
Group stringName The name of the resource group in which to create the local network gateway.
- bgp
Settings LocalNetwork Gateway Bgp Settings A
bgp_settingsblock as defined below containing the Local Network Gateway’s BGP speaker settings.- location string
The location/region where the local network gateway is created. Changing this forces a new resource to be created.
- name string
The name of the local network gateway. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- address_
spaces List[str] The list of string CIDRs representing the address spaces the gateway exposes.
- gateway_
address str The IP address of the gateway to which to connect.
- resource_
group_ strname The name of the resource group in which to create the local network gateway.
- bgp_
settings Dict[LocalNetwork Gateway Bgp Settings] A
bgp_settingsblock as defined below containing the Local Network Gateway’s BGP speaker settings.- location str
The location/region where the local network gateway is created. Changing this forces a new resource to be created.
- name str
The name of the local network gateway. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the LocalNetworkGateway resource produces the following output properties:
Look up an Existing LocalNetworkGateway Resource
Get an existing LocalNetworkGateway 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?: LocalNetworkGatewayState, opts?: CustomResourceOptions): LocalNetworkGatewaystatic get(resource_name, id, opts=None, address_spaces=None, bgp_settings=None, gateway_address=None, location=None, name=None, resource_group_name=None, tags=None, __props__=None);func GetLocalNetworkGateway(ctx *Context, name string, id IDInput, state *LocalNetworkGatewayState, opts ...ResourceOption) (*LocalNetworkGateway, error)public static LocalNetworkGateway Get(string name, Input<string> id, LocalNetworkGatewayState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Address
Spaces List<string> The list of string CIDRs representing the address spaces the gateway exposes.
- Bgp
Settings LocalNetwork Gateway Bgp Settings Args A
bgp_settingsblock as defined below containing the Local Network Gateway’s BGP speaker settings.- Gateway
Address string The IP address of the gateway to which to connect.
- Location string
The location/region where the local network gateway is created. Changing this forces a new resource to be created.
- Name string
The name of the local network gateway. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the local network gateway.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Address
Spaces []string The list of string CIDRs representing the address spaces the gateway exposes.
- Bgp
Settings LocalNetwork Gateway Bgp Settings A
bgp_settingsblock as defined below containing the Local Network Gateway’s BGP speaker settings.- Gateway
Address string The IP address of the gateway to which to connect.
- Location string
The location/region where the local network gateway is created. Changing this forces a new resource to be created.
- Name string
The name of the local network gateway. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the local network gateway.
- map[string]string
A mapping of tags to assign to the resource.
- address
Spaces string[] The list of string CIDRs representing the address spaces the gateway exposes.
- bgp
Settings LocalNetwork Gateway Bgp Settings A
bgp_settingsblock as defined below containing the Local Network Gateway’s BGP speaker settings.- gateway
Address string The IP address of the gateway to which to connect.
- location string
The location/region where the local network gateway is created. Changing this forces a new resource to be created.
- name string
The name of the local network gateway. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which to create the local network gateway.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- address_
spaces List[str] The list of string CIDRs representing the address spaces the gateway exposes.
- bgp_
settings Dict[LocalNetwork Gateway Bgp Settings] A
bgp_settingsblock as defined below containing the Local Network Gateway’s BGP speaker settings.- gateway_
address str The IP address of the gateway to which to connect.
- location str
The location/region where the local network gateway is created. Changing this forces a new resource to be created.
- name str
The name of the local network gateway. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which to create the local network gateway.
- Dict[str, str]
A mapping of tags to assign to the resource.
Supporting Types
LocalNetworkGatewayBgpSettings
- Asn int
The BGP speaker’s ASN.
- Bgp
Peering stringAddress The BGP peering address and BGP identifier of this BGP speaker.
- Peer
Weight int The weight added to routes learned from this BGP speaker.
- Asn int
The BGP speaker’s ASN.
- Bgp
Peering stringAddress The BGP peering address and BGP identifier of this BGP speaker.
- Peer
Weight int The weight added to routes learned from this BGP speaker.
- asn number
The BGP speaker’s ASN.
- bgp
Peering stringAddress The BGP peering address and BGP identifier of this BGP speaker.
- peer
Weight number The weight added to routes learned from this BGP speaker.
- asn float
The BGP speaker’s ASN.
- bgp
Peering strAddress The BGP peering address and BGP identifier of this BGP speaker.
- peer
Weight float The weight added to routes learned from this BGP speaker.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.