Images

To list all of the images available on your account, send a GET request to https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab.

The response will be a JSON object with a key called images. This will be set to an array of image objects, each of which will contain the standard image attributes:

List all Images

Name Type Description
name String Name of node images
plan String The unique slug identifier for the plan of this node image
image string Base image name for node creation.
OS name
version image
JSON string
string string
Operating system Details like name of os , version of os and unique identifier for image os name.
Zone slug_name JSON string In which zone image is available to launc node.
Specs ram (in GB)
cpu (in Cores) disk_space(in GB) price_per_month(in Rs) price_per_hour (in Rs) series minimum_billing_amount (in Rs)
JSON string
string string string string string integer
Image Specification like there ram in node image
cpu in node disk space in node price per month price per hour node belongs to which series minimum billing amount in case of

CURL

curl -X GET  'https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'  -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'

PHP

1. PHP HttpRequest Example

       $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab',
  'image_type' => 'private'
));

$request->setHeaders(array(
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}


2. PHP pecl_http Example

       $client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab',
  'image_type' => 'private'
)));

$request->setHeaders(array(
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();


3. PHP CURL Example

       $curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab&image_type=private",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

NODEJS

1. Nodejs Native Example

      var http = require("http");

var options = {
  "method": "GET",
  "hostname": [
    "api",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "images",
    "1.0"
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE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ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "cache-control": "no-cache",
    "Postman-Token": "491fe905-b7ce-43a0-be46-5b7c22c2370e"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();



2. NodeJs Request Example

      var request = require("request");

var options = { method: 'GET',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/images/',
  qs:
   { apikey: '9b6f7cbb-d574-4c3c-9312-5756e2a4e610',
     image_type: 'private' },
  headers:
   {
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiI4MjUwZTEyZS02MDJmLTQ0MzItODI1Ni01OGM3MmE4ODZkYjciLCJleHAiOjE1ODcxOTM2NjYsIm5iZiI6MCwiaWF0IjoxNTU1NjU3NjY2LCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImFlYTQzYzMzLWU4YzMtNDRkNC1iYTc1LTEyODdjYzhhY2E4OCIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6ImQ3NmM2OGI3LTQyMDAtNDQyZi04MDkwLTk1OGRjNjljZGQ2OCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.OYExaJ_6tGDeT6MyT8jBWkvn2zVXM8PVpuukMGVd4oxpGv2kHBWKQqNIyA4XUNLOoup36V02UyLJhvi8MMGKX2-FF9m05o1-TgYHl51Ale9JNPRbLUWA5uanoyjOo29Fv3XyEx2c-PMaZ5rTFt730ISPkSAt4GLx-zWHGW-kJc4' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});




3. NodeJs Unirest Example

      var unirest = require("unirest");

var req = unirest("GET", "https://api.e2enetworks.com/myaccount/api/v1/images/");

req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  "image_type": "private"
});

req.headers({
  "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE"
});


req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});

Headers

Request Headers

Content-Type: application/json
Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582

Response Headers

content-type: application/json; charset=utf-8
status: 200 OK
ratelimit-limit: 1200
ratelimit-remaining: 777
ratelimit-reset: 1415984218

Body

Response Body

{
    "message": "Success",
    "code": 200,
    "data": [
        {
            "name": "CentOS-6.8",
            "size": "B-1VCPU-2RAM-15DISK",
            "image": "CentOS-6.8-GPU",
            "os": {
                "name": "Centos",
                "version": "6.8",
                "image": "CentOS-6.8-GPU"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "6.10",
                "cpu": 1,
                "disk_space": 15,
                "price_per_month": "1377",
                "price_per_hour": "1.85",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "GPU-CentOS-6.8",
            "size": "B-1VCPU-2RAM-15DISK",
            "image": "CentOS-6.8-GPU",
            "os": {
                "name": "Centos",
                "version": "6.8",
                "image": "CentOS-6.8-GPU"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "6.10",
                "cpu": 1,
                "disk_space": 15,
                "price_per_month": "1377",
                "price_per_hour": "1.85",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "GPU-CentOS-7.3",
            "size": "B-1VCPU-2RAM-15DISK",
            "image": "CentOS-6.8-GPU",
            "os": {
                "name": "Centos",
                "version": "6.8",
                "image": "CentOS-6.8-GPU"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "6.10",
                "cpu": 1,
                "disk_space": 15,
                "price_per_month": "1377",
                "price_per_hour": "1.85",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "CentOS-7.3-1GB",
            "size": "B-1VCPU-6RAM-46DISK",
            "image": "CentOS-7.3-Distro",
            "os": {
                "name": "Centos",
                "version": "7.3",
                "image": "CentOS-7.3-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "6.00",
                "cpu": 1,
                "disk_space": 46,
                "price_per_month": "685",
                "price_per_hour": "0.92",
                "series": "B",
                "minimum_billing_amount": "100"
            }
        },
        {
            "name": "saved-image-0005",
            "size": "B-1VCPU-6RAM-46DISK",
            "image": "CentOS-7.3-Distro",
            "os": {
                "name": "Centos",
                "version": "7.3",
                "image": "CentOS-7.3-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "6.00",
                "cpu": 1,
                "disk_space": 46,
                "price_per_month": "685",
                "price_per_hour": "0.92",
                "series": "B",
                "minimum_billing_amount": "100"
            }
        }
......
 ],
    "errors": {}
}

List Images By Image Type

To list all images assigned to a specific image type, add the image_type as a query parameter and send a GET request to endpoint https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab&image_type=$IMAGE_TYPE.

Name Type Description
name String Name of node images
plan String The unique slug identifier for the plan of this node image
image string Base image name for node creation.
OS name
version image
JSON string
string string
Operating system Details like name of os , version of os and unique identifier for image os name.
Zone slug_name JSON string In which zone image is available to launc node.
Specs ram (in GB)
cpu (in Cores) disk_space(in GB) price_per_month(in Rs) price_per_hour (in Rs) series minimum_billing_amount (in Rs)
JSON string
string string string string string integer
Image Specification like there ram in node image
cpu in node disk space in node price per month price per hour node belongs to which series minimum billing amount in case of

CURL

curl -X GET 'https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&image_type=public'-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'

PHP

1. PHP HttpRequest Example

       $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'image_type' => 'public'
));

$request->setHeaders(array(
  'authorization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FKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

    2. PHP pecl_http Example

       $client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'image_type' => 'public'
)));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();



3. PHP CURL Example

       $curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&image_type=public",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTT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Y29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA",
    "cache-control: no-cache",
    "postman-token: f977962a-ab4d-2b3c-7d3a-71394b4f1953"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

NODEJS

1. Nodejs Native Example

      var http = require("http");

var options = {
  "method": "GET",
  "hostname": "api.e2enetworks.com",
  "port": null,
  "path": "/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&image_type=public",
  "headers": {
    "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();



2. NodeJs Request Example

      var request = require("request");

var options = { method: 'GET',
  url: 'https://api.e2enetworks.com/myaccount/api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bmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});




3. NodeJs Unirest Example

      var unirest = require("unirest");

var req = unirest("GET", "https://api.e2enetworks.com/myaccount/api/v1/images/");

req.query({
  "apikey": "999f9803-faf7-4c4b-803c-7fb7ce5214de",
  "image_type": "public"
});

req.headers({
  "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
});


req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});

Headers

Request Headers

Content-Type: application/json
Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582

Response Headers

content-type: application/json; charset=utf-8
status: 200 OK
ratelimit-limit: 1200
ratelimit-remaining: 777
ratelimit-reset: 1415984218

Body

Response Body

{
    "message": "Success",
    "code": 200,
    "data": [
        {
            "name": "B.8GB-CentOS-6.10",
            "plan": "B-2VCPU-8RAM-115DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "8.00",
                "cpu": 2,
                "disk_space": 115,
                "price_per_month": "1971.00",
                "price_per_hour": "2.70",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "B.15GB-CentOS-6.10",
            "plan": "B-4VCPU-15RAM-230DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "15.00",
                "cpu": 4,
                "disk_space": 230,
                "price_per_month": "4380.00",
                "price_per_hour": "6.00",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "B.6.1GB-CentOS-6.10",
            "plan": "B-2VCPU-6RAM-46DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "6.10",
                "cpu": 2,
                "disk_space": 46,
                "price_per_month": "1350.50",
                "price_per_hour": "1.85",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "A.4GB-CentOS-6.10",
            "plan": "A-2VCPU-4RAM-60DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "4.00",
                "cpu": 2,
                "disk_space": 60,
                "price_per_month": "1744.70",
                "price_per_hour": "2.39",
                "series": "A",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "A.6GB-CentOS-6.10",
            "plan": "A-3VCPU-6RAM-100DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "6.00",
                "cpu": 3,
                "disk_space": 100,
                "price_per_month": "2620.70",
                "price_per_hour": "3.59",
                "series": "A",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "A.9GB-CentOS-6.10",
            "plan": "A-5VCPU-9RAM-140DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "9.00",
                "cpu": 5,
                "disk_space": 140,
                "price_per_month": "3584.30",
                "price_per_hour": "4.91",
                "series": "A",
                "minimum_billing_amount": "0"
            }
        }
......
 ],
    "errors": {}
}

List Images By CPU

To list all of the images available on your account, send a GET request to https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab.

The response will be a JSON object with a key called images. This will be set to an array of image objects, each of which will contain the standard image attributes:

Name Type Description
name String Name of node images
plan String The unique slug identifier for the plan of this node image
image string Base image name for node creation.
OS name
version image
JSON string
string string
Operating system Details like name of os , version of os and unique identifier for image os name.
Zone slug_name JSON string In which zone image is available to launc node.
Specs ram (in GB)
cpu (in Cores) disk_space(in GB) price_per_month(in Rs) price_per_hour (in Rs) series minimum_billing_amount (in Rs)
JSON string
string string string string string integer
Image Specification like there ram in node image
cpu in node disk space in node price per month price per hour node belongs to which series minimum billing amount in case of

CURL

curl -X GET 'https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&cpu=4'-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4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T9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'

PHP

1. PHP HttpRequest Example

       $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'cpu' => '4'
));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

    2. PHP pecl_http Example

       $client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'cpu' => '4'
)));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC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client->getResponse();

