One of the challenges in cloud computing for HPC tasks is creating, deploying, and managing applications as well as data movement for large scale computations. Using our API, you can integrate our cloud HPC processing services into your web applications or workflows.
Once your JSON API call has been created with the automated job builder, you can simply paste the resulting JSON into one of the following code snippets, replacing the {JSON} string.
Command Line (Bash Scripting)
curl -k -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{JSON}' https://api.nimbix.net:4081/nimbix/nacc_upload2
Python
import urllib2
json = '{JSON}'
req = urllib2.Request("https://api.nimbix.net:4081/nimbix/nacc_upload2", headers = {"Content-Type": "application/json"}, data = json)
f = urllib2.urlopen(req)
print f.read()
Perl
use Module::Load;
load LWP::UserAgent;
my $uri = 'https://api.nimbix.net:4081/nimbix/nacc_upload2';
my $json = '{JSON}';
my $req = HTTP::Request->new( 'POST', $uri );
$req->header( 'Content-Type' => 'application/json' );
$req->content( $json );
my $lwp = LWP::UserAgent->new;
my $res = $lwp->request( $req );
if ($res->is_success) {
print $res->decoded_content;
}
else {
print STDERR $res->status_line, "\n";
}