Updated on June 18, 2024

Individual Namespace Summary

Overview #

This method provide the name of API calls (mask, unmask, async) made by a specific user within the specified time period with status(Success or Failure) and with count.

This API endpoint retrieves the summary of an individual namespace, grouped by API type and count.

HTTP Method #

GET

Endpoint #

/reports/namespace-summary

Headers #

  • Authorization: "Bearer <ADMIN_USER_AUTH_KEY>"

Query Parameters #

  • namespace (required): The namespace, which is the user database name.
  • start_date (required): The start date and time for the report. Format should be "YYYY-MM-DD HH:MM:SS". For example: "2024-05-21 00:00:00".
  • end_date (required): The end date and time for the report. Format should be "YYYY-MM-DD HH:MM:SS". For example: "2024-05-22 23:59:59".
  • next_page_token (optional): Used to paginate the data. By default, it will be empty. If there is more data, next_page_token will be sent through the API response. For subsequent requests, use the previous response’s next_page_token to navigate further.

Code Snippet

Request

GET https://<domain>/api/vault/reports/namespace-summary?namespace=protecto_vault&start_date=2024-05-21 00:00:00&end_date=2024-05-22 23:59:59&next_page_token=

Response Format #

{
    "data": {
        "details": [
            {
                "date": "2024-05-28",
                "api_type": "/async-status",
                "status": "success",
                "count": 3
            }
        ],
        "next_page_token": "eyJwYWdlX3NpemUiOiA1LCAicGFnZV9ubyI6IDEsICJ0b3RhbF9wYWdlcyI6IDJ9"
    },
    "success": true,
    "error": {
        "message": ""
    }
}

Response Fields #

  • data: An object containing the namespace details and pagination information.
    • details: A list of namespace summary objects.
      • date: The date of the namespace summary.
      • api_type: The API type of the summary.
      • status: The status of the API calls.
      • count: The count of API calls.
    • next_page_token: A token used for paginating to the next page of data.
  • success: A boolean indicating if the request was successful.
  • error: An object containing error details, if any.
    • message: A message describing the error.

Notes #

  • Ensure that the Authorization header contains a valid admin user auth key.
  • The namespace, start_date, and end_date query parameters must be provided and in the correct format to avoid errors.
  • Use the next_page_token from the response for paginating through large datasets. If there is no next_page_token in the response, it indicates that there are no additional pages.
What are your feelings

© All Rights Reserved 2023 | Protecto

Scroll to Top