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
------------------------------
Original Message:
Sent: Mon March 13, 2023 07:07 PM
From: Tim Franklin
Subject: How to create an Aspera ATS Api sub-access key
Thank you, this worked great!
------------------------------
Tim Franklin
Original Message:
Sent: Tue December 20, 2022 12:13 AM
From: BEN FORSYTH
Subject: How to create an Aspera ATS Api sub-access key
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
Original Message:
Sent: Mon December 19, 2022 07:59 PM
From: Tim Franklin
Subject: How to create an Aspera ATS Api sub-access key
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
Original Message:
Sent: Mon December 19, 2022 07:21 PM
From: BEN FORSYTH
Subject: How to create an Aspera ATS Api sub-access key
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
Original Message:
Sent: Sat December 17, 2022 11:40 PM
From: Tim Franklin
Subject: How to create an Aspera ATS Api sub-access key
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
------------------------------