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

Steve Tuecke tuecke at ci.uchicago.edu
Mon Feb 6 18:34:22 CST 2012


Globus-connect has been designed so that it can be embedded and automatically run from scripts. Using the CLI interface of the Linux GC, you can script getting the GC setup key, setting up GC, and starting and stopping it.

-Steve

On Feb 6, 2012, at 6:06 PM, Maxim Potekhin <potekhin at bnl.gov> wrote:

> Thanks Bryce,
> 
> I just successfully activated a globus-connect endpoint, using endpoint_create
> 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 means
> 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 completely
> programmatic endpoint in the Python client would be sweet.
> 
> Cheers,
> Maxim
> 
> 
> 
> 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
>>> 
> 
> _______________________________________________
> transfer-api mailing list
> transfer-api at lists.globusonline.org
> https://lists.globusonline.org/mailman/listinfo/transfer-api


More information about the transfer-api mailing list