Archive File Upload and Download Operations
The URI to download an archive file is:
data/icx-openconfig-archive:archive-top/management/xfer/archive-download
The URI to upload an archive file is:
data/icx-openconfig-archive:archive-top/management/xfer/archive-upload
Supported HTTP Operations
/data/icx-openconfig-archive:archive-top/management/xfer/archive-download
Request body:
{"icx-openconfig-archive:input":
{"t_type": "https",
"ip-address" : "xx.xx.xx.xx",
"port": "443",
"archive-name": "ICX7K_ARCHIVE_00",
"filename": "ext_ICX7K_ARCHIVE_00"}}
Note: Port is optional
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 "ICX7K_ARCHIVE_00" does not exist, but the filename
"ext_ICX7K_ARCHIVE_00" must exist./data/icx-openconfig-archive:archive-top/management/xfer/archive-download
Request body:
{"icx-openconfig-archive:input":
{"t_type": "tftp",
"ip-address" : "xx.xx.xx.xx",
"port": "69",
"archive-name": "ICX7K_ARCHIVE_00",
"filename": "ext_ICX7K_ARCHIVE_00"}}
Note: Port is optional
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 "ICX7K_ARCHIVE_00" does not exist, but the filename
"ext_ICX7K_ARCHIVE_00" must exist./data/icx-openconfig-archive:archive-top/management/xfer/archive-upload
Request body:
"icx-openconfig-archive:input":
{"t_type": "https",
"ip-address" : "xx.xx.xx.xx",
"port": "443",
"archive-name": "ICX7K_ARCHIVE_00",
"filename": "ext_ICX7K_ARCHIVE_00"}}}}
Note: Port is optional
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 "ICX7K_ARCHIVE_00" must exist. The filename "ext_ICX7K_ARCHIVE_00" may
cause the upload failure like "write protection error", depending on the server./data/icx-openconfig-archive:archive-top/management/xfer/archive-upload
Request body:
{"icx-openconfig-archive:input":
{"t_type": "tftp",
"ip-address" : "10.176.195.253",
"port": "69",
"archive-name": "ICX7K_ARCHIVE_00",
"filename": "ext_ICX7K_ARCHIVE_00"}}
Note: Port is optional
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 "ICX7K_ARCHIVE_00" must exist. The filename "ext_ICX7K_ARCHIVE_00" may
cause an upload failure such as "write protection error", depending on the
server.