[transfer-api] Example of globus-connect usage in the API

Maxim Potekhin potekhin at bnl.gov
Mon Feb 6 18:06:54 CST 2012

Thanks Bryce,

I just successfully activated a globus-connect endpoint, using 
and the "delegate" just like I did in other cases.

The only thing that bothers me is that I need to do things outside of 
the Python
API, such as d/l globusconnect and then execute a few commands by it. I 
it's doable, but I really wanted to converge to the situation where I 
have a Python
module and that's it. I realize that certain things aren't practical 
implement in
short term or even at all. But I suppose you would agree that having a 
programmatic endpoint in the Python client would be sweet.


On 2/6/2012 6:44 PM, Bryce Allen wrote:
> I'm not sure what you mean by "operating an endpoint". You can create
> an endpoint record for an existing GridFTP server like this:
>    api.endpoint_create("myendpointname", hostname="gridftp.example.org")
> To create a globusconnect endpoint, just pass is_globus_connect=True
> instead of a hostname:
>    _, _, result = api.endpoint_create("mygcendpoint",
>                                       is_globus_connect=True)
>    print "GC setup key: ", result["globus_connect_setup_key"]
> Offhand I'm not sure how this varies for GCMU - let me know if you need
> a GCMU example.
> The Python API is a pretty thin wrapper of the raw API, so these docs
> can be instructive, especially the result examples:
> https://transfer.api.globusonline.org/v0.10/doc/index.html#endpoint-management
> -Bryce
> On Mon, 06 Feb 2012 18:27:21 -0500
> Maxim Potekhin<potekhin at bnl.gov>  wrote:
>> Hello Bryce,
>> do you have a working example of operating an endpoint on
>> globus-online? I understand that the service gives you a token to
>> use. We did this with gsissh
>> before, but now I need to migrate the code to API.
>> Regards,
>> Maxim

More information about the transfer-api mailing list