Create HTTP Server test

POST {{baseUrl}}/tests/http-server?aid=1234&expand=agent,monitor

Creates a new HTTP Server test. This method requires Account Admin permissions.

Request Params

KeyDatatypeRequiredDescription
aidnumberA unique identifier associated with your account group. You can retrieve your AccountGroupId from the /account-groups endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.
expandstringOptional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the agents sub-resource, they need to pass the ?expand=agent query.

Request Body

{"value"=>"<Error: Could not resolve allOf schema"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;interval&quot;:60,&quot;url&quot;:&quot;www.thousandeyes.com&quot;,&quot;alertsEnabled&quot;:true,&quot;enabled&quot;:true,&quot;alertRules&quot;:[{&quot;ruleId&quot;:&quot;127094&quot;,&quot;ruleName&quot;:&quot;The End of the Internet&quot;,&quot;expression&quot;:&quot;((hops((hopDelay \u003e= 100 ms))))&quot;,&quot;direction&quot;:&quot;to-target&quot;,&quot;isDefault&quot;:true,&quot;alertType&quot;:&quot;http-server&quot;,&quot;minimumSources&quot;:10,&quot;minimumSourcesPct&quot;:99,&quot;roundsViolatingMode&quot;:&quot;exact&quot;,&quot;roundsViolatingOutOf&quot;:5,&quot;roundsViolatingRequired&quot;:2,&quot;sensitivityLevel&quot;:&quot;medium&quot;,&quot;severity&quot;:&quot;major&quot;},{&quot;ruleId&quot;:&quot;127094&quot;,&quot;ruleName&quot;:&quot;The End of the Internet&quot;,&quot;expression&quot;:&quot;((hops((hopDelay \u003e= 100 ms))))&quot;,&quot;direction&quot;:&quot;to-target&quot;,&quot;isDefault&quot;:true,&quot;alertType&quot;:&quot;http-server&quot;,&quot;minimumSources&quot;:10,&quot;minimumSourcesPct&quot;:99,&quot;roundsViolatingMode&quot;:&quot;exact&quot;,&quot;roundsViolatingOutOf&quot;:5,&quot;roundsViolatingRequired&quot;:2,&quot;sensitivityLevel&quot;:&quot;medium&quot;,&quot;severity&quot;:&quot;major&quot;}],&quot;createdBy&quot;:&quot;user@user.com&quot;,&quot;createdDate&quot;:&quot;2022-07-17T22:00:54Z&quot;,&quot;description&quot;:&quot;ThousandEyes Test&quot;,&quot;liveShare&quot;:false,&quot;modifiedBy&quot;:&quot;user@user.com&quot;,&quot;modifiedDate&quot;:&quot;2022-07-17T22:00:54Z&quot;,&quot;savedEvent&quot;:false,&quot;testId&quot;:&quot;281474976710706&quot;,&quot;testName&quot;:&quot;ThousandEyes Test&quot;,&quot;type&quot;:&quot;agent-to-server&quot;,&quot;_links&quot;:{&quot;self&quot;:{&quot;href&quot;:&quot;https://api.thousandeyes.com/v7/tests/{type}/281474976710706&quot;},&quot;testResults&quot;:[{&quot;href&quot;:&quot;https://api.thousandeyes.com/v7/test-results/281474976710706/network&quot;},{&quot;href&quot;:&quot;https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis&quot;}]},&quot;labels&quot;:[{&quot;labelId&quot;:&quot;961&quot;,&quot;name&quot;:&quot;Artem label&quot;,&quot;isBuiltin&quot;:false},{&quot;labelId&quot;:&quot;961&quot;,&quot;name&quot;:&quot;Artem label&quot;,&quot;isBuiltin&quot;:false}],&quot;sharedWithAccounts&quot;:[{&quot;aid&quot;:&quot;1234&quot;,&quot;name&quot;:&quot;Account name&quot;},{&quot;aid&quot;:&quot;1234&quot;,&quot;name&quot;:&quot;Account name&quot;}],&quot;authType&quot;:&quot;none&quot;,&quot;agentInterfaces&quot;:{&quot;ipAddress&quot;:&quot;192.1.1.0&quot;,&quot;agentId&quot;:&quot;2954&quot;},&quot;bandwidthMeasurements&quot;:true,&quot;clientCertificate&quot;:&quot;-----BEGIN PRIVATE KEY-----\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\n-----END PRIVATE KEY-----\n-----BEGIN CERTIFICATE-----\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\n-----END CERTIFICATE-----\n&quot;,&quot;contentRegex&quot;:&quot;(regex)+&quot;,&quot;customHeaders&quot;:{&quot;root&quot;:{&quot;header1&quot;:&quot;value1&quot;},&quot;domains&quot;:{&quot;domain1.com&quot;:{&quot;header2&quot;:&quot;value2&quot;}},&quot;all&quot;:{&quot;header3&quot;:&quot;value3&quot;}},&quot;desiredStatusCode&quot;:&quot;200&quot;,&quot;downloadLimit&quot;:2048,&quot;dnsOverride&quot;:&quot;8.8.8.8&quot;,&quot;httpTargetTime&quot;:100,&quot;httpTimeLimit&quot;:5,&quot;httpVersion&quot;:2,&quot;includeHeaders&quot;:true,&quot;mtuMeasurements&quot;:false,&quot;networkMeasurements&quot;:true,&quot;numPathTraces&quot;:3,&quot;oAuth&quot;:{&quot;configId&quot;:&quot;123321123&quot;,&quot;testUrl&quot;:&quot;https://api.thousandeyes.com/v7/status&quot;,&quot;requestMethod&quot;:&quot;get&quot;,&quot;postBody&quot;:&quot;client_id: ************&quot;,&quot;headers&quot;:&quot;Authorization: Basic ************&quot;,&quot;authType&quot;:&quot;none&quot;,&quot;username&quot;:&quot;user123&quot;,&quot;password&quot;:&quot;*******&quot;},&quot;pathTraceMode&quot;:&quot;classic&quot;,&quot;probeMode&quot;:&quot;auto&quot;,&quot;protocol&quot;:&quot;tcp&quot;,&quot;sslVersion&quot;:&quot;Auto&quot;,&quot;sslVersionId&quot;:&quot;0&quot;,&quot;useNtlm&quot;:false,&quot;userAgent&quot;:&quot;curl&quot;,&quot;username&quot;:&quot;username&quot;,&quot;verifyCertificate&quot;:false,&quot;allowUnsafeLegacyRenegotiation&quot;:true,&quot;followRedirects&quot;:true,&quot;fixedPacketRate&quot;:50,&quot;overrideAgentProxy&quot;:false,&quot;overrideProxyId&quot;:&quot;281474976710706&quot;,&quot;collectProxyNetworkData&quot;:false,&quot;headers&quot;:[&quot;header1: value1&quot;,&quot;header2: value2&quot;],&quot;postBody&quot;:&quot;{ \&quot;example\&quot; : \&quot;value\&quot;}&quot;,&quot;ipv6Policy&quot;:&quot;use-agent-policy&quot;,&quot;bgpMeasurements&quot;:true,&quot;usePublicBgp&quot;:true,&quot;monitors&quot;:[{&quot;countryId&quot;:&quot;GB&quot;,&quot;monitorId&quot;:&quot;1234&quot;,&quot;ipAddress&quot;:&quot;4.69.184.193&quot;,&quot;network&quot;:&quot;Level 3 Communications, Inc. (AS 3356)&quot;,&quot;monitorType&quot;:&quot;public&quot;,&quot;monitorName&quot;:&quot;Seattle, WA&quot;},{&quot;countryId&quot;:&quot;GB&quot;,&quot;monitorId&quot;:&quot;1234&quot;,&quot;ipAddress&quot;:&quot;4.69.184.193&quot;,&quot;network&quot;:&quot;Level 3 Communications, Inc. (AS 3356)&quot;,&quot;monitorType&quot;:&quot;public&quot;,&quot;monitorName&quot;:&quot;Seattle, WA&quot;}],&quot;agents&quot;:[{&quot;agentType&quot;:&quot;enterprise-cluster&quot;,&quot;ipAddresses&quot;:[&quot;99.139.65.220&quot;,&quot;9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce&quot;],&quot;publicIpAddresses&quot;:[&quot;192.168.1.78&quot;,&quot;f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c&quot;],&quot;network&quot;:&quot;AT\u0026T Services, Inc. (AS 7018)&quot;,&quot;agentId&quot;:&quot;281474976710706&quot;,&quot;agentName&quot;:&quot;thousandeyes-stg-va-254&quot;,&quot;location&quot;:&quot;San Francisco Bay Area&quot;,&quot;countryId&quot;:&quot;US&quot;,&quot;enabled&quot;:true,&quot;prefix&quot;:&quot;99.128.0.0/11&quot;,&quot;verifySslCertificates&quot;:true},{&quot;agentType&quot;:&quot;enterprise-cluster&quot;,&quot;ipAddresses&quot;:[&quot;99.139.65.220&quot;,&quot;9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce&quot;],&quot;publicIpAddresses&quot;:[&quot;192.168.1.78&quot;,&quot;f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c&quot;],&quot;network&quot;:&quot;AT\u0026T Services, Inc. (AS 7018)&quot;,&quot;agentId&quot;:&quot;281474976710706&quot;,&quot;agentName&quot;:&quot;thousandeyes-stg-va-254&quot;,&quot;location&quot;:&quot;San Francisco Bay Area&quot;,&quot;countryId&quot;:&quot;US&quot;,&quot;enabled&quot;:true,&quot;prefix&quot;:&quot;99.128.0.0/11&quot;,&quot;verifySslCertificates&quot;:true}]}