Express Route Port
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
Properties
Link copied to clipboard
Date of the physical port allocation to be used in Letter of Authorization.
Link copied to clipboard
Bandwidth of procured ports in Gbps.
Link copied to clipboard
Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource.
Link copied to clipboard
Encapsulation method on physical ports.
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
Aggregate Gbps of associated circuit bandwidths.
Link copied to clipboard
The provisioning state of the express route port resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The resource GUID property of the express route port resource.