Unicode C++ / Datadog API Collection / Get the list of all Synthetic tests
Back to Collection Items
void ChilkatSample(void)
{
queryParams.UpdateString(L"page_size",L"tempor Ut sed velit"); queryParams.UpdateString(L"page_number",L"tempor Ut sed velit"); resp->GetBodySb(sbResponseBody); jResp.LoadSb(sbResponseBody); jResp.put_EmitCompact(false); jResp.put_I(i); Allow_insecure = jResp.BoolOf(L"tests[i].config.request.allow_insecure"); Password = jResp.stringOf(L"tests[i].config.request.basicAuth.password"); Username = jResp.stringOf(L"tests[i].config.request.basicAuth.username"); v_Type = jResp.stringOf(L"tests[i].config.request.basicAuth.type"); Body = jResp.stringOf(L"tests[i].config.request.body"); BodyType = jResp.stringOf(L"tests[i].config.request.bodyType"); CallType = jResp.stringOf(L"tests[i].config.request.callType"); Content = jResp.stringOf(L"tests[i].config.request.certificate.cert.content"); Filename = jResp.stringOf(L"tests[i].config.request.certificate.cert.filename"); UpdatedAt = jResp.stringOf(L"tests[i].config.request.certificate.cert.updatedAt"); KeyContent = jResp.stringOf(L"tests[i].config.request.certificate.key.content"); KeyFilename = jResp.stringOf(L"tests[i].config.request.certificate.key.filename"); KeyUpdatedAt = jResp.stringOf(L"tests[i].config.request.certificate.key.updatedAt"); CompressedJsonDescriptor = jResp.stringOf(L"tests[i].config.request.compressedJsonDescriptor"); DnsServer = jResp.stringOf(L"tests[i].config.request.dnsServer"); DnsServerPort = jResp.IntOf(L"tests[i].config.request.dnsServerPort"); Follow_redirects = jResp.BoolOf(L"tests[i].config.request.follow_redirects"); Site_ = jResp.stringOf(L"tests[i].config.request.headers.site_"); Sit1 = jResp.stringOf(L"tests[i].config.request.headers.sit1"); Host = jResp.stringOf(L"tests[i].config.request.host"); Message = jResp.stringOf(L"tests[i].config.request.message"); Pariaturd5f = jResp.stringOf(L"tests[i].config.request.metadata.pariaturd5f"); Veniam2 = jResp.stringOf(L"tests[i].config.request.metadata.veniam2"); Consectetura = jResp.stringOf(L"tests[i].config.request.metadata.consectetura"); Method = jResp.stringOf(L"tests[i].config.request.method"); NoSavingResponseBody = jResp.BoolOf(L"tests[i].config.request.noSavingResponseBody"); NumberOfPackets = jResp.IntOf(L"tests[i].config.request.numberOfPackets"); PersistCookies = jResp.BoolOf(L"tests[i].config.request.persistCookies"); Port = jResp.IntOf(L"tests[i].config.request.port"); v_Url = jResp.stringOf(L"tests[i].config.request.proxy.url"); In081 = jResp.stringOf(L"tests[i].config.request.proxy.headers.in081"); Servername = jResp.stringOf(L"tests[i].config.request.servername"); Service = jResp.stringOf(L"tests[i].config.request.service"); ShouldTrackHops = jResp.BoolOf(L"tests[i].config.request.shouldTrackHops"); Timeout = jResp.stringOf(L"tests[i].config.request.timeout"); RequestUrl = jResp.stringOf(L"tests[i].config.request.url"); v_Email = jResp.stringOf(L"tests[i].creator.email"); Handle = jResp.stringOf(L"tests[i].creator.handle"); Name = jResp.stringOf(L"tests[i].creator.name"); message = jResp.stringOf(L"tests[i].message"); monitor_id = jResp.IntOf(L"tests[i].monitor_id"); name = jResp.stringOf(L"tests[i].name"); Accept_self_signed = jResp.BoolOf(L"tests[i].options.accept_self_signed"); optionsAllow_insecure = jResp.BoolOf(L"tests[i].options.allow_insecure"); CheckCertificateRevocation = jResp.BoolOf(L"tests[i].options.checkCertificateRevocation"); ExecutionRule = jResp.stringOf(L"tests[i].options.ci.executionRule"); DisableCors = jResp.BoolOf(L"tests[i].options.disableCors"); DisableCsp = jResp.BoolOf(L"tests[i].options.disableCsp"); optionsFollow_redirects = jResp.BoolOf(L"tests[i].options.follow_redirects"); HttpVersion = jResp.stringOf(L"tests[i].options.httpVersion"); IgnoreServerCertificateError = jResp.BoolOf(L"tests[i].options.ignoreServerCertificateError"); InitialNavigationTimeout = jResp.IntOf(L"tests[i].options.initialNavigationTimeout"); Min_failure_duration = jResp.IntOf(L"tests[i].options.min_failure_duration"); Min_location_failed = jResp.IntOf(L"tests[i].options.min_location_failed"); Monitor_name = jResp.stringOf(L"tests[i].options.monitor_name"); Renotify_interval = jResp.IntOf(L"tests[i].options.monitor_options.renotify_interval"); Monitor_priority = jResp.IntOf(L"tests[i].options.monitor_priority"); NoScreenshot = jResp.BoolOf(L"tests[i].options.noScreenshot"); Count = jResp.IntOf(L"tests[i].options.retry.count"); Interval = jResp.stringOf(L"tests[i].options.retry.interval"); ApplicationId = jResp.stringOf(L"tests[i].options.rumSettings.applicationId"); ClientTokenId = jResp.IntOf(L"tests[i].options.rumSettings.clientTokenId"); IsEnabled = jResp.BoolOf(L"tests[i].options.rumSettings.isEnabled"); Timezone = jResp.stringOf(L"tests[i].options.scheduling.timezone"); Tick_every = jResp.IntOf(L"tests[i].options.tick_every"); public_id = jResp.stringOf(L"tests[i].public_id"); status = jResp.stringOf(L"tests[i].status"); subtype = jResp.stringOf(L"tests[i].subtype"); v_type = jResp.stringOf(L"tests[i].type"); Est_d9d = jResp.stringOf(L"tests[i].config.request.headers.est_d9d"); Cupidatat98f = jResp.stringOf(L"tests[i].config.request.headers.cupidatat98f"); Esse_ef4 = jResp.stringOf(L"tests[i].config.request.metadata.esse_ef4"); Do_b06 = jResp.stringOf(L"tests[i].config.request.metadata.do_b06"); Dolore_a5a = jResp.stringOf(L"tests[i].config.request.metadata.dolore_a5a"); Irure_15 = jResp.stringOf(L"tests[i].config.request.proxy.headers.irure_15"); Tempor40 = jResp.stringOf(L"tests[i].config.request.proxy.headers.tempor40"); j = 0; count_j = jResp.SizeOfArray(L"tests[i].config.configVariables"); jResp.put_J(j); description = jResp.stringOf(L"tests[i].config.configVariables[j].description"); v_type = jResp.stringOf(L"tests[i].config.configVariables[j].type"); j = j + 1; j = 0; count_j = jResp.SizeOfArray(L"tests[i].config.variables"); jResp.put_J(j); description = jResp.stringOf(L"tests[i].config.variables[j].description"); v_type = jResp.stringOf(L"tests[i].config.variables[j].type"); j = j + 1; j = 0; count_j = jResp.SizeOfArray(L"tests[i].locations"); jResp.put_J(j); strVal = jResp.stringOf(L"tests[i].locations[j]"); j = j + 1; j = 0; count_j = jResp.SizeOfArray(L"tests[i].options.device_ids"); jResp.put_J(j); strVal = jResp.stringOf(L"tests[i].options.device_ids[j]"); j = j + 1; j = 0; count_j = jResp.SizeOfArray(L"tests[i].options.restricted_roles"); jResp.put_J(j); strVal = jResp.stringOf(L"tests[i].options.restricted_roles[j]"); j = j + 1; j = 0; count_j = jResp.SizeOfArray(L"tests[i].options.scheduling.timeframes"); jResp.put_J(j); day = jResp.IntOf(L"tests[i].options.scheduling.timeframes[j].day"); from = jResp.stringOf(L"tests[i].options.scheduling.timeframes[j].from"); v_to = jResp.stringOf(L"tests[i].options.scheduling.timeframes[j].to"); j = j + 1; j = 0; count_j = jResp.SizeOfArray(L"tests[i].steps"); jResp.put_J(j); allowFailure = jResp.BoolOf(L"tests[i].steps[j].allowFailure"); isCritical = jResp.BoolOf(L"tests[i].steps[j].isCritical"); name = jResp.stringOf(L"tests[i].steps[j].name"); noScreenshot = jResp.BoolOf(L"tests[i].steps[j].noScreenshot"); timeout = jResp.IntOf(L"tests[i].steps[j].timeout"); v_type = jResp.stringOf(L"tests[i].steps[j].type"); j = j + 1; j = 0; count_j = jResp.SizeOfArray(L"tests[i].tags"); jResp.put_J(j); strVal = jResp.stringOf(L"tests[i].tags[j]"); j = j + 1; i = i + 1;
}
Curl Command
curl -G -d "page_size=tempor%20Ut%20sed%20velit"
-d "page_number=tempor%20Ut%20sed%20velit"
-H "Accept: application/json"
https://api.app.ddog-gov.com/api/v1/synthetics/tests
Postman Collection Item JSON
{
"name": "Get the list of all Synthetic tests",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests?page_size=tempor Ut sed velit&page_number=tempor Ut sed velit",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests"
],
"query": [
{
"key": "page_size",
"value": "tempor Ut sed velit",
"description": "Used for pagination. The number of tests returned in the page."
},
{
"key": "page_number",
"value": "tempor Ut sed velit",
"description": "Used for pagination. Which page you want to retrieve. Starts at zero."
}
]
},
"description": "Get the list of all Synthetic tests."
},
"response": [
{
"name": "OK - Returns the list of all Synthetic tests.",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests?page_size=tempor Ut sed velit&page_number=tempor Ut sed velit",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests"
],
"query": [
{
"key": "page_size",
"value": "tempor Ut sed velit",
"description": "Used for pagination. The number of tests returned in the page."
},
{
"key": "page_number",
"value": "tempor Ut sed velit",
"description": "Used for pagination. Which page you want to retrieve. Starts at zero."
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"tests\": [\n {\n \"config\": {\n \"configVariables\": [\n {\n \"description\": \"Example for the variable.\",\n \"type\": \"string\"\n },\n {\n \"description\": \"Example for the variable.\",\n \"type\": \"string\"\n }\n ],\n \"request\": {\n \"allow_insecure\": false,\n \"basicAuth\": {\n \"password\": \"PaSSw0RD!\",\n \"username\": \"my_username\",\n \"type\": \"web\"\n },\n \"body\": \"nisi elit aute proident minim\",\n \"bodyType\": \"text/plain\",\n \"callType\": \"unary\",\n \"certificate\": {\n \"cert\": {\n \"content\": \"Lorem irure\",\n \"filename\": \"Excepteur occaecat\",\n \"updatedAt\": \"quis exercitation\"\n },\n \"key\": {\n \"content\": \"officia aliquip\",\n \"filename\": \"Lorem in sed\",\n \"updatedAt\": \"exercitation commodo\"\n }\n },\n \"compressedJsonDescriptor\": \"dolore ea reprehenderit ad\",\n \"dnsServer\": \"cupida\",\n \"dnsServerPort\": 54877,\n \"follow_redirects\": true,\n \"headers\": {\n \"site_\": \"adipisicing ea\",\n \"sit1\": \"in incididunt exercitation eu\"\n },\n \"host\": \"ipsum\",\n \"message\": \"in cupidatat\",\n \"metadata\": {\n \"pariaturd5f\": \"qui sed ullamco et\",\n \"veniam2\": \"in ut adipisicing voluptate velit\",\n \"consectetura\": \"laborum sed Lorem in\"\n },\n \"method\": \"commodo non\",\n \"noSavingResponseBody\": false,\n \"numberOfPackets\": 6,\n \"persistCookies\": false,\n \"port\": 4381428,\n \"proxy\": {\n \"url\": \"https://example.com\",\n \"headers\": {\n \"in081\": \"exercitation a\"\n }\n },\n \"query\": {},\n \"servername\": \"in\",\n \"service\": \"Greeter\",\n \"shouldTrackHops\": false,\n \"timeout\": -9075364.229425669,\n \"url\": \"https://example.com\"\n },\n \"variables\": [\n {\n \"description\": \"Example for the variable.\",\n \"type\": \"string\"\n },\n {\n \"description\": \"Example for the variable.\",\n \"type\": \"string\"\n }\n ]\n },\n \"creator\": {\n \"email\": \"eiusmod in\",\n \"handle\": \"commodo enim\",\n \"name\": \"magna do occaeca\"\n },\n \"locations\": [\n \"aws:eu-west-3\"\n ],\n \"message\": \"velit Lorem amet non\",\n \"monitor_id\": -1212470,\n \"name\": \"esse incididunt consectetur labore\",\n \"options\": {\n \"accept_self_signed\": false,\n \"allow_insecure\": false,\n \"checkCertificateRevocation\": false,\n \"ci\": {\n \"executionRule\": \"blocking\"\n },\n \"device_ids\": [\n \"laptop_large\",\n \"laptop_large\"\n ],\n \"disableCors\": false,\n \"disableCsp\": false,\n \"follow_redirects\": false,\n \"httpVersion\": \"http2\",\n \"ignoreServerCertificateError\": true,\n \"initialNavigationTimeout\": -13991278,\n \"min_failure_duration\": -25741137,\n \"min_location_failed\": 16891533,\n \"monitor_name\": \"veniam occaecat Lorem do\",\n \"monitor_options\": {\n \"renotify_interval\": 206\n },\n \"monitor_priority\": 1,\n \"noScreenshot\": true,\n \"restricted_roles\": [\n \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n ],\n \"retry\": {\n \"count\": 75644948,\n \"interval\": 62584402.461459786\n },\n \"rumSettings\": {\n \"applicationId\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n \"clientTokenId\": 12345,\n \"isEnabled\": true\n },\n \"scheduling\": {\n \"timeframes\": [\n {\n \"day\": 1,\n \"from\": \"07:00\",\n \"to\": \"16:00\"\n },\n {\n \"day\": 3,\n \"from\": \"07:00\",\n \"to\": \"16:00\"\n }\n ],\n \"timezone\": \"America/New_York\"\n },\n \"tick_every\": 276495\n },\n \"public_id\": \"incididunt consequat officia nisi\",\n \"status\": \"live\",\n \"steps\": [\n {\n \"allowFailure\": false,\n \"isCritical\": false,\n \"name\": \"qui\",\n \"noScreenshot\": false,\n \"params\": {},\n \"timeout\": 50285708,\n \"type\": \"assertElementContent\"\n },\n {\n \"allowFailure\": true,\n \"isCritical\": false,\n \"name\": \"esse minim ullamco occaecat\",\n \"noScreenshot\": true,\n \"params\": {},\n \"timeout\": -14507495,\n \"type\": \"assertElementContent\"\n }\n ],\n \"subtype\": \"http\",\n \"tags\": [\n \"exercitation Ut\",\n \"esse et sit\"\n ],\n \"type\": \"browser\"\n },\n {\n \"config\": {\n \"configVariables\": [\n {\n \"description\": \"Example for the variable.\",\n \"type\": \"string\"\n },\n {\n \"description\": \"Example for the variable.\",\n \"type\": \"string\"\n }\n ],\n \"request\": {\n \"allow_insecure\": false,\n \"basicAuth\": {\n \"password\": \"PaSSw0RD!\",\n \"username\": \"my_username\",\n \"type\": \"web\"\n },\n \"body\": \"voluptate minim\",\n \"bodyType\": \"text/plain\",\n \"callType\": \"unary\",\n \"certificate\": {\n \"cert\": {\n \"content\": \"qui Lorem non\",\n \"filename\": \"nostrud laboris culpa adipisicing\",\n \"updatedAt\": \"et esse cupidatat consectetur do\"\n },\n \"key\": {\n \"content\": \"cupidatat sunt\",\n \"filename\": \"pariatur nostru\",\n \"updatedAt\": \"Lorem dolor\"\n }\n },\n \"compressedJsonDescriptor\": \"aliquip laboris amet\",\n \"dnsServer\": \"magna\",\n \"dnsServerPort\": 35750,\n \"follow_redirects\": false,\n \"headers\": {\n \"est_d9d\": \"anim\",\n \"cupidatat98f\": \"esse\"\n },\n \"host\": \"ea esse\",\n \"message\": \"consequat ipsum ut Lorem\",\n \"metadata\": {\n \"esse_ef4\": \"commodo\",\n \"do_b06\": \"tempor adipisicing dolor\",\n \"dolore_a5a\": \"nostrud\"\n },\n \"method\": \"laboris\",\n \"noSavingResponseBody\": true,\n \"numberOfPackets\": 9,\n \"persistCookies\": true,\n \"port\": -288377,\n \"proxy\": {\n \"url\": \"https://example.com\",\n \"headers\": {\n \"irure_15\": \"in\",\n \"tempor40\": \"laboris veniam tempor qui nulla\"\n }\n },\n \"query\": {},\n \"servername\": \"ad laborum cupidatat\",\n \"service\": \"Greeter\",\n \"shouldTrackHops\": true,\n \"timeout\": -4889397.044413894,\n \"url\": \"https://example.com\"\n },\n \"variables\": [\n {\n \"description\": \"Example for the variable.\",\n \"type\": \"string\"\n },\n {\n \"description\": \"Example for the variable.\",\n \"type\": \"string\"\n }\n ]\n },\n \"creator\": {\n \"email\": \"in Duis nisi ex\",\n \"handle\": \"fugiat sint sed consequa\",\n \"name\": \"ipsum ut\"\n },\n \"locations\": [\n \"aws:eu-west-3\"\n ],\n \"message\": \"Excepteur ipsum exercitat\",\n \"monitor_id\": 17707116,\n \"name\": \"deserunt elit proident Lorem\",\n \"options\": {\n \"accept_self_signed\": false,\n \"allow_insecure\": false,\n \"checkCertificateRevocation\": false,\n \"ci\": {\n \"executionRule\": \"skipped\"\n },\n \"device_ids\": [\n \"laptop_large\",\n \"laptop_large\"\n ],\n \"disableCors\": false,\n \"disableCsp\": false,\n \"follow_redirects\": false,\n \"httpVersion\": \"http1\",\n \"ignoreServerCertificateError\": false,\n \"initialNavigationTimeout\": 29100273,\n \"min_failure_duration\": 5817749,\n \"min_location_failed\": 84916784,\n \"monitor_name\": \"velit quis\",\n \"monitor_options\": {\n \"renotify_interval\": 427\n },\n \"monitor_priority\": 1,\n \"noScreenshot\": false,\n \"restricted_roles\": [\n \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n ],\n \"retry\": {\n \"count\": 37028687,\n \"interval\": -23788886.712954804\n },\n \"rumSettings\": {\n \"applicationId\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n \"clientTokenId\": 12345,\n \"isEnabled\": true\n },\n \"scheduling\": {\n \"timeframes\": [\n {\n \"day\": 1,\n \"from\": \"07:00\",\n \"to\": \"16:00\"\n },\n {\n \"day\": 3,\n \"from\": \"07:00\",\n \"to\": \"16:00\"\n }\n ],\n \"timezone\": \"America/New_York\"\n },\n \"tick_every\": 256938\n },\n \"public_id\": \"Exc\",\n \"status\": \"live\",\n \"steps\": [\n {\n \"allowFailure\": true,\n \"isCritical\": true,\n \"name\": \"ipsum conse\",\n \"noScreenshot\": false,\n \"params\": {},\n \"timeout\": -75416003,\n \"type\": \"assertElementContent\"\n },\n {\n \"allowFailure\": false,\n \"isCritical\": false,\n \"name\": \"non do ex\",\n \"noScreenshot\": false,\n \"params\": {},\n \"timeout\": -91980592,\n \"type\": \"assertElementContent\"\n }\n ],\n \"subtype\": \"http\",\n \"tags\": [\n \"fugiat ex amet minim\",\n \"dolore occaecat ad dolor ex\"\n ],\n \"type\": \"api\"\n }\n ]\n}"
},
{
"name": "Forbidden",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests?page_size=tempor Ut sed velit&page_number=tempor Ut sed velit",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests"
],
"query": [
{
"key": "page_size",
"value": "tempor Ut sed velit",
"description": "Used for pagination. The number of tests returned in the page."
},
{
"key": "page_number",
"value": "tempor Ut sed velit",
"description": "Used for pagination. Which page you want to retrieve. Starts at zero."
}
]
}
},
"status": "Forbidden",
"code": 403,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"Bad Request\",\n \"Bad Request\"\n ]\n}"
},
{
"name": "Synthetic Monitoring is not activated for the user.",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests?page_size=tempor Ut sed velit&page_number=tempor Ut sed velit",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests"
],
"query": [
{
"key": "page_size",
"value": "tempor Ut sed velit",
"description": "Used for pagination. The number of tests returned in the page."
},
{
"key": "page_number",
"value": "tempor Ut sed velit",
"description": "Used for pagination. Which page you want to retrieve. Starts at zero."
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"Bad Request\",\n \"Bad Request\"\n ]\n}"
},
{
"name": "Too many requests",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests?page_size=tempor Ut sed velit&page_number=tempor Ut sed velit",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests"
],
"query": [
{
"key": "page_size",
"value": "tempor Ut sed velit",
"description": "Used for pagination. The number of tests returned in the page."
},
{
"key": "page_number",
"value": "tempor Ut sed velit",
"description": "Used for pagination. Which page you want to retrieve. Starts at zero."
}
]
}
},
"status": "Too Many Requests",
"code": 429,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"Bad Request\",\n \"Bad Request\"\n ]\n}"
}
]
}