13 Oct 2018 04:47 PM
Hi guys
Trying to run: curl -X POST "https://xxxxxxx.live.dynatrace.com/api/v1/synthetic/ext/tests?Api-Token=yyyyyyy" -H "accept: application/json; charset=utf-8" -H "Content-Type: application/json; charset=utf-8" -d "{ \"syntheticEngineName\": \"HarelRobo1\", \"messageTimestamp\": 1539426879000, \"locations\": [ { \"id\": \"1\", \"name\": \"1st type test\" } ], \"tests\": [ { \"id\": \"1\", \"title\": \"first test\", \"description\": \"testing if its works\", \"testSetup\": \"no setup\", \"expirationTimestamp\": 1539426879000, \"drilldownLink\": \"string\", \"editLink\": \"string\", \"enabled\": true, \"deleted\": false, \"locations\": [ { \"id\": \"string\", \"enabled\": true } ], \"steps\": [ { \"id\": 0, \"title\": \"string\" } ], \"noDataTimeout\": 0, \"scheduleIntervalInSeconds\": 0 } ], \"testResults\": [ { \"id\": \"1\", \"totalStepCount\": 1, \"locationResults\": [ { \"id\": \"1\", \"startTimestamp\": 1539426879000, \"success\": true, \"responseTimeMillis\": 234, \"stepResults\": [ { \"id\": 1, \"startTimestamp\": 1539426879000, \"responseTimeMillis\": 456, \"error\": { \"message\": \"string\", \"code\": 0 } } ], \"successRate\": 0 } ] } ]}"
returns:
{"error":{"code":403,"message":"Token is missing required scope. Use one of: ExternalSyntheticIntegration"}}
While all the switch's for this token are on
Any explanation what are we doing wrong here? is it because this API is in EAP?
Yos @Gil Givati
Solved! Go to Solution.
15 Oct 2018 08:26 AM
Yes that's because this API is in EAP stage right now. Please request to take part in that EAP and we will enable that feature flag for your environment, which will then also show the additional token scopes that are necessary.
15 Oct 2018 08:58 AM
Hi Wolfgang,
Thanks for the answer.
Where can we apply for this one ?
Yos
15 Oct 2018 10:02 AM
Hi @Yos N., can you please send me an email philipp.kastner@dynatrace.com
10 May 2019 02:05 PM
Hi @Philipp K
We have a requirement to send external synthetic tests into dynatrace. Can you please let us know how can we succeed in sending data to dynatrace for all the synthetic tests .
Thanks,