Chilkat Online Tools

PowerBuilder / Datadog API Collection / Get a test configuration

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
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 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_Dolor77f
string ls_Excepteur5
string ls_Cupidatatb2
string ls_Host
string ls_Message
string ls_Cillum_f
string ls_Quicbd
string ls_Dolore2_7
string ls_Method
integer li_NoSavingResponseBody
integer li_NumberOfPackets
integer li_PersistCookies
integer li_Port
string ls_V_Url
string ls_Ut_a
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
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_Http.SetRequestHeader("Accept","application/json")

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

li_Success = loo_Http.QuickGetSb("https://api.app.ddog-gov.com/api/v1/synthetics/tests/:public_id",loo_SbResponseBody)
if li_Success = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_SbResponseBody
    return
end if

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_Http.LastStatus
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Http.LastHeader
    Write-Debug "Failed."
    destroy loo_Http
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "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": "deserunt non",
//       "bodyType": "text/plain",
//       "callType": "unary",
//       "certificate": {
//         "cert": {
//           "content": "ad dolor",
//           "filename": "culpa adipisicing",
//           "updatedAt": "ipsum magna irure aliquip"
//         },
//         "key": {
//           "content": "in labore",
//           "filename": "sit magna non dolore",
//           "updatedAt": "ipsum aute in"
//         }
//       },
//       "compressedJsonDescriptor": "co",
//       "dnsServer": "adipisicing dolore fugiat",
//       "dnsServerPort": 43085,
//       "follow_redirects": false,
//       "headers": {
//         "dolor77f": "laboris aliquip in",
//         "Excepteur5": "in ullamco est repr",
//         "cupidatatb2": "ex magna dolore"
//       },
//       "host": "qui eu",
//       "message": "dolore anim tempor minim dolor",
//       "metadata": {
//         "cillum_f": "elit ad ex ven",
//         "quicbd": "ut ipsum Duis cillum dolor",
//         "dolore2_7": "pariatur adipisicing enim dolore nulla"
//       },
//       "method": "deserunt",
//       "noSavingResponseBody": true,
//       "numberOfPackets": 9,
//       "persistCookies": false,
//       "port": -81939613,
//       "proxy": {
//         "url": "https://example.com",
//         "headers": {
//           "ut_a": "ut"
//         }
//       },
//       "query": {},
//       "servername": "adipisicing id dolore",
//       "service": "Greeter",
//       "shouldTrackHops": false,
//       "timeout": 10817249.274777964,
//       "url": "https://example.com"
//     },
//     "variables": [
//       {
//         "description": "Example for the variable.",
//         "type": "string"
//       },
//       {
//         "description": "Example for the variable.",
//         "type": "string"
//       }
//     ]
//   },
//   "creator": {
//     "email": "enim exercitation commodo in",
//     "handle": "et nulla eu",
//     "name": "cupidatat proident"
//   },
//   "locations": [
//     "aws:eu-west-3"
//   ],
//   "message": "eu do sunt commodo aliquip",
//   "monitor_id": -1517547,
//   "name": "deserunt amet occaecat",
//   "options": {
//     "accept_self_signed": true,
//     "allow_insecure": true,
//     "checkCertificateRevocation": true,
//     "ci": {
//       "executionRule": "non_blocking"
//     },
//     "device_ids": [
//       "laptop_large",
//       "laptop_large"
//     ],
//     "disableCors": true,
//     "disableCsp": true,
//     "follow_redirects": true,
//     "httpVersion": "http2",
//     "ignoreServerCertificateError": false,
//     "initialNavigationTimeout": -26222184,
//     "min_failure_duration": 76083858,
//     "min_location_failed": -39662994,
//     "monitor_name": "paria",
//     "monitor_options": {
//       "renotify_interval": 214
//     },
//     "monitor_priority": 4,
//     "noScreenshot": true,
//     "restricted_roles": [
//       "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
//     ],
//     "retry": {
//       "count": 1859540,
//       "interval": -51339928.952870026
//     },
//     "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": 74879
//   },
//   "public_id": "magna",
//   "status": "live",
//   "steps": [
//     {
//       "allowFailure": false,
//       "isCritical": true,
//       "name": "ea laborum ve",
//       "noScreenshot": false,
//       "params": {},
//       "timeout": 51909556,
//       "type": "assertElementContent"
//     },
//     {
//       "allowFailure": false,
//       "isCritical": true,
//       "name": "pariatur reprehenderit do",
//       "noScreenshot": false,
//       "params": {},
//       "timeout": 72919471,
//       "type": "assertElementContent"
//     }
//   ],
//   "subtype": "http",
//   "tags": [
//     "dolor Ut anim nisi ea",
//     "dolore anim ipsum pariatur"
//   ],
//   "type": "browser"
// }

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

