List the timeless accounts of an account
GET/v1/timeless-indices
Returns the timeless accounts of the account that owns the API token in the request, with the account's timeless plan limits.
Must be run with an API token that has the Admin role. API tokens created before token roles were introduced have the same permissions as Admin.
Timeless accounts are created in the Logz.io app, on the Manage accounts page. They can't be created through the API.
Please ensure to change the region in the URL to match your account's region.
Request
Responses
- 200
- 403
successful operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- Array [
- ]
- ]
The maximum number of timeless accounts your plan allows
The total volume, in GB, your plan allows across all timeless accounts
timelessIndices object[]
The timeless accounts of the account
The ID of the timeless account
The ID of the account that owns the timeless account
The name of the timeless account
The log type of the data in the timeless account. It's always the timeless account's name. Optimizers that write into the account must use it as output.target.timelessIndex.logType.
The volume of the timeless account, in GB
actualUsage object
The data stored in the timeless account
The part of the timeless account's volume in use
dailyUsage object
The data written into the timeless account per day
usage object[]
The start of the day, in epoch milliseconds
The bytes written that day
The time at which the timeless account was created, in epoch seconds
authorizedAccounts object[]
The accounts whose users can search the timeless account
Whether writing into the timeless account is suspended because it reached its volume
{
"maxAllowed": 3,
"totalVolumeGb": 50,
"timelessIndices": [
{
"id": 22222,
"ownerAccountId": 11111,
"name": "error-logs-archive",
"logType": "error-logs-archive",
"volumeGb": 10,
"actualUsage": {
"bytes": 2147483648,
"humanReadableSize": "2.0 GB",
"percentage": "20.0 %"
},
"dailyUsage": {
"usage": [
{
"date": 1795392000000,
"bytes": 52428800
}
]
},
"createdAt": 1793263548,
"authorizedAccounts": [
{
"accountId": 11111,
"accountName": "Main account"
}
],
"suspended": false
}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
The HTTP status code
The ID of the request, for Logz.io support
{
"code": 403,
"message": "Insufficient privileges",
"requestId": "0e1f7a3b-2b6c-4a63-9b4e-6d1c2f0a9e11"
}