{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-interconnects-get-diagnostics-response-schema.json",
  "title": "InterconnectsGetDiagnosticsResponse",
  "description": "Response for the InterconnectsGetDiagnosticsRequest.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-interconnects-api-openapi.yml#/components/schemas/InterconnectsGetDiagnosticsResponse",
  "type": "object",
  "properties": {
    "result": {
      "$ref": "#/$defs/InterconnectDiagnostics"
    }
  },
  "$defs": {
    "InterconnectDiagnostics": {
      "description": "Diagnostics information about the Interconnect connection, which contains\ndetailed and current technical information about Google's side of the\nconnection.",
      "properties": {
        "links": {
          "type": "array",
          "description": "A list of InterconnectDiagnostics.LinkStatus objects,\ndescribing the status for each link on the Interconnect.",
          "items": {
            "$ref": "#/$defs/InterconnectDiagnosticsLinkStatus"
          }
        },
        "bundleOperationalStatus": {
          "type": "string",
          "description": "The operational status of the bundle interface.",
          "enum": [
            "BUNDLE_OPERATIONAL_STATUS_DOWN",
            "BUNDLE_OPERATIONAL_STATUS_UP"
          ]
        },
        "arpCaches": {
          "description": "A list of InterconnectDiagnostics.ARPEntry objects,\ndescribing individual neighbors currently seen by the Google router in\nthe ARP cache for the Interconnect.\nThis will be empty when the Interconnect is not bundled.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/InterconnectDiagnosticsARPEntry"
          }
        },
        "macAddress": {
          "type": "string",
          "description": "The MAC address of the Interconnect's bundle interface."
        },
        "bundleAggregationType": {
          "enum": [
            "BUNDLE_AGGREGATION_TYPE_LACP",
            "BUNDLE_AGGREGATION_TYPE_STATIC"
          ],
          "type": "string",
          "description": "The aggregation type of the bundle interface."
        }
      },
      "type": "object"
    },
    "InterconnectDiagnosticsARPEntry": {
      "description": "Describing the ARP neighbor entries seen on this link",
      "properties": {
        "ipAddress": {
          "type": "string",
          "description": "The IP address of this ARP neighbor."
        },
        "macAddress": {
          "description": "The MAC address of this ARP neighbor.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "InterconnectDiagnosticsLinkLACPStatus": {
      "type": "object",
      "properties": {
        "neighborSystemId": {
          "type": "string",
          "description": "System ID of the port on the neighbor's side of the LACP exchange."
        },
        "googleSystemId": {
          "description": "System ID of the port on Google's side of the LACP exchange.",
          "type": "string"
        },
        "state": {
          "enum": [
            "ACTIVE",
            "DETACHED"
          ],
          "description": "The state of a LACP link, which can take one of the following values:\n   \n   - ACTIVE: The link is configured and active within the bundle.\n   - DETACHED: The link is not configured within the bundle. This means\n   that the rest of the object should be empty.",
          "type": "string"
        }
      }
    },
    "InterconnectDiagnosticsLinkOpticalPower": {
      "properties": {
        "value": {
          "type": "number",
          "format": "float",
          "description": "Value of the current receiving or transmitting optical power, read in\ndBm. Take a known good optical value, give it a 10% margin and trigger\nwarnings relative to that value. In general, a -7dBm warning and a -11dBm\nalarm are good optical value estimates for most links."
        },
        "state": {
          "enum": [
            "HIGH_ALARM",
            "HIGH_WARNING",
            "LOW_ALARM",
            "LOW_WARNING",
            "OK"
          ],
          "type": "string",
          "description": "The status of the current value when compared to the warning and alarm\nlevels for the receiving or transmitting transceiver. Possible states\ninclude:\n   \n   \n    - OK: The value has not crossed a warning threshold.\n    - LOW_WARNING: The value has crossed below the low\n    warning threshold. \n   - HIGH_WARNING: The value has\n    crossed above the high warning threshold.\n    - LOW_ALARM: The value has crossed below the low alarm\n    threshold.\n    - HIGH_ALARM: The value has crossed above the high alarm\n    threshold."
        }
      },
      "type": "object"
    },
    "InterconnectDiagnosticsLinkStatus": {
      "properties": {
        "circuitId": {
          "type": "string",
          "description": "The unique ID for this link assigned during turn up by Google."
        },
        "arpCaches": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InterconnectDiagnosticsARPEntry"
          },
          "description": "A list of InterconnectDiagnostics.ARPEntry objects,\ndescribing the ARP neighbor entries seen on this link.\nThis will be empty if the link is bundled"
        },
        "transmittingOpticalPower": {
          "$ref": "#/$defs/InterconnectDiagnosticsLinkOpticalPower",
          "description": "An InterconnectDiagnostics.LinkOpticalPower object,\ndescribing the current value and status of the transmitted light level."
        },
        "macsec": {
          "$ref": "#/$defs/InterconnectDiagnosticsMacsecStatus",
          "description": "Describes the status of MACsec encryption on this link."
        },
        "receivingOpticalPower": {
          "$ref": "#/$defs/InterconnectDiagnosticsLinkOpticalPower",
          "description": "An InterconnectDiagnostics.LinkOpticalPower object,\ndescribing the current value and status of the received light level."
        },
        "lacpStatus": {
          "$ref": "#/$defs/InterconnectDiagnosticsLinkLACPStatus"
        },
        "googleDemarc": {
          "type": "string",
          "description": "The Demarc address assigned by Google and provided in the LoA."
        },
        "operationalStatus": {
          "type": "string",
          "description": "The operational status of the link.",
          "enum": [
            "LINK_OPERATIONAL_STATUS_DOWN",
            "LINK_OPERATIONAL_STATUS_UP"
          ]
        }
      },
      "type": "object"
    },
    "InterconnectDiagnosticsMacsecStatus": {
      "properties": {
        "operational": {
          "description": "Indicates whether or not MACsec is operational on this link.",
          "type": "boolean"
        },
        "ckn": {
          "type": "string",
          "description": "Indicates the Connectivity Association Key Name (CKN)\ncurrently being used if MACsec is operational."
        }
      },
      "description": "Describes the status of MACsec encryption on the link.",
      "type": "object"
    }
  }
}