li_Allow_insecure = loo_JResp.BoolOf("config.request.allow_insecure")
ls_Password = loo_JResp.StringOf("config.request.basicAuth.password")
ls_Username = loo_JResp.StringOf("config.request.basicAuth.username")
ls_V_Type = loo_JResp.StringOf("config.request.basicAuth.type")
ls_Body = loo_JResp.StringOf("config.request.body")
ls_BodyType = loo_JResp.StringOf("config.request.bodyType")
ls_CallType = loo_JResp.StringOf("config.request.callType")
ls_Content = loo_JResp.StringOf("config.request.certificate.cert.content")
ls_Filename = loo_JResp.StringOf("config.request.certificate.cert.filename")
ls_UpdatedAt = loo_JResp.StringOf("config.request.certificate.cert.updatedAt")
ls_KeyContent = loo_JResp.StringOf("config.request.certificate.key.content")
ls_KeyFilename = loo_JResp.StringOf("config.request.certificate.key.filename")
ls_KeyUpdatedAt = loo_JResp.StringOf("config.request.certificate.key.updatedAt")
ls_CompressedJsonDescriptor = loo_JResp.StringOf("config.request.compressedJsonDescriptor")
ls_DnsServer = loo_JResp.StringOf("config.request.dnsServer")
li_DnsServerPort = loo_JResp.IntOf("config.request.dnsServerPort")
li_Follow_redirects = loo_JResp.BoolOf("config.request.follow_redirects")
ls_Dolor77f = loo_JResp.StringOf("config.request.headers.dolor77f")
ls_Excepteur5 = loo_JResp.StringOf("config.request.headers.Excepteur5")
ls_Cupidatatb2 = loo_JResp.StringOf("config.request.headers.cupidatatb2")
ls_Host = loo_JResp.StringOf("config.request.host")
ls_Message = loo_JResp.StringOf("config.request.message")
ls_Cillum_f = loo_JResp.StringOf("config.request.metadata.cillum_f")
ls_Quicbd = loo_JResp.StringOf("config.request.metadata.quicbd")
ls_Dolore2_7 = loo_JResp.StringOf("config.request.metadata.dolore2_7")
ls_Method = loo_JResp.StringOf("config.request.method")
li_NoSavingResponseBody = loo_JResp.BoolOf("config.request.noSavingResponseBody")
li_NumberOfPackets = loo_JResp.IntOf("config.request.numberOfPackets")
li_PersistCookies = loo_JResp.BoolOf("config.request.persistCookies")
li_Port = loo_JResp.IntOf("config.request.port")
ls_V_Url = loo_JResp.StringOf("config.request.proxy.url")
ls_Ut_a = loo_JResp.StringOf("config.request.proxy.headers.ut_a")
ls_Servername = loo_JResp.StringOf("config.request.servername")
ls_Service = loo_JResp.StringOf("config.request.service")
li_ShouldTrackHops = loo_JResp.BoolOf("config.request.shouldTrackHops")
ls_Timeout = loo_JResp.StringOf("config.request.timeout")
ls_RequestUrl = loo_JResp.StringOf("config.request.url")
ls_V_Email = loo_JResp.StringOf("creator.email")
ls_Handle = loo_JResp.StringOf("creator.handle")
ls_Name = loo_JResp.StringOf("creator.name")
ls_Message = loo_JResp.StringOf("message")
li_Monitor_id = loo_JResp.IntOf("monitor_id")
ls_Name = loo_JResp.StringOf("name")
li_Accept_self_signed = loo_JResp.BoolOf("options.accept_self_signed")
li_OptionsAllow_insecure = loo_JResp.BoolOf("options.allow_insecure")
li_CheckCertificateRevocation = loo_JResp.BoolOf("options.checkCertificateRevocation")
ls_ExecutionRule = loo_JResp.StringOf("options.ci.executionRule")
li_DisableCors = loo_JResp.BoolOf("options.disableCors")
li_DisableCsp = loo_JResp.BoolOf("options.disableCsp")
li_OptionsFollow_redirects = loo_JResp.BoolOf("options.follow_redirects")
ls_HttpVersion = loo_JResp.StringOf("options.httpVersion")
li_IgnoreServerCertificateError = loo_JResp.BoolOf("options.ignoreServerCertificateError")
li_InitialNavigationTimeout = loo_JResp.IntOf("options.initialNavigationTimeout")
li_Min_failure_duration = loo_JResp.IntOf("options.min_failure_duration")
li_Min_location_failed = loo_JResp.IntOf("options.min_location_failed")
ls_Monitor_name = loo_JResp.StringOf("options.monitor_name")
li_Renotify_interval = loo_JResp.IntOf("options.monitor_options.renotify_interval")
li_Monitor_priority = loo_JResp.IntOf("options.monitor_priority")
li_NoScreenshot = loo_JResp.BoolOf("options.noScreenshot")
li_Count = loo_JResp.IntOf("options.retry.count")
ls_Interval = loo_JResp.StringOf("options.retry.interval")
ls_ApplicationId = loo_JResp.StringOf("options.rumSettings.applicationId")
li_ClientTokenId = loo_JResp.IntOf("options.rumSettings.clientTokenId")
li_IsEnabled = loo_JResp.BoolOf("options.rumSettings.isEnabled")
ls_Timezone = loo_JResp.StringOf("options.scheduling.timezone")
li_Tick_every = loo_JResp.IntOf("options.tick_every")
ls_Public_id = loo_JResp.StringOf("public_id")
ls_Status = loo_JResp.StringOf("status")
ls_Subtype = loo_JResp.StringOf("subtype")
ls_V_type = loo_JResp.StringOf("type")
i = 0
li_Count_i = loo_JResp.SizeOfArray("config.configVariables")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Description = loo_JResp.StringOf("config.configVariables[i].description")
    ls_V_type = loo_JResp.StringOf("config.configVariables[i].type")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("config.variables")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Description = loo_JResp.StringOf("config.variables[i].description")
    ls_V_type = loo_JResp.StringOf("config.variables[i].type")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("locations")
