Before you begin
Please make sure that ConfigSync pod is up and running. You can check it by running the following command:Restore from the specific branch
To restore from the specific branch, use thebranch=<BRANCH_NAME>
request parameter.
HTTP request
cURL request
Restore from a specific commit
First, get the commit SHA from the commit history. To find the commit you want to restore from:- Go to the Config Sync GitHub repository.
- Select the branch you want to restore from.
- Click on the
commits
link. - Find the commit you want to restore from and click on the commit message to view the commit details.
- Copy the commit SHA from the commit details page or from the URL. Also, you could copy it from the commit history page.
commit=<COMMIT_SHA>
request parameter. For example:
HTTP request
cURL request
Restore from a specific date
To restore from a specific date, use thedate=<DATE>
request parameter. The date should be in the YYYY-MM-DDTHH:MM:SSZ
UTC format.
For example: 2021-01-01T00:00:00Z
.
In this case ConfigSync restores the config to the state it was at the specified date.
Actually, it restores the config to the state it was at the last commit before the specified date.
HTTP request
cURL request
Restore specific apps
To restore specific apps, use theapps=<APP1,APP2,…>
request parameter. For example: