Back to Collection Items
-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
-- Important: Do not use nvarchar(max). See the warning about using nvarchar(max).
DECLARE @sTmp0 nvarchar(4000)
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @http int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'
DECLARE @sbResponseBody int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @http, 'QuickGetSb', @success OUT, 'https://api.app.ddog-gov.com/api/v1/synthetics/tests/:public_id', @sbResponseBody
IF @success = 0
BEGIN
EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
RETURN
END
DECLARE @jResp int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT
EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
EXEC sp_OASetProperty @jResp, 'EmitCompact', 0
PRINT 'Response Body:'
EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
PRINT @sTmp0
DECLARE @respStatusCode int
EXEC sp_OAGetProperty @http, 'LastStatus', @respStatusCode OUT
PRINT 'Response Status Code = ' + @respStatusCode
IF @respStatusCode >= 400
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @http, 'LastHeader', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Failed.'
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
RETURN
END
-- 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
DECLARE @description nvarchar(4000)
DECLARE @strVal nvarchar(4000)
DECLARE @day int
DECLARE @from nvarchar(4000)
DECLARE @v_to nvarchar(4000)
DECLARE @allowFailure int
DECLARE @isCritical int
DECLARE @noScreenshot int
DECLARE @timeout int
DECLARE @Allow_insecure int
EXEC sp_OAMethod @jResp, 'BoolOf', @Allow_insecure OUT, 'config.request.allow_insecure'
DECLARE @Password nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Password OUT, 'config.request.basicAuth.password'
DECLARE @Username nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Username OUT, 'config.request.basicAuth.username'
DECLARE @v_Type nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'config.request.basicAuth.type'
DECLARE @Body nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Body OUT, 'config.request.body'
DECLARE @BodyType nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @BodyType OUT, 'config.request.bodyType'
DECLARE @CallType nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @CallType OUT, 'config.request.callType'
DECLARE @Content nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Content OUT, 'config.request.certificate.cert.content'
DECLARE @Filename nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Filename OUT, 'config.request.certificate.cert.filename'
DECLARE @UpdatedAt nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @UpdatedAt OUT, 'config.request.certificate.cert.updatedAt'
DECLARE @KeyContent nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @KeyContent OUT, 'config.request.certificate.key.content'
DECLARE @KeyFilename nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @KeyFilename OUT, 'config.request.certificate.key.filename'
DECLARE @KeyUpdatedAt nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @KeyUpdatedAt OUT, 'config.request.certificate.key.updatedAt'
DECLARE @CompressedJsonDescriptor nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @CompressedJsonDescriptor OUT, 'config.request.compressedJsonDescriptor'
DECLARE @DnsServer nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @DnsServer OUT, 'config.request.dnsServer'
DECLARE @DnsServerPort int
EXEC sp_OAMethod @jResp, 'IntOf', @DnsServerPort OUT, 'config.request.dnsServerPort'
DECLARE @Follow_redirects int
EXEC sp_OAMethod @jResp, 'BoolOf', @Follow_redirects OUT, 'config.request.follow_redirects'
DECLARE @Dolor77f nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Dolor77f OUT, 'config.request.headers.dolor77f'
DECLARE @Excepteur5 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Excepteur5 OUT, 'config.request.headers.Excepteur5'
DECLARE @Cupidatatb2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Cupidatatb2 OUT, 'config.request.headers.cupidatatb2'
DECLARE @Host nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Host OUT, 'config.request.host'
DECLARE @Message nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Message OUT, 'config.request.message'
DECLARE @Cillum_f nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Cillum_f OUT, 'config.request.metadata.cillum_f'
DECLARE @Quicbd nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Quicbd OUT, 'config.request.metadata.quicbd'
DECLARE @Dolore2_7 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Dolore2_7 OUT, 'config.request.metadata.dolore2_7'
DECLARE @Method nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Method OUT, 'config.request.method'
DECLARE @NoSavingResponseBody int
EXEC sp_OAMethod @jResp, 'BoolOf', @NoSavingResponseBody OUT, 'config.request.noSavingResponseBody'
DECLARE @NumberOfPackets int
EXEC sp_OAMethod @jResp, 'IntOf', @NumberOfPackets OUT, 'config.request.numberOfPackets'
DECLARE @PersistCookies int
EXEC sp_OAMethod @jResp, 'BoolOf', @PersistCookies OUT, 'config.request.persistCookies'
DECLARE @Port int
EXEC sp_OAMethod @jResp, 'IntOf', @Port OUT, 'config.request.port'
DECLARE @v_Url nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_Url OUT, 'config.request.proxy.url'
DECLARE @Ut_a nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Ut_a OUT, 'config.request.proxy.headers.ut_a'
DECLARE @Servername nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Servername OUT, 'config.request.servername'
DECLARE @Service nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Service OUT, 'config.request.service'
DECLARE @ShouldTrackHops int
EXEC sp_OAMethod @jResp, 'BoolOf', @ShouldTrackHops OUT, 'config.request.shouldTrackHops'
DECLARE @Timeout nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Timeout OUT, 'config.request.timeout'
DECLARE @RequestUrl nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @RequestUrl OUT, 'config.request.url'
DECLARE @v_Email nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_Email OUT, 'creator.email'
DECLARE @Handle nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Handle OUT, 'creator.handle'
DECLARE @Name nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'creator.name'
DECLARE @message nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @message OUT, 'message'
DECLARE @monitor_id int
EXEC sp_OAMethod @jResp, 'IntOf', @monitor_id OUT, 'monitor_id'
DECLARE @name nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @name OUT, 'name'
DECLARE @Accept_self_signed int
EXEC sp_OAMethod @jResp, 'BoolOf', @Accept_self_signed OUT, 'options.accept_self_signed'
DECLARE @optionsAllow_insecure int
EXEC sp_OAMethod @jResp, 'BoolOf', @optionsAllow_insecure OUT, 'options.allow_insecure'
DECLARE @CheckCertificateRevocation int
EXEC sp_OAMethod @jResp, 'BoolOf', @CheckCertificateRevocation OUT, 'options.checkCertificateRevocation'
DECLARE @ExecutionRule nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @ExecutionRule OUT, 'options.ci.executionRule'
DECLARE @DisableCors int
EXEC sp_OAMethod @jResp, 'BoolOf', @DisableCors OUT, 'options.disableCors'
DECLARE @DisableCsp int
EXEC sp_OAMethod @jResp, 'BoolOf', @DisableCsp OUT, 'options.disableCsp'
DECLARE @optionsFollow_redirects int
EXEC sp_OAMethod @jResp, 'BoolOf', @optionsFollow_redirects OUT, 'options.follow_redirects'
DECLARE @HttpVersion nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @HttpVersion OUT, 'options.httpVersion'
DECLARE @IgnoreServerCertificateError int
EXEC sp_OAMethod @jResp, 'BoolOf', @IgnoreServerCertificateError OUT, 'options.ignoreServerCertificateError'
DECLARE @InitialNavigationTimeout int
EXEC sp_OAMethod @jResp, 'IntOf', @InitialNavigationTimeout OUT, 'options.initialNavigationTimeout'
DECLARE @Min_failure_duration int
EXEC sp_OAMethod @jResp, 'IntOf', @Min_failure_duration OUT, 'options.min_failure_duration'
DECLARE @Min_location_failed int
EXEC sp_OAMethod @jResp, 'IntOf', @Min_location_failed OUT, 'options.min_location_failed'
DECLARE @Monitor_name nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Monitor_name OUT, 'options.monitor_name'
DECLARE @Renotify_interval int
EXEC sp_OAMethod @jResp, 'IntOf', @Renotify_interval OUT, 'options.monitor_options.renotify_interval'
DECLARE @Monitor_priority int
EXEC sp_OAMethod @jResp, 'IntOf', @Monitor_priority OUT, 'options.monitor_priority'
DECLARE @NoScreenshot int
EXEC sp_OAMethod @jResp, 'BoolOf', @NoScreenshot OUT, 'options.noScreenshot'
DECLARE @Count int
EXEC sp_OAMethod @jResp, 'IntOf', @Count OUT, 'options.retry.count'
DECLARE @Interval nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Interval OUT, 'options.retry.interval'
DECLARE @ApplicationId nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @ApplicationId OUT, 'options.rumSettings.applicationId'
DECLARE @ClientTokenId int
EXEC sp_OAMethod @jResp, 'IntOf', @ClientTokenId OUT, 'options.rumSettings.clientTokenId'
DECLARE @IsEnabled int
EXEC sp_OAMethod @jResp, 'BoolOf', @IsEnabled OUT, 'options.rumSettings.isEnabled'
DECLARE @Timezone nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Timezone OUT, 'options.scheduling.timezone'
DECLARE @Tick_every int
EXEC sp_OAMethod @jResp, 'IntOf', @Tick_every OUT, 'options.tick_every'
DECLARE @public_id nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @public_id OUT, 'public_id'
DECLARE @status nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @status OUT, 'status'
DECLARE @subtype nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @subtype OUT, 'subtype'
DECLARE @v_type nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'type'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'config.configVariables'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @description OUT, 'config.configVariables[i].description'
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'config.configVariables[i].type'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'config.variables'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @description OUT, 'config.variables[i].description'
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'config.variables[i].type'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'locations'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'locations[i]'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'options.device_ids'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'options.device_ids[i]'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'options.restricted_roles'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'options.restricted_roles[i]'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'options.scheduling.timeframes'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'IntOf', @day OUT, 'options.scheduling.timeframes[i].day'
EXEC sp_OAMethod @jResp, 'StringOf', @from OUT, 'options.scheduling.timeframes[i].from'
EXEC sp_OAMethod @jResp, 'StringOf', @v_to OUT, 'options.scheduling.timeframes[i].to'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'steps'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'BoolOf', @allowFailure OUT, 'steps[i].allowFailure'
EXEC sp_OAMethod @jResp, 'BoolOf', @isCritical OUT, 'steps[i].isCritical'
EXEC sp_OAMethod @jResp, 'StringOf', @name OUT, 'steps[i].name'
EXEC sp_OAMethod @jResp, 'BoolOf', @noScreenshot OUT, 'steps[i].noScreenshot'
EXEC sp_OAMethod @jResp, 'IntOf', @timeout OUT, 'steps[i].timeout'
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'steps[i].type'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'tags'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'tags[i]'
SELECT @i = @i + 1
END
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO
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}"
}
]
}