do while i < li_Count_i
    loo_JResp.I = i
    ls_StrVal = loo_JResp.StringOf("locations[i]")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("options.device_ids")
do while i < li_Count_i
    loo_JResp.I = i
    ls_StrVal = loo_JResp.StringOf("options.device_ids[i]")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("options.restricted_roles")
do while i < li_Count_i
    loo_JResp.I = i
    ls_StrVal = loo_JResp.StringOf("options.restricted_roles[i]")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("options.scheduling.timeframes")
do while i < li_Count_i
    loo_JResp.I = i
    li_Day = loo_JResp.IntOf("options.scheduling.timeframes[i].day")
    ls_From = loo_JResp.StringOf("options.scheduling.timeframes[i].from")
    ls_V_to = loo_JResp.StringOf("options.scheduling.timeframes[i].to")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("steps")
do while i < li_Count_i
    loo_JResp.I = i
    li_AllowFailure = loo_JResp.BoolOf("steps[i].allowFailure")
    li_IsCritical = loo_JResp.BoolOf("steps[i].isCritical")
    ls_Name = loo_JResp.StringOf("steps[i].name")
    li_NoScreenshot = loo_JResp.BoolOf("steps[i].noScreenshot")
    li_Timeout = loo_JResp.IntOf("steps[i].timeout")
    ls_V_type = loo_JResp.StringOf("steps[i].type")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("tags")
do while i < li_Count_i
    loo_JResp.I = i
    ls_StrVal = loo_JResp.StringOf("tags[i]")
    i = i + 1
loop


destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp

Curl Command

curl -X GET
	-H "Accept: application/json"
https://api.app.ddog-gov.com/api/v1/synthetics/tests/:public_id

Postman Collection Item JSON

