Differences between Archives

The URI to get differences between two archives, an archive or startup-config, an archive or running-config is:

/data/icx-openconfig-archive:archive-top/diff

Supported HTTP Operations

POST method

/data/icx-openconfig-archive:archive-top/diff
Request body:
{"icx-openconfig-archive:input":
{"order-type": "diff-archives",
"archive-name1": "ICX7K_ARCHIVE_00",
"archive-name2": "ICX7K_ARCHIVE_01"}}

Response body: If successful, HTTP/1.1 204 No Content
{"icx-openconfig-archive:output":
{"diff-result":"--- baseline\n+++ comparison\n\n\n+   
1: logging console\n+   2: vlan 10 by port\n\n"}}

If there is an error,HTTP/1.1 500 Internal Server Error
The two archives indicated by archive-name1 and archive-name2 must exist.

POST method

/data/icx-openconfig-archive:archive-top/diff
Request body:
{"icx-openconfig-archive:input":
{"order-type": "diff-archive-startup",
"archive-name1": "ICX7K_ARCHIVE_00"}}

Response body: If successful,HTTP/1.1 204 No Content
If there is an error,HTTP/1.1 500 Internal Server Error
The archive name indicated by archive-name1 must exist.

POST method

/data/icx-openconfig-archive:archive-top/diff
Request body:
{"icx-openconfig-archive:input":
{"order-type": "diff-archive-runcfg",
"archive-name1": "ICX7K_ARCHIVE_00"}}

Response body: If successful,HTTP/1.1 204 No Content
If there is an error,HTTP/1.1 500 Internal Server Error
The archive name indicated by archive-name1 must exist.