IBM / aspera-cli

IBM Aspera CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AoC: access files with pub link

laurent-martin opened this issue · comments

Hey,

I am trying to automate a transfer to an AOC instance using a public link.
If I use the ascli config wizard --query=aoc command it wants a username and then wants me to update the "Public key" for that user but I can't do that for a public user.

Do you have any guidance on how I can perform a transfer either using ascli or ascp directly?

Any help would be appreciated.

Public URL (to shared folder):

https://sampleorg.ibmaspera.com/files/public?token=blahBlahLeCorbeauEtLeRenard&short_link_url=https%3A%2F%2Fapi.ibmaspera.com%2Fshort_url%2FXxXxXx%2Fsome_name

The normal syntax to use public links is:

ascli aoc --link='<link here>' ...

And if the pub link is protected with a password, it needs also to be provided:

ascli aoc --link='<link here>' --password=<pass here> ...

There were some changes in AoC that make the link not work in 4.14 and less ...

A workaround is to swap files and public in the link provided.

This will be fixed in the next release.

I have posted a beta here:

https://ibm.biz/aspera-cli-beta

To install:

curl -L https://ibm.biz/aspera-cli-beta -o aspera-cli-4.15.0.pre.gem
gem install aspera-cli-4.15.0.pre.gem

This version fixes the issue explained above, moreover, the wizard supports aoc public links now.

$ ascli conf wiz
argument: url> https://sampleorg.ibmaspera.com/files/public?token=blahBlahLeCorbeauEtLeRenard&short_link_url=https%3A%2F%2Fapi.ibmaspera.com%2Fshort_url%2FXxXxXx%2Fsome_name
Detected: Aspera on Cloud at https://sampleorg.ibmaspera.com/files/public?token=blahBlahLeCorbeauEtLeRenard&short_link_url=https%3A%2F%2Fapi.ibmaspera.com%2Fshort_url%2FXxXxXx%2Fsome_name
option: password> *******
Preparing preset: aoc_sampleorg_ibmaspera_com
Setting config preset as default for aoc
Saving config file.
Done.
You can test with:
ascli aoc organization