Express Route Port Args
data class ExpressRoutePortArgs(val bandwidthInGbps: Output<Int>? = null, val encapsulation: Output<Either<String, ExpressRoutePortsEncapsulation>>? = null, val expressRoutePortName: Output<String>? = null, val id: Output<String>? = null, val identity: Output<ManagedServiceIdentityArgs>? = null, val links: Output<List<ExpressRouteLinkArgs>>? = null, val location: Output<String>? = null, val peeringLocation: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ExpressRoutePortArgs>
ExpressRoutePort resource definition. API Version: 2020-11-01.
Example Usage
ExpressRoutePortCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var expressRoutePort = new AzureNative.Network.ExpressRoutePort("expressRoutePort", new()
{
BandwidthInGbps = 100,
Encapsulation = "QinQ",
ExpressRoutePortName = "portName",
Location = "westus",
PeeringLocation = "peeringLocationName",
ResourceGroupName = "rg1",
});
});
Content copied to clipboard
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.NewExpressRoutePort(ctx, "expressRoutePort", &network.ExpressRoutePortArgs{
BandwidthInGbps: pulumi.Int(100),
Encapsulation: pulumi.String("QinQ"),
ExpressRoutePortName: pulumi.String("portName"),
Location: pulumi.String("westus"),
PeeringLocation: pulumi.String("peeringLocationName"),
ResourceGroupName: pulumi.String("rg1"),
})
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.azurenative.network.ExpressRoutePort;
import com.pulumi.azurenative.network.ExpressRoutePortArgs;
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 expressRoutePort = new ExpressRoutePort("expressRoutePort", ExpressRoutePortArgs.builder()
.bandwidthInGbps(100)
.encapsulation("QinQ")
.expressRoutePortName("portName")
.location("westus")
.peeringLocation("peeringLocationName")
.resourceGroupName("rg1")
.build());
}
}
Content copied to clipboard
ExpressRoutePortUpdateLink
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var expressRoutePort = new AzureNative.Network.ExpressRoutePort("expressRoutePort", new()
{
BandwidthInGbps = 100,
Encapsulation = "QinQ",
ExpressRoutePortName = "portName",
Links = new[]
{
new AzureNative.Network.Inputs.ExpressRouteLinkArgs
{
AdminState = "Enabled",
Name = "link1",
},
},
Location = "westus",
PeeringLocation = "peeringLocationName",
ResourceGroupName = "rg1",
});
});
Content copied to clipboard
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.NewExpressRoutePort(ctx, "expressRoutePort", &network.ExpressRoutePortArgs{
BandwidthInGbps: pulumi.Int(100),
Encapsulation: pulumi.String("QinQ"),
ExpressRoutePortName: pulumi.String("portName"),
Links: []network.ExpressRouteLinkArgs{
{
AdminState: pulumi.String("Enabled"),
Name: pulumi.String("link1"),
},
},
Location: pulumi.String("westus"),
PeeringLocation: pulumi.String("peeringLocationName"),
ResourceGroupName: pulumi.String("rg1"),
})
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.azurenative.network.ExpressRoutePort;
import com.pulumi.azurenative.network.ExpressRoutePortArgs;
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 expressRoutePort = new ExpressRoutePort("expressRoutePort", ExpressRoutePortArgs.builder()
.bandwidthInGbps(100)
.encapsulation("QinQ")
.expressRoutePortName("portName")
.links(Map.ofEntries(
Map.entry("adminState", "Enabled"),
Map.entry("name", "link1")
))
.location("westus")
.peeringLocation("peeringLocationName")
.resourceGroupName("rg1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:ExpressRoutePort portName /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(bandwidthInGbps: Output<Int>? = null, encapsulation: Output<Either<String, ExpressRoutePortsEncapsulation>>? = null, expressRoutePortName: Output<String>? = null, id: Output<String>? = null, identity: Output<ManagedServiceIdentityArgs>? = null, links: Output<List<ExpressRouteLinkArgs>>? = null, location: Output<String>? = null, peeringLocation: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
Bandwidth of procured ports in Gbps.
Link copied to clipboard
Encapsulation method on physical ports.
Link copied to clipboard
The name of the ExpressRoutePort resource.
Link copied to clipboard
The identity of ExpressRoutePort, if configured.
Link copied to clipboard
The set of physical links of the ExpressRoutePort resource.
Link copied to clipboard
The name of the peering location that the ExpressRoutePort is mapped to physically.
Link copied to clipboard
The name of the resource group.