echo $response->getBody();



3. PHP CURL Example

       $curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&cpu=4",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA",
    "cache-control: no-cache",
    "postman-token: f977962a-ab4d-2b3c-7d3a-71394b4f1953"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

NODEJS

1. Nodejs Native Example

      var http = require("http");

var options = {
  "method": "GET",
  "hostname": "api.e2enetworks.com",
  "port": null,
  "path": "/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&cpu=4",
  "headers": {
    "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODA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BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();



2. NodeJs Request Example

      var request = require("request");

var options = { method: 'GET',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/images/',
  qs:
   { apikey: '999f9803-faf7-4c4b-803c-7fb7ce5214de',
     cpu: '4' },
  headers:
   {
     authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});




3. NodeJs Unirest Example

      var unirest = require("unirest");

var req = unirest("GET", "https://api.e2enetworks.com/myaccount/api/v1/images/");

req.query({
  "apikey": "999f9803-faf7-4c4b-803c-7fb7ce5214de",
  "cpu": "4"
});

req.headers({
  "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20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if (res.error) throw new Error(res.error);

  console.log(res.body);
});

Headers

Request Headers

Content-Type: application/json
Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582

Response Headers

content-type: application/json; charset=utf-8
status: 200 OK
ratelimit-limit: 1200
ratelimit-remaining: 777
ratelimit-reset: 1415984218

Body

Request Body

{
    "message": "Success",
    "code": 200,
    "data": [
        {
            "name": "B.15GB-CentOS-6.10",
            "plan": "B-4VCPU-15RAM-230DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "15.00",
                "cpu": 4,
                "disk_space": 230,
                "price_per_month": "4380.00",
                "price_per_hour": "6.00",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "C.10GB-CentOS-6.10",
            "plan": "C-4VCPU-10RAM-100DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "10.00",
                "cpu": 4,
                "disk_space": 100,
                "price_per_month": "1642.50",
                "price_per_hour": "2.25",
                "series": "C",
                "minimum_billing_amount": "0"
            }
        }
......
 ],
    "errors": {}
}

List Images By RAM

To list all images assigned to a specific ram, add the ram as a query parameter and send a GET request to endpoint https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab&ram=$RAM

Name Type Description
name String Name of node images
plan String The unique slug identifier for the plan of this node image
image string Base image name for node creation.
OS name
version image
JSON string
string string
Operating system Details like name of os , version of os and unique identifier for image os name.
Zone slug_name JSON string In which zone image is available to launc node.
Specs ram (in GB)
cpu (in Cores) disk_space(in GB) price_per_month(in Rs) price_per_hour (in Rs) series minimum_billing_amount (in Rs)
JSON string
string string string string string integer
Image Specification like there ram in node image
cpu in node disk space in node price per month price per hour node belongs to which series minimum billing amount in case of

CURL

curl -X GET 'https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&ram=8'-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'

PHP

1. PHP HttpRequest Example

       $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'cpu' => '4'
));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

    2. PHP pecl_http Example

       $client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'cpu' => '4'
)));

