Forum Discussion
Directory Paths and REST API
According to the documentation:
To download the file, use the GET method and specify the /tm/asm/file-transfer/downloads endpoint, along with the name of the exported file. You must specify the name of the file in the request.
I have done this and I get:
File does not exist or file path is not a file: /ts/var/rest/restacct~localhost_2018-08-13_150134.ucs
Using the command line, I located the file, it is found in "/var/local/ucs". How do I specify a directory in the URL?
I tried: /tm/asm/file-transfer/downloads/var/local/ucs/localhost_2018-08-13_151831.ucs
That did not work. Produced the error:
URI path /tm/asm/file-transfer/downloads/var/local/ucs/localhost_2018-08-13_151831.ucs not registered.
Thanks!
- Greg_Jewett
Cirrus
It was not intuitive, but my Google Foo kicked in, and I finally found myself on a Python library page that gave a table of where files were located and how to download them via the REST API.
https://f5-sdk.readthedocs.io/en/latest/userguide/file_transfers.html
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com