Aspera

Aspera

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  How to create an Aspera ATS Api sub-access key

    Posted Mon December 19, 2022 02:34 PM
    Hello,
    I have successfully created an ATS primary access key and need to create a sub-access key.  How do you create sub-access keys programmatically?  In my use case I cannot use the Aspera on Cloud UI. 
    I have a Standard plan Aspera on Cloud subscription.
    Thanks!

    ------------------------------
    Tim Franklin
    ------------------------------


  • 2.  RE: How to create an Aspera ATS Api sub-access key

    Posted Mon December 19, 2022 07:22 PM
    Make a POST to https://ats-host/access_keys/<access_key> where <access_key> is the access key you have previously created. The sub-access key the payload must include the relative storage path where the sub-access key will be rooted.

    ------------------------------
    BEN FORSYTH
    ------------------------------



  • 3.  RE: How to create an Aspera ATS Api sub-access key

    Posted Mon December 19, 2022 08:00 PM
    Edited by Tim Franklin Mon December 19, 2022 08:03 PM
    Hi @BEN FORSYTH, when I make the request you provided I get the following error:
    {
        "error": {
            "description": "HTTP 405 Method Not Allowed",
            "details": "javax.ws.rs.NotAllowedException: HTTP 405 Method Not Allowed",
            "type": "NotAllowedException"
        }
    }​

    The url I'm using is:

    https://ats.aspera.io/pub/v1/access_keys/<access_key> 

    Is the root path you are using https://ats.aspera.io/pub/v1?

    Thanks,
    Tim


    ------------------------------
    Tim Franklin
    ------------------------------



  • 4.  RE: How to create an Aspera ATS Api sub-access key

    Posted Tue December 20, 2022 12:13 AM
    The host would be the actual host where your access_key is stored something like

    ats-aws-us-east-1.aspera.io

    or

    ats-sl-dal.aspera.io


    The ATS API is only used to create the access key - the access key itself is created on the specific server were your storage bucket is located. The sub-access-key functionality uses the Node API on the specific host cluster where your bucket is located to create a new username/password to give access to a sub-folder of the access_key.

    ------------------------------
    BEN FORSYTH
    ------------------------------



  • 5.  RE: How to create an Aspera ATS Api sub-access key

    Posted Mon March 13, 2023 07:08 PM

    Thank you, this worked great!



    ------------------------------
    Tim Franklin
    ------------------------------



  • 6.  RE: How to create an Aspera ATS Api sub-access key

    Posted Mon March 27, 2023 04:06 AM

    Hi Tim,

    A convenient way to test and use APIs is ascli:

    For example it allows interaction with ATS APIs in AoC (or directly):

    ascli aoc admin ats access_key list

    it allows to list, create, delete , etc... access keys

    as well as browse, transfer, etc..



    ------------------------------
    Laurent Martin
    ------------------------------