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
Key | Datatype | Required | Description |
---|---|---|---|
aid | number | A 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. | |
expand | string | (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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"url":"www.thousandeyes.com","createdBy":"user@user.com","createdDate":"2022-07-17T22:00:54Z","description":"ThousandEyes Test","liveShare":false,"modifiedBy":"user@user.com","modifiedDate":"2022-07-17T22:00:54Z","savedEvent":true,"testId":"281474976710706","testName":"ThousandEyes Test","type":"agent-to-server","_links":{"self":{"href":"https://api.thousandeyes.com/v7/tests/{type}/281474976710706"},"testResults":[{"href":"https://api.thousandeyes.com/v7/test-results/281474976710706/network"},{"href":"https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"}]},"labels":[{"labelId":"961","name":"Artem label","isBuiltin":false},{"labelId":"961","name":"Artem label","isBuiltin":false}],"sharedWithAccounts":[{"aid":"1234","name":"Account name"},{"aid":"1234","name":"Account name"}],"authType":"none","agentInterfaces":{"ipAddress":"192.1.1.0","agentId":"2954"},"bandwidthMeasurements":true,"clientCertificate":"-----BEGIN PRIVATE KEY-----\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\n-----END PRIVATE KEY-----\n-----BEGIN CERTIFICATE-----\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\n-----END CERTIFICATE-----\n","contentRegex":"(regex)+","customHeaders":{"root":{"header1":"value1"},"domains":{"domain1.com":{"header2":"value2"}},"all":{"header3":"value3"}},"desiredStatusCode":"200","downloadLimit":2048,"dnsOverride":"8.8.8.8","httpTargetTime":100,"httpTimeLimit":5,"httpVersion":2,"includeHeaders":true,"mtuMeasurements":false,"networkMeasurements":true,"numPathTraces":3,"oAuth":{"configId":"123321123","testUrl":"https://api.thousandeyes.com/v7/status","requestMethod":"get","postBody":"client_id: ************","headers":"Authorization: Basic ************","authType":"none","username":"user123","password":"*******"},"pathTraceMode":"classic","probeMode":"auto","protocol":"tcp","sslVersion":"Auto","sslVersionId":"0","useNtlm":false,"userAgent":"curl","username":"username","verifyCertificate":false,"allowUnsafeLegacyRenegotiation":true,"followRedirects":true,"fixedPacketRate":50,"overrideAgentProxy":false,"overrideProxyId":"281474976710706","collectProxyNetworkData":false,"headers":["header1: value1","header2: value2"],"postBody":"{ \"example\" : \"value\"}","ipv6Policy":"use-agent-policy","agents":[{"agentType":"enterprise-cluster","ipAddresses":["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],"publicIpAddresses":["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],"network":"AT\u0026T Services, Inc. (AS 7018)","agentId":"281474976710706","agentName":"thousandeyes-stg-va-254","location":"San Francisco Bay Area","countryId":"US","enabled":true,"prefix":"99.128.0.0/11","verifySslCertificates":true},{"agentType":"enterprise-cluster","ipAddresses":["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],"publicIpAddresses":["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],"network":"AT\u0026T Services, Inc. (AS 7018)","agentId":"281474976710706","agentName":"thousandeyes-stg-va-254","location":"San Francisco Bay Area","countryId":"US","enabled":true,"prefix":"99.128.0.0/11","verifySslCertificates":true}]}