{
  "$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-lag-schema.json",
  "title": "ExpressRoute LAG",
  "description": "ExpressRouteLag resource definition.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-express-route-expressroutelags-api-openapi.yml#/components/schemas/ExpressRouteLag",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ExpressRouteLagPropertiesFormat",
      "description": "ExpressRouteLag properties."
    },
    "id": {
      "type": "string",
      "description": "The unique identifier of the resource.",
      "readOnly": true
    },
    "type": {
      "type": "string",
      "description": "The type of the resource.",
      "readOnly": true
    },
    "etag": {
      "type": "string",
      "description": "A unique read-only string that changes whenever the resource is updated.",
      "readOnly": true
    },
    "identity": {
      "$ref": "#/$defs/ManagedServiceIdentity",
      "description": "The identity of ExpressRouteLag, if configured."
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "$defs": {
    "ExpressRouteLagAuthorization": {
      "type": "object",
      "title": "ExpressRoute Lag Authorization",
      "description": "ExpressRouteLag Authorization resource definition.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ExpressRouteLagAuthorizationPropertiesFormat",
          "description": "ExpressRouteLag authorization properties."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResourceWithReadOnlyID"
        }
      ]
    },
    "ExpressRouteLagAuthorizationPropertiesFormat": {
      "type": "object",
      "title": "ExpressRoute Lag Authorization Properties",
      "description": "Properties of ExpressRouteLag Authorization.",
      "properties": {
        "authorizationUseStatus": {
          "$ref": "#/$defs/ExpressRouteLagAuthorizationUseStatus",
          "description": "The authorization use status.",
          "readOnly": true
        },
        "circuitResourceUri": {
          "type": "string",
          "description": "The reference to the ExpressRoute circuit resource using the authorization.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the authorization resource.",
          "readOnly": true
        }
      }
    },
    "ExpressRouteLagAuthorizationUseStatus": {
      "type": "string",
      "description": "The authorization use status.",
      "enum": [
        "Available",
        "InUse"
      ],
      "x-ms-enum": {
        "name": "ExpressRouteLagAuthorizationUseStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Available",
            "value": "Available",
            "description": "The authorization is available and not currently associated with an ExpressRoute circuit."
          },
          {
            "name": "InUse",
            "value": "InUse",
            "description": "The authorization is currently in use by an ExpressRoute circuit."
          }
        ]
      }
    },
    "ExpressRouteLagBillingType": {
      "type": "string",
      "description": "The billing type of the ExpressRouteLag resource.",
      "enum": [
        "MeteredData",
        "UnlimitedData"
      ],
      "x-ms-enum": {
        "name": "ExpressRouteLagBillingType",
        "modelAsString": true,
        "values": [
          {
            "name": "MeteredData",
            "value": "MeteredData",
            "description": "Metered data transfer billing."
          },
          {
            "name": "UnlimitedData",
            "value": "UnlimitedData",
            "description": "Unlimited data transfer billing."
          }
        ]
      }
    },
    "ExpressRouteLagEncapsulation": {
      "type": "string",
      "description": "Encapsulation method on LAG.",
      "enum": [
        "Dot1Q",
        "QinQ"
      ],
      "x-ms-enum": {
        "name": "ExpressRouteLagEncapsulation",
        "modelAsString": true,
        "values": [
          {
            "name": "Dot1Q",
            "value": "Dot1Q",
            "description": "IEEE 802.1Q encapsulation."
          },
          {
            "name": "QinQ",
            "value": "QinQ",
            "description": "IEEE 802.1ad encapsulation."
          }
        ]
      }
    },
    "ExpressRouteLagLacpTimer": {
      "type": "string",
      "description": "LACP timer configuration.",
      "enum": [
        "Fast",
        "Slow"
      ],
      "x-ms-enum": {
        "name": "ExpressRouteLagLacpTimer",
        "modelAsString": true,
        "values": [
          {
            "name": "Fast",
            "value": "Fast",
            "description": "Fast LACP timer (30 seconds)."
          },
          {
            "name": "Slow",
            "value": "Slow",
            "description": "Slow LACP timer (90 seconds)."
          }
        ]
      }
    },
    "ExpressRouteLagLink": {
      "type": "object",
      "title": "ExpressRouteLagLink",
      "description": "ExpressRouteLagLink child resource definition.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ExpressRouteLagLinkPropertiesFormat",
          "description": "ExpressRouteLagLink properties."
        },
        "id": {
          "type": "string",
          "description": "The unique identifier of the resource.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Name of child link resource that is unique among child link resources of the parent.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "required": [
        "id",
        "type",
        "name"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "ExpressRouteLagLinkPropertiesFormat": {
      "type": "object",
      "title": "ExpressRouteLagLink Resource Properties",
      "description": "Properties specific to ExpressRouteLagLink resources.",
      "properties": {
        "routerName": {
          "type": "string",
          "description": "Name of Azure router associated with link.",
          "readOnly": true
        },
        "interfaceName": {
          "type": "string",
          "description": "Name of Azure router interface.",
          "readOnly": true
        },
        "adminState": {
          "$ref": "#/$defs/ExpressRouteLinkAdminState",
          "description": "Administrative state of the link."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the express route LAG link resource.",
          "readOnly": true
        },
        "macSecConfig": {
          "$ref": "#/$defs/ExpressRouteLinkMacSecConfig",
          "description": "MacSec configuration."
        },
        "members": {
          "type": "array",
          "title": "ExpressRouteLagMember Sub-Resources",
          "description": "The set of members of the ExpressRouteLagLink resource.",
          "items": {
            "$ref": "#/$defs/ExpressRouteLagMember"
          }
        }
      }
    },
    "ExpressRouteLagMember": {
      "type": "object",
      "title": "ExpressRouteLagMember",
      "description": "ExpressRouteLagMember child resource definition.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ExpressRouteLagMemberPropertiesFormat",
          "description": "ExpressRouteLagMember properties."
        },
        "id": {
          "type": "string",
          "description": "The unique identifier of the resource.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Name of child member resource that is unique among child member resources of the parent.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "required": [
        "id",
        "type",
        "name"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "ExpressRouteLagMemberPropertiesFormat": {
      "type": "object",
      "title": "ExpressRouteLagMember Resource Properties",
      "description": "Properties specific to ExpressRouteLagMember resources.",
      "properties": {
        "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 member.",
          "readOnly": true
        },
        "connectorType": {
          "$ref": "#/$defs/ExpressRouteLinkConnectorType",
          "description": "Physical fiber port type.",
          "readOnly": true
        },
        "adminState": {
          "$ref": "#/$defs/ExpressRouteLinkAdminState",
          "description": "Administrative state of the member port."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the express route LAG member resource.",
          "readOnly": true
        }
      }
    },
    "ExpressRouteLagPropertiesFormat": {
      "type": "object",
      "title": "ExpressRouteLag Resource Properties",
      "description": "Properties specific to ExpressRouteLag resources.",
      "properties": {
        "peeringLocation": {
          "type": "string",
          "description": "The name of the peering location that the ExpressRouteLag is mapped to physically."
        },
        "bandwidthInGbps": {
          "type": "integer",
          "format": "int32",
          "description": "Bandwidth of procured LAG in Gbps."
        },
        "provisionedBandwidthInGbps": {
          "type": "number",
          "format": "double",
          "description": "Aggregate Gbps of associated circuit bandwidths.",
          "readOnly": true
        },
        "mtu": {
          "type": "string",
          "description": "Maximum transmission unit of the LAG.",
          "readOnly": true
        },
        "encapsulation": {
          "$ref": "#/$defs/ExpressRouteLagEncapsulation",
          "description": "Encapsulation method on LAG."
        },
        "etherType": {
          "type": "string",
          "description": "Ether type of the LAG.",
          "readOnly": true
        },
        "links": {
          "type": "array",
          "title": "ExpressRouteLagLink Sub-Resources",
          "description": "The set of links of the ExpressRouteLag resource.",
          "items": {
            "$ref": "#/$defs/ExpressRouteLagLink"
          }
        },
        "circuits": {
          "type": "array",
          "description": "Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRouteLag resource.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "authorizations": {
          "type": "array",
          "title": "ExpressRouteLagAuthorizations Child-Resources",
          "description": "The set of authorizations of the ExpressRouteLag resource.",
          "items": {
            "$ref": "#/$defs/ExpressRouteLagAuthorization"
          }
        },
        "allocationDate": {
          "type": "string",
          "description": "The date and time when the ExpressRouteLag was allocated.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the express route LAG resource.",
          "readOnly": true
        },
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the express route LAG resource.",
          "readOnly": true
        },
        "billingType": {
          "$ref": "#/$defs/ExpressRouteLagBillingType",
          "description": "The billing type of the ExpressRouteLag resource."
        },
        "numberOfPorts": {
          "type": "integer",
          "format": "int32",
          "description": "Number of ports in the LAG.",
          "minimum": 1
        },
        "minimumActivePortsRequired": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum number of active ports required for LAG.",
          "minimum": 1
        },
        "lacpTimer": {
          "$ref": "#/$defs/ExpressRouteLagLacpTimer",
          "description": "LACP timer configuration."
        }
      }
    },
    "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"
          }
        ]
      }
    },
    "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"
          }
        ]
      }
    },
    "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"
          }
        ]
      }
    },
    "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": "#/$defs/ExpressRouteLinkMacSecCipher",
          "description": "Mac security cipher."
        },
        "sciState": {
          "$ref": "#/$defs/ExpressRouteLinkMacSecSciState",
          "description": "Sci mode enabled/disabled."
        }
      }
    },
    "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"
          }
        ]
      }
    },
    "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": "#/$defs/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": "#/$defs/ManagedServiceIdentityUserAssignedIdentities"
          }
        }
      }
    },
    "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"
          }
        ]
      }
    },
    "ProxyResourceWithReadOnlyID": {
      "type": "object",
      "description": "Proxy 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
        }
      },
      "x-ms-azure-resource": true
    },
    "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
    },
    "SubResource": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    }
  }
}