Project

General

Profile

User story #2228

Updated by François ARMAND over 12 years ago

We want a rest API to import and export items: 

 Archiving: 
 * */api/archives/archive/groups* 
 ** export node groups and node groups categories 
 * */api/archives/archive/directives* 
 ** export policy library (categories, user polity templates, policy instantes) 
 * */api/archives/archive/rules* */api/archives/archive/configurationRules* 
 ** export configuration rules 
 * */api/archives/archive/full* 
 ** export everything 

 Listing: 
 * */api/archives/list/groups* 
 ** list available archives datetime for groups (the datetime is in the format awaited for restoration) 
 * */api/archives/list/directives* 
 ** list available archives datetime for policy library (the datetime is in the format awaited for restoration) 
 * */api/archives/list/rules* */api/archives/list/configurationRules* 
 ** list available archives datetime for configuration rules (the datetime is in the format awaited for restoration) 
 * */api/archives/list/full* 
 ** list available archives datetime for full archives (the datetime is in the format awaited for restoration) 

 Restoring a given archive: 
 * */api/archives/restore/groups/datetime/[archiveId]* 
 ** restore given archive 
 * */api/archives/restore/directives/datetime/[archiveId]* 
 ** restore given archive 
 * */api/archives/restore/rules/datetime/[archiveId]* */api/archives/restore/configurationRules/datetime/[archiveId]* 
 ** restore given archive 
 * */api/archives/restore/full/datetime/[archiveId]* 
 ** restore everything 

 Restoring the latest available archive (from a previously archive action, and so from a Git tag): 
 * */api/archives/restore/groups/latestArchive* 
 * */api/archives/restore/directives/latestArchive* 
 * */api/archives/restore/rules/latestArchive* */api/archives/restore/configurationRules/latestArchive* 
 * */api/archives/restore/full/latestArchive* 

 Restoring the latest available commit (use Git HEAD): 
 * */api/archives/restore/groups/latestCommit* 
 * */api/archives/restore/directives/latestCommit* 
 * */api/archives/restore/rules/latestCommit* */api/archives/restore/configurationRules/latestCommit* 
 * */api/archives/restore/full/latestCommit* 

Back