$request->setHeaders(array(
  'authorization' => 'Bear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Zgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();

3. PHP CURL Example

       $curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&cpu=4",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA",
    "cache-control: no-cache",
    "postman-token: f977962a-ab4d-2b3c-7d3a-71394b4f1953"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

NODEJS

1. Nodejs Native Example

      var http = require("http");

var options = {
  "method": "GET",
  "hostname": "api.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gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();


2. NodeJs Request Example

      var request = require("request");

var options = { method: 'GET',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/images/',
  qs:
   { apikey: '999f9803-faf7-4c4b-803c-7fb7ce5214de',
     ram: '8' },
  headers:
   {
     authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});



3. NodeJs Unirest Example

      var unirest = require("unirest");

var req = unirest("GET", "https://api.e2enetworks.com/myaccount/api/v1/images/");

req.query({
  "apikey": "999f9803-faf7-4c4b-803c-7fb7ce5214de",
  "ram": "8"
});

req.headers({
  "authorization":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RwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
});


req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});

Headers

Request Headers

Content-Type: application/json
Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582

Response Headers

content-type: application/json; charset=utf-8
status: 200 OK
ratelimit-limit: 1200
ratelimit-remaining: 777
ratelimit-reset: 1415984218

Body

Response Body

{
    "message": "Success",
    "code": 200,
    "data": [
        {
            "name": "B.8GB-CentOS-6.10",
            "plan": "B-2VCPU-8RAM-115DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "8.00",
                "cpu": 2,
                "disk_space": 115,
                "price_per_month": "1971.00",
                "price_per_hour": "2.70",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },
......
 ],
    "errors": {}
}

List Images By series

To list all images assigned to a specific series, add the series as a query parameter and send a GET request to endpoint https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab&series=$SERIES

Name Type Description
name String Name of node images
plan String The unique slug identifier for the plan of this node image
image string Base image name for node creation.
OS name
version image
JSON string
string string
Operating system Details like name of os , version of os and unique identifier for image os name.
Zone slug_name JSON string In which zone image is available to launc node.
Specs ram (in GB)
cpu (in Cores) disk_space(in GB) price_per_month(in Rs) price_per_hour (in Rs) series minimum_billing_amount (in Rs)
JSON string
string string string string string integer
Image Specification like there ram in node image
cpu in node disk space in node price per month price per hour node belongs to which series minimum billing amount in case of

CURL

curl -X GET 'https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&series=A'-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'

PHP

1. PHP HttpRequest Example

       $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'series' => 'A'
));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

    2. PHP pecl_http Example

       $client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'series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Cw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();



