Project

General

Profile

Actions

User story #2228

closed

Add a rest API to archive/restore items

Added by François ARMAND almost 13 years ago. Updated over 12 years ago.

Status:
Released
Priority:
2
Category:
Web - Maintenance
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

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
    • 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
    • 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]
    • 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/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/full/latestCommit
Actions #1

Updated by Jonathan CLARKE almost 13 years ago

We really need a simple shortcut aswell, like : /api/archives/restore/all/latest

Actions #2

Updated by François ARMAND almost 13 years ago

  • Description updated (diff)

Update the list of available action, taking into account the remark by Jon.

Actions #3

Updated by François ARMAND almost 13 years ago

  • Status changed from 2 to Pending technical review
  • % Done changed from 0 to 100
Actions #4

Updated by François ARMAND almost 13 years ago

  • Description updated (diff)

Added in 88b211d the possibility to restore latest archive (from a tag) or latest available state, from Git HEAD (last commit).

Actions #5

Updated by François ARMAND almost 13 years ago

  • Description updated (diff)
Actions #6

Updated by François ARMAND almost 13 years ago

  • Description updated (diff)
Actions #7

Updated by Nicolas CHARLES over 12 years ago

  • Status changed from Pending technical review to 10

This looks valid, thank you Francois (and I'm learning a lot of stuffs)

Actions #8

Updated by Jonathan CLARKE over 12 years ago

  • Status changed from 10 to Released
Actions

Also available in: Atom PDF