cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

dynatrace api External Synthetic Tests - return 403

Yosi_Neuman
DynaMight Guru
DynaMight Guru

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


dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel
4 REPLIES 4

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

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.


Yosi_Neuman
DynaMight Guru
DynaMight Guru

Hi Wolfgang,

Thanks for the answer.

Where can we apply for this one ?

Yos


dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Hi @Yos N., can you please send me an email philipp.kastner@dynatrace.com


tarun_agastya2
Inactive

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,


Featured Posts