Local Network Gateway Args
data class LocalNetworkGatewayArgs(val addressSpaces: Output<List<String>>? = null, val bgpSettings: Output<LocalNetworkGatewayBgpSettingsArgs>? = null, val gatewayAddress: Output<String>? = null, val gatewayFqdn: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LocalNetworkGatewayArgs>
Manages a local network gateway connection over which specific connections can be configured.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "localNetworkGWTest",
location: "West Europe",
});
const home = new azure.network.LocalNetworkGateway("home", {
name: "backHome",
resourceGroupName: example.name,
location: example.location,
gatewayAddress: "12.13.14.15",
addressSpaces: ["10.0.0.0/16"],
});
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="localNetworkGWTest",
location="West Europe")
home = azure.network.LocalNetworkGateway("home",
name="backHome",
resource_group_name=example.name,
location=example.location,
gateway_address="12.13.14.15",
address_spaces=["10.0.0.0/16"])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "localNetworkGWTest",
Location = "West Europe",
});
var home = new Azure.Network.LocalNetworkGateway("home", new()
{
Name = "backHome",
ResourceGroupName = example.Name,
Location = example.Location,
GatewayAddress = "12.13.14.15",
AddressSpaces = new[]
{
"10.0.0.0/16",
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("localNetworkGWTest"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = network.NewLocalNetworkGateway(ctx, "home", &network.LocalNetworkGatewayArgs{
Name: pulumi.String("backHome"),
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
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.LocalNetworkGateway;
import com.pulumi.azure.network.LocalNetworkGatewayArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("localNetworkGWTest")
.location("West Europe")
.build());
var home = new LocalNetworkGateway("home", LocalNetworkGatewayArgs.builder()
.name("backHome")
.resourceGroupName(example.name())
.location(example.location())
.gatewayAddress("12.13.14.15")
.addressSpaces("10.0.0.0/16")
.build());
}
}
Content copied to clipboard
resources:
example:
type: azure:core:ResourceGroup
properties:
name: localNetworkGWTest
location: West Europe
home:
type: azure:network:LocalNetworkGateway
properties:
name: backHome
resourceGroupName: ${example.name}
location: ${example.location}
gatewayAddress: 12.13.14.15
addressSpaces:
- 10.0.0.0/16
Content copied to clipboard
Import
Local Network Gateways can be imported using the resource id
, e.g.
$ pulumi import azure:network/localNetworkGateway:LocalNetworkGateway lng1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/localNetworkGateways/lng1
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(addressSpaces: Output<List<String>>? = null, bgpSettings: Output<LocalNetworkGatewayBgpSettingsArgs>? = null, gatewayAddress: Output<String>? = null, gatewayFqdn: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
The list of string CIDRs representing the address spaces the gateway exposes.
Link copied to clipboard
A bgp_settings
block as defined below containing the Local Network Gateway's BGP speaker settings.
Link copied to clipboard
The gateway IP address to connect with.
Link copied to clipboard
The gateway FQDN to connect with.
Link copied to clipboard
The name of the resource group in which to create the local network gateway. Changing this forces a new resource to be created.