3. PHP CURL Example

       $curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&series=A",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA",
    "cache-control: no-cache",
    "postman-token: f977962a-ab4d-2b3c-7d3a-71394b4f1953"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

NODEJS

1. Nodejs Native Example

      var http = require("http");

var options = {
  "method": "GET",
  "hostname": "api.e2enetworks.com",
  "port": null,
  "path": "/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&series=A",
  "headers": {
    "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();



2. NodeJs Request Example

      var request = require("request");

var options = { method: 'GET',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/images/',
  qs:
   { apikey: '999f9803-faf7-4c4b-803c-7fb7ce5214de',
     series: 'A' },
  headers:
   {
     authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});




3. NodeJs Unirest Example

      var unirest = require("unirest");

var req = unirest("GET", "https://api.e2enetworks.com/myaccount/api/v1/images/");

req.query({
  "apikey": "999f9803-faf7-4c4b-803c-7fb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Cw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
});


req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});

Headers

Request Headers

Content-Type: application/json
Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582

Response Headers

content-type: application/json; charset=utf-8
status: 200 OK
ratelimit-limit: 1200
ratelimit-remaining: 777
ratelimit-reset: 1415984218

Body

Response Body

{
    "message": "Success",
    "code": 200,
    "data": [
        {
            "name": "A.4GB-CentOS-6.10",
            "plan": "A-2VCPU-4RAM-60DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "4.00",
                "cpu": 2,
                "disk_space": 60,
                "price_per_month": "1744.70",
                "price_per_hour": "2.39",
                "series": "A",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "A.6GB-CentOS-6.10",
            "plan": "A-3VCPU-6RAM-100DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "6.00",
                "cpu": 3,
                "disk_space": 100,
                "price_per_month": "2620.70",
                "price_per_hour": "3.59",
                "series": "A",
                "minimum_billing_amount": "0"
            }
        },
......
 ],
    "errors": {}
}

