Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: unlinked the "e.g. c2a:/tmp/test.tar.gz" file as it was showing in reports as a broken link

...

CURL is commonly available on a default install of many UNIX/Linux platforms. Try typing curl in your favorite favourite shell to see if it is installed and in your PATH. If you don't have the tool installed, visit the download page on the CURL website to obtain the official source or a user-contributed binary package: http://curl.haxx.se/download.html

...

If you are using the RMDCN network to access ECMWF then please use msaccess.ecmwf.int instead of ecaccess.ecmwf.int. The curl options used are the following:

-wdisplay the http code on stdout (\ncode=%{http_code}\n)
-kdisable certificate checking

If you don't want or can't setup these environment parameters then just replace $ECACCESS_URLV2 and $ECACCESS_OPTS by their contents in the rest of the document.

...

Each JSON message should include a field "success" set to "yes". If an error occurs then this field is set to "no" and an "error" field gives the error message returned by the service.

For more informations information concerning JSON see http://www.json.org/

There are a few occasions when an error will not be indicated via a JSON message but with an http error code (e.g. when a binary stream is expected rather than a message):

401 Unauthorizedauthentication error when trying to download a new certificate
400 Bad requesterror when downloading a data file or job output/input file.
403 Forbidden
acces
access is only allowed through a secure connection (https).
412 Precondition failedmissing mandatory URL parameter or unknown JSON parameter.
404 Not Foundthe requested service does not exists.

On a successful request the http status code returned by the server is the following:

200 OKthe request has
procuded
produced a JSON message.

If you get an HTML document then that could be a problem with a proxy. In this case the HTML message should give you an indication of what the problem is.

...

The table below lists all parameters for the ECtrans Association. For additional information please see the ecaccess-association-put manpage.

TypeNameComment
Stringname 
Booleanactivedefault FALSE
Stringcomment 
StringgrantedUserListmultiple users separated by a ','
Stringdata 
Stringdirectory 
StringhostName 
Stringlogin 
Stringpassword 
Stringprotocol 

Protocols

To list all the ECtrans Protocols supported by a Gateway (e.g. ecaccess.ecmwf.int) command

...

The ECaccess files are in the form [domain:][/user-id/]path. Please refer to File Management for more information on the ECaccess File System. To download a source ecaccess file, e.g. c2a:/tmp/test.tar.gz), use

> curl $ECACCESS_OPTS -H "Token: ahs4w294" -o test.tar.gz \
 "$ECACCESS_URLV2/file?source=c2a:/tmp/test.tar.gz&offset=0"

...

The table below lists all Job Request parameters. For additional information please see the ecaccess-job-submit manpage.

TypeNameComment
StringscheduledDatein the form 'yyyy-MM-dd HH:mm'
StringuserMailAddress 
BooleansendMailOnStart 
BooleansendMailOnSuccess 
BooleansendMailOnFailure 
BooleansendMailOnRetry 
BooleancontainsDirectivesdefault TRUE
StringqueueNamedefault is ecgate
Stringname 
StringtransferGatewayNamedefault is current Gateway
StringtransferRemoteLocationin the format association-name[@protocol]
StringtransferOutputFile 
StringtransferErrorFile 
StringtransferInputFile 
BooleantransferKeepInSpooldefault FALSE
StringeventIdslist separated by ';' or ','
BooleanrenewSubscriptiondefault FALSE
BooleanerrorToOutputdefault FALSE
StringmanPageContent 
IntegerlifeTimein days
IntegerretryCountdefault 0
IntegerretryFrequencyin seconds
StringinputFilefile on ECMWF file system

To list all your ECaccess Jobs:

...

All parameters for the Event Request are listed in table 12. Table 12: Parameters for an Event Request. For additional information please see the ecaccess-event-create manpage.

TypeNameComment
Stringname 
Stringcomment 
BooleanisPublicdefault FALSE
Booleanoverwritedefault FALSE
Stringtitle 
Stringmetadata 

To grant an ECaccess Event (e.g. 807):

...

All parameters for the Grant Event Request are listed in table 13. Table 13: Parameters for a Grant Event Request. For additional information please see the ecaccess-event-grant manpage.

TypeNameComment
Booleansubscribedefault FALSE
Booleannotifydefault FALSE
StringuserListmultiple users separated by a ','

To trigger an ECaccess Event (e.g. 807):

...

All parameters for the Send Event Request are listed in table 14. Table 14: Parameters for the Send Event Request. For additional information please see the ecaccess-event-send manpage.

TypeNameComment
Stringenvmultiple variables separated by a ';'
Stringdelayspecified in [w]eeks, [d]ays, [h]ours, [m]inutes or [s]econds (e.g. 1w or 2d)
Stringatin the format 'yyyy-MM-dd HH:mm'
Integerseq 

To clear an ECaccess Event (e.g. 807):

...

All parameters for the ECtrans Request are listed in table 15. Table 15: Parameters for the ECtrans Request. For additional information please see the ecaccess-ectrans-request manpage.

TypeNameComment
StringgatewayNamedefault current Gateway
StringremoteLocationin the format association-name[@protocol]
StringsourceFileName 
StringtargetFileName 
IntegerretryCount 
IntegerretryFrequencyfrequency of retries in seconds (default: 600 seconds)
StringmaximumDuratione.g. 10m or 1h, <0 to deactivate (default 12h)
StringminimumDuratione.g. 30s or 10m, <0 to deactivate (default 10m)
LongminimumRatebytes/s (default 10240)
Integerpriority 
StringlifeTimein [w]eeks, [d]ays, [h]ours, [m]inutes or [s]econds (e.g. 1w or 2d)
BooleandeleteSourcedefault FALSE
BooleankeepInSpooldefault FALSE
StringuserMailAddress 
BooleansendMailOnSuccess 
BooleansendMailOnFailure 
BooleansendMailOnRetry 
StringifTargetFileExists'reject', 'append', 'resume' or 'overwrite'

To restart an ECtrans Transfer:

...