Share via


Express Route Ports - List

List all the ExpressRoutePort resources in the specified subscription.

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts?api-version=2024-05-01

URI Parameters

Name In Required Type Description
subscriptionId
path True

string

The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client API version.

Responses

Name Type Description
200 OK

ExpressRoutePortListResult

Request successful. The operation returns a list of ExpressRoutePort resources. If there are no ExpressRoutePort resources then an empty list is returned.

Other Status Codes

CloudError

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

ExpressRoutePortList

Sample request

GET https://management.azure.com/subscriptions/subid/providers/Microsoft.Network/ExpressRoutePorts?api-version=2024-05-01

Sample response

{
  "value": [
    {
      "name": "portName",
      "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName",
      "type": "Microsoft.Network/expressRoutePorts",
      "location": "westus",
      "properties": {
        "provisioningState": "Succeeded",
        "peeringLocation": "peeringLocationName",
        "bandwidthInGbps": 100,
        "provisionedBandwidthInGbps": 0,
        "mtu": "1500",
        "encapsulation": "QinQ",
        "billingType": "UnlimitedData",
        "etherType": "0x8100",
        "allocationDate": "Friday, July 1, 2018",
        "links": [
          {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1",
            "name": "link1",
            "properties": {
              "provisioningState": "Succeeded",
              "routerName": "router1",
              "interfaceName": "Ethernet 0/0",
              "patchPanelId": "patchPanelId1",
              "rackId": "rackId1",
              "coloLocation": "coloLocation1",
              "connectorType": "LC",
              "adminState": "Disabled"
            }
          },
          {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2",
            "name": "link2",
            "properties": {
              "provisioningState": "Succeeded",
              "routerName": "router2",
              "interfaceName": "Ethernet 0/0",
              "patchPanelId": "patchPanelId2",
              "rackId": "rackId2",
              "coloLocation": "coloLocation2",
              "connectorType": "LC",
              "adminState": "Disabled"
            }
          }
        ],
        "circuits": []
      }
    }
  ]
}

Definitions

Name Description
CloudError

An error response from the service.

CloudErrorBody

An error response from the service.

ExpressRouteLink

ExpressRouteLink

ExpressRouteLinkAdminState

Administrative state of the physical port.

ExpressRouteLinkConnectorType

Physical fiber port type.

ExpressRouteLinkMacSecCipher

Mac security cipher.

ExpressRouteLinkMacSecConfig

Definition of ExpressRouteLink Mac Security configuration.

ExpressRouteLinkMacSecSciState

Sci mode enabled/disabled.

ExpressRoutePort

ExpressRoute Port

ExpressRoutePortListResult

ExpressRoute Port List Result

ExpressRoutePortsBillingType

The billing type of the ExpressRoutePort resource.

ExpressRoutePortsEncapsulation

Encapsulation method on physical ports.

ManagedServiceIdentity

Identity for the resource.

ProvisioningState

The current provisioning state.

ResourceIdentityType

The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.

SubResource

Reference to another subresource.

UserAssignedIdentities

The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

CloudError

An error response from the service.

Name Type Description
error

CloudErrorBody

Cloud error body.

CloudErrorBody

An error response from the service.

Name Type Description
code

string

An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

A message describing the error, intended to be suitable for display in a user interface.

target

string

The target of the particular error. For example, the name of the property in error.

ExpressRouteLink

Name Type Description
etag

string

A unique read-only string that changes whenever the resource is updated.

id

string

Resource ID.

name

string

Name of child port resource that is unique among child port resources of the parent.

properties.adminState

ExpressRouteLinkAdminState

Administrative state of the physical port.

properties.coloLocation

string

Cololocation for ExpressRoute Hybrid Direct.

properties.connectorType

ExpressRouteLinkConnectorType

Physical fiber port type.

properties.interfaceName

string

Name of Azure router interface.

properties.macSecConfig