List Images By Image Type

To list all images assigned to specific cpu and ram, add the cpu and ram as a query parameter and send a GET request to endpoint https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab&cpu=$CPU&ram=$RAM

Name Type Description
name String Name of node images
plan String The unique slug identifier for the plan of this node image
image string Base image name for node creation.
OS name
version image
JSON string
string string
Operating system Details like name of os , version of os and unique identifier for image os name.
Zone slug_name JSON string In which zone image is available to launc node.
Specs ram (in GB)
cpu (in Cores) disk_space(in GB) price_per_month(in Rs) price_per_hour (in Rs) series minimum_billing_amount (in Rs)
JSON string
string string string string string integer
Image Specification like there ram in node image
cpu in node disk space in node price per month price per hour node belongs to which series minimum billing amount in case of

CURL

curl -X GET 'https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&cpu=4&ram=8'-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'

PHP

1. PHP HttpRequest Example

       $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'cpu' => '4',
  'ram' => '8'
));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02M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b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

    2. PHP pecl_http Example

       $client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'cpu' => '4',
  'ram' => '8'
)));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();



3. PHP CURL Example

       $curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&cpu=4&ram=8",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqd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Zho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

NODEJS

1. Nodejs Native Example

      var http = require("http");

var options = {
  "method": "GET",
  "hostname": "api.e2enetworks.com",
  "port": null,
  "path": "/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&cpu=8&ram=8",
  "headers": {
    "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();



2. NodeJs Request Example

      var request = require("request");

var options = { method: 'GET',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/images/',
  qs:
   { apikey: '999f9803-faf7-4c4b-803c-7fb7ce5214de',
     cpu: '4',
     ram: '8' },
  headers:
   {
     authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.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bseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});




3. NodeJs Unirest Example

      var unirest = require("unirest");

var req = unirest("GET", "https://api.e2enetworks.com/myaccount/api/v1/images/");

req.query({
  "apikey": "999f9803-faf7-4c4b-803c-7fb7ce5214de",
  "cpu": "4",
  "ram": "8"
});

req.headers({
  "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
});


req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});

