Repository navigation
APPZ-3811: Guide to managing timeless accounts with the API - #993
Conversation
Add an API cookbook page that walks through the timeless lifecycle with the public API: find the timeless account, create an optimizer that writes into it, update the account, preview and delete data, remove the optimizers, and delete the account, including the token role each step needs and the last-timeless-account rule. Link it and the API reference from the timeless accounts and Configure Optimizers pages.
✅ Deploy Preview for deluxe-empanada-3ebf3b ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| The request fails when: | ||
|
|
||
| * **Optimizers still write into the account.** The response is `403 Forbidden`, and its message lists the optimizers to delete first, for example `Delete these optimizers first: 1001 (Checkout errors)`. | ||
| * **It's your last timeless account.** An account can't delete its last timeless account, and the response is `400 Bad Request` with the message `Deleting the last timeless index is not allowed`. To stop storing data in it, [remove its optimizers](#remove-the-optimizers) and [delete its data](#preview-and-delete-data) instead. |
There was a problem hiding this comment.
Maybe it would be useful to inform users that you cannot create your last timeless account even BEFORE starting to delete its optimizers? So that users don't waste time and their optimizers and only then find out they can't delete the account?
There was a problem hiding this comment.
Good point, and it's worse than it looks: the API checks for optimizers before it checks for the last account, so you'd delete the optimizers and only then hit the 400. I added a warning at the start of "Remove the optimizers" to check that it isn't your last timeless account before deleting anything.
…izers The API checks for optimizers before it checks for the last timeless account, so following the guide could delete every optimizer and only then return the 400. The warning now comes before the optimizers are removed.
| ## Remove the optimizers {#remove-the-optimizers} | ||
|
|
||
| :::caution | ||
| You can't delete your last timeless account. Before you remove the optimizers of an account you plan to delete, [list your timeless accounts](#find-your-timeless-account) and make sure you have at least one more. If it's your last one, keep its optimizers: the account can't be deleted anyway. |
There was a problem hiding this comment.
I'm not sure we want to be as strict as saying "keep its optimizers" - customers might not want it.
Maybe let's change this paragraph to:
You can't delete your last timeless account. Before you remove the optimizers of an account you plan to delete, [list your timeless accounts](https://github.com/logzio/documentation/pull/993/changes#find-your-timeless-account) and make sure you have at least one more. If it's your last one, you can't delete it. To stop storing data in it, remove its optimizers and [delete its data](https://github.com/logzio/documentation/pull/993/changes#preview-and-delete-data) instead.
There was a problem hiding this comment.
Agreed, applied your wording (with the links as in-page anchors).
Adds an API cookbook page, Manage Timeless Accounts with the API, for customers who automate the timeless lifecycle instead of using the app (Rubrik).
The guide walks through:
idandlogType)It also lists the API token role each request needs, and notes that timeless accounts are created in the app. Manage Timeless accounts and Configure Optimizers each get a short "with the API" section linking to the guide and the API reference.
Depends on logzio/gaia-full#17752 (the routes and token permissions) and logzio/logz-api#78 (the API reference the guide links to). Merge after both.
Verified:
yarn buildpasses (no broken links).