Administration

Generate missing usage records.

Generate missing usage records from daily and federation usage between start and end date. Requires administrator permissions.

post/_api/_admin/_billing/usage/missing/generate

Request

Request body

tenantstring string

(Optional) The ID of the tenant.

startstring string

Start date-time in 'YYYY-MM-DD HH:MM:SS' format.

endstring string

End date-time in 'YYYY-MM-DD HH:MM:SS' format.

overwriteboolean

(Optional) Overwrite existing usage data.

Example request

{
  "tenant": "Test",
  "start": "2022-05-01 00:00:00",
  "end": "2022-05-03 00:00:00"
}

Response

Returns the list of generated records.

codeinteger

HTTP response code.

errorboolean

Flag if there is an error in response. False for this response.

Example response

{
  "code": 200,
  "data": [
    {
      "tenantxyz": {
        "_usageDaily": {
          "missingRecords": [
            "services-ap-west_tenantxyz-22062022T2359"
          ]
        },
        "_usageDailyAggregated": {
          "missingRecords": [
            "tenantxyz-22062022T2359"
          ]
        }
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.