Listing of Archive Files

The URI to list all archives in a repository is:

/data/icx-openconfig-archive:archive-top/management/act-list

Supported HTTP Operations

POST method

/data/icx-openconfig-archive:archive-top/management/act-list
Request body:
{"icx-openconfig-archive:input":
{"order-type": "ascending-order"}}

Response body: {"icx-openconfig-archive:output":{"list-result":"current_archive_files=4
[maximum number of archives allowed=100]\n\nList of archives:\nICX7K_ARCHIVE_11 135 Mar 28  
09:04\nICX7K_ARCHIVE_10     3203 Mar 27 
09:35\nICX7K_ARCHIVE_01     3165 Mar 27  
07:16\nICX7K_ARCHIVE_00     3165 Mar 27  
07:15\n\n"}}

Error: HTTP/1.1 500 Internal Server Error

POST method

/data/icx-openconfig-archive:archive-top/management/act-list
Request body:
{"icx-openconfig-archive:input":
{"order-type": "descending-order"}}

Response body: 
{"icx-openconfig-archive:output":{"list-result":"current_archive_files=4
[maximum number of archives allowed=100]\n\nList of archives:ICX7K_ARCHIVE_00 3165 Mar 27  
07:15nICX7K_ARCHIVE_01     3165 Mar 27 
07:16\nICX7K_ARCHIVE_10    3203 Mar 27  
09:35\nICX7K_ARCHIVE_11    135 Mar 28  
09:04\n\n"}}