{
  "name": "Get a test configuration",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v1/synthetics/tests/:public_id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v1",
        "synthetics",
        "tests",
        ":public_id"
      ],
      "variable": [
        {
          "key": "public_id",
          "value": "tempor Ut sed velit"
        }
      ]
    },
    "description": "Get the detailed configuration associated with a Synthetic test."
  },
  "response": [
    {
      "name": "OK",
      "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/:public_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            ":public_id"
          ],
          "variable": [
            {
              "key": "public_id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\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\": \"deserunt non\",\n      \"bodyType\": \"text/plain\",\n      \"callType\": \"unary\",\n      \"certificate\": {\n        \"cert\": {\n          \"content\": \"ad dolor\",\n          \"filename\": \"culpa adipisicing\",\n          \"updatedAt\": \"ipsum magna irure aliquip\"\n        },\n        \"key\": {\n          \"content\": \"in labore\",\n          \"filename\": \"sit magna non dolore\",\n          \"updatedAt\": \"ipsum aute in\"\n        }\n      },\n      \"compressedJsonDescriptor\": \"co\",\n      \"dnsServer\": \"adipisicing dolore fugiat\",\n      \"dnsServerPort\": 43085,\n      \"follow_redirects\": false,\n      \"headers\": {\n        \"dolor77f\": \"laboris aliquip in\",\n        \"Excepteur5\": \"in ullamco est repr\",\n        \"cupidatatb2\": \"ex magna dolore\"\n      },\n      \"host\": \"qui eu\",\n      \"message\": \"dolore anim tempor minim dolor\",\n      \"metadata\": {\n        \"cillum_f\": \"elit ad ex ven\",\n        \"quicbd\": \"ut ipsum Duis cillum dolor\",\n        \"dolore2_7\": \"pariatur adipisicing enim dolore nulla\"\n      },\n      \"method\": \"deserunt\",\n      \"noSavingResponseBody\": true,\n      \"numberOfPackets\": 9,\n      \"persistCookies\": false,\n      \"port\": -81939613,\n      \"proxy\": {\n        \"url\": \"https://example.com\",\n        \"headers\": {\n          \"ut_a\": \"ut\"\n        }\n      },\n      \"query\": {},\n      \"servername\": \"adipisicing id dolore\",\n      \"service\": \"Greeter\",\n      \"shouldTrackHops\": false,\n      \"timeout\": 10817249.274777964,\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\": \"enim exercitation commodo in\",\n    \"handle\": \"et nulla eu\",\n    \"name\": \"cupidatat proident\"\n  },\n  \"locations\": [\n    \"aws:eu-west-3\"\n  ],\n  \"message\": \"eu do sunt commodo aliquip\",\n  \"monitor_id\": -1517547,\n  \"name\": \"deserunt amet occaecat\",\n  \"options\": {\n    \"accept_self_signed\": true,\n    \"allow_insecure\": true,\n    \"checkCertificateRevocation\": true,\n    \"ci\": {\n      \"executionRule\": \"non_blocking\"\n    },\n    \"device_ids\": [\n      \"laptop_large\",\n      \"laptop_large\"\n    ],\n    \"disableCors\": true,\n    \"disableCsp\": true,\n    \"follow_redirects\": true,\n    \"httpVersion\": \"http2\",\n    \"ignoreServerCertificateError\": false,\n    \"initialNavigationTimeout\": -26222184,\n    \"min_failure_duration\": 76083858,\n    \"min_location_failed\": -39662994,\n    \"monitor_name\": \"paria\",\n    \"monitor_options\": {\n      \"renotify_interval\": 214\n    },\n    \"monitor_priority\": 4,\n    \"noScreenshot\": true,\n    \"restricted_roles\": [\n      \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n    ],\n    \"retry\": {\n      \"count\": 1859540,\n      \"interval\": -51339928.952870026\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\": 74879\n  },\n  \"public_id\": \"magna\",\n  \"status\": \"live\",\n  \"steps\": [\n    {\n      \"allowFailure\": false,\n      \"isCritical\": true,\n      \"name\": \"ea laborum ve\",\n      \"noScreenshot\": false,\n      \"params\": {},\n      \"timeout\": 51909556,\n      \"type\": \"assertElementContent\"\n    },\n    {\n      \"allowFailure\": false,\n      \"isCritical\": true,\n      \"name\": \"pariatur reprehenderit do\",\n      \"noScreenshot\": false,\n      \"params\": {},\n      \"timeout\": 72919471,\n      \"type\": \"assertElementContent\"\n    }\n  ],\n  \"subtype\": \"http\",\n  \"tags\": [\n    \"dolor Ut anim nisi ea\",\n    \"dolore anim ipsum pariatur\"\n  ],\n  \"type\": \"browser\"\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/:public_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            ":public_id"
          ],
          "variable": [
            {
              "key": "public_id"
            }
          ]
        }
      },
      "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 is not activated for the user\n- Test is not owned by 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/:public_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            ":public_id"
          ],
          "variable": [
            {
              "key": "public_id"
            }
          ]
        }
      },
      "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/:public_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            ":public_id"
          ],
          "variable": [
            {
              "key": "public_id"
            }
          ]
        }
      },
      "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}"
    }
  ]
}