Headers

Request Headers

Content-Type: application/json
Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582

Response Headers

content-type: application/json; charset=utf-8
status: 200 OK
ratelimit-limit: 1200
ratelimit-remaining: 777
ratelimit-reset: 1415984218

Body

Response Body

{
    "message": "Success",
    "code": 200,
    "data": [
        {
            "name": "E2E-1Click-Redis",
            "plan": "1CLICK-4VCPU-8RAM-20DISK",
            "image": "Debian-9-Distro",
            "os": {
                "name": "Debian",
                "version": null,
                "image": "Debian-9-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "8.00",
                "cpu": 4,
                "disk_space": 20,
                "price_per_month": "730.00",
                "price_per_hour": "1.00",
                "series": "1CLICK",
                "minimum_billing_amount": "0"
            }
        }
    ],
    "errors": {}
}

List Images By CPU, RAM & SERIES

To list all images assigned to specific cpu, ram & series, add the cpu, ram and series as a query parameter and send a GET request to endpoint https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab&cpu=$CPU&ram=$RAM&series=$SERIES

Name Type Description
name String Name of node images
plan String The unique slug identifier for the plan of this node image
image string Base image name for node creation.
OS name
version image
JSON string
string string
Operating system Details like name of os , version of os and unique identifier for image os name.
Zone slug_name JSON string In which zone image is available to launc node.
Specs ram (in GB)
cpu (in Cores) disk_space(in GB) price_per_month(in Rs) price_per_hour (in Rs) series minimum_billing_amount (in Rs)
JSON string
string string string string string integer
Image Specification like there ram in node image
cpu in node disk space in node price per month price per hour node belongs to which series minimum billing amount in case of

CURL

curl -X GET 'https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&cpu=4&ram=8&series=A'-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'

PHP

1. PHP HttpRequest Example

       $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'cpu' => '4',
  'ram' => '8',
  'series' => 'A'
));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE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_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

    2. PHP pecl_http Example

       $client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'cpu' => '4',
  'ram' => '8',
  'series' => 'A'
)));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();



3. PHP CURL Example

       $curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&cpu=4&ram=8&series=A",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLO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yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

NODEJS

1. Nodejs Native Example

      var http = require("http");

var options = {
  "method": "GET",
  "hostname": "api.e2enetworks.com",
  "port": null,
  "path": "/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&cpu=8&ram=8&series=A",
  "headers": {
    "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();



2. NodeJs Request Example

      var request = require("request");

var options = { method: 'GET',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/images/',
  qs:
   { apikey: '999f9803-faf7-4c4b-803c-7fb7ce5214de',
     cpu: '4',
     ram: '8',
     series: 'A' },
  headers:
   {
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0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});




3. NodeJs Unirest Example

      var unirest = require("unirest");

var req = unirest("GET", "https://api.e2enetworks.com/myaccount/api/v1/images/");

req.query({
  "apikey": "999f9803-faf7-4c4b-803c-7fb7ce5214de",
  "cpu": "4",
  "ram": "8",
  "series" : "A"
});

req.headers({
  "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
});


req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});

Headers

Request Headers

Content-Type: application/json
Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582

Response Headers

content-type: application/json; charset=utf-8
status: 200 OK
ratelimit-limit: 1200
ratelimit-remaining: 777
ratelimit-reset: 1415984218

Body

Response Body

{
    "message": "Success",
    "code": 200,
    "data": [
        {
            "name": "E2E-1Click-Redis",
            "plan": "1CLICK-4VCPU-8RAM-20DISK",
            "image": "Debian-9-Distro",
            "os": {
                "name": "Debian",
                "version": null,
                "image": "Debian-9-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "8.00",
                "cpu": 4,
                "disk_space": 20,
                "price_per_month": "730.00",
                "price_per_hour": "1.00",
                "series": "A",
                "minimum_billing_amount": "0"
            }
        }
    ],
    "errors": {}
}

