Create HTTP server instant test

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

Creates and runs a new HTTP server instant test.

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.
expandstring(Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the agents sub-resource, use the query ?expand=agent.

Request Body

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

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;url&quot;:&quot;www.thousandeyes.com&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;:true,&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;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}]}