ExpressRouteLinkMacSecConfig

Definition of ExpressRouteLink Mac Security configuration.
MacSec configuration.

properties.patchPanelId

string

Mapping between physical port to patch panel port.

properties.provisioningState

ProvisioningState

The provisioning state of the express route link resource.

properties.rackId

string

Mapping of physical patch panel to rack.

properties.routerName

string

Name of Azure router associated with physical port.

ExpressRouteLinkAdminState

Administrative state of the physical port.

Value Description
Enabled
Disabled

ExpressRouteLinkConnectorType

Physical fiber port type.

Value Description
LC
SC

ExpressRouteLinkMacSecCipher

Mac security cipher.

Value Description
GcmAes256
GcmAes128
GcmAesXpn128
GcmAesXpn256

ExpressRouteLinkMacSecConfig

Definition of ExpressRouteLink Mac Security configuration.

Name Type Description
cakSecretIdentifier

string

Keyvault Secret Identifier URL containing Mac security CAK key.

cipher

ExpressRouteLinkMacSecCipher

Mac security cipher.

cknSecretIdentifier

string

Keyvault Secret Identifier URL containing Mac security CKN key.

sciState

ExpressRouteLinkMacSecSciState

Sci mode enabled/disabled.

ExpressRouteLinkMacSecSciState

Sci mode enabled/disabled.

Value Description
Disabled
Enabled

ExpressRoutePort

ExpressRoute Port

Name Type Description
etag

string

A unique read-only string that changes whenever the resource is updated.

id

string

Resource ID.

identity

ManagedServiceIdentity

The identity of ExpressRoutePort, if configured.

location

string

Resource location.

name

string

Resource name.

properties.allocationDate

string

Date of the physical port allocation to be used in Letter of Authorization.

properties.bandwidthInGbps

integer

Bandwidth of procured ports in Gbps.

properties.billingType

ExpressRoutePortsBillingType

The billing type of the ExpressRoutePort resource.

properties.circuits

SubResource[]

Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource.

properties.encapsulation

ExpressRoutePortsEncapsulation

Encapsulation method on physical ports.

properties.etherType

string

Ether type of the physical port.

properties.links

ExpressRouteLink[]

ExpressRouteLink Sub-Resources
The set of physical links of the ExpressRoutePort resource.

properties.mtu

string

Maximum transmission unit of the physical port pair(s).

properties.peeringLocation

string

The name of the peering location that the ExpressRoutePort is mapped to physically.

properties.provisionedBandwidthInGbps

number

Aggregate Gbps of associated circuit bandwidths.

properties.provisioningState

ProvisioningState

The provisioning state of the express route port resource.

properties.resourceGuid

string

The resource GUID property of the express route port resource.

tags

object

Resource tags.

type

string

Resource type.

ExpressRoutePortListResult

ExpressRoute Port List Result

Name Type Description
nextLink

string

The URL to get the next set of results.

value

ExpressRoutePort[]

A list of ExpressRoutePort resources.

ExpressRoutePortsBillingType

The billing type of the ExpressRoutePort resource.

Value Description
MeteredData
UnlimitedData

ExpressRoutePortsEncapsulation

Encapsulation method on physical ports.

Value Description
Dot1Q
QinQ

ManagedServiceIdentity

Identity for the resource.

Name Type Description
principalId

string

The principal id of the system assigned identity. This property will only be provided for a system assigned identity.

tenantId

string

The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.

type

ResourceIdentityType

The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.

userAssignedIdentities

UserAssignedIdentities

The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

ProvisioningState

The current provisioning state.

Value Description
Succeeded
Updating
Deleting
Failed

ResourceIdentityType

The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.

Value Description
SystemAssigned
UserAssigned
SystemAssigned, UserAssigned
None

SubResource

Reference to another subresource.

Name Type Description
id

string

Resource ID.

UserAssignedIdentities

The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Name Type Description