List Images By OS & Version

To list all images assigned to specific os and version, add the os and version as a query parameter and send a GET request to endpoint https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab&os=$OS&version=$VERSION

Name Type Description
name String Name of node images
plan String The unique slug identifier for the plan of this node image
image string Base image name for node creation.
OS name
version image
JSON string
string string
Operating system Details like name of os , version of os and unique identifier for image os name.
Zone slug_name JSON string In which zone image is available to launc node.
Specs ram (in GB)
cpu (in Cores) disk_space(in GB) price_per_month(in Rs) price_per_hour (in Rs) series minimum_billing_amount (in Rs)
JSON string
string string string string string integer
Image Specification like there ram in node image
cpu in node disk space in node price per month price per hour node belongs to which series minimum billing amount in case of

CURL

curl -X GET 'https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&os=centOS&version=6.10'-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'

PHP

1. PHP HttpRequest Example

       $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'os' => 'centOS',
  'version' => '6.10'
));

$request->set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3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

    2. PHP pecl_http Example

       $client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/images/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'apikey' => '999f9803-faf7-4c4b-803c-7fb7ce5214de',
  'os' => 'centOS',
  'version' => '6.10'
)));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();



3. PHP CURL Example

       $curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&os=centOS&version=6.10",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT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ZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

NODEJS

1. Nodejs Native Example

      var http = require("http");

var options = {
  "method": "GET",
  "hostname": "api.e2enetworks.com",
  "port": null,
  "path": "/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&os=centOS&version=6.10",
  "headers": {
    "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();



2. NodeJs Request Example

      var request = require("request");

var options = { method: 'GET',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/images/',
  qs:
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d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});




3. NodeJs Unirest Example

      var unirest = require("unirest");

var req = unirest("GET", "https://api.e2enetworks.com/myaccount/api/v1/images/");

req.query({
  "apikey": "999f9803-faf7-4c4b-803c-7fb7ce5214de",
  "os": "centOS",
  "version": "6.10"
});

req.headers({
  "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.ifkChcMArgybD2wUuG7P_aTTI-jPCw96DHXEi7Yr8u3UeEs2FY-d0BuFKauRwNMZgj-_vQh6HC7m6a42ppR91yMRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA"
});


req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});

Headers

Request Headers

Content-Type: application/json
Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582

Response Headers

content-type: application/json; charset=utf-8
status: 200 OK
ratelimit-limit: 1200
ratelimit-remaining: 777
ratelimit-reset: 1415984218

Body

Response Body

{
    "message": "Success",
    "code": 200,
    "data": [
        {
            "name": "B.8GB-CentOS-6.10",
            "plan": "B-2VCPU-8RAM-115DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "8.00",
                "cpu": 2,
                "disk_space": 115,
                "price_per_month": "1971.00",
                "price_per_hour": "2.70",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "B.15GB-CentOS-6.10",
            "plan": "B-4VCPU-15RAM-230DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "15.00",
                "cpu": 4,
                "disk_space": 230,
                "price_per_month": "4380.00",
                "price_per_hour": "6.00",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },
        {
            "name": "B.6.1GB-CentOS-6.10",
            "plan": "B-2VCPU-6RAM-46DISK",
            "image": "CentOS-6.10-Distro",
            "os": {
                "name": "CentOS",
                "version": "6.10",
                "image": "CentOS-6.10-Distro"
            },
            "zone": {
                "slug_name": "ncr"
            },
            "specs": {
                "ram": "6.10",
                "cpu": 2,
                "disk_space": 46,
                "price_per_month": "1350.50",
                "price_per_hour": "1.85",
                "series": "B",
                "minimum_billing_amount": "0"
            }
        },

        ...
      ],
    "errors": {}
}