1. Packages
  2. Azure Classic
  3. API Docs
  4. network
  5. ExpressRoutePort

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.network.ExpressRoutePort

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages a Express Route Port.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West US",
    });
    const exampleExpressRoutePort = new azure.network.ExpressRoutePort("example", {
        name: "port1",
        resourceGroupName: example.name,
        location: example.location,
        peeringLocation: "Airtel-Chennai-CLS",
        bandwidthInGbps: 10,
        encapsulation: "Dot1Q",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West US")
    example_express_route_port = azure.network.ExpressRoutePort("example",
        name="port1",
        resource_group_name=example.name,
        location=example.location,
        peering_location="Airtel-Chennai-CLS",
        bandwidth_in_gbps=10,
        encapsulation="Dot1Q")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/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("example-resources"),
    			Location: pulumi.String("West US"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = network.NewExpressRoutePort(ctx, "example", &network.ExpressRoutePortArgs{
    			Name:              pulumi.String("port1"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    			PeeringLocation:   pulumi.String("Airtel-Chennai-CLS"),
    			BandwidthInGbps:   pulumi.Int(10),
    			Encapsulation:     pulumi.String("Dot1Q"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 = "example-resources",
            Location = "West US",
        });
    
        var exampleExpressRoutePort = new Azure.Network.ExpressRoutePort("example", new()
        {
            Name = "port1",
            ResourceGroupName = example.Name,
            Location = example.Location,
            PeeringLocation = "Airtel-Chennai-CLS",
            BandwidthInGbps = 10,
            Encapsulation = "Dot1Q",
        });
    
    });
    
    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.ExpressRoutePort;
    import com.pulumi.azure.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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West US")
                .build());
    
            var exampleExpressRoutePort = new ExpressRoutePort("exampleExpressRoutePort", ExpressRoutePortArgs.builder()
                .name("port1")
                .resourceGroupName(example.name())
                .location(example.location())
                .peeringLocation("Airtel-Chennai-CLS")
                .bandwidthInGbps(10)
                .encapsulation("Dot1Q")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West US
      exampleExpressRoutePort:
        type: azure:network:ExpressRoutePort
        name: example
        properties:
          name: port1
          resourceGroupName: ${example.name}
          location: ${example.location}
          peeringLocation: Airtel-Chennai-CLS
          bandwidthInGbps: 10
          encapsulation: Dot1Q
    

    Create ExpressRoutePort Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ExpressRoutePort(name: string, args: ExpressRoutePortArgs, opts?: CustomResourceOptions);
    @overload
    def ExpressRoutePort(resource_name: str,
                         args: ExpressRoutePortArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ExpressRoutePort(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         bandwidth_in_gbps: Optional[int] = None,
                         encapsulation: Optional[str] = None,
                         peering_location: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         billing_type: Optional[str] = None,
                         identity: Optional[ExpressRoutePortIdentityArgs] = None,
                         link1: Optional[ExpressRoutePortLink1Args] = None,
                         link2: Optional[ExpressRoutePortLink2Args] = None,
                         location: Optional[str] = None,
                         name: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None)
    func NewExpressRoutePort(ctx *Context, name string, args ExpressRoutePortArgs, opts ...ResourceOption) (*ExpressRoutePort, error)
    public ExpressRoutePort(string name, ExpressRoutePortArgs args, CustomResourceOptions? opts = null)
    public ExpressRoutePort(String name, ExpressRoutePortArgs args)
    public ExpressRoutePort(String name, ExpressRoutePortArgs args, CustomResourceOptions options)
    
    type: azure:network:ExpressRoutePort
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ExpressRoutePortArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ExpressRoutePortArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ExpressRoutePortArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ExpressRoutePortArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ExpressRoutePortArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var expressRoutePortResource = new Azure.Network.ExpressRoutePort("expressRoutePortResource", new()
    {
        BandwidthInGbps = 0,
        Encapsulation = "string",
        PeeringLocation = "string",
        ResourceGroupName = "string",
        BillingType = "string",
        Identity = new Azure.Network.Inputs.ExpressRoutePortIdentityArgs
        {
            Type = "string",
            IdentityIds = new[]
            {
                "string",
            },
            PrincipalId = "string",
            TenantId = "string",
        },
        Link1 = new Azure.Network.Inputs.ExpressRoutePortLink1Args
        {
            AdminEnabled = false,
            ConnectorType = "string",
            Id = "string",
            InterfaceName = "string",
            MacsecCakKeyvaultSecretId = "string",
            MacsecCipher = "string",
            MacsecCknKeyvaultSecretId = "string",
            MacsecSciEnabled = false,
            PatchPanelId = "string",
            RackId = "string",
            RouterName = "string",
        },
        Link2 = new Azure.Network.Inputs.ExpressRoutePortLink2Args
        {
            AdminEnabled = false,
            ConnectorType = "string",
            Id = "string",
            InterfaceName = "string",
            MacsecCakKeyvaultSecretId = "string",
            MacsecCipher = "string",
            MacsecCknKeyvaultSecretId = "string",
            MacsecSciEnabled = false,
            PatchPanelId = "string",
            RackId = "string",
            RouterName = "string",
        },
        Location = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := network.NewExpressRoutePort(ctx, "expressRoutePortResource", &network.ExpressRoutePortArgs{
    	BandwidthInGbps:   pulumi.Int(0),
    	Encapsulation:     pulumi.String("string"),
    	PeeringLocation:   pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	BillingType:       pulumi.String("string"),
    	Identity: &network.ExpressRoutePortIdentityArgs{
    		Type: pulumi.String("string"),
    		IdentityIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PrincipalId: pulumi.String("string"),
    		TenantId:    pulumi.String("string"),
    	},
    	Link1: &network.ExpressRoutePortLink1Args{
    		AdminEnabled:              pulumi.Bool(false),
    		ConnectorType:             pulumi.String("string"),
    		Id:                        pulumi.String("string"),
    		InterfaceName:             pulumi.String("string"),
    		MacsecCakKeyvaultSecretId: pulumi.String("string"),
    		MacsecCipher:              pulumi.String("string"),
    		MacsecCknKeyvaultSecretId: pulumi.String("string"),
    		MacsecSciEnabled:          pulumi.Bool(false),
    		PatchPanelId:              pulumi.String("string"),
    		RackId:                    pulumi.String("string"),
    		RouterName:                pulumi.String("string"),
    	},
    	Link2: &network.ExpressRoutePortLink2Args{
    		AdminEnabled:              pulumi.Bool(false),
    		ConnectorType:             pulumi.String("string"),
    		Id:                        pulumi.String("string"),
    		InterfaceName:             pulumi.String("string"),
    		MacsecCakKeyvaultSecretId: pulumi.String("string"),
    		MacsecCipher:              pulumi.String("string"),
    		MacsecCknKeyvaultSecretId: pulumi.String("string"),
    		MacsecSciEnabled:          pulumi.Bool(false),
    		PatchPanelId:              pulumi.String("string"),
    		RackId:                    pulumi.String("string"),
    		RouterName:                pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var expressRoutePortResource = new ExpressRoutePort("expressRoutePortResource", ExpressRoutePortArgs.builder()
        .bandwidthInGbps(0)
        .encapsulation("string")
        .peeringLocation("string")
        .resourceGroupName("string")
        .billingType("string")
        .identity(ExpressRoutePortIdentityArgs.builder()
            .type("string")
            .identityIds("string")
            .principalId("string")
            .tenantId("string")
            .build())
        .link1(ExpressRoutePortLink1Args.builder()
            .adminEnabled(false)
            .connectorType("string")
            .id("string")
            .interfaceName("string")
            .macsecCakKeyvaultSecretId("string")
            .macsecCipher("string")
            .macsecCknKeyvaultSecretId("string")
            .macsecSciEnabled(false)
            .patchPanelId("string")
            .rackId("string")
            .routerName("string")
            .build())
        .link2(ExpressRoutePortLink2Args.builder()
            .adminEnabled(false)
            .connectorType("string")
            .id("string")
            .interfaceName("string")
            .macsecCakKeyvaultSecretId("string")
            .macsecCipher("string")
            .macsecCknKeyvaultSecretId("string")
            .macsecSciEnabled(false)
            .patchPanelId("string")
            .rackId("string")
            .routerName("string")
            .build())
        .location("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    express_route_port_resource = azure.network.ExpressRoutePort("expressRoutePortResource",
        bandwidth_in_gbps=0,
        encapsulation="string",
        peering_location="string",
        resource_group_name="string",
        billing_type="string",
        identity=azure.network.ExpressRoutePortIdentityArgs(
            type="string",
            identity_ids=["string"],
            principal_id="string",
            tenant_id="string",
        ),
        link1=azure.network.ExpressRoutePortLink1Args(
            admin_enabled=False,
            connector_type="string",
            id="string",
            interface_name="string",
            macsec_cak_keyvault_secret_id="string",
            macsec_cipher="string",
            macsec_ckn_keyvault_secret_id="string",
            macsec_sci_enabled=False,
            patch_panel_id="string",
            rack_id="string",
            router_name="string",
        ),
        link2=azure.network.ExpressRoutePortLink2Args(
            admin_enabled=False,
            connector_type="string",
            id="string",
            interface_name="string",
            macsec_cak_keyvault_secret_id="string",
            macsec_cipher="string",
            macsec_ckn_keyvault_secret_id="string",
            macsec_sci_enabled=False,
            patch_panel_id="string",
            rack_id="string",
            router_name="string",
        ),
        location="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const expressRoutePortResource = new azure.network.ExpressRoutePort("expressRoutePortResource", {
        bandwidthInGbps: 0,
        encapsulation: "string",
        peeringLocation: "string",
        resourceGroupName: "string",
        billingType: "string",
        identity: {
            type: "string",
            identityIds: ["string"],
            principalId: "string",
            tenantId: "string",
        },
        link1: {
            adminEnabled: false,
            connectorType: "string",
            id: "string",
            interfaceName: "string",
            macsecCakKeyvaultSecretId: "string",
            macsecCipher: "string",
            macsecCknKeyvaultSecretId: "string",
            macsecSciEnabled: false,
            patchPanelId: "string",
            rackId: "string",
            routerName: "string",
        },
        link2: {
            adminEnabled: false,
            connectorType: "string",
            id: "string",
            interfaceName: "string",
            macsecCakKeyvaultSecretId: "string",
            macsecCipher: "string",
            macsecCknKeyvaultSecretId: "string",
            macsecSciEnabled: false,
            patchPanelId: "string",
            rackId: "string",
            routerName: "string",
        },
        location: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:network:ExpressRoutePort
    properties:
        bandwidthInGbps: 0
        billingType: string
        encapsulation: string
        identity:
            identityIds:
                - string
            principalId: string
            tenantId: string
            type: string
        link1:
            adminEnabled: false
            connectorType: string
            id: string
            interfaceName: string
            macsecCakKeyvaultSecretId: string
            macsecCipher: string
            macsecCknKeyvaultSecretId: string
            macsecSciEnabled: false
            patchPanelId: string
            rackId: string
            routerName: string
        link2:
            adminEnabled: false
            connectorType: string
            id: string
            interfaceName: string
            macsecCakKeyvaultSecretId: string
            macsecCipher: string
            macsecCknKeyvaultSecretId: string
            macsecSciEnabled: false
            patchPanelId: string
            rackId: string
            routerName: string
        location: string
        name: string
        peeringLocation: string
        resourceGroupName: string
        tags:
            string: string
    

    ExpressRoutePort Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ExpressRoutePort resource accepts the following input properties:

    BandwidthInGbps int
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    Encapsulation string
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    PeeringLocation string
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    ResourceGroupName string
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    BillingType string
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    Identity ExpressRoutePortIdentity
    An identity block as defined below.
    Link1 ExpressRoutePortLink1
    A list of link blocks as defined below.
    Link2 ExpressRoutePortLink2
    A list of link blocks as defined below.
    Location string
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    Name string
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Express Route Port.
    BandwidthInGbps int
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    Encapsulation string
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    PeeringLocation string
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    ResourceGroupName string
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    BillingType string
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    Identity ExpressRoutePortIdentityArgs
    An identity block as defined below.
    Link1 ExpressRoutePortLink1Args
    A list of link blocks as defined below.
    Link2 ExpressRoutePortLink2Args
    A list of link blocks as defined below.
    Location string
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    Name string
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Express Route Port.
    bandwidthInGbps Integer
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    encapsulation String
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    peeringLocation String
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    resourceGroupName String
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    billingType String
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    identity ExpressRoutePortIdentity
    An identity block as defined below.
    link1 ExpressRoutePortLink1
    A list of link blocks as defined below.
    link2 ExpressRoutePortLink2
    A list of link blocks as defined below.
    location String
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    name String
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Express Route Port.
    bandwidthInGbps number
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    encapsulation string
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    peeringLocation string
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    resourceGroupName string
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    billingType string
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    identity ExpressRoutePortIdentity
    An identity block as defined below.
    link1 ExpressRoutePortLink1
    A list of link blocks as defined below.
    link2 ExpressRoutePortLink2
    A list of link blocks as defined below.
    location string
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    name string
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Express Route Port.
    bandwidth_in_gbps int
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    encapsulation str
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    peering_location str
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    resource_group_name str
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    billing_type str
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    identity ExpressRoutePortIdentityArgs
    An identity block as defined below.
    link1 ExpressRoutePortLink1Args
    A list of link blocks as defined below.
    link2 ExpressRoutePortLink2Args
    A list of link blocks as defined below.
    location str
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    name str
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Express Route Port.
    bandwidthInGbps Number
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    encapsulation String
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    peeringLocation String
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    resourceGroupName String
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    billingType String
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    identity Property Map
    An identity block as defined below.
    link1 Property Map
    A list of link blocks as defined below.
    link2 Property Map
    A list of link blocks as defined below.
    location String
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    name String
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Express Route Port.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ExpressRoutePort resource produces the following output properties:

    Ethertype string
    The EtherType of the Express Route Port.
    Guid string
    The resource GUID of the Express Route Port.
    Id string
    The provider-assigned unique ID for this managed resource.
    Mtu string
    The maximum transmission unit of the Express Route Port.
    Ethertype string
    The EtherType of the Express Route Port.
    Guid string
    The resource GUID of the Express Route Port.
    Id string
    The provider-assigned unique ID for this managed resource.
    Mtu string
    The maximum transmission unit of the Express Route Port.
    ethertype String
    The EtherType of the Express Route Port.
    guid String
    The resource GUID of the Express Route Port.
    id String
    The provider-assigned unique ID for this managed resource.
    mtu String
    The maximum transmission unit of the Express Route Port.
    ethertype string
    The EtherType of the Express Route Port.
    guid string
    The resource GUID of the Express Route Port.
    id string
    The provider-assigned unique ID for this managed resource.
    mtu string
    The maximum transmission unit of the Express Route Port.
    ethertype str
    The EtherType of the Express Route Port.
    guid str
    The resource GUID of the Express Route Port.
    id str
    The provider-assigned unique ID for this managed resource.
    mtu str
    The maximum transmission unit of the Express Route Port.
    ethertype String
    The EtherType of the Express Route Port.
    guid String
    The resource GUID of the Express Route Port.
    id String
    The provider-assigned unique ID for this managed resource.
    mtu String
    The maximum transmission unit of the Express Route Port.

    Look up Existing ExpressRoutePort Resource

    Get an existing ExpressRoutePort 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?: ExpressRoutePortState, opts?: CustomResourceOptions): ExpressRoutePort
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bandwidth_in_gbps: Optional[int] = None,
            billing_type: Optional[str] = None,
            encapsulation: Optional[str] = None,
            ethertype: Optional[str] = None,
            guid: Optional[str] = None,
            identity: Optional[ExpressRoutePortIdentityArgs] = None,
            link1: Optional[ExpressRoutePortLink1Args] = None,
            link2: Optional[ExpressRoutePortLink2Args] = None,
            location: Optional[str] = None,
            mtu: Optional[str] = None,
            name: Optional[str] = None,
            peering_location: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> ExpressRoutePort
    func GetExpressRoutePort(ctx *Context, name string, id IDInput, state *ExpressRoutePortState, opts ...ResourceOption) (*ExpressRoutePort, error)
    public static ExpressRoutePort Get(string name, Input<string> id, ExpressRoutePortState? state, CustomResourceOptions? opts = null)
    public static ExpressRoutePort get(String name, Output<String> id, ExpressRoutePortState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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:
    BandwidthInGbps int
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    BillingType string
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    Encapsulation string
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    Ethertype string
    The EtherType of the Express Route Port.
    Guid string
    The resource GUID of the Express Route Port.
    Identity ExpressRoutePortIdentity
    An identity block as defined below.
    Link1 ExpressRoutePortLink1
    A list of link blocks as defined below.
    Link2 ExpressRoutePortLink2
    A list of link blocks as defined below.
    Location string
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    Mtu string
    The maximum transmission unit of the Express Route Port.
    Name string
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    PeeringLocation string
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    ResourceGroupName string
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Express Route Port.
    BandwidthInGbps int
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    BillingType string
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    Encapsulation string
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    Ethertype string
    The EtherType of the Express Route Port.
    Guid string
    The resource GUID of the Express Route Port.
    Identity ExpressRoutePortIdentityArgs
    An identity block as defined below.
    Link1 ExpressRoutePortLink1Args
    A list of link blocks as defined below.
    Link2 ExpressRoutePortLink2Args
    A list of link blocks as defined below.
    Location string
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    Mtu string
    The maximum transmission unit of the Express Route Port.
    Name string
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    PeeringLocation string
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    ResourceGroupName string
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Express Route Port.
    bandwidthInGbps Integer
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    billingType String
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    encapsulation String
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    ethertype String
    The EtherType of the Express Route Port.
    guid String
    The resource GUID of the Express Route Port.
    identity ExpressRoutePortIdentity
    An identity block as defined below.
    link1 ExpressRoutePortLink1
    A list of link blocks as defined below.
    link2 ExpressRoutePortLink2
    A list of link blocks as defined below.
    location String
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    mtu String
    The maximum transmission unit of the Express Route Port.
    name String
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    peeringLocation String
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    resourceGroupName String
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Express Route Port.
    bandwidthInGbps number
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    billingType string
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    encapsulation string
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    ethertype string
    The EtherType of the Express Route Port.
    guid string
    The resource GUID of the Express Route Port.
    identity ExpressRoutePortIdentity
    An identity block as defined below.
    link1 ExpressRoutePortLink1
    A list of link blocks as defined below.
    link2 ExpressRoutePortLink2
    A list of link blocks as defined below.
    location string
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    mtu string
    The maximum transmission unit of the Express Route Port.
    name string
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    peeringLocation string
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    resourceGroupName string
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Express Route Port.
    bandwidth_in_gbps int
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    billing_type str
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    encapsulation str
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    ethertype str
    The EtherType of the Express Route Port.
    guid str
    The resource GUID of the Express Route Port.
    identity ExpressRoutePortIdentityArgs
    An identity block as defined below.
    link1 ExpressRoutePortLink1Args
    A list of link blocks as defined below.
    link2 ExpressRoutePortLink2Args
    A list of link blocks as defined below.
    location str
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    mtu str
    The maximum transmission unit of the Express Route Port.
    name str
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    peering_location str
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    resource_group_name str
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Express Route Port.
    bandwidthInGbps Number
    Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
    billingType String
    The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData.
    encapsulation String
    The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.
    ethertype String
    The EtherType of the Express Route Port.
    guid String
    The resource GUID of the Express Route Port.
    identity Property Map
    An identity block as defined below.
    link1 Property Map
    A list of link blocks as defined below.
    link2 Property Map
    A list of link blocks as defined below.
    location String
    The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    mtu String
    The maximum transmission unit of the Express Route Port.
    name String
    The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
    peeringLocation String
    The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
    resourceGroupName String
    The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Express Route Port.

    Supporting Types

    ExpressRoutePortIdentity, ExpressRoutePortIdentityArgs

    Type string
    Specifies the type of Managed Service Identity that should be configured on this Express Route Port. Only possible value is UserAssigned.
    IdentityIds List<string>
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Express Route Port.
    PrincipalId string
    TenantId string
    Type string
    Specifies the type of Managed Service Identity that should be configured on this Express Route Port. Only possible value is UserAssigned.
    IdentityIds []string
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Express Route Port.
    PrincipalId string
    TenantId string
    type String
    Specifies the type of Managed Service Identity that should be configured on this Express Route Port. Only possible value is UserAssigned.
    identityIds List<String>
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Express Route Port.
    principalId String
    tenantId String
    type string
    Specifies the type of Managed Service Identity that should be configured on this Express Route Port. Only possible value is UserAssigned.
    identityIds string[]
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Express Route Port.
    principalId string
    tenantId string
    type str
    Specifies the type of Managed Service Identity that should be configured on this Express Route Port. Only possible value is UserAssigned.
    identity_ids Sequence[str]
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Express Route Port.
    principal_id str
    tenant_id str
    type String
    Specifies the type of Managed Service Identity that should be configured on this Express Route Port. Only possible value is UserAssigned.
    identityIds List<String>
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Express Route Port.
    principalId String
    tenantId String

    ExpressRoutePortLink1, ExpressRoutePortLink1Args

    AdminEnabled bool
    ConnectorType string
    The connector type of the Express Route Port Link.
    Id string
    The ID of this Express Route Port Link.
    InterfaceName string
    The interface name of the Azure router associated with the Express Route Port Link.
    MacsecCakKeyvaultSecretId string
    MacsecCipher string
    MacsecCknKeyvaultSecretId string
    MacsecSciEnabled bool
    PatchPanelId string
    The ID that maps from the Express Route Port Link to the patch panel port.
    RackId string
    The ID that maps from the patch panel port to the rack.
    RouterName string
    The name of the Azure router associated with the Express Route Port Link.
    AdminEnabled bool
    ConnectorType string
    The connector type of the Express Route Port Link.
    Id string
    The ID of this Express Route Port Link.
    InterfaceName string
    The interface name of the Azure router associated with the Express Route Port Link.
    MacsecCakKeyvaultSecretId string
    MacsecCipher string
    MacsecCknKeyvaultSecretId string
    MacsecSciEnabled bool
    PatchPanelId string
    The ID that maps from the Express Route Port Link to the patch panel port.
    RackId string
    The ID that maps from the patch panel port to the rack.
    RouterName string
    The name of the Azure router associated with the Express Route Port Link.
    adminEnabled Boolean
    connectorType String
    The connector type of the Express Route Port Link.
    id String
    The ID of this Express Route Port Link.
    interfaceName String
    The interface name of the Azure router associated with the Express Route Port Link.
    macsecCakKeyvaultSecretId String
    macsecCipher String
    macsecCknKeyvaultSecretId String
    macsecSciEnabled Boolean
    patchPanelId String
    The ID that maps from the Express Route Port Link to the patch panel port.
    rackId String
    The ID that maps from the patch panel port to the rack.
    routerName String
    The name of the Azure router associated with the Express Route Port Link.
    adminEnabled boolean
    connectorType string
    The connector type of the Express Route Port Link.
    id string
    The ID of this Express Route Port Link.
    interfaceName string
    The interface name of the Azure router associated with the Express Route Port Link.
    macsecCakKeyvaultSecretId string
    macsecCipher string
    macsecCknKeyvaultSecretId string
    macsecSciEnabled boolean
    patchPanelId string
    The ID that maps from the Express Route Port Link to the patch panel port.
    rackId string
    The ID that maps from the patch panel port to the rack.
    routerName string
    The name of the Azure router associated with the Express Route Port Link.
    admin_enabled bool
    connector_type str
    The connector type of the Express Route Port Link.
    id str
    The ID of this Express Route Port Link.
    interface_name str
    The interface name of the Azure router associated with the Express Route Port Link.
    macsec_cak_keyvault_secret_id str
    macsec_cipher str
    macsec_ckn_keyvault_secret_id str
    macsec_sci_enabled bool
    patch_panel_id str
    The ID that maps from the Express Route Port Link to the patch panel port.
    rack_id str
    The ID that maps from the patch panel port to the rack.
    router_name str
    The name of the Azure router associated with the Express Route Port Link.
    adminEnabled Boolean
    connectorType String
    The connector type of the Express Route Port Link.
    id String
    The ID of this Express Route Port Link.
    interfaceName String
    The interface name of the Azure router associated with the Express Route Port Link.
    macsecCakKeyvaultSecretId String
    macsecCipher String
    macsecCknKeyvaultSecretId String
    macsecSciEnabled Boolean
    patchPanelId String
    The ID that maps from the Express Route Port Link to the patch panel port.
    rackId String
    The ID that maps from the patch panel port to the rack.
    routerName String
    The name of the Azure router associated with the Express Route Port Link.

    ExpressRoutePortLink2, ExpressRoutePortLink2Args

    AdminEnabled bool
    ConnectorType string
    The connector type of the Express Route Port Link.
    Id string
    The ID of this Express Route Port Link.
    InterfaceName string
    The interface name of the Azure router associated with the Express Route Port Link.
    MacsecCakKeyvaultSecretId string
    MacsecCipher string
    MacsecCknKeyvaultSecretId string
    MacsecSciEnabled bool
    PatchPanelId string
    The ID that maps from the Express Route Port Link to the patch panel port.
    RackId string
    The ID that maps from the patch panel port to the rack.
    RouterName string
    The name of the Azure router associated with the Express Route Port Link.
    AdminEnabled bool
    ConnectorType string
    The connector type of the Express Route Port Link.
    Id string
    The ID of this Express Route Port Link.
    InterfaceName string
    The interface name of the Azure router associated with the Express Route Port Link.
    MacsecCakKeyvaultSecretId string
    MacsecCipher string
    MacsecCknKeyvaultSecretId string
    MacsecSciEnabled bool
    PatchPanelId string
    The ID that maps from the Express Route Port Link to the patch panel port.
    RackId string
    The ID that maps from the patch panel port to the rack.
    RouterName string
    The name of the Azure router associated with the Express Route Port Link.
    adminEnabled Boolean
    connectorType String
    The connector type of the Express Route Port Link.
    id String
    The ID of this Express Route Port Link.
    interfaceName String
    The interface name of the Azure router associated with the Express Route Port Link.
    macsecCakKeyvaultSecretId String
    macsecCipher String
    macsecCknKeyvaultSecretId String
    macsecSciEnabled Boolean
    patchPanelId String
    The ID that maps from the Express Route Port Link to the patch panel port.
    rackId String
    The ID that maps from the patch panel port to the rack.
    routerName String
    The name of the Azure router associated with the Express Route Port Link.
    adminEnabled boolean
    connectorType string
    The connector type of the Express Route Port Link.
    id string
    The ID of this Express Route Port Link.
    interfaceName string
    The interface name of the Azure router associated with the Express Route Port Link.
    macsecCakKeyvaultSecretId string
    macsecCipher string
    macsecCknKeyvaultSecretId string
    macsecSciEnabled boolean
    patchPanelId string
    The ID that maps from the Express Route Port Link to the patch panel port.
    rackId string
    The ID that maps from the patch panel port to the rack.
    routerName string
    The name of the Azure router associated with the Express Route Port Link.
    admin_enabled bool
    connector_type str
    The connector type of the Express Route Port Link.
    id str
    The ID of this Express Route Port Link.
    interface_name str
    The interface name of the Azure router associated with the Express Route Port Link.
    macsec_cak_keyvault_secret_id str
    macsec_cipher str
    macsec_ckn_keyvault_secret_id str
    macsec_sci_enabled bool
    patch_panel_id str
    The ID that maps from the Express Route Port Link to the patch panel port.
    rack_id str
    The ID that maps from the patch panel port to the rack.
    router_name str
    The name of the Azure router associated with the Express Route Port Link.
    adminEnabled Boolean
    connectorType String
    The connector type of the Express Route Port Link.
    id String
    The ID of this Express Route Port Link.
    interfaceName String
    The interface name of the Azure router associated with the Express Route Port Link.
    macsecCakKeyvaultSecretId String
    macsecCipher String
    macsecCknKeyvaultSecretId String
    macsecSciEnabled Boolean
    patchPanelId String
    The ID that maps from the Express Route Port Link to the patch panel port.
    rackId String
    The ID that maps from the patch panel port to the rack.
    routerName String
    The name of the Azure router associated with the Express Route Port Link.

    Import

    Express Route Ports can be imported using the resource id, e.g.

    $ pulumi import azure:network/expressRoutePort:ExpressRoutePort example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/expressRoutePorts/port1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi