{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-tunnel-resource-object-with-secret-schema.json",
  "title": "TunnelResourceObjectWithSecret",
  "description": "The properties of the tunnel resource object.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-umbrella-organization-tunnel-api-openapi.yml#/components/schemas/TunnelResourceObjectWithSecret",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true,
      "description": "The tunnel resource ID. Use this ID as a reference for subsequent requests."
    },
    "uri": {
      "type": "string",
      "description": "Resource URI",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Display the name of the tunnel. The tunnel name is required, cannot exceed 50 characters in length,\nand can't have any special characters other than spaces and hyphens."
    },
    "siteOriginId": {
      "type": "integer",
      "description": "The Site origin ID that is associated with the tunnel."
    },
    "client": {
      "$ref": "#/$defs/TunnelClientMetadataWithSecret"
    },
    "transport": {
      "type": "object",
      "properties": {
        "protocol": {
          "description": "The tunnel transport protocol. The default transport protocol is IPSec.",
          "type": "string",
          "enum": [
            "IPSec"
          ],
          "readOnly": true
        }
      }
    },
    "serviceType": {
      "$ref": "#/$defs/serviceType"
    },
    "networkCIDRs": {
      "$ref": "#/$defs/networkCIDRs"
    },
    "meta": {
      "type": "object",
      "description": "The metadata for the tunnel object, related to service internals.",
      "readOnly": true
    },
    "createdAt": {
      "type": "string",
      "description": "The date and time (timestamp) when the tunnel was created.",
      "format": "date-time",
      "readOnly": true
    },
    "modifiedAt": {
      "$ref": "#/$defs/modifiedAt"
    }
  },
  "$defs": {
    "TunnelClientMetadataWithSecret": {
      "type": "object",
      "description": "The tunnel client's configuration metadata including the client secret.",
      "properties": {
        "deviceType": {
          "$ref": "#/$defs/deviceType"
        },
        "authentication": {
          "$ref": "#/$defs/authenticationWithSecret"
        }
      }
    },
    "authenticationWithSecret": {
      "type": "object",
      "description": "The authentication context of the client.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "PSK"
          ],
          "readOnly": true
        },
        "parameters": {
          "$ref": "#/$defs/parametersWithSecret"
        }
      }
    },
    "deviceType": {
      "type": "string",
      "description": "The type of device where the tunnel originates. The default value is `other`.",
      "enum": [
        "ASA",
        "FTD",
        "ISR",
        "Meraki MX",
        "Viptela cEdge",
        "Viptela vEdge",
        "other"
      ]
    },
    "modifiedAt": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "The data and time (timestamp) when the tunnel was updated."
    },
    "networkCIDRs": {
      "type": "array",
      "description": "Enter IPv4 ranges and CIDR addresses.\nIf `serviceType` is SIG, add all public and private address ranges used internally\nby your organization. Overrides Umbrella's default behavior,\nwhich allows traffic that is destined for RFC-1918 addresses to return through the tunnel.\nIf `serviceType` is Private Access, this field is required.\nThe 0.0.0.0/0 address range is not allowed.",
      "items": {
        "type": "string",
        "description": "An IPv4 CIDR range."
      }
    },
    "parametersWithSecret": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The PSK ID. If an IP address is used as the ID, the IP address is the value of this field.",
          "readOnly": true
        },
        "modifiedAt": {
          "$ref": "#/$defs/modifiedAt"
        },
        "secret": {
          "$ref": "#/$defs/secretParameter"
        }
      }
    },
    "secretParameter": {
      "type": "string",
      "description": "The secret of the PSK credentials. Ensure that you save the secret. The secret is not provided at any other time."
    },
    "serviceType": {
      "type": "string",
      "description": "The type of service to associate with the tunnel. The default value is `SIG`.",
      "enum": [
        "SIG",
        "Private Access"
      ]
    }
  }
}