| Sv translation | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||
Восстановление данных хранилища бинарных данных заключается в восстановлении корзин из их резервных копий. Эта процедура состоит из следующих шагов:
При выполнении curl-запросов к Data Storage в качестве адреса сервера
Для работы с сервисом Data Storage, нужно получить Bearer-токен для HTTP-авторизации. В запросах к Data Storage его необходимо указывать в заголовке Authorization. Чтобы получить токен, отправьте в Data Storage запрос следующего вида:
где В результате будет выведен заголовок Authorization в формате
Чтобы создать задачу на восстановление корзины, выполните следующий запрос:
где В ответ будет выведен идентификатор созданной задачи:
Также вы можете создать задачу на восстановление корзины и получить идентификатор этой задачи, используя утилиту jq:
Далее по идентификатору задачи можно проверить успешность восстановления корзины.
Чтобы убедиться в том, что восстановление успешно завершено, проверьте статус задачи. Для этого выполните запрос:
где В случае успехе вы увидите следующий ответ:
Убедитесь в том, что задача завершена и имеет один из следующих статусов: Success, Canceled, Failed. Также вы можете получить статус задачи, используя утилиту jq:
|
| Sv translation | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||
Restoring the storage of binary data lies in restoring buckets from their backups. This procedure consists of the following steps:
When sending curl requests, you can specify the following values as a server address
To work with the Data Storage service, you need to get a Bearer token for HTTP authorization. In requests to Data Storage, specify it in the Authorization header. To get the token, send the following request to Data Storage:
where As a result, you will see the Authorization header in the following format:
To create a task of restoring bucket, send the following request:
where In response, the ID of the created task will be displayed:
Also you can create the task of restoring bucket and get the ID of this task using the jq utility:
Next, you can check successful restoration of bucket using the task ID.
To make sure that restoration completed successfully, check the status of the task. For this, send the request:
where If succesfull, you will see the following response:
Make sure that the task is completed and has one of the following statuses: Success, Canceled, Failed. Also you can get the task status using the jq utility:
|