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
DECLARE @iTmp0 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
-- Use this online tool to generate code from sample JSON: Generate Code to Create JSON
-- The following JSON is sent in the request body.
-- {
-- "config": {
-- "request": {
-- "allow_insecure": false,
-- "basicAuth": {
-- "password": "PaSSw0RD!",
-- "username": "my_username",
-- "type": "web"
-- },
-- "body": "dolore",
-- "bodyType": "text/plain",
-- "callType": "unary",
-- "certificate": {
-- "cert": {
-- "content": "dolor mollit id eu",
-- "filename": "enim ",
-- "updatedAt": "ad labore d"
-- },
-- "key": {
-- "content": "anim ut consequat eiusmod",
-- "filename": "non consectetur voluptate",
-- "updatedAt": "proi"
-- }
-- },
-- "compressedJsonDescriptor": "velit cillum",
-- "dnsServer": "sint irure sit commodo",
-- "dnsServerPort": 63263,
-- "follow_redirects": true,
-- "headers": {
-- "nulla_735": "esse enim velit",
-- "nulla_b_": "laboris ut"
-- },
-- "host": "aliquip nostrud",
-- "message": "Lorem laboris",
-- "metadata": {
-- "eub0d": "sint",
-- "exercitation1": "ut Duis"
-- },
-- "method": "dolo",
-- "noSavingResponseBody": false,
-- "numberOfPackets": 1,
-- "persistCookies": true,
-- "port": 82704033,
-- "proxy": {
-- "url": "https://example.com",
-- "headers": {
-- "ipsum83a": "ea laborum",
-- "irure_8": "dolor eiusmod aliqua ",
-- "esse67f": "veniam qui in"
-- }
-- },
-- "query": {},
-- "servername": "Duis sed minim quis",
-- "service": "Greeter",
-- "shouldTrackHops": false,
-- "timeout": 48414705.45711616,
-- "url": "https://example.com"
-- },
-- "configVariables": [
-- {
-- "description": "Example for the variable.",
-- "type": "string"
-- },
-- {
-- "description": "Example for the variable.",
-- "type": "string"
-- }
-- ],
-- "setCookie": "anim",
-- "variables": [
-- {
-- "description": "Example for the variable.",
-- "type": "string"
-- },
-- {
-- "description": "Example for the variable.",
-- "type": "string"
-- }
-- ]
-- },
-- "locations": [
-- "aws:eu-west-3"
-- ],
-- "name": "Example test name",
-- "options": {
-- "accept_self_signed": true,
-- "allow_insecure": false,
-- "checkCertificateRevocation": false,
-- "ci": {
-- "executionRule": "skipped"
-- },
-- "device_ids": [
-- "laptop_large",
-- "laptop_large"
-- ],
-- "disableCors": true,
-- "disableCsp": false,
-- "follow_redirects": true,
-- "httpVersion": "http2",
-- "ignoreServerCertificateError": false,
-- "initialNavigationTimeout": -93160400,
-- "min_failure_duration": 9338007,
-- "min_location_failed": -22553383,
-- "monitor_name": "nostrud dolor ullamco",
-- "monitor_options": {
-- "renotify_interval": 261
-- },
-- "monitor_priority": 3,
-- "noScreenshot": false,
-- "restricted_roles": [
-- "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
-- ],
-- "retry": {
-- "count": 67368482,
-- "interval": 59042710.53770983
-- },
-- "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": 427884
-- },
-- "type": "browser",
-- "message": "",
-- "monitor_id": -23388126,
-- "public_id": "cupidatat ipsum",
-- "status": "live",
-- "steps": [
-- {
-- "allowFailure": false,
-- "isCritical": true,
-- "name": "proident dolore ex",
-- "noScreenshot": true,
-- "params": {},
-- "timeout": 70509439,
-- "type": "assertElementContent"
-- },
-- {
-- "allowFailure": true,
-- "isCritical": true,
-- "name": "adipisicing volupt",
-- "noScreenshot": false,
-- "params": {},
-- "timeout": -22942790,
-- "type": "assertElementContent"
-- }
-- ],
-- "tags": [
-- "env:prod"
-- ]
-- }
DECLARE @json int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @json OUT
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'config.request.allow_insecure', 0
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.basicAuth.password', 'PaSSw0RD!'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.basicAuth.username', 'my_username'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.basicAuth.type', 'web'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.body', 'dolore'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.bodyType', 'text/plain'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.callType', 'unary'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.certificate.cert.content', 'dolor mollit id eu'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.certificate.cert.filename', 'enim '
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.certificate.cert.updatedAt', 'ad labore d'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.certificate.key.content', 'anim ut consequat eiusmod'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.certificate.key.filename', 'non consectetur voluptate'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.certificate.key.updatedAt', 'proi'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.compressedJsonDescriptor', 'velit cillum'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.dnsServer', 'sint irure sit commodo'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'config.request.dnsServerPort', 63263
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'config.request.follow_redirects', 1
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.headers.nulla_735', 'esse enim velit'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.headers.nulla_b_', 'laboris ut'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.host', 'aliquip nostrud'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.message', 'Lorem laboris'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.metadata.eub0d', 'sint'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.metadata.exercitation1', 'ut Duis'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.method', 'dolo'
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'config.request.noSavingResponseBody', 0
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'config.request.numberOfPackets', 1
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'config.request.persistCookies', 1
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'config.request.port', 82704033
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.proxy.url', 'https://example.com'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.proxy.headers.ipsum83a', 'ea laborum'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.proxy.headers.irure_8', 'dolor eiusmod aliqua '
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.proxy.headers.esse67f', 'veniam qui in'
EXEC sp_OAMethod @json, 'UpdateNewObject', @success OUT, 'config.request.query'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.servername', 'Duis sed minim quis'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.service', 'Greeter'
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'config.request.shouldTrackHops', 0
EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'config.request.timeout', '48414705.45711616'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.request.url', 'https://example.com'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.configVariables[0].description', 'Example for the variable.'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.configVariables[0].type', 'string'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.configVariables[1].description', 'Example for the variable.'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.configVariables[1].type', 'string'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.setCookie', 'anim'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.variables[0].description', 'Example for the variable.'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.variables[0].type', 'string'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.variables[1].description', 'Example for the variable.'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'config.variables[1].type', 'string'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'locations[0]', 'aws:eu-west-3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'name', 'Example test name'
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'options.accept_self_signed', 1
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'options.allow_insecure', 0
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'options.checkCertificateRevocation', 0
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.ci.executionRule', 'skipped'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.device_ids[0]', 'laptop_large'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.device_ids[1]', 'laptop_large'
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'options.disableCors', 1
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'options.disableCsp', 0
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'options.follow_redirects', 1
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.httpVersion', 'http2'
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'options.ignoreServerCertificateError', 0
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'options.initialNavigationTimeout', -93160400
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'options.min_failure_duration', 9338007
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'options.min_location_failed', -22553383
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.monitor_name', 'nostrud dolor ullamco'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'options.monitor_options.renotify_interval', 261
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'options.monitor_priority', 3
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'options.noScreenshot', 0
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.restricted_roles[0]', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'options.retry.count', 67368482
EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'options.retry.interval', '59042710.53770983'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.rumSettings.applicationId', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'options.rumSettings.clientTokenId', 12345
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'options.rumSettings.isEnabled', 1
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'options.scheduling.timeframes[0].day', 1
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.scheduling.timeframes[0].from', '07:00'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.scheduling.timeframes[0].to', '16:00'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'options.scheduling.timeframes[1].day', 3
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.scheduling.timeframes[1].from', '07:00'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.scheduling.timeframes[1].to', '16:00'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.scheduling.timezone', 'America/New_York'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'options.tick_every', 427884
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'type', 'browser'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'message', ''
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'monitor_id', -23388126
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'public_id', 'cupidatat ipsum'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'status', 'live'
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'steps[0].allowFailure', 0
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'steps[0].isCritical', 1
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'steps[0].name', 'proident dolore ex'
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'steps[0].noScreenshot', 1
EXEC sp_OAMethod @json, 'UpdateNewObject', @success OUT, 'steps[0].params'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'steps[0].timeout', 70509439
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'steps[0].type', 'assertElementContent'
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'steps[1].allowFailure', 1
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'steps[1].isCritical', 1
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'steps[1].name', 'adipisicing volupt'
EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'steps[1].noScreenshot', 0
EXEC sp_OAMethod @json, 'UpdateNewObject', @success OUT, 'steps[1].params'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'steps[1].timeout', -22942790
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'steps[1].type', 'assertElementContent'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'tags[0]', 'env:prod'
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Content-Type', 'application/json'
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'
DECLARE @resp int
EXEC sp_OAMethod @http, 'PostJson3', @resp OUT, 'https://api.app.ddog-gov.com/api/v1/synthetics/tests/browser', 'application/json', @json
EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
IF @iTmp0 = 0
BEGIN
EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @json
RETURN
END
DECLARE @sbResponseBody int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody
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 @resp, 'StatusCode', @respStatusCode OUT
PRINT 'Response Status Code = ' + @respStatusCode
IF @respStatusCode >= 400
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Failed.'
EXEC @hr = sp_OADestroy @resp
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
RETURN
END
EXEC @hr = sp_OADestroy @resp
-- Sample JSON response:
-- (Sample code for parsing the JSON response is shown below)
-- {
-- "config": {
-- "request": {
-- "allow_insecure": false,
-- "basicAuth": {
-- "password": "PaSSw0RD!",
-- "username": "my_username",
-- "type": "web"
-- },
-- "body": "dolore",
-- "bodyType": "text/plain",
-- "callType": "unary",
-- "certificate": {
-- "cert": {
-- "content": "dolor mollit id eu",
-- "filename": "enim ",
-- "updatedAt": "ad labore d"
-- },
-- "key": {
-- "content": "anim ut consequat eiusmod",
-- "filename": "non consectetur voluptate",
-- "updatedAt": "proi"
-- }
-- },
-- "compressedJsonDescriptor": "velit cillum",
-- "dnsServer": "sint irure sit commodo",
-- "dnsServerPort": 63263,
-- "follow_redirects": true,
-- "headers": {
-- "nulla_735": "esse enim velit",
-- "nulla_b_": "laboris ut"
-- },
-- "host": "aliquip nostrud",
-- "message": "Lorem laboris",
-- "metadata": {
-- "eub0d": "sint",
-- "exercitation1": "ut Duis"
-- },
-- "method": "dolo",
-- "noSavingResponseBody": false,
-- "numberOfPackets": 1,
-- "persistCookies": true,
-- "port": 82704033,
-- "proxy": {
-- "url": "https://example.com",
-- "headers": {
-- "ipsum83a": "ea laborum",
-- "irure_8": "dolor eiusmod aliqua ",
-- "esse67f": "veniam qui in"
-- }
-- },
-- "query": {},
-- "servername": "Duis sed minim quis",
-- "service": "Greeter",
-- "shouldTrackHops": false,
-- "timeout": 48414705.45711616,
-- "url": "https://example.com"
-- },
-- "configVariables": [
-- {
-- "description": "Example for the variable.",
-- "type": "string"
-- },
-- {
-- "description": "Example for the variable.",
-- "type": "string"
-- }
-- ],
-- "setCookie": "anim",
-- "variables": [
-- {
-- "description": "Example for the variable.",
-- "type": "string"
-- },
-- {
-- "description": "Example for the variable.",
-- "type": "string"
-- }
-- ]
-- },
-- "locations": [
-- "aws:eu-west-3"
-- ],
-- "name": "Example test name",
-- "options": {
-- "accept_self_signed": true,
-- "allow_insecure": false,
-- "checkCertificateRevocation": false,
-- "ci": {
-- "executionRule": "skipped"
-- },
-- "device_ids": [
-- "laptop_large",
-- "laptop_large"
-- ],
-- "disableCors": true,
-- "disableCsp": false,
-- "follow_redirects": true,
-- "httpVersion": "http2",
-- "ignoreServerCertificateError": false,
-- "initialNavigationTimeout": -93160400,
-- "min_failure_duration": 9338007,
-- "min_location_failed": -22553383,
-- "monitor_name": "nostrud dolor ullamco",
-- "monitor_options": {
-- "renotify_interval": 261
-- },
-- "monitor_priority": 3,
-- "noScreenshot": false,
-- "restricted_roles": [
-- "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
-- ],
-- "retry": {
-- "count": 67368482,
-- "interval": 59042710.53770983
-- },
-- "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": 427884
-- },
-- "type": "browser",
-- "message": "",
-- "monitor_id": -23388126,
-- "public_id": "cupidatat ipsum",
-- "status": "live",
-- "steps": [
-- {
-- "allowFailure": false,
-- "isCritical": true,
-- "name": "proident dolore ex",
-- "noScreenshot": true,
-- "params": {},
-- "timeout": 70509439,
-- "type": "assertElementContent"
-- },
-- {
-- "allowFailure": true,
-- "isCritical": true,
-- "name": "adipisicing volupt",
-- "noScreenshot": false,
-- "params": {},
-- "timeout": -22942790,
-- "type": "assertElementContent"
-- }
-- ],
-- "tags": [
-- "env:prod"
-- ]
-- }
-- 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 @Nulla_735 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Nulla_735 OUT, 'config.request.headers.nulla_735'
DECLARE @Nulla_b_ nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Nulla_b_ OUT, 'config.request.headers.nulla_b_'
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 @Eub0d nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Eub0d OUT, 'config.request.metadata.eub0d'
DECLARE @Exercitation1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Exercitation1 OUT, 'config.request.metadata.exercitation1'
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 @Ipsum83a nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Ipsum83a OUT, 'config.request.proxy.headers.ipsum83a'
DECLARE @Irure_8 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Irure_8 OUT, 'config.request.proxy.headers.irure_8'
DECLARE @Esse67f nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Esse67f OUT, 'config.request.proxy.headers.esse67f'
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 @SetCookie nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @SetCookie OUT, 'config.setCookie'
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 @v_type nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'type'
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 @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 @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 @json
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO
Curl Command
curl -X POST
-H "Content-Type: application/json"
-H "Accept: application/json"
-d '{
"config": {
"request": {
"allow_insecure": false,
"basicAuth": {
"password": "PaSSw0RD!",
"username": "my_username",
"type": "web"
},
"body": "dolore",
"bodyType": "text/plain",
"callType": "unary",
"certificate": {
"cert": {
"content": "dolor mollit id eu",
"filename": "enim ",
"updatedAt": "ad labore d"
},
"key": {
"content": "anim ut consequat eiusmod",
"filename": "non consectetur voluptate",
"updatedAt": "proi"
}
},
"compressedJsonDescriptor": "velit cillum",
"dnsServer": "sint irure sit commodo",
"dnsServerPort": 63263,
"follow_redirects": true,
"headers": {
"nulla_735": "esse enim velit",
"nulla_b_": "laboris ut"
},
"host": "aliquip nostrud",
"message": "Lorem laboris",
"metadata": {
"eub0d": "sint",
"exercitation1": "ut Duis"
},
"method": "dolo",
"noSavingResponseBody": false,
"numberOfPackets": 1,
"persistCookies": true,
"port": 82704033,
"proxy": {
"url": "https://example.com",
"headers": {
"ipsum83a": "ea laborum",
"irure_8": "dolor eiusmod aliqua ",
"esse67f": "veniam qui in"
}
},
"query": {},
"servername": "Duis sed minim quis",
"service": "Greeter",
"shouldTrackHops": false,
"timeout": 48414705.45711616,
"url": "https://example.com"
},
"configVariables": [
{
"description": "Example for the variable.",
"type": "string"
},
{
"description": "Example for the variable.",
"type": "string"
}
],
"setCookie": "anim",
"variables": [
{
"description": "Example for the variable.",
"type": "string"
},
{
"description": "Example for the variable.",
"type": "string"
}
]
},
"locations": [
"aws:eu-west-3"
],
"name": "Example test name",
"options": {
"accept_self_signed": true,
"allow_insecure": false,
"checkCertificateRevocation": false,
"ci": {
"executionRule": "skipped"
},
"device_ids": [
"laptop_large",
"laptop_large"
],
"disableCors": true,
"disableCsp": false,
"follow_redirects": true,
"httpVersion": "http2",
"ignoreServerCertificateError": false,
"initialNavigationTimeout": -93160400,
"min_failure_duration": 9338007,
"min_location_failed": -22553383,
"monitor_name": "nostrud dolor ullamco",
"monitor_options": {
"renotify_interval": 261
},
"monitor_priority": 3,
"noScreenshot": false,
"restricted_roles": [
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
],
"retry": {
"count": 67368482,
"interval": 59042710.53770983
},
"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": 427884
},
"type": "browser",
"message": "",
"monitor_id": -23388126,
"public_id": "cupidatat ipsum",
"status": "live",
"steps": [
{
"allowFailure": false,
"isCritical": true,
"name": "proident dolore ex",
"noScreenshot": true,
"params": {},
"timeout": 70509439,
"type": "assertElementContent"
},
{
"allowFailure": true,
"isCritical": true,
"name": "adipisicing volupt",
"noScreenshot": false,
"params": {},
"timeout": -22942790,
"type": "assertElementContent"
}
],
"tags": [
"env:prod"
]
}'
https://api.app.ddog-gov.com/api/v1/synthetics/tests/browser
Postman Collection Item JSON
{
"name": "Create a browser test",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"config\": {\n \"request\": {\n \"allow_insecure\": false,\n \"basicAuth\": {\n \"password\": \"PaSSw0RD!\",\n \"username\": \"my_username\",\n \"type\": \"web\"\n },\n \"body\": \"dolore\",\n \"bodyType\": \"text/plain\",\n \"callType\": \"unary\",\n \"certificate\": {\n \"cert\": {\n \"content\": \"dolor mollit id eu\",\n \"filename\": \"enim \",\n \"updatedAt\": \"ad labore d\"\n },\n \"key\": {\n \"content\": \"anim ut consequat eiusmod\",\n \"filename\": \"non consectetur voluptate\",\n \"updatedAt\": \"proi\"\n }\n },\n \"compressedJsonDescriptor\": \"velit cillum\",\n \"dnsServer\": \"sint irure sit commodo\",\n \"dnsServerPort\": 63263,\n \"follow_redirects\": true,\n \"headers\": {\n \"nulla_735\": \"esse enim velit\",\n \"nulla_b_\": \"laboris ut\"\n },\n \"host\": \"aliquip nostrud\",\n \"message\": \"Lorem laboris\",\n \"metadata\": {\n \"eub0d\": \"sint\",\n \"exercitation1\": \"ut Duis\"\n },\n \"method\": \"dolo\",\n \"noSavingResponseBody\": false,\n \"numberOfPackets\": 1,\n \"persistCookies\": true,\n \"port\": 82704033,\n \"proxy\": {\n \"url\": \"https://example.com\",\n \"headers\": {\n \"ipsum83a\": \"ea laborum\",\n \"irure_8\": \"dolor eiusmod aliqua \",\n \"esse67f\": \"veniam qui in\"\n }\n },\n \"query\": {},\n \"servername\": \"Duis sed minim quis\",\n \"service\": \"Greeter\",\n \"shouldTrackHops\": false,\n \"timeout\": 48414705.45711616,\n \"url\": \"https://example.com\"\n },\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 \"setCookie\": \"anim\",\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 \"locations\": [\n \"aws:eu-west-3\"\n ],\n \"name\": \"Example test name\",\n \"options\": {\n \"accept_self_signed\": true,\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\": true,\n \"disableCsp\": false,\n \"follow_redirects\": true,\n \"httpVersion\": \"http2\",\n \"ignoreServerCertificateError\": false,\n \"initialNavigationTimeout\": -93160400,\n \"min_failure_duration\": 9338007,\n \"min_location_failed\": -22553383,\n \"monitor_name\": \"nostrud dolor ullamco\",\n \"monitor_options\": {\n \"renotify_interval\": 261\n },\n \"monitor_priority\": 3,\n \"noScreenshot\": false,\n \"restricted_roles\": [\n \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n ],\n \"retry\": {\n \"count\": 67368482,\n \"interval\": 59042710.53770983\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\": 427884\n },\n \"type\": \"browser\",\n \"message\": \"\",\n \"monitor_id\": -23388126,\n \"public_id\": \"cupidatat ipsum\",\n \"status\": \"live\",\n \"steps\": [\n {\n \"allowFailure\": false,\n \"isCritical\": true,\n \"name\": \"proident dolore ex\",\n \"noScreenshot\": true,\n \"params\": {},\n \"timeout\": 70509439,\n \"type\": \"assertElementContent\"\n },\n {\n \"allowFailure\": true,\n \"isCritical\": true,\n \"name\": \"adipisicing volupt\",\n \"noScreenshot\": false,\n \"params\": {},\n \"timeout\": -22942790,\n \"type\": \"assertElementContent\"\n }\n ],\n \"tags\": [\n \"env:prod\"\n ]\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests/browser",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests",
"browser"
]
},
"description": "Create a Synthetic browser test."
},
"response": [
{
"name": "OK - Returns the created test details.",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"config\": {\n \"request\": {\n \"allow_insecure\": false,\n \"basicAuth\": {\n \"password\": \"PaSSw0RD!\",\n \"username\": \"my_username\",\n \"type\": \"web\"\n },\n \"body\": \"dolore\",\n \"bodyType\": \"text/plain\",\n \"callType\": \"unary\",\n \"certificate\": {\n \"cert\": {\n \"content\": \"dolor mollit id eu\",\n \"filename\": \"enim \",\n \"updatedAt\": \"ad labore d\"\n },\n \"key\": {\n \"content\": \"anim ut consequat eiusmod\",\n \"filename\": \"non consectetur voluptate\",\n \"updatedAt\": \"proi\"\n }\n },\n \"compressedJsonDescriptor\": \"velit cillum\",\n \"dnsServer\": \"sint irure sit commodo\",\n \"dnsServerPort\": 63263,\n \"follow_redirects\": true,\n \"headers\": {\n \"nulla_735\": \"esse enim velit\",\n \"nulla_b_\": \"laboris ut\"\n },\n \"host\": \"aliquip nostrud\",\n \"message\": \"Lorem laboris\",\n \"metadata\": {\n \"eub0d\": \"sint\",\n \"exercitation1\": \"ut Duis\"\n },\n \"method\": \"dolo\",\n \"noSavingResponseBody\": false,\n \"numberOfPackets\": 1,\n \"persistCookies\": true,\n \"port\": 82704033,\n \"proxy\": {\n \"url\": \"https://example.com\",\n \"headers\": {\n \"ipsum83a\": \"ea laborum\",\n \"irure_8\": \"dolor eiusmod aliqua \",\n \"esse67f\": \"veniam qui in\"\n }\n },\n \"query\": {},\n \"servername\": \"Duis sed minim quis\",\n \"service\": \"Greeter\",\n \"shouldTrackHops\": false,\n \"timeout\": 48414705.45711616,\n \"url\": \"https://example.com\"\n },\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 \"setCookie\": \"anim\",\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 \"locations\": [\n \"aws:eu-west-3\"\n ],\n \"name\": \"Example test name\",\n \"options\": {\n \"accept_self_signed\": true,\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\": true,\n \"disableCsp\": false,\n \"follow_redirects\": true,\n \"httpVersion\": \"http2\",\n \"ignoreServerCertificateError\": false,\n \"initialNavigationTimeout\": -93160400,\n \"min_failure_duration\": 9338007,\n \"min_location_failed\": -22553383,\n \"monitor_name\": \"nostrud dolor ullamco\",\n \"monitor_options\": {\n \"renotify_interval\": 261\n },\n \"monitor_priority\": 3,\n \"noScreenshot\": false,\n \"restricted_roles\": [\n \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n ],\n \"retry\": {\n \"count\": 67368482,\n \"interval\": 59042710.53770983\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\": 427884\n },\n \"type\": \"browser\",\n \"message\": \"\",\n \"monitor_id\": -23388126,\n \"public_id\": \"cupidatat ipsum\",\n \"status\": \"live\",\n \"steps\": [\n {\n \"allowFailure\": false,\n \"isCritical\": true,\n \"name\": \"proident dolore ex\",\n \"noScreenshot\": true,\n \"params\": {},\n \"timeout\": 70509439,\n \"type\": \"assertElementContent\"\n },\n {\n \"allowFailure\": true,\n \"isCritical\": true,\n \"name\": \"adipisicing volupt\",\n \"noScreenshot\": false,\n \"params\": {},\n \"timeout\": -22942790,\n \"type\": \"assertElementContent\"\n }\n ],\n \"tags\": [\n \"env:prod\"\n ]\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests/browser",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests",
"browser"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"config\": {\n \"request\": {\n \"allow_insecure\": false,\n \"basicAuth\": {\n \"password\": \"PaSSw0RD!\",\n \"username\": \"my_username\",\n \"type\": \"web\"\n },\n \"body\": \"dolore\",\n \"bodyType\": \"text/plain\",\n \"callType\": \"unary\",\n \"certificate\": {\n \"cert\": {\n \"content\": \"dolor mollit id eu\",\n \"filename\": \"enim \",\n \"updatedAt\": \"ad labore d\"\n },\n \"key\": {\n \"content\": \"anim ut consequat eiusmod\",\n \"filename\": \"non consectetur voluptate\",\n \"updatedAt\": \"proi\"\n }\n },\n \"compressedJsonDescriptor\": \"velit cillum\",\n \"dnsServer\": \"sint irure sit commodo\",\n \"dnsServerPort\": 63263,\n \"follow_redirects\": true,\n \"headers\": {\n \"nulla_735\": \"esse enim velit\",\n \"nulla_b_\": \"laboris ut\"\n },\n \"host\": \"aliquip nostrud\",\n \"message\": \"Lorem laboris\",\n \"metadata\": {\n \"eub0d\": \"sint\",\n \"exercitation1\": \"ut Duis\"\n },\n \"method\": \"dolo\",\n \"noSavingResponseBody\": false,\n \"numberOfPackets\": 1,\n \"persistCookies\": true,\n \"port\": 82704033,\n \"proxy\": {\n \"url\": \"https://example.com\",\n \"headers\": {\n \"ipsum83a\": \"ea laborum\",\n \"irure_8\": \"dolor eiusmod aliqua \",\n \"esse67f\": \"veniam qui in\"\n }\n },\n \"query\": {},\n \"servername\": \"Duis sed minim quis\",\n \"service\": \"Greeter\",\n \"shouldTrackHops\": false,\n \"timeout\": 48414705.45711616,\n \"url\": \"https://example.com\"\n },\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 \"setCookie\": \"anim\",\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 \"locations\": [\n \"aws:eu-west-3\"\n ],\n \"name\": \"Example test name\",\n \"options\": {\n \"accept_self_signed\": true,\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\": true,\n \"disableCsp\": false,\n \"follow_redirects\": true,\n \"httpVersion\": \"http2\",\n \"ignoreServerCertificateError\": false,\n \"initialNavigationTimeout\": -93160400,\n \"min_failure_duration\": 9338007,\n \"min_location_failed\": -22553383,\n \"monitor_name\": \"nostrud dolor ullamco\",\n \"monitor_options\": {\n \"renotify_interval\": 261\n },\n \"monitor_priority\": 3,\n \"noScreenshot\": false,\n \"restricted_roles\": [\n \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n ],\n \"retry\": {\n \"count\": 67368482,\n \"interval\": 59042710.53770983\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\": 427884\n },\n \"type\": \"browser\",\n \"message\": \"\",\n \"monitor_id\": -23388126,\n \"public_id\": \"cupidatat ipsum\",\n \"status\": \"live\",\n \"steps\": [\n {\n \"allowFailure\": false,\n \"isCritical\": true,\n \"name\": \"proident dolore ex\",\n \"noScreenshot\": true,\n \"params\": {},\n \"timeout\": 70509439,\n \"type\": \"assertElementContent\"\n },\n {\n \"allowFailure\": true,\n \"isCritical\": true,\n \"name\": \"adipisicing volupt\",\n \"noScreenshot\": false,\n \"params\": {},\n \"timeout\": -22942790,\n \"type\": \"assertElementContent\"\n }\n ],\n \"tags\": [\n \"env:prod\"\n ]\n}"
},
{
"name": "- JSON format is wrong\n- Creation failed",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"config\": {\n \"request\": {\n \"allow_insecure\": false,\n \"basicAuth\": {\n \"password\": \"PaSSw0RD!\",\n \"username\": \"my_username\",\n \"type\": \"web\"\n },\n \"body\": \"dolore\",\n \"bodyType\": \"text/plain\",\n \"callType\": \"unary\",\n \"certificate\": {\n \"cert\": {\n \"content\": \"dolor mollit id eu\",\n \"filename\": \"enim \",\n \"updatedAt\": \"ad labore d\"\n },\n \"key\": {\n \"content\": \"anim ut consequat eiusmod\",\n \"filename\": \"non consectetur voluptate\",\n \"updatedAt\": \"proi\"\n }\n },\n \"compressedJsonDescriptor\": \"velit cillum\",\n \"dnsServer\": \"sint irure sit commodo\",\n \"dnsServerPort\": 63263,\n \"follow_redirects\": true,\n \"headers\": {\n \"nulla_735\": \"esse enim velit\",\n \"nulla_b_\": \"laboris ut\"\n },\n \"host\": \"aliquip nostrud\",\n \"message\": \"Lorem laboris\",\n \"metadata\": {\n \"eub0d\": \"sint\",\n \"exercitation1\": \"ut Duis\"\n },\n \"method\": \"dolo\",\n \"noSavingResponseBody\": false,\n \"numberOfPackets\": 1,\n \"persistCookies\": true,\n \"port\": 82704033,\n \"proxy\": {\n \"url\": \"https://example.com\",\n \"headers\": {\n \"ipsum83a\": \"ea laborum\",\n \"irure_8\": \"dolor eiusmod aliqua \",\n \"esse67f\": \"veniam qui in\"\n }\n },\n \"query\": {},\n \"servername\": \"Duis sed minim quis\",\n \"service\": \"Greeter\",\n \"shouldTrackHops\": false,\n \"timeout\": 48414705.45711616,\n \"url\": \"https://example.com\"\n },\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 \"setCookie\": \"anim\",\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 \"locations\": [\n \"aws:eu-west-3\"\n ],\n \"name\": \"Example test name\",\n \"options\": {\n \"accept_self_signed\": true,\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\": true,\n \"disableCsp\": false,\n \"follow_redirects\": true,\n \"httpVersion\": \"http2\",\n \"ignoreServerCertificateError\": false,\n \"initialNavigationTimeout\": -93160400,\n \"min_failure_duration\": 9338007,\n \"min_location_failed\": -22553383,\n \"monitor_name\": \"nostrud dolor ullamco\",\n \"monitor_options\": {\n \"renotify_interval\": 261\n },\n \"monitor_priority\": 3,\n \"noScreenshot\": false,\n \"restricted_roles\": [\n \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n ],\n \"retry\": {\n \"count\": 67368482,\n \"interval\": 59042710.53770983\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\": 427884\n },\n \"type\": \"browser\",\n \"message\": \"\",\n \"monitor_id\": -23388126,\n \"public_id\": \"cupidatat ipsum\",\n \"status\": \"live\",\n \"steps\": [\n {\n \"allowFailure\": false,\n \"isCritical\": true,\n \"name\": \"proident dolore ex\",\n \"noScreenshot\": true,\n \"params\": {},\n \"timeout\": 70509439,\n \"type\": \"assertElementContent\"\n },\n {\n \"allowFailure\": true,\n \"isCritical\": true,\n \"name\": \"adipisicing volupt\",\n \"noScreenshot\": false,\n \"params\": {},\n \"timeout\": -22942790,\n \"type\": \"assertElementContent\"\n }\n ],\n \"tags\": [\n \"env:prod\"\n ]\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests/browser",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests",
"browser"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"Bad Request\",\n \"Bad Request\"\n ]\n}"
},
{
"name": "Test quota is reached",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"config\": {\n \"request\": {\n \"allow_insecure\": false,\n \"basicAuth\": {\n \"password\": \"PaSSw0RD!\",\n \"username\": \"my_username\",\n \"type\": \"web\"\n },\n \"body\": \"dolore\",\n \"bodyType\": \"text/plain\",\n \"callType\": \"unary\",\n \"certificate\": {\n \"cert\": {\n \"content\": \"dolor mollit id eu\",\n \"filename\": \"enim \",\n \"updatedAt\": \"ad labore d\"\n },\n \"key\": {\n \"content\": \"anim ut consequat eiusmod\",\n \"filename\": \"non consectetur voluptate\",\n \"updatedAt\": \"proi\"\n }\n },\n \"compressedJsonDescriptor\": \"velit cillum\",\n \"dnsServer\": \"sint irure sit commodo\",\n \"dnsServerPort\": 63263,\n \"follow_redirects\": true,\n \"headers\": {\n \"nulla_735\": \"esse enim velit\",\n \"nulla_b_\": \"laboris ut\"\n },\n \"host\": \"aliquip nostrud\",\n \"message\": \"Lorem laboris\",\n \"metadata\": {\n \"eub0d\": \"sint\",\n \"exercitation1\": \"ut Duis\"\n },\n \"method\": \"dolo\",\n \"noSavingResponseBody\": false,\n \"numberOfPackets\": 1,\n \"persistCookies\": true,\n \"port\": 82704033,\n \"proxy\": {\n \"url\": \"https://example.com\",\n \"headers\": {\n \"ipsum83a\": \"ea laborum\",\n \"irure_8\": \"dolor eiusmod aliqua \",\n \"esse67f\": \"veniam qui in\"\n }\n },\n \"query\": {},\n \"servername\": \"Duis sed minim quis\",\n \"service\": \"Greeter\",\n \"shouldTrackHops\": false,\n \"timeout\": 48414705.45711616,\n \"url\": \"https://example.com\"\n },\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 \"setCookie\": \"anim\",\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 \"locations\": [\n \"aws:eu-west-3\"\n ],\n \"name\": \"Example test name\",\n \"options\": {\n \"accept_self_signed\": true,\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\": true,\n \"disableCsp\": false,\n \"follow_redirects\": true,\n \"httpVersion\": \"http2\",\n \"ignoreServerCertificateError\": false,\n \"initialNavigationTimeout\": -93160400,\n \"min_failure_duration\": 9338007,\n \"min_location_failed\": -22553383,\n \"monitor_name\": \"nostrud dolor ullamco\",\n \"monitor_options\": {\n \"renotify_interval\": 261\n },\n \"monitor_priority\": 3,\n \"noScreenshot\": false,\n \"restricted_roles\": [\n \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n ],\n \"retry\": {\n \"count\": 67368482,\n \"interval\": 59042710.53770983\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\": 427884\n },\n \"type\": \"browser\",\n \"message\": \"\",\n \"monitor_id\": -23388126,\n \"public_id\": \"cupidatat ipsum\",\n \"status\": \"live\",\n \"steps\": [\n {\n \"allowFailure\": false,\n \"isCritical\": true,\n \"name\": \"proident dolore ex\",\n \"noScreenshot\": true,\n \"params\": {},\n \"timeout\": 70509439,\n \"type\": \"assertElementContent\"\n },\n {\n \"allowFailure\": true,\n \"isCritical\": true,\n \"name\": \"adipisicing volupt\",\n \"noScreenshot\": false,\n \"params\": {},\n \"timeout\": -22942790,\n \"type\": \"assertElementContent\"\n }\n ],\n \"tags\": [\n \"env:prod\"\n ]\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests/browser",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests",
"browser"
]
}
},
"status": "Payment Required",
"code": 402,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"Bad Request\",\n \"Bad Request\"\n ]\n}"
},
{
"name": "Forbidden",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"config\": {\n \"request\": {\n \"allow_insecure\": false,\n \"basicAuth\": {\n \"password\": \"PaSSw0RD!\",\n \"username\": \"my_username\",\n \"type\": \"web\"\n },\n \"body\": \"dolore\",\n \"bodyType\": \"text/plain\",\n \"callType\": \"unary\",\n \"certificate\": {\n \"cert\": {\n \"content\": \"dolor mollit id eu\",\n \"filename\": \"enim \",\n \"updatedAt\": \"ad labore d\"\n },\n \"key\": {\n \"content\": \"anim ut consequat eiusmod\",\n \"filename\": \"non consectetur voluptate\",\n \"updatedAt\": \"proi\"\n }\n },\n \"compressedJsonDescriptor\": \"velit cillum\",\n \"dnsServer\": \"sint irure sit commodo\",\n \"dnsServerPort\": 63263,\n \"follow_redirects\": true,\n \"headers\": {\n \"nulla_735\": \"esse enim velit\",\n \"nulla_b_\": \"laboris ut\"\n },\n \"host\": \"aliquip nostrud\",\n \"message\": \"Lorem laboris\",\n \"metadata\": {\n \"eub0d\": \"sint\",\n \"exercitation1\": \"ut Duis\"\n },\n \"method\": \"dolo\",\n \"noSavingResponseBody\": false,\n \"numberOfPackets\": 1,\n \"persistCookies\": true,\n \"port\": 82704033,\n \"proxy\": {\n \"url\": \"https://example.com\",\n \"headers\": {\n \"ipsum83a\": \"ea laborum\",\n \"irure_8\": \"dolor eiusmod aliqua \",\n \"esse67f\": \"veniam qui in\"\n }\n },\n \"query\": {},\n \"servername\": \"Duis sed minim quis\",\n \"service\": \"Greeter\",\n \"shouldTrackHops\": false,\n \"timeout\": 48414705.45711616,\n \"url\": \"https://example.com\"\n },\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 \"setCookie\": \"anim\",\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 \"locations\": [\n \"aws:eu-west-3\"\n ],\n \"name\": \"Example test name\",\n \"options\": {\n \"accept_self_signed\": true,\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\": true,\n \"disableCsp\": false,\n \"follow_redirects\": true,\n \"httpVersion\": \"http2\",\n \"ignoreServerCertificateError\": false,\n \"initialNavigationTimeout\": -93160400,\n \"min_failure_duration\": 9338007,\n \"min_location_failed\": -22553383,\n \"monitor_name\": \"nostrud dolor ullamco\",\n \"monitor_options\": {\n \"renotify_interval\": 261\n },\n \"monitor_priority\": 3,\n \"noScreenshot\": false,\n \"restricted_roles\": [\n \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n ],\n \"retry\": {\n \"count\": 67368482,\n \"interval\": 59042710.53770983\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\": 427884\n },\n \"type\": \"browser\",\n \"message\": \"\",\n \"monitor_id\": -23388126,\n \"public_id\": \"cupidatat ipsum\",\n \"status\": \"live\",\n \"steps\": [\n {\n \"allowFailure\": false,\n \"isCritical\": true,\n \"name\": \"proident dolore ex\",\n \"noScreenshot\": true,\n \"params\": {},\n \"timeout\": 70509439,\n \"type\": \"assertElementContent\"\n },\n {\n \"allowFailure\": true,\n \"isCritical\": true,\n \"name\": \"adipisicing volupt\",\n \"noScreenshot\": false,\n \"params\": {},\n \"timeout\": -22942790,\n \"type\": \"assertElementContent\"\n }\n ],\n \"tags\": [\n \"env:prod\"\n ]\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests/browser",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests",
"browser"
]
}
},
"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": "Too many requests",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"config\": {\n \"request\": {\n \"allow_insecure\": false,\n \"basicAuth\": {\n \"password\": \"PaSSw0RD!\",\n \"username\": \"my_username\",\n \"type\": \"web\"\n },\n \"body\": \"dolore\",\n \"bodyType\": \"text/plain\",\n \"callType\": \"unary\",\n \"certificate\": {\n \"cert\": {\n \"content\": \"dolor mollit id eu\",\n \"filename\": \"enim \",\n \"updatedAt\": \"ad labore d\"\n },\n \"key\": {\n \"content\": \"anim ut consequat eiusmod\",\n \"filename\": \"non consectetur voluptate\",\n \"updatedAt\": \"proi\"\n }\n },\n \"compressedJsonDescriptor\": \"velit cillum\",\n \"dnsServer\": \"sint irure sit commodo\",\n \"dnsServerPort\": 63263,\n \"follow_redirects\": true,\n \"headers\": {\n \"nulla_735\": \"esse enim velit\",\n \"nulla_b_\": \"laboris ut\"\n },\n \"host\": \"aliquip nostrud\",\n \"message\": \"Lorem laboris\",\n \"metadata\": {\n \"eub0d\": \"sint\",\n \"exercitation1\": \"ut Duis\"\n },\n \"method\": \"dolo\",\n \"noSavingResponseBody\": false,\n \"numberOfPackets\": 1,\n \"persistCookies\": true,\n \"port\": 82704033,\n \"proxy\": {\n \"url\": \"https://example.com\",\n \"headers\": {\n \"ipsum83a\": \"ea laborum\",\n \"irure_8\": \"dolor eiusmod aliqua \",\n \"esse67f\": \"veniam qui in\"\n }\n },\n \"query\": {},\n \"servername\": \"Duis sed minim quis\",\n \"service\": \"Greeter\",\n \"shouldTrackHops\": false,\n \"timeout\": 48414705.45711616,\n \"url\": \"https://example.com\"\n },\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 \"setCookie\": \"anim\",\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 \"locations\": [\n \"aws:eu-west-3\"\n ],\n \"name\": \"Example test name\",\n \"options\": {\n \"accept_self_signed\": true,\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\": true,\n \"disableCsp\": false,\n \"follow_redirects\": true,\n \"httpVersion\": \"http2\",\n \"ignoreServerCertificateError\": false,\n \"initialNavigationTimeout\": -93160400,\n \"min_failure_duration\": 9338007,\n \"min_location_failed\": -22553383,\n \"monitor_name\": \"nostrud dolor ullamco\",\n \"monitor_options\": {\n \"renotify_interval\": 261\n },\n \"monitor_priority\": 3,\n \"noScreenshot\": false,\n \"restricted_roles\": [\n \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n ],\n \"retry\": {\n \"count\": 67368482,\n \"interval\": 59042710.53770983\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\": 427884\n },\n \"type\": \"browser\",\n \"message\": \"\",\n \"monitor_id\": -23388126,\n \"public_id\": \"cupidatat ipsum\",\n \"status\": \"live\",\n \"steps\": [\n {\n \"allowFailure\": false,\n \"isCritical\": true,\n \"name\": \"proident dolore ex\",\n \"noScreenshot\": true,\n \"params\": {},\n \"timeout\": 70509439,\n \"type\": \"assertElementContent\"\n },\n {\n \"allowFailure\": true,\n \"isCritical\": true,\n \"name\": \"adipisicing volupt\",\n \"noScreenshot\": false,\n \"params\": {},\n \"timeout\": -22942790,\n \"type\": \"assertElementContent\"\n }\n ],\n \"tags\": [\n \"env:prod\"\n ]\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v1/synthetics/tests/browser",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"synthetics",
"tests",
"browser"
]
}
},
"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}"
}
]
}