from glean import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as g_client:

    res = g_client.indexing.datasource.status(datasource="<value>")

    # Handle response
    print(res)
{
  "documents": {
    "bulkUploadHistory": {},
    "counts": {
      "uploaded": [
        {
          "objectType": "Article",
          "count": 15
        }
      ],
      "indexed": [
        {
          "objectType": "Article",
          "count": 15
        }
      ]
    },
    "processingHistory": [
      {
        "startTime": "2021-08-06T17:58:01.000Z",
        "endTime": "2021-08-06T18:58:01.000Z"
      }
    ]
  },
  "identity": {
    "processingHistory": [
      {
        "startTime": "2021-08-06T17:58:01.000Z",
        "endTime": "2021-08-06T18:58:01.000Z"
      }
    ],
    "users": {
      "bulkUploadHistory": {},
      "counts": {
        "uploaded": 15
      }
    },
    "groups": {
      "bulkUploadHistory": {},
      "counts": {
        "uploaded": 15
      }
    },
    "memberships": {
      "bulkUploadHistory": {},
      "counts": {
        "uploaded": 15
      }
    }
  },
  "datasourceVisibility": "ENABLED_FOR_ALL"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

datasource
string
required

The datasource to get debug status for.

Response

200
application/json; charset=UTF-8
OK

Describes the response body of the /debug/{datasource}/status API call