Cancel
Showing results for 
Search instead for 
Did you mean: 

IoT Time Series Service API returns "403 Forbidden" Error

Experimenter
Experimenter

Hello. I have a question about using "IoT Time Series Service" API because it does not work ordinalily.

Before start, my purpose is getting simulation datas from "MindConnect IoT Extension".
and insert datas to user-defined apps

 


First, I referenced  "https://documentation.mindsphere.io/resources/html/mindconnect-iot-extension-gs/en-US/115404857227.h...and created simulation datas. 

 

Next, to check simulation datas, I used  "Read Time Series Data" from "IoT Time Series Service" API 
https://developer.mindsphere.io/apis/iot-iottimeseries/api-iottimeseries-samples.html

https://gateway.{region}-{environment}.mindsphere.io/api/iottimeseries/v3/timeseries/{assetId}/{aspectName}


But,  it returned "Access Denied". In Postman, it was "403 Forbidden" error.
캡처.PNG


Why 403 error is happend?
Is there problems about roles and scope?

캡처.PNG2.PNG


Please help this problem.

1 REPLY

Re: IoT Time Series Service API returns "403 Forbidden" Error

Legend
Legend
That means you're not providing the required authentication headers. If you want to access the APIs from Postman, you can use the flow for self-hosted applications:
https://developer.mindsphere.io/howto/howto-selfhosted-api-access.html

Alternatively, you can "steal" the session cookie from a browser and use it in your call:
https://gitlab.com/mindsphere/devops-demo/#local-development