{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-tunnel-state-information-schema.json",
  "title": "TunnelStateInformation",
  "description": "Tunnel State Information",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-umbrella-debugging-api-openapi.yml#/components/schemas/TunnelStateInformation",
  "type": "object",
  "properties": {
    "tunnelId": {
      "type": "string",
      "readOnly": true,
      "description": "The tunnel ID"
    },
    "status": {
      "type": "string",
      "readOnly": true,
      "description": "The high-level tunnel status:\n\n* up - the tunnel is active\n* down - the tunnel is inactive\n* failed - the tunnel is in a failed state\n* unknown - the status is unknown and pending updated information",
      "enum": [
        "UP",
        "DOWN",
        "FAILED",
        "UNKNOWN"
      ]
    },
    "dc": {
      "type": "string",
      "readOnly": true,
      "description": "The domain name of the data center."
    },
    "dcName": {
      "type": "string",
      "readOnly": true,
      "description": "The name of the data center."
    },
    "dcDesc": {
      "type": "string",
      "readOnly": true,
      "description": "The city and country of region of the data center."
    },
    "ikeState": {
      "$ref": "#/$defs/ikeState"
    },
    "ipsecState": {
      "$ref": "#/$defs/ipsecState"
    },
    "peerId": {
      "type": "string",
      "readOnly": true,
      "description": "The remote peer IKE ID."
    },
    "peerIp": {
      "type": "string",
      "readOnly": true,
      "description": "The remote peer IP."
    },
    "localIp": {
      "type": "string",
      "readOnly": true,
      "description": "The public IP address, which is assigned to an endpoint device (ISR, Viptela)."
    },
    "peerPort": {
      "type": "string",
      "readOnly": true,
      "description": "The port of the remote peer."
    },
    "ike": {
      "title": "tunnelIKEState",
      "type": "object",
      "description": "The tunnel IKE session state.",
      "properties": {
        "age": {
          "type": "string",
          "readOnly": true,
          "description": "The age of the established state in seconds."
        },
        "dhGroup": {
          "type": "string",
          "readOnly": true,
          "description": "The IKE Diffie-Hellman group."
        },
        "prfAlgo": {
          "type": "string",
          "readOnly": true,
          "description": "The IKE pseudo random function."
        },
        "encAlgo": {
          "type": "string",
          "readOnly": true,
          "description": "The IKE encryption algorithm."
        },
        "initiatorSpi": {
          "type": "string",
          "readOnly": true,
          "description": "The hex encoded initiator SPI or cookie."
        },
        "responderSpi": {
          "type": "string",
          "readOnly": true,
          "description": "The hex encoded responder SPI or cookie."
        }
      }
    },
    "ipsec": {
      "title": "tunnelIPSecState",
      "type": "object",
      "description": "The tunnel IPSec session state.",
      "properties": {
        "age": {
          "type": "string",
          "readOnly": true,
          "description": "The age of the installed state in seconds."
        },
        "integrityAlgo": {
          "type": "string",
          "readOnly": true,
          "description": "The ESP or AH integrity algorithm name."
        },
        "encAlgo": {
          "type": "string",
          "readOnly": true,
          "description": "The ESP encryption algorithm name."
        },
        "encKeySize": {
          "type": "string",
          "readOnly": true,
          "description": "The ESP encryption key size (optional field, not available with NULL encryption)."
        },
        "spiIn": {
          "type": "string",
          "readOnly": true,
          "description": "The hex encoded inbound SPI."
        },
        "spiOut": {
          "type": "string",
          "readOnly": true,
          "description": "The hex encoded outbound SPI."
        },
        "peerSelectors": {
          "type": "array",
          "readOnly": true,
          "description": "The peer traffic selectors.",
          "items": {
            "type": "string",
            "description": "The selector expression."
          }
        }
      }
    },
    "data": {
      "title": "tunnelDataState",
      "description": "The state of the network tunnel data plane.",
      "type": "object",
      "properties": {
        "packetsIn": {
          "type": "string",
          "readOnly": true,
          "description": "The number of processed input packets (tunnel ingress)."
        },
        "bytesIn": {
          "type": "string",
          "readOnly": true,
          "description": "The number of processed input bytes (tunnel ingress)."
        },
        "idleTimeIn": {
          "type": "string",
          "readOnly": true,
          "description": "The idle time (seconds since last inbound packet)."
        },
        "packetsOut": {
          "type": "string",
          "readOnly": true,
          "description": "The number of processed output packets (tunnel egress)."
        },
        "bytesOut": {
          "type": "string",
          "readOnly": true,
          "description": "The number of processed output bytes (tunnel egress)."
        },
        "idleTimeOut": {
          "type": "string",
          "readOnly": true,
          "description": "The idle time (seconds since last outbound packet)."
        },
        "initialized": {
          "type": "string",
          "readOnly": true,
          "description": "The time when the packet and byte counters were initialized to 0."
        }
      }
    },
    "modifiedAt": {
      "type": "string",
      "readOnly": true,
      "format": "date-time",
      "description": "The date and time (UTC time with milliseconds) when the tunnel's state was last updated."
    }
  },
  "$defs": {
    "ikeState": {
      "type": "string",
      "readOnly": true,
      "description": "IKE SA State:\n  * CREATED\n  * CONNECTING\n  * ESTABLISHED\n  * PASSIVE\n  * REKEYING\n  * REKEYED\n  * DELETING\n  * DESTROYING\n",
      "enum": [
        "CREATED",
        "CONNECTING",
        "ESTABLISHED",
        "PASSIVE",
        "REKEYING",
        "REKEYED",
        "DELETING",
        "DESTROYING"
      ]
    },
    "ipsecState": {
      "type": "string",
      "readOnly": true,
      "description": "IPSec/Child SA State:\n  * CREATED\n  * ROUTED\n  * INSTALLING\n  * INSTALLED\n  * UPDATING\n  * REKEYING\n  * REKEYED\n  * RETRYING\n  * DELETING\n  * DELETED\n  * DESTROYING\n",
      "enum": [
        "CREATED",
        "ROUTED",
        "INSTALLING",
        "INSTALLED",
        "UPDATING",
        "REKEYING",
        "REKEYED",
        "RETRYING",
        "DELETING",
        "DELETED",
        "DESTROYING"
      ]
    }
  }
}