Observability API - Access Denied | Community
Skip to main content
Level 4
April 20, 2022
Solved

Observability API - Access Denied

  • April 20, 2022
  • 2 replies
  • 1895 views

I have full and complete access to my Sandbox - 118765E655DEE7427F000101@AdobeOrg .

 

Problem 1: have been trying to access https://platform.adobe.io/data/infrastructure/observability/insights/metrics, however been getting following error 

Problem 2: Inspite of passing sandbox  name, it says missing Sandbox name.

 

{
    "errorCode""OBS-4005",
    "httpStatus"401,
    "title""Access Denied",
    "details""Access Denied. x-Sandbox-Name is missing."
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Manoj_Kumar

Hello @navin_kumar0601 

118765E655DEE7427F000101@AdobeOrg  is your IMS org ID. Sandbox name is different.

Add an additional header in your API request. Try using x-sandbox-name as a key and prod as a value.
If this does not work, then change the value to your company name for eg. google


2 replies

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
April 20, 2022

Hello @navin_kumar0601 

118765E655DEE7427F000101@AdobeOrg  is your IMS org ID. Sandbox name is different.

Add an additional header in your API request. Try using x-sandbox-name as a key and prod as a value.
If this does not work, then change the value to your company name for eg. google


Manoj  | https://themartech.pro
Level 4
April 22, 2022

Offcourse, I tried with x-sandbox-name, however its same issue.

@_manoj_kumar_   could you please try and check if you are getting response for Observability Metrics API.

Manoj_Kumar
Community Advisor
Community Advisor
April 28, 2022

@_manoj_kumar_  offcourse this is standard response, but not right response. Offcourse, am passing right Sandbox (I gave org id for reference to debug) details.

That said, expected response (below screenshot), however your response does not include object value for 

"datapoints": 

 

{
  "metricResponses": [
    {
      "metric": "timeseries.ingestion.dataset.recordsuccess.count",
      "filters": [
        {
          "name": "dataSetId",
          "value": "5edcfb2fbb642119194c7d94|5eddb21420f516191b7a8dad",
          "groupBy": true
        }
      ],
      "datapoints": [
        {
          "groupBy": {
            "dataSetId": "5edcfb2fbb642119194c7d94"
          },
          "dps": {
            "2020-07-14T00:00:00Z": 44.0,
            "2020-07-15T00:00:00Z": 46.0,
            "2020-07-16T00:00:00Z": 36.0,
            "2020-07-17T00:00:00Z": 50.0,
            "2020-07-18T00:00:00Z": 38.0,
            "2020-07-19T00:00:00Z": 40.0,
            "2020-07-20T00:00:00Z": 42.0,
            "2020-07-21T00:00:00Z": 42.0,
            "2020-07-22T00:00:00Z": 50.0
          }
        },
        {
          "groupBy": {
            "dataSetId": "5eddb21420f516191b7a8dad"
          },
          "dps": {
            "2020-07-14T00:00:00Z": 44.0,
            "2020-07-15T00:00:00Z": 46.0,
            "2020-07-16T00:00:00Z": 36.0,
            "2020-07-17T00:00:00Z": 50.0,
            "2020-07-18T00:00:00Z": 38.0,

 


Hello @navin_kumar0601 ,

I was just testing the response at that time and the filters were not correct. That is why the API response of datapoints was empty.

Here is the screenshot of the response with correct filters where I see the records in data points.

 



Manoj  | https://themartech.pro
Level 4
April 28, 2022

Thanks @_manoj_kumar_ it worked