PowerBuilder / Datadog API Collection / Get the list of all Synthetic tests
Back to Collection Items
integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_QueryParams
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
integer li_Allow_insecure
string ls_Password
string ls_Username
string ls_V_Type
string ls_Body
string ls_BodyType
string ls_CallType
string ls_Content
string ls_Filename
string ls_UpdatedAt
string ls_KeyContent
string ls_KeyFilename
string ls_KeyUpdatedAt
string ls_CompressedJsonDescriptor
string ls_DnsServer
integer li_DnsServerPort
integer li_Follow_redirects
string ls_Site_
string ls_Sit1
string ls_Host
string ls_Message
string ls_Pariaturd5f
string ls_Veniam2
string ls_Consectetura
string ls_Method
integer li_NoSavingResponseBody
integer li_NumberOfPackets
integer li_PersistCookies
integer li_Port
string ls_V_Url
string ls_In081
string ls_Servername
string ls_Service
integer li_ShouldTrackHops
string ls_Timeout
string ls_RequestUrl
string ls_V_Email
string ls_Handle
string ls_Name
string ls_Message
integer li_Monitor_id
string ls_Name
integer li_Accept_self_signed
integer li_OptionsAllow_insecure
integer li_CheckCertificateRevocation
string ls_ExecutionRule
integer li_DisableCors
integer li_DisableCsp
integer li_OptionsFollow_redirects
string ls_HttpVersion
integer li_IgnoreServerCertificateError
integer li_InitialNavigationTimeout
integer li_Min_failure_duration
integer li_Min_location_failed
string ls_Monitor_name
integer li_Renotify_interval
integer li_Monitor_priority
integer li_NoScreenshot
integer li_Count
string ls_Interval
string ls_ApplicationId
integer li_ClientTokenId
integer li_IsEnabled
string ls_Timezone
integer li_Tick_every
string ls_Public_id
string ls_Status
string ls_Subtype
string ls_V_type
string ls_Est_d9d
string ls_Cupidatat98f
string ls_Esse_ef4
string ls_Do_b06
string ls_Dolore_a5a
string ls_Irure_15
string ls_Tempor40
integer j
integer li_Count_j
string ls_Description
string ls_StrVal
integer li_Day
string ls_From
string ls_V_to
integer li_AllowFailure
integer li_IsCritical
integer li_NoScreenshot
integer li_Timeout
integer i
integer li_Count_i
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_QueryParams = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_QueryParams.ConnectToNewObject("Chilkat.JsonObject")
loo_QueryParams.UpdateString("page_size","tempor Ut sed velit")
loo_QueryParams.UpdateString("page_number","tempor Ut sed velit")
loo_Http.SetRequestHeader("Accept","application/json")
loo_Resp = loo_Http.QuickRequestParams("GET","https://api.app.ddog-gov.com/api/v1/synthetics/tests",loo_QueryParams)
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
destroy loo_Http
destroy loo_QueryParams
return
end if
loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")
loo_Resp.GetBodySb(loo_SbResponseBody)
loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")
loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0
Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()
li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
Write-Debug "Response Header:"
Write-Debug loo_Resp.Header
Write-Debug "Failed."
destroy loo_Resp
destroy loo_Http
destroy loo_QueryParams
destroy loo_SbResponseBody
destroy loo_JResp
return
end if
destroy loo_Resp
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "tests": [
// {
// "config": {
// "configVariables": [
// {
// "description": "Example for the variable.",
// "type": "string"
// },
// {
// "description": "Example for the variable.",
// "type": "string"
// }
// ],
// "request": {
// "allow_insecure": false,
// "basicAuth": {
// "password": "PaSSw0RD!",
// "username": "my_username",
// "type": "web"
// },
// "body": "nisi elit aute proident minim",
// "bodyType": "text/plain",
// "callType": "unary",
// "certificate": {
// "cert": {
// "content": "Lorem irure",
// "filename": "Excepteur occaecat",
// "updatedAt": "quis exercitation"
// },
// "key": {
// "content": "officia aliquip",
// "filename": "Lorem in sed",
// "updatedAt": "exercitation commodo"
// }
// },
// "compressedJsonDescriptor": "dolore ea reprehenderit ad",
// "dnsServer": "cupida",
// "dnsServerPort": 54877,
// "follow_redirects": true,
// "headers": {
// "site_": "adipisicing ea",
// "sit1": "in incididunt exercitation eu"
// },
// "host": "ipsum",
// "message": "in cupidatat",
// "metadata": {
// "pariaturd5f": "qui sed ullamco et",
// "veniam2": "in ut adipisicing voluptate velit",
// "consectetura": "laborum sed Lorem in"
// },
// "method": "commodo non",
// "noSavingResponseBody": false,
// "numberOfPackets": 6,
// "persistCookies": false,
// "port": 4381428,
// "proxy": {
// "url": "https://example.com",
// "headers": {
// "in081": "exercitation a"
// }
// },
// "query": {},
// "servername": "in",
// "service": "Greeter",
// "shouldTrackHops": false,
// "timeout": -9075364.229425669,
// "url": "https://example.com"
// },
// "variables": [
// {
// "description": "Example for the variable.",
// "type": "string"
// },
// {
// "description": "Example for the variable.",
// "type": "string"
// }
// ]
// },
// "creator": {
// "email": "eiusmod in",
// "handle": "commodo enim",
// "name": "magna do occaeca"
// },
// "locations": [
// "aws:eu-west-3"
// ],
// "message": "velit Lorem amet non",
// "monitor_id": -1212470,
// "name": "esse incididunt consectetur labore",
// "options": {
// "accept_self_signed": false,
// "allow_insecure": false,
// "checkCertificateRevocation": false,
// "ci": {
// "executionRule": "blocking"
// },
// "device_ids": [
// "laptop_large",
// "laptop_large"
// ],
// "disableCors": false,
// "disableCsp": false,
// "follow_redirects": false,
// "httpVersion": "http2",
// "ignoreServerCertificateError": true,
// "initialNavigationTimeout": -13991278,
// "min_failure_duration": -25741137,
// "min_location_failed": 16891533,
// "monitor_name": "veniam occaecat Lorem do",
// "monitor_options": {
// "renotify_interval": 206
// },
// "monitor_priority": 1,
// "noScreenshot": true,
// "restricted_roles": [
// "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
// ],
// "retry": {
// "count": 75644948,
// "interval": 62584402.461459786
// },
// "rumSettings": {
// "applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
// "clientTokenId": 12345,
// "isEnabled": true
// },
// "scheduling": {
// "timeframes": [
// {
// "day": 1,
// "from": "07:00",
// "to": "16:00"
// },
// {
// "day": 3,
// "from": "07:00",
// "to": "16:00"
// }
// ],
// "timezone": "America/New_York"
// },
// "tick_every": 276495
// },
// "public_id": "incididunt consequat officia nisi",
// "status": "live",
// "steps": [
// {
// "allowFailure": false,
// "isCritical": false,
// "name": "qui",
// "noScreenshot": false,
// "params": {},
// "timeout": 50285708,
// "type": "assertElementContent"
// },
// {
// "allowFailure": true,
// "isCritical": false,
// "name": "esse minim ullamco occaecat",
// "noScreenshot": true,
// "params": {},
// "timeout": -14507495,
// "type": "assertElementContent"
// }
// ],
// "subtype": "http",
// "tags": [
// "exercitation Ut",
// "esse et sit"
// ],
// "type": "browser"
// },
// {
// "config": {
// "configVariables": [
// {
// "description": "Example for the variable.",
// "type": "string"
// },
// {
// "description": "Example for the variable.",
// "type": "string"
// }
// ],
// "request": {
// "allow_insecure": false,
// "basicAuth": {
// "password": "PaSSw0RD!",
// "username": "my_username",
// "type": "web"
// },
// "body": "voluptate minim",
// "bodyType": "text/plain",
// "callType": "unary",
// "certificate": {
// "cert": {
// "content": "qui Lorem non",
// "filename": "nostrud laboris culpa adipisicing",
// "updatedAt": "et esse cupidatat consectetur do"
// },
// "key": {
// "content": "cupidatat sunt",
// "filename": "pariatur nostru",
// "updatedAt": "Lorem dolor"
// }
// },
// "compressedJsonDescriptor": "aliquip laboris amet",
// "dnsServer": "magna",
// "dnsServerPort": 35750,
// "follow_redirects": false,
// "headers": {
// "est_d9d": "anim",
// "cupidatat98f": "esse"
// },
// "host": "ea esse",
// "message": "consequat ipsum ut Lorem",
// "metadata": {
// "esse_ef4": "commodo",
// "do_b06": "tempor adipisicing dolor",
// "dolore_a5a": "nostrud"
// },
// "method": "laboris",
// "noSavingResponseBody": true,
// "numberOfPackets": 9,
// "persistCookies": true,
// "port": -288377,
// "proxy": {
// "url": "https://example.com",
// "headers": {
// "irure_15": "in",
// "tempor40": "laboris veniam tempor qui nulla"
// }
// },
// "query": {},
// "servername": "ad laborum cupidatat",
// "service": "Greeter",
// "shouldTrackHops": true,
// "timeout": -4889397.044413894,
// "url": "https://example.com"
// },
// "variables": [
// {
// "description": "Example for the variable.",
// "type": "string"
// },
// {
// "description": "Example for the variable.",
// "type": "string"
// }
// ]
// },
// "creator": {
// "email": "in Duis nisi ex",
// "handle": "fugiat sint sed consequa",
// "name": "ipsum ut"
// },
// "locations": [
// "aws:eu-west-3"
// ],
// "message": "Excepteur ipsum exercitat",
// "monitor_id": 17707116,
// "name": "deserunt elit proident Lorem",
// "options": {
// "accept_self_signed": false,
// "allow_insecure": false,
// "checkCertificateRevocation": false,
// "ci": {
// "executionRule": "skipped"
// },
// "device_ids": [
// "laptop_large",
// "laptop_large"
// ],
// "disableCors": false,
// "disableCsp": false,
// "follow_redirects": false,
// "httpVersion": "http1",
// "ignoreServerCertificateError": false,
// "initialNavigationTimeout": 29100273,
// "min_failure_duration": 5817749,
// "min_location_failed": 84916784,
// "monitor_name": "velit quis",
// "monitor_options": {
// "renotify_interval": 427
// },
// "monitor_priority": 1,
// "noScreenshot": false,
// "restricted_roles": [
// "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
// ],
// "retry": {
// "count": 37028687,
// "interval": -23788886.712954804
// },
// "rumSettings": {
// "applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
// "clientTokenId": 12345,
// "isEnabled": true
// },
// "scheduling": {
// "timeframes": [
// {
// "day": 1,
// "from": "07:00",
// "to": "16:00"
// },
// {
// "day": 3,
// "from": "07:00",
// "to": "16:00"
// }
// ],
// "timezone": "America/New_York"
// },
// "tick_every": 256938
// },
// "public_id": "Exc",
// "status": "live",
// "steps": [
// {
// "allowFailure": true,
// "isCritical": true,
// "name": "ipsum conse",
// "noScreenshot": false,
// "params": {},
// "timeout": -75416003,
// "type": "assertElementContent"
// },
// {
// "allowFailure": false,
// "isCritical": false,
// "name": "non do ex",
// "noScreenshot": false,
// "params": {},
// "timeout": -91980592,
// "type": "assertElementContent"
// }
// ],
// "subtype": "http",
// "tags": [
// "fugiat ex amet minim",
// "dolore occaecat ad dolor ex"
// ],
// "type": "api"
// }
// ]
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
i = 0
li_Count_i = loo_JResp.SizeOfArray("tests")
do while i < li_Count_i
loo_JResp.I = i
li_Allow_insecure = loo_JResp.BoolOf("tests[i].config.request.allow_insecure")
ls_Password = loo_JResp.StringOf("tests[i].config.request.basicAuth.password")
ls_Username = loo_JResp.StringOf("tests[i].config.request.basicAuth.username")
ls_V_Type = loo_JResp.StringOf("tests[i].config.request.basicAuth.type")
ls_Body = loo_JResp.StringOf("tests[i].config.request.body")
ls_BodyType = loo_JResp.StringOf("tests[i].config.request.bodyType")
ls_CallType = loo_JResp.StringOf("tests[i].config.request.callType")
ls_Content = loo_JResp.StringOf("tests[i].config.request.certificate.cert.content")
ls_Filename = loo_JResp.StringOf("tests[i].config.request.certificate.cert.filename")
ls_UpdatedAt = loo_JResp.StringOf("tests[i].config.request.certificate.cert.updatedAt")
ls_KeyContent = loo_JResp.StringOf("tests[i].config.request.certificate.key.content")
ls_KeyFilename = loo_JResp.StringOf("tests[i].config.request.certificate.key.filename")
ls_KeyUpdatedAt = loo_JResp.StringOf("tests[i].config.request.certificate.key.updatedAt")
ls_CompressedJsonDescriptor = loo_JResp.StringOf("tests[i].config.request.compressedJsonDescriptor")
ls_DnsServer = loo_JResp.StringOf("tests[i].config.request.dnsServer")
li_DnsServerPort = loo_JResp.IntOf("tests[i].config.request.dnsServerPort")
li_Follow_redirects = loo_JResp.BoolOf("tests[i].config.request.follow_redirects")
ls_Site_ = loo_JResp.StringOf("tests[i].config.request.headers.site_")
ls_Sit1 = loo_JResp.StringOf("tests[i].config.request.headers.sit1")
ls_Host = loo_JResp.StringOf("tests[i].config.request.host")
ls_Message = loo_JResp.StringOf("tests[i].config.request.message")
ls_Pariaturd5f = loo_JResp.StringOf("tests[i].config.request.metadata.pariaturd5f")
ls_Veniam2 = loo_JResp.StringOf("tests[i].config.request.metadata.veniam2")
ls_Consectetura = loo_JResp.StringOf("tests[i].config.request.metadata.consectetura")
ls_Method = loo_JResp.StringOf("tests[i].config.request.method")
li_NoSavingResponseBody = loo_JResp.BoolOf("tests[i].config.request.noSavingResponseBody")
li_NumberOfPackets = loo_JResp.IntOf("tests[i].config.request.numberOfPackets")
li_PersistCookies = loo_JResp.BoolOf("tests[i].config.request.persistCookies")
li_Port = loo_JResp.IntOf("tests[i].config.request.port")
ls_V_Url = loo_JResp.StringOf("tests[i].config.request.proxy.url")
ls_In081 = loo_JResp.StringOf("tests[i].config.request.proxy.headers.in081")
ls_Servername = loo_JResp.StringOf("tests[i].config.request.servername")
ls_Service = loo_JResp.StringOf("tests[i].config.request.service")
li_ShouldTrackHops = loo_JResp.BoolOf("tests[i].config.request.shouldTrackHops")
ls_Timeout = loo_JResp.StringOf("tests[i].config.request.timeout")
ls_RequestUrl = loo_JResp.StringOf("tests[i].config.request.url")
ls_V_Email = loo_JResp.StringOf("tests[i].creator.email")
ls_Handle = loo_JResp.StringOf("tests[i].creator.handle")
ls_Name = loo_JResp.StringOf("tests[i].creator.name")
ls_Message = loo_JResp.StringOf("tests[i].message")
li_Monitor_id = loo_JResp.IntOf("tests[i].monitor_id")
ls_Name = loo_JResp.StringOf("tests[i].name")
li_Accept_self_signed = loo_JResp.BoolOf("tests[i].options.accept_self_signed")
li_OptionsAllow_insecure = loo_JResp.BoolOf("tests[i].options.allow_insecure")
li_CheckCertificateRevocation = loo_JResp.BoolOf("tests[i].options.checkCertificateRevocation")
ls_ExecutionRule = loo_JResp.StringOf("tests[i].options.ci.executionRule")
li_DisableCors = loo_JResp.BoolOf("tests[i].options.disableCors")
li_DisableCsp = loo_JResp.BoolOf("tests[i].options.disableCsp")
li_OptionsFollow_redirects = loo_JResp.BoolOf("tests[i].options.follow_redirects")
ls_HttpVersion = loo_JResp.StringOf("tests[i].options.httpVersion")
li_IgnoreServerCertificateError = loo_JResp.BoolOf("tests[i].options.ignoreServerCertificateError")
li_InitialNavigationTimeout = loo_JResp.IntOf("tests[i].options.initialNavigationTimeout")
li_Min_failure_duration = loo_JResp.IntOf("tests[i].options.min_failure_duration")
li_Min_location_failed = loo_JResp.IntOf("tests[i].options.min_location_failed")
ls_Monitor_name = loo_JResp.StringOf("tests[i].options.monitor_name")
li_Renotify_interval = loo_JResp.IntOf("tests[i].options.monitor_options.renotify_interval")
li_Monitor_priority = loo_JResp.IntOf("tests[i].options.monitor_priority")
li_NoScreenshot = loo_JResp.BoolOf("tests[i].options.noScreenshot")
li_Count = loo_JResp.IntOf("tests[i].options.retry.count")
ls_Interval = loo_JResp.StringOf("tests[i].options.retry.interval")
ls_ApplicationId = loo_JResp.StringOf("tests[i].options.rumSettings.applicationId")
li_ClientTokenId = loo_JResp.IntOf("tests[i].options.rumSettings.clientTokenId")
li_IsEnabled = loo_JResp.BoolOf("tests[i].options.rumSettings.isEnabled")
ls_Timezone = loo_JResp.StringOf("tests[i].options.scheduling.timezone")
li_Tick_every = loo_JResp.IntOf("tests[i].options.tick_every")
ls_Public_id = loo_JResp.StringOf("tests[i].public_id")
ls_Status = loo_JResp.StringOf("tests[i].status")
ls_Subtype = loo_JResp.StringOf("tests[i].subtype")
ls_V_type = loo_JResp.StringOf("tests[i].type")
ls_Est_d9d = loo_JResp.StringOf("tests[i].config.request.headers.est_d9d")
ls_Cupidatat98f = loo_JResp.StringOf("tests[i].config.request.headers.cupidatat98f")
ls_Esse_ef4 = loo_JResp.StringOf("tests[i].config.request.metadata.esse_ef4")
ls_Do_b06 = loo_JResp.StringOf("tests[i].config.request.metadata.do_b06")
ls_Dolore_a5a = loo_JResp.StringOf("tests[i].config.request.metadata.dolore_a5a")
ls_Irure_15 = loo_JResp.StringOf("tests[i].config.request.proxy.headers.irure_15")
ls_Tempor40 = loo_JResp.StringOf("tests[i].config.request.proxy.headers.tempor40")
j = 0
li_Count_j = loo_JResp.SizeOfArray("tests[i].config.configVariables")
do while j < li_Count_j
loo_JResp.J = j
ls_Description = loo_JResp.StringOf("tests[i].config.configVariables[j].description")
ls_V_type = loo_JResp.StringOf("tests[i].config.configVariables[j].type")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("tests[i].config.variables")
do while j < li_Count_j
loo_JResp.J = j
ls_Description = loo_JResp.StringOf("tests[i].config.variables[j].description")
ls_V_type = loo_JResp.StringOf("tests[i].config.variables[j].type")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("tests[i].locations")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("tests[i].locations[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("tests[i].options.device_ids")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("tests[i].options.device_ids[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("tests[i].options.restricted_roles")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("tests[i].options.restricted_roles[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("tests[i].options.scheduling.timeframes")
do while j < li_Count_j
loo_JResp.J = j
li_Day = loo_JResp.IntOf("tests[i].options.scheduling.timeframes[j].day")
ls_From = loo_JResp.StringOf("tests[i].options.scheduling.timeframes[j].from")
ls_V_to = loo_JResp.StringOf("tests[i].options.scheduling.timeframes[j].to")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("tests[i].steps")
do while j < li_Count_j
loo_JResp.J = j
li_AllowFailure = loo_JResp.BoolOf("tests[i].steps[j].allowFailure")
li_IsCritical = loo_JResp.BoolOf("tests[i].steps[j].isCritical")
ls_Name = loo_JResp.StringOf("tests[i].steps[j].name")
li_NoScreenshot = loo_JResp.BoolOf("tests[i].steps[j].noScreenshot")
li_Timeout = loo_JResp.IntOf("tests[i].steps[j].timeout")
ls_V_type = loo_JResp.StringOf("tests[i].steps[j].type")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("tests[i].tags")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("tests[i].tags[j]")
j = j + 1
loop
i = i + 1
loop
destroy loo_Http
destroy loo_QueryParams
destroy loo_SbResponseBody
destroy loo_JResp
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}"
}
]
}