L2ConnectionArgs

data class L2ConnectionArgs(val edgeSite: Output<L2ConnectionsPropertiesEdgeSiteArgs>? = null, val groundStation: Output<L2ConnectionsPropertiesGroundStationArgs>? = null, val groundStationPartnerRouter: Output<L2ConnectionsPropertiesGroundStationPartnerRouterArgs>? = null, val l2ConnectionName: 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, val vlanId: Output<Int>? = null) : ConvertibleToJava<L2ConnectionArgs>

Connects an edge site to an orbital gateway and describes what layer 2 traffic to forward between them. Uses Azure REST API version 2024-03-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-03-01-preview. Other available API versions: 2024-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native orbital [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create L2 Connection

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var l2Connection = new AzureNative.Orbital.L2Connection("l2Connection", new()
{
EdgeSite = new AzureNative.Orbital.Inputs.L2ConnectionsPropertiesEdgeSiteArgs
{
Id = "/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/rg1/providers/Microsoft.Orbital/edgeSites/es1",
},
GroundStation = new AzureNative.Orbital.Inputs.L2ConnectionsPropertiesGroundStationArgs
{
Id = "/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/rg1/providers/Microsoft.Orbital/groundStations/gs1",
},
GroundStationPartnerRouter = new AzureNative.Orbital.Inputs.L2ConnectionsPropertiesGroundStationPartnerRouterArgs
{
Name = "customerName-SiteName-01",
},
L2ConnectionName = "connection1",
Location = "westus",
Name = "customerName-SiteName-01",
ResourceGroupName = "rg1",
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
VlanId = 200,
});
});
package main
import (
orbital "github.com/pulumi/pulumi-azure-native-sdk/orbital/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := orbital.NewL2Connection(ctx, "l2Connection", &orbital.L2ConnectionArgs{
EdgeSite: &orbital.L2ConnectionsPropertiesEdgeSiteArgs{
Id: pulumi.String("/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/rg1/providers/Microsoft.Orbital/edgeSites/es1"),
},
GroundStation: &orbital.L2ConnectionsPropertiesGroundStationArgs{
Id: pulumi.String("/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/rg1/providers/Microsoft.Orbital/groundStations/gs1"),
},
GroundStationPartnerRouter: &orbital.L2ConnectionsPropertiesGroundStationPartnerRouterArgs{
Name: pulumi.String("customerName-SiteName-01"),
},
L2ConnectionName: pulumi.String("connection1"),
Location: pulumi.String("westus"),
Name: pulumi.String("customerName-SiteName-01"),
ResourceGroupName: pulumi.String("rg1"),
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
VlanId: pulumi.Int(200),
})
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.orbital.L2Connection;
import com.pulumi.azurenative.orbital.L2ConnectionArgs;
import com.pulumi.azurenative.orbital.inputs.L2ConnectionsPropertiesEdgeSiteArgs;
import com.pulumi.azurenative.orbital.inputs.L2ConnectionsPropertiesGroundStationArgs;
import com.pulumi.azurenative.orbital.inputs.L2ConnectionsPropertiesGroundStationPartnerRouterArgs;
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 l2Connection = new L2Connection("l2Connection", L2ConnectionArgs.builder()
.edgeSite(L2ConnectionsPropertiesEdgeSiteArgs.builder()
.id("/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/rg1/providers/Microsoft.Orbital/edgeSites/es1")
.build())
.groundStation(L2ConnectionsPropertiesGroundStationArgs.builder()
.id("/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/rg1/providers/Microsoft.Orbital/groundStations/gs1")
.build())
.groundStationPartnerRouter(L2ConnectionsPropertiesGroundStationPartnerRouterArgs.builder()
.name("customerName-SiteName-01")
.build())
.l2ConnectionName("connection1")
.location("westus")
.name("customerName-SiteName-01")
.resourceGroupName("rg1")
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.vlanId(200)
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:orbital:L2Connection connection1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Orbital/l2Connections/{l2ConnectionName}

Constructors

Link copied to clipboard
constructor(edgeSite: Output<L2ConnectionsPropertiesEdgeSiteArgs>? = null, groundStation: Output<L2ConnectionsPropertiesGroundStationArgs>? = null, groundStationPartnerRouter: Output<L2ConnectionsPropertiesGroundStationPartnerRouterArgs>? = null, l2ConnectionName: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, vlanId: Output<Int>? = null)

Properties

Link copied to clipboard

A reference to an Microsoft.Orbital/edgeSites resource to route traffic for.

Link copied to clipboard

A reference to an Microsoft.Orbital/groundStations resource to route traffic for.

Link copied to clipboard

The name of the partner router to establish a connection to within the ground station.

Link copied to clipboard
val l2ConnectionName: Output<String>? = null

L2 Connection name.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>? = null

The unique name of the partner router that cross-connects with the Orbital Edge Router at the edge site.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val vlanId: Output<Int>? = null

The VLAN ID for the L2 connection.

Functions

Link copied to clipboard
open override fun toJava(): L2ConnectionArgs