你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Express Route Ports - Get

检索请求的 ExpressRoutePort 资源。

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

URI 参数

名称 必需 类型 说明
expressRoutePortName
path True

string

ExpressRoutePort 的名称。

resourceGroupName
path True

string

资源组的名称。

subscriptionId
path True

string

唯一标识 Azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。

api-version
query True

string

客户端 API 版本。

响应

名称 类型 说明
200 OK

ExpressRoutePort

请求成功。 该操作返回请求的 ExpressRoutePort 资源。

Other Status Codes

CloudError

描述操作失败的原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

ExpressRoutePortGet

示例请求

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

示例响应

{
  "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": []
  }
}

定义

名称 说明
CloudError

服务的错误响应。

CloudErrorBody

服务的错误响应。

ExpressRouteLink

ExpressRouteLink

ExpressRouteLinkAdminState

物理端口的管理状态。

ExpressRouteLinkConnectorType

物理光纤端口类型。

ExpressRouteLinkMacSecCipher

Mac 安全密码。

ExpressRouteLinkMacSecConfig

ExpressRouteLink Mac 安全配置的定义。

ExpressRouteLinkMacSecSciState

已启用/禁用 Sci 模式。

ExpressRoutePort

ExpressRoute 端口

ExpressRoutePortsBillingType

ExpressRoutePort 资源的计费类型。

ExpressRoutePortsEncapsulation

物理端口上的封装方法。

ManagedServiceIdentity

资源的标识。

ProvisioningState

当前预配状态。

ResourceIdentityType

用于资源的标识类型。 类型“SystemAssigned,UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将从虚拟机中删除任何标识。

SubResource

对另一个子资源的引用。

UserAssignedIdentities

与资源关联的用户标识列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。

CloudError

服务的错误响应。

名称 类型 说明
error

CloudErrorBody

云错误正文。

CloudErrorBody

服务的错误响应。

名称 类型 说明
code

string

错误的标识符。 代码是固定的,旨在以编程方式使用。

details

CloudErrorBody[]

有关错误的其他详细信息的列表。

message

string

描述错误的消息,旨在适合在用户界面中显示。

target

string

特定错误的目标。 例如,错误属性的名称。

ExpressRouteLink

名称 类型 说明
etag

string

一个唯一的只读字符串,每当更新资源时更改。

id

string

资源 ID。

name

string

父级子端口资源中唯一的子端口资源的名称。

properties.adminState

ExpressRouteLinkAdminState

物理端口的管理状态。

properties.coloLocation

string

ExpressRoute 混合直接的 Cololocation。

properties.connectorType

ExpressRouteLinkConnectorType

物理光纤端口类型。

properties.interfaceName

string

Azure 路由器接口的名称。

properties.macSecConfig

ExpressRouteLinkMacSecConfig

ExpressRouteLink Mac 安全配置的定义。
MacSec 配置。

properties.patchPanelId

string

物理端口到修补面板端口之间的映射。

properties.provisioningState

ProvisioningState

快速路由链接资源的预配状态。

properties.rackId

string

物理修补面板到机架的映射。

properties.routerName

string

与物理端口关联的 Azure 路由器的名称。

ExpressRouteLinkAdminState

物理端口的管理状态。

说明
Disabled
Enabled

ExpressRouteLinkConnectorType

物理光纤端口类型。

说明
LC
SC

ExpressRouteLinkMacSecCipher

Mac 安全密码。

说明
GcmAes128
GcmAes256
GcmAesXpn128
GcmAesXpn256

ExpressRouteLinkMacSecConfig

ExpressRouteLink Mac 安全配置的定义。

名称 类型 说明
cakSecretIdentifier

string

包含 Mac 安全 CAK 密钥的 Keyvault 机密标识符 URL。

cipher

ExpressRouteLinkMacSecCipher

Mac 安全密码。

cknSecretIdentifier

string

包含 Mac 安全 CKN 密钥的 Keyvault 机密标识符 URL。

sciState

ExpressRouteLinkMacSecSciState

已启用/禁用 Sci 模式。

ExpressRouteLinkMacSecSciState

已启用/禁用 Sci 模式。

说明
Disabled
Enabled

ExpressRoutePort

ExpressRoute 端口

名称 类型 说明
etag

string

一个唯一的只读字符串,每当更新资源时更改。

id

string

资源 ID。

identity

ManagedServiceIdentity

ExpressRoutePort 的标识(如果已配置)。

location

string

资源位置。

name

string

资源名称。

properties.allocationDate

string

要在授权信中使用的物理端口分配的日期。

properties.bandwidthInGbps

integer

Gbps 中采购的端口的带宽。

properties.billingType

ExpressRoutePortsBillingType

ExpressRoutePort 资源的计费类型。

properties.circuits

SubResource[]

引用在此 ExpressRoutePort 资源上预配的 ExpressRoute 线路。

properties.encapsulation

ExpressRoutePortsEncapsulation

物理端口上的封装方法。

properties.etherType

string

物理端口的以太网类型。

properties.links

ExpressRouteLink[]

ExpressRouteLink Sub-Resources
ExpressRoutePort 资源的物理链接集。

properties.mtu

string

物理端口对的最大传输单位。

properties.peeringLocation

string

ExpressRoutePort 在物理上映射到的对等互连位置的名称。

properties.provisionedBandwidthInGbps

number

聚合关联的线路带宽的 Gbps。

properties.provisioningState

ProvisioningState

快速路由端口资源的预配状态。

properties.resourceGuid

string

快速路由端口资源的资源 GUID 属性。

tags

object

资源标记。

type

string

资源类型。

ExpressRoutePortsBillingType

ExpressRoutePort 资源的计费类型。

说明
MeteredData
UnlimitedData

ExpressRoutePortsEncapsulation

物理端口上的封装方法。

说明
Dot1Q
QinQ

ManagedServiceIdentity

资源的标识。

名称 类型 说明
principalId

string

系统分配标识的主体 ID。 此属性仅针对系统分配的标识提供。

tenantId

string

系统分配标识的租户 ID。 此属性仅针对系统分配的标识提供。

type

ResourceIdentityType

用于资源的标识类型。 类型“SystemAssigned,UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将从虚拟机中删除任何标识。

userAssignedIdentities

UserAssignedIdentities

与资源关联的用户标识列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。

ProvisioningState

当前预配状态。

说明
Deleting
Failed
Succeeded
Updating

ResourceIdentityType

用于资源的标识类型。 类型“SystemAssigned,UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将从虚拟机中删除任何标识。

说明
None
SystemAssigned
SystemAssigned, UserAssigned
UserAssigned

SubResource

对另一个子资源的引用。

名称 类型 说明
id

string

资源 ID。

UserAssignedIdentities

与资源关联的用户标识列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。

名称 类型 说明