Software AG Products 10.11 | Administrating API Gateway | Operating API Gateway | Data Management | Data Housekeeping | Restoring Archived Data using API
 
Restoring Archived Data using API
Restoring is the process of copying backed up data from an archive and restoring it in the database to replace lost or damaged data. You can restore the archived data in the API Gateway database as required.
You can use the REST API, apitransactions/archives to restore archived data.
View the list of available archive files using the following REST API:
curl -XGET
"http://daeyaix1bvt01:5555/rest/apigateway/apitransactions/archives"
-H 'accept:application/json' -H "Accept: application/json" -u username:password
Sample response
{"archiveFiles":["default-2021-10-13-1634096748481","default-2021-10-13-1634096810028",
"default-2021-10-13-1634096871380","default-2021-10-13-1634096933197",
"default-2021-10-13-1634097054614","default-2021-10-13-1634097248461"]}
Restore the required archive file using the following REST API:
curl -XPOST
"http://localhost:5555/rest/apigateway/apitransactions/archives/filename"
-H "accept:application/json" -u username:password
Sample command
curl -XPOST
"http://localhost:5555/rest/apigateway/apitransactions/archives/default-2017-02-09-1486644396751"
-H "accept:application/json" -u Administrator:manage