{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-express-route/json-schema/microsoft-azure-express-route-express-route-provider-port-schema.json",
  "title": "ExpressRouteProviderPort",
  "description": "ExpressRouteProviderPort resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-express-route-expressrouteproviderports-api-openapi.yml#/components/schemas/ExpressRouteProviderPort",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ExpressRouteProviderPortProperties",
      "description": "Properties of the express route Service Provider Port.",
      "x-ms-client-flatten": true
    },
    "etag": {
      "type": "string",
      "description": "A unique read-only string that changes whenever the resource is updated.",
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/TrackedResourceWithOptionalLocation"
    }
  ],
  "$defs": {
    "ExpressRouteProviderPortProperties": {
      "type": "object",
      "description": "Properties of ExpressRouteProviderPort.",
      "properties": {
        "portPairDescriptor": {
          "type": "string",
          "description": "The name of the port pair.",
          "readOnly": true
        },
        "primaryAzurePort": {
          "type": "string",
          "description": "The name of the primary port.",
          "readOnly": true
        },
        "secondaryAzurePort": {
          "type": "string",
          "description": "The name of the secondary port.",
          "readOnly": true
        },
        "peeringLocation": {
          "type": "string",
          "description": "The peering location of the port pair."
        },
        "overprovisionFactor": {
          "type": "integer",
          "format": "int32",
          "description": "Overprovisioning factor for the port pair."
        },
        "portBandwidthInMbps": {
          "type": "integer",
          "format": "int32",
          "description": "Bandwidth of the port in Mbps"
        },
        "usedBandwidthInMbps": {
          "type": "integer",
          "format": "int32",
          "description": "Used Bandwidth of the port in Mbps"
        },
        "remainingBandwidthInMbps": {
          "type": "integer",
          "format": "int32",
          "description": "Remaining Bandwidth of the port in Mbps"
        }
      }
    },
    "TrackedResourceWithOptionalLocation": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID.",
          "readOnly": true
        },
        "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
    }
  }
}