[Iplant-api-dev] Problems adding filesystems / v2

Rion Dooley dooley at tacc.utexas.edu
Sun Oct 6 18:03:06 MST 2013


No worries. The Agave CLI is also helpful for this kind of thing. Just run any command with the -V option and it will enable verbose output including the corresponding curl command to perform the action.

http://agaveapi.co/agave-cli/

Rion

________________________________________
From: Markus Binsteiner [m.binsteiner at auckland.ac.nz]
Sent: Sunday, October 06, 2013 8:01 PM
To: Rion Dooley
Cc: iPlant API Developers Mailing List
Subject: Re: [Iplant-api-dev] Problems adding filesystems / v2

Yup, that works. Thanks!

On Mon, 2013-10-07 at 00:53 +0000, Rion Dooley wrote:
> The curl command is doing a get. Try adding -XPOST -F before the
> quoted file parameter.
>
>
> -
> Rion
>
> ----- Reply message -----
> From: "Markus Binsteiner" <m.binsteiner at auckland.ac.nz>
> To: "Rion Dooley" <dooley at tacc.utexas.edu>
> Cc: "Discussion of iPlant API development"
> <iplant-api-dev at iplantcollaborative.org>
> Subject: [Iplant-api-dev] Problems adding filesystems / v2
> Date: Sun, Oct 6, 2013 6:39 PM
>
>
> Hi,
>
> I'm trying to add an irods as well as a gridftp filesystem to v2 of
> the
> Agave API. When issuing:
>
> curl -sku $CLIENT_SECRET:$CLIENT_KEY
> "fileToUpload=@/home/markus/Documents/work/agave/datafabric.json"
> https://iplant-dev.tacc.utexas.edu/v2/systems?pretty=true
>
> On this json file:
>
> {
>     "id": "datafabric.auckland2",
>     "name": "DataFabric",
>     "status": "UP",
>     "type": "STORAGE",
>     "description": "Auckland node of NeSI DataFabric",
>     "site": "auckland.ac.nz",
>     "storage": {
>         "host": "df.auckland.ac.nz",
>         "port": 1247,
>         "protocol": "IRODS",
>         "rootDir": "/BeSTGRID/home/markus.binsteiner2",
>         "auth": {
>             "type": "PASSWORD",
>             "password": "<myPassword>",
>             "username": "markus.binsteiner2"
>         },
>         "resource": "irods.ceres.auckland.ac.nz",
>         "zone": "BeSTGRID"
>     }
> }
>
> I'm getting a list of filesystems back, but the one I wanted to add is
> not included. Same goes for any subsequent systems-list, which only
> shows:
>
> blacklight.psc.teragrid.org
> lonestar4.tacc.teragrid.org
> stampede.tacc.utexas.edu
> data.iplantcollaborative.org
> trestles.sdsc.teragrid.org
> stampede
> data
> condor.opensciencegrid.org
>
>
> There is no error message either. Anything I'm missing?
>
> Cheers,
> Markus
>
>
> _______________________________________________
> Iplant-api-dev Mailing List: Iplant-api-dev at iplantcollaborative.org
> List Info and Archives:
> http://mail.iplantcollaborative.org/mailman/listinfo/iplant-api-dev
> One-click Unsubscribe:
> http://mail.iplantcollaborative.org/mailman/options/iplant-api-dev/dooley%40tacc.utexas.edu?unsub=1&unsubconfirm=1
>





More information about the Iplant-api-dev mailing list