Azure ExpressRoute Express Route Ports API
The ExpressRoutePorts API from Azure ExpressRoute — 4 operation(s) for expressrouteports.
The ExpressRoutePorts API from Azure ExpressRoute — 4 operation(s) for expressrouteports.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/microsoft-azure-express-route:microsoft-azure-express-route-expressrouteports-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: WebApplicationFirewallManagement Express Route Ports API
version: '2026-03-01'
description: APIs to manage Microsoft Azure network resources.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: ExpressRoutePorts
paths:
/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts:
get:
operationId: ExpressRoutePorts_List
tags:
- ExpressRoutePorts
description: List all the ExpressRoutePort resources in the specified subscription.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/ExpressRoutePortListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-pageable:
nextLinkName: nextLink
summary: Express route ports list
x-summary-source: derived
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts:
get:
operationId: ExpressRoutePorts_ListByResourceGroup
tags:
- ExpressRoutePorts
description: List all the ExpressRoutePort resources in the specified resource group.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/ExpressRoutePortListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-pageable:
nextLinkName: nextLink
summary: Express route ports list by resource group
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
: get:
operationId: ExpressRoutePorts_Get
tags:
- ExpressRoutePorts
description: Retrieves the requested ExpressRoutePort resource.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: expressRoutePortName
in: path
description: The name of ExpressRoutePort.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/ExpressRoutePort'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
summary: Express route ports get
x-summary-source: derived
put:
operationId: ExpressRoutePorts_CreateOrUpdate
tags:
- ExpressRoutePorts
description: Creates or updates the specified ExpressRoutePort resource.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: expressRoutePortName
in: path
description: The name of ExpressRoutePort.
required: true
schema:
type: string
responses:
'200':
description: Resource 'ExpressRoutePort' update operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/ExpressRoutePort'
'201':
description: Resource 'ExpressRoutePort' create operation succeeded
headers:
Azure-AsyncOperation:
description: A link to the status monitor
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
content:
application/json:
schema:
$ref: '#/components/schemas/ExpressRoutePort'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: azure-async-operation
final-state-schema: '#/definitions/ExpressRoutePort'
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ExpressRoutePort'
description: Parameters supplied to the create ExpressRoutePort operation.
required: true
summary: Express route ports create or update
x-summary-source: derived
patch:
operationId: ExpressRoutePorts_UpdateTags
tags:
- ExpressRoutePorts
description: Update ExpressRoutePort tags.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: expressRoutePortName
in: path
description: The name of ExpressRoutePort.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/ExpressRoutePort'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TagsObject'
description: Parameters supplied to update ExpressRoutePort resource tags.
required: true
summary: Express route ports update tags
x-summary-source: derived
delete:
operationId: ExpressRoutePorts_Delete
tags:
- ExpressRoutePorts
description: Deletes the specified ExpressRoutePort resource.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: expressRoutePortName
in: path
description: The name of ExpressRoutePort.
required: true
schema:
type: string
responses:
'200':
description: Resource deleted successfully.
'202':
description: Resource deletion accepted.
headers:
Azure-AsyncOperation:
description: A link to the status monitor
schema:
type: string
format: uri
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
'204':
description: Resource does not exist.
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: azure-async-operation
x-ms-long-running-operation: true
summary: Express route ports delete
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/generateLoa
: post:
operationId: ExpressRoutePorts_GenerateLOA
tags:
- ExpressRoutePorts
description: Generate a letter of authorization for the requested ExpressRoutePort resource.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: expressRoutePortName
in: path
description: The name of ExpressRoutePort.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateExpressRoutePortsLOAResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateExpressRoutePortsLOARequest'
description: Request parameters supplied to generate a letter of authorization.
required: true
summary: Express route ports generate LOA
x-summary-source: derived
components:
schemas:
ExpressRouteLinkMacSecConfig:
type: object
title: Definition of ExpressRouteLink Mac Security configuration.
description: ExpressRouteLink Mac Security Configuration.
properties:
cknSecretIdentifier:
type: string
description: Keyvault Secret Identifier URL containing Mac security CKN key.
cakSecretIdentifier:
type: string
description: Keyvault Secret Identifier URL containing Mac security CAK key.
cipher:
$ref: '#/components/schemas/ExpressRouteLinkMacSecCipher'
description: Mac security cipher.
sciState:
$ref: '#/components/schemas/ExpressRouteLinkMacSecSciState'
description: Sci mode enabled/disabled.
SubResource:
type: object
description: Reference to another subresource.
properties:
id:
type: string
description: Resource ID.
ExpressRoutePort:
type: object
title: ExpressRoute Port
description: ExpressRoutePort resource definition.
properties:
properties:
$ref: '#/components/schemas/ExpressRoutePortPropertiesFormat'
description: ExpressRoutePort properties.
x-ms-client-flatten: true
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
identity:
$ref: '#/components/schemas/ManagedServiceIdentity'
description: The identity of ExpressRoutePort, if configured.
allOf:
- $ref: '#/components/schemas/Resource'
GenerateExpressRoutePortsLOARequest:
type: object
description: The customer name to be printed on a letter of authorization.
properties:
customerName:
type: string
description: The customer name.
required:
- customerName
GenerateExpressRoutePortsLOAResult:
type: object
description: Response for GenerateExpressRoutePortsLOA API service call.
properties:
encodedContent:
type: string
description: The content as a base64 encoded string.
ExpressRouteLinkConnectorType:
type: string
description: Physical fiber port type.
enum:
- LC
- SC
x-ms-enum:
name: ExpressRouteLinkConnectorType
modelAsString: true
values:
- name: LC
value: LC
description: LC
- name: SC
value: SC
description: SC
ExpressRoutePortsBillingType:
type: string
description: The billing type of the ExpressRoutePort resource.
enum:
- MeteredData
- UnlimitedData
x-ms-enum:
name: ExpressRoutePortsBillingType
modelAsString: true
values:
- name: MeteredData
value: MeteredData
description: MeteredData
- name: UnlimitedData
value: UnlimitedData
description: UnlimitedData
ProvisioningState:
type: string
description: Provisioning states of a resource.
enum:
- Failed
- Succeeded
- Canceled
- Creating
- Updating
- Deleting
x-ms-enum:
name: ProvisioningState
modelAsString: true
values:
- name: Failed
value: Failed
description: Failed
- name: Succeeded
value: Succeeded
description: Succeeded
- name: Canceled
value: Canceled
description: Canceled
- name: Creating
value: Creating
description: Creating
- name: Updating
value: Updating
description: Updating
- name: Deleting
value: Deleting
description: Deleting
ExpressRoutePortsEncapsulation:
type: string
description: Encapsulation method on physical ports.
enum:
- Dot1Q
- QinQ
x-ms-enum:
name: ExpressRoutePortsEncapsulation
modelAsString: true
values:
- name: Dot1Q
value: Dot1Q
description: Dot1Q
- name: QinQ
value: QinQ
description: QinQ
ExpressRouteLinkMacSecSciState:
type: string
description: Sci mode enabled/disabled.
enum:
- Disabled
- Enabled
x-ms-enum:
name: ExpressRouteLinkMacSecSciState
modelAsString: true
values:
- name: Disabled
value: Disabled
description: Disabled
- name: Enabled
value: Enabled
description: Enabled
ExpressRoutePortListResult:
type: object
title: ExpressRoute Port List Result
description: Paged collection of ExpressRoutePort items
properties:
value:
type: array
description: The ExpressRoutePort items on this page
items:
$ref: '#/components/schemas/ExpressRoutePort'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
ManagedServiceIdentity:
type: object
description: Identity for the resource.
properties:
principalId:
type: string
description: The principal id of the system assigned identity. This property will only be provided for a system assigned identity.
readOnly: true
tenantId:
type: string
description: The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.
readOnly: true
type:
$ref: '#/components/schemas/ResourceIdentityType'
description: 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:
type: object
description: '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}''.'
additionalProperties:
$ref: '#/components/schemas/ManagedServiceIdentityUserAssignedIdentities'
TagsObject:
type: object
description: Tags object for patch operations.
properties:
tags:
type: object
description: Resource tags.
additionalProperties:
type: string
ExpressRouteLinkPropertiesFormat:
type: object
title: ExpressRouteLink Resource Properties
description: Properties specific to ExpressRouteLink resources.
properties:
routerName:
type: string
description: Name of Azure router associated with physical port.
readOnly: true
interfaceName:
type: string
description: Name of Azure router interface.
readOnly: true
patchPanelId:
type: string
description: Mapping between physical port to patch panel port.
readOnly: true
rackId:
type: string
description: Mapping of physical patch panel to rack.
readOnly: true
coloLocation:
type: string
description: Cololocation for ExpressRoute Hybrid Direct.
readOnly: true
connectorType:
$ref: '#/components/schemas/ExpressRouteLinkConnectorType'
description: Physical fiber port type.
readOnly: true
adminState:
$ref: '#/components/schemas/ExpressRouteLinkAdminState'
description: Administrative state of the physical port.
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the express route link resource.
readOnly: true
macSecConfig:
$ref: '#/components/schemas/ExpressRouteLinkMacSecConfig'
description: MacSec configuration.
CloudError:
type: object
description: An error response from the service.
properties:
error:
$ref: '#/components/schemas/CloudErrorBody'
description: Cloud error body.
x-ms-external: true
ExpressRoutePortPropertiesFormat:
type: object
title: ExpressRoutePort Properties
description: Properties specific to ExpressRoutePort resources.
properties:
peeringLocation:
type: string
description: The name of the peering location that the ExpressRoutePort is mapped to physically.
bandwidthInGbps:
type: integer
format: int32
description: Bandwidth of procured ports in Gbps.
provisionedBandwidthInGbps:
type: number
format: float
description: Aggregate Gbps of associated circuit bandwidths.
readOnly: true
mtu:
type: string
description: Maximum transmission unit of the physical port pair(s).
readOnly: true
encapsulation:
$ref: '#/components/schemas/ExpressRoutePortsEncapsulation'
description: Encapsulation method on physical ports.
etherType:
type: string
description: Ether type of the physical port.
readOnly: true
allocationDate:
type: string
description: Date of the physical port allocation to be used in Letter of Authorization.
readOnly: true
links:
type: array
title: ExpressRouteLink Sub-Resources
description: The set of physical links of the ExpressRoutePort resource.
items:
$ref: '#/components/schemas/ExpressRouteLink'
circuits:
type: array
description: Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource.
items:
$ref: '#/components/schemas/SubResource'
readOnly: true
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the express route port resource.
readOnly: true
resourceGuid:
type: string
description: The resource GUID property of the express route port resource.
readOnly: true
billingType:
$ref: '#/components/schemas/ExpressRoutePortsBillingType'
description: The billing type of the ExpressRoutePort resource.
ExpressRouteLink:
type: object
title: ExpressRouteLink
description: ExpressRouteLink child resource definition.
properties:
properties:
$ref: '#/components/schemas/ExpressRouteLinkPropertiesFormat'
description: ExpressRouteLink properties.
x-ms-client-flatten: true
name:
type: string
description: Name of child port resource that is unique among child port resources of the parent.
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
allOf:
- $ref: '#/components/schemas/SubResource'
Resource:
type: object
description: Common resource representation.
properties:
id:
type: string
description: Resource ID.
name:
type: string
description: Resource name.
readOnly: true
type:
type: string
description: Resource type.
readOnly: true
location:
type: string
description: Resource location.
tags:
type: object
description: Resource tags.
additionalProperties:
type: string
x-ms-azure-resource: true
ExpressRouteLinkMacSecCipher:
type: string
description: Mac security cipher.
enum:
- GcmAes256
- GcmAes128
- GcmAesXpn128
- GcmAesXpn256
x-ms-enum:
name: ExpressRouteLinkMacSecCipher
modelAsString: true
values:
- name: GcmAes256
value: GcmAes256
description: GcmAes256
- name: GcmAes128
value: GcmAes128
description: GcmAes128
- name: GcmAesXpn128
value: GcmAesXpn128
description: GcmAesXpn128
- name: GcmAesXpn256
value: GcmAesXpn256
description: GcmAesXpn256
ExpressRouteLinkAdminState:
type: string
description: Administrative state of the physical port.
enum:
- Enabled
- Disabled
x-ms-enum:
name: ExpressRouteLinkAdminState
modelAsString: true
values:
- name: Enabled
value: Enabled
description: Enabled
- name: Disabled
value: Disabled
description: Disabled
parameters:
ResourceGroupNameParameter:
name: resourceGroupName
in: path
description: The name of the resource group. The name is case insensitive.
required: true
x-ms-parameter-location: method
schema:
type: string
maxLength: 90
minLength: 1
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription. The value must be an UUID.
required: true
schema:
type: string
format: uuid
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow.