{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-endpoint-instant-scheduled-tests-api-endpoint-http-server-instant-test-schema.json",
  "title": "Endpoint_Instant_Scheduled_Tests_API_EndpointHttpServerInstantTest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-http-server-endpoint-instant-scheduled-tests-api-openapi.yml#/components/schemas/Endpoint_Instant_Scheduled_Tests_API_EndpointHttpServerInstantTest",
  "allOf": [
    {
      "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointInstantTest"
    },
    {
      "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointHttpServerBaseTest"
    },
    {
      "type": "object",
      "required": [
        "url"
      ],
      "properties": {
        "hasPing": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TestRequestHasPing"
        },
        "hasTraceroute": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TestRequestHasTraceRoute"
        },
        "networkMeasurements": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TestNetworkMeasurements"
        },
        "targetResponseTime": {
          "type": "integer",
          "description": "Response time target in milliseconds. Affects the colors of agents and legends on the view page. The value is compared with actual response time in order to determine the color scale (from green to red).",
          "default": 1000
        },
        "password": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TestPassword"
        },
        "tcpProbeMode": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TestProbeMode"
        },
        "url": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointHttpServerTestUrl"
        }
      }
    }
  ],
  "$defs": {
    "Endpoint_Instant_Scheduled_Tests_API_EndpointAgentLabels": {
      "type": "array",
      "deprecated": true,
      "description": "Deprecated. Use `tagIds` instead.\n\nList of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.\n",
      "items": {
        "type": "string"
      }
    },
    "Endpoint_Instant_Scheduled_Tests_API_EndpointHttpServerBaseTest": {
      "type": "object",
      "properties": {
        "authType": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointTestAuthType"
        },
        "hasPathTraceInSession": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TestHasPathTraceInSession"
        },
        "httpTimeLimit": {
          "type": "integer",
          "description": "Maximum amount of time in milliseconds the agents wait before a request times out.",
          "default": 5000
        },
        "protocol": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointTestProtocol"
        },
        "username": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TestUsername"
        },
        "sslVersionId": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TestSslVersionId"
        },
        "tcpProbeMode": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TestProbeModeResponse"
        },
        "verifyCertificate": {
          "type": "boolean",
          "description": "Flag indicating if a certificate should be verified.",
          "default": true
        },
        "url": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointTestResultUrl"
        }
      }
    },
    "Endpoint_Instant_Scheduled_Tests_API_EndpointHttpServerTestUrl": {
      "type": "string",
      "description": "The test target URL. You can optionally specify the protocol (`http` or `https`). \n\n- **Default Protocol:** If no protocol is specified, `https` is used by default.\n\n- **Port Number:** To specify a port, append it to the URL with a colon after the hostname or IP address (e.g., `https://example.com:443`).\n\n    - If no port is specified in the URL, the `port` is determined by the default for protocol (HTTP: 80, HTTPS: 443).\n"
    },
    "Endpoint_Instant_Scheduled_Tests_API_EndpointInstantTest": {
      "type": "object",
      "required": [
        "testName"
      ],
      "properties": {
        "agentSelectorType": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointTestAgentSelectorType"
        },
        "agents": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointTestAgents"
        },
        "endpointAgentLabels": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointAgentLabels"
        },
        "tagIds": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TagIds"
        },
        "maxMachines": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointTestMaxMachines"
        },
        "testName": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_TestName"
        },
        "ipVersion": {
          "$ref": "#/$defs/Endpoint_Instant_Scheduled_Tests_API_EndpointIpVersionIn"
        }
      }
    },
    "Endpoint_Instant_Scheduled_Tests_API_EndpointIpVersionIn": {
      "description": "For configuring network tests, the IP version of the test.",
      "type": "string",
      "enum": [
        "V4_ONLY",
        "V6_ONLY",
        "V6_PREFER",
        "OS_DEFAULT"
      ]
    },
    "Endpoint_Instant_Scheduled_Tests_API_EndpointTestAgentSelectorType": {
      "type": "string",
      "enum": [
        "all-agents",
        "specific-agents",
        "agent-labels",
        "agent-tags"
      ],
      "description": "Specifies how agents are selected for the endpoint test.\n\nAgents can be selected from:\n  - all available agents\n  - a specific list of agents\n  - agents matching tags\n  - agents matching labels (deprecated)\n",
      "default": "all-agents"
    },
    "Endpoint_Instant_Scheduled_Tests_API_EndpointTestAgents": {
      "type": "array",
      "description": "List of endpoint agent IDs (obtained from `/endpoint/agents` endpoint). Required when `agentSelectorType` is set to `specific-agent`.",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "Endpoint_Instant_Scheduled_Tests_API_EndpointTestAuthType": {
      "type": "string",
      "description": "HTTP authentication type.",
      "enum": [
        "none",
        "basic",
        "ntlm"
      ],
      "default": "none"
    },
    "Endpoint_Instant_Scheduled_Tests_API_EndpointTestMaxMachines": {
      "type": "integer",
      "description": "Maximum number of agents which can execute the test.",
      "default": 25
    },
    "Endpoint_Instant_Scheduled_Tests_API_EndpointTestProtocol": {
      "type": "string",
      "enum": [
        "icmp",
        "icmp-with-tcp-connect",
        "tcp",
        "prefer-tcp",
        "ast-autodetect",
        "autodetect"
      ],
      "description": "Protocol requested for the test.",
      "default": "icmp"
    },
    "Endpoint_Instant_Scheduled_Tests_API_EndpointTestResultUrl": {
      "type": "string",
      "description": "The test target URL."
    },
    "Endpoint_Instant_Scheduled_Tests_API_TagIds": {
      "type": "array",
      "description": "List of tag IDs (obtained from `/tags` endpoint).",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "Endpoint_Instant_Scheduled_Tests_API_TestHasPathTraceInSession": {
      "type": "boolean",
      "description": "Enables \"in session\" path trace. When enabled, this option initiates a TCP session with the target server and sends path trace packets within the established TCP session."
    },
    "Endpoint_Instant_Scheduled_Tests_API_TestName": {
      "type": "string",
      "description": "Name of the test."
    },
    "Endpoint_Instant_Scheduled_Tests_API_TestNetworkMeasurements": {
      "type": "boolean",
      "description": "Enable or disable network measurements. Set to true to enable or false to disable network measurements.",
      "default": true
    },
    "Endpoint_Instant_Scheduled_Tests_API_TestPassword": {
      "type": "string",
      "description": "Password for Basic/NTLM authentication.",
      "writeOnly": true
    },
    "Endpoint_Instant_Scheduled_Tests_API_TestProbeMode": {
      "type": "string",
      "enum": [
        "auto",
        "sack",
        "syn"
      ],
      "description": "Probe mode used by network test, only valid when the protocol is set to TCP.",
      "default": "auto"
    },
    "Endpoint_Instant_Scheduled_Tests_API_TestProbeModeResponse": {
      "type": "string",
      "enum": [
        "auto",
        "sack",
        "syn",
        "syn-pcap",
        "syn-socket",
        "unknown"
      ],
      "description": "Probe mode returned by network test APIs, only valid when the protocol is set to TCP. Configuration responses return user-selectable values, while result responses may also return resolved driver values.",
      "default": "auto"
    },
    "Endpoint_Instant_Scheduled_Tests_API_TestRequestHasPing": {
      "type": "boolean",
      "description": "Optional flag indicating if the test should run ping.",
      "default": true,
      "deprecated": true
    },
    "Endpoint_Instant_Scheduled_Tests_API_TestRequestHasTraceRoute": {
      "type": "boolean",
      "description": "Optional flag indicating if the test should run traceroute.",
      "default": true,
      "deprecated": true
    },
    "Endpoint_Instant_Scheduled_Tests_API_TestSslVersionId": {
      "type": "string",
      "description": "SSL version options:\n\n* Use '0' for automatic selection.\n* Use '3' for SSLv3.\n* Use '4' for TLS v1.0.\n* Use '5' for TLS v1.1.\n* Use '6' for TLS v1.2.\n* Use '7' for TLS v1.3.\n",
      "enum": [
        "0",
        "3",
        "4",
        "5",
        "6",
        "7"
      ],
      "default": "0"
    },
    "Endpoint_Instant_Scheduled_Tests_API_TestUsername": {
      "type": "string",
      "description": "Username for Basic/NTLM authentication."
    }
  }
}