×
Home Getting Started FAQ Glossary Health Status

API v1 Introduction

Welcome, this is the E2E Networks API documentation. A guide to how you can use, interact with the E2E Networks API.

You can use the E2E Networks API to programmatically manage compute nodes and resources on E2E Cloud using conventional HTTP requests. The API endpoints are easy to use and are highly responsive, making it simple and effective to fetch information and to execute actions.

Various actions — like creating, deleting nodes, enabling backups, etc. — that are generally performed using the MyAccount portal can be performed using the API; enabling you to script actions to execute them dynamically and automatically, as your situations demand.

This API documentation starts with an overview of the implementation and then proceeds with the detailed information and example uses of various endpoints.

Requests

Method Usage
GET

GET method can be used to get information regarding nodes, environment, and your account; for example, retrieving node list or getting information on a particular node.

GET method returns information in JSON format. The attributes available in the JSON file can be used to create any additional requests.

All the requests made using GET method get information and are read-only; and, they do not perform any action on the objects you are querying.

DELETE

DELETE method can be used to terminate, remove, or to delete a resource in your MyAccount. This request will remove the particular object if found in your MyAccount. If not found, the request returns the message that the object was not found. That is, you do not have to query that whether an object is available before using a DELETE method; and, regardless of the availability, the final state after executing a successful request will be the same.

PUT

PUT method can be used to update information regarding a resource or object available in your MyAccount.

PUT method updates the information of the resource regardless of the existing values; and, requests made using the PUT method will not check the existing attributes of the resource.

POST

POST method can be used to create a new resource or object or in your MyAccount; for example, creating new nodes, etc.

A request using POST method contains all the necessary attributes required to create a new resource or object.

Http Status Code

Along responding to the HTTP methods, the API also returns standard HTTP statuses and error codes.

If there is a problem with any request, the HTTP status will show the error code and the body of the response will have more details regarding the issue encountered.

Below are the common HTTP status codes and their interpretation:

200 - the request fulfilled successfully and no error occurred.

400 - the status codes in the 400 series indicate some sort of problem with the request: a malformed request, unauthorized attempt, authentication failure, etc.

500 - the status codes in the 500 series indicate a server-side problem, typically some issue with the E2E Networks API itself. And that the request cannot be fulfilled.

HTTP Statuses

EXAMPLE ERROR RESPONSE

HTTP/1.1 403 Forbidden
{
  "id":       "forbidden",
  "message":  "You do not have access for the attempted action."
}

Rate Limit

There is a rate limit on the number of API requests you can make, which is 5000 requests per hour per OAuth Token.

Information regarding rate limiting is available in the response headers of the requests.

Below are the headers

RateLimit-Limit: The number of API requests that are allowed per hour.

RateLimit-Remaining: The number of remaining API requests before reaching the request limit.
Information regarding the request limit expiry is available below.

RateLimit-Reset: This shows the time by when the oldest request expires and is represented in Unix Epoch time.

In general, you can make additional requests as long as RateLimit-Remaining remains above zero.

The requests are not counted per hour and neither the RateLimit-Remaining is reset on an hourly basis; instead, each request has its own expiry time.

So, each request expires exactly after one hour; and, accordingly the count reflects on RateLimit-Remaining.

Now the question is: as each request has its own expiry time, what exactly RateLimit-Reset represents?

RateLimit-Reset represents the expiry time of the oldest request made. Once that expiry time is over, the RateLimit-Reset value moves to the next oldest request.

When the RateLimit-Remaining value is zero, the requests made will return the error code 429. You can make successful requests again when RateLimit-Remaining value moves above zero; that is, as more requests expire.

Rate Limit

Sample Rate Limit Headers

. . .
RateLimit-Limit: 1200
RateLimit-Remaining: 1193
RateLimit-Reset: 1402425459
. . .

Sample Rate Exceeded Response

429 Too Many Requests
{
        id: "too_many_requests",
        message: "API Rate limit exceeded."
}

Node

A Node is a virtual machine. To perform actions and to get information, you shall send requests to the node endpoint.

Create a New Node

To create a node, send a POST request to the node endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab

Attributes and respective values required to send this POST request are:

NameTypeDescriptionRequired
name String A string used as name for the node. true
regionString Identifier of the region you wish to create node in.
(Currently, only ncr region is available.)
true
planString Unique identifier that specifies the plan name of the node. true
image integer (if using an image ID), or String (if using a public image slug) Unique image ID of public or private image, or identifier of the public image; which would be the base image for the node. true
ssh_keys ArrayAn array of SSH Key fingerprints or IDs that you wish to include in the root account after the node’s creation.
backupsBooleanA boolean indicating to enable or to disable automated backups. Enabling automated backups is possible only when creating the node.
tagsArrayAn array of tag names in string format to be associated with node after its creation. Tag names can be new or existing names.

Create a new Node

cURL Example

curl -X POST 'https://api.e2enetworks.com/myaccount/api/v1/nodes/?apikey=10581cd6-3bb6-4b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LmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' -H 'Content-Type: application/json' -H 'Postman-Token: 2408df81-a614-45ce-a075-0aa548a71e43' -H 'cache-control: no-cache' -d '{
  "name": "node-awa",
  "region": "ncr",
  "plan": "B-2VCPU-8RAM-115DISK",
  "image":"CentOS-6.10-Distro",
  "ssh_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC88ZxOCzW1wP/MRJXdtLmzEgPfVhvHJsrheWtPcsG5qXJ2ztUqSCEIky58qIbbcBnDPySkXMj+VqPKIXcMeV2KwOQnXS2R3uoO0gHcTEux5IDdmqcEVTmEP3tb0V7EJecLbRDm8uuox+cjCvLSGEB5bIGhUm8a6kDs+xFpOHgKm4JcF9Vpvev7BjIYWaaLNh5+lCm3uM0t/mGRGacv6mSbm7PXGI2MC7aL2EQdb7/OJe81O6qg9wwNyyrmgAnkYh8yhexIUVzYDO2pKK5IJrp1qZlJQap054h2ihW7u22CQSe9nEwDdNsaFjUwN5eWkUGlhLTNbyl+O2w2a7oNeV e2e@e2e-HP-Laptop-15-da0xxx","backups": false,"tags": []}'

PHP Example

1. PHP HttpRequest Example
$request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/');
$request->setMethod(HTTP_METH_POST);
 
$request->setQueryData(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
));
 
$request->setHeaders(array(
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQ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'Content-Type' => 'application/json'
));
 
$request->setBody('{
  "name": "node-awa",
  "region": "ncr",
  "plan": "B-2VCPU-8RAM-115DISK",
  "image":"CentOS-6.10-Distro",
  "ssh_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC88ZxOCzW1wP/MRJXdtLmzEgPfVhvHJsrheWtPcsG5qXJ2ztUqSCEIky58qIbbcBnDPySkXMj+VqPKIXcMeV2KwO/QnXS2R3uoO0gHcTEux5IDdmqcEVTmEP3tb0V7EJecLbRDm8uuox+/cjCvLSGEB5bIGhUm8a6kDs+xFpOHgKm4JcF9Vpvev7BjIYWaaLNh5+lCm3uM0t/mGRGacv6mSbm7PXGI2MC7aL2EQdb7/OJe81O6qg9wwNyyrmgAnkYh8yhexIUVzYDO2pKK5IJrp1qZlJQap054h2ihW7u22CQSe9nEwDdNsaFjUwN5eWkUGlhLTNbyl+O2w2a7oNeV e2e@e2e-HP-Laptop-15-da0xxx",
  "backups": false,
  "tags": []
}');
 
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;
 
$body = new http\Message\Body;
$body->append('{
  "name": "node-awa",
  "region": "ncr",
  "plan": "B-2VCPU-8RAM-115DISK",
  "image":"CentOS-6.10-Distro",
  "ssh_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC88ZxOCzW1wP/MRJXdtLmzEgPfVhvHJsrheWtPcsG5qXJ2ztUqSCEIky58qIbbcBnDPySkXMj+VqPKIXcMeV2KwO/QnXS2R3uoO0gHcTEux5IDdmqcEVTmEP3tb0V7EJecLbRDm8uuox+/cjCvLSGEB5bIGhUm8a6kDs+xFpOHgKm4JcF9Vpvev7BjIYWaaLNh5+lCm3uM0t/mGRGacv6mSbm7PXGI2MC7aL2EQdb7/OJe81O6qg9wwNyyrmgAnkYh8yhexIUVzYDO2pKK5IJrp1qZlJQap054h2ihW7u22CQSe9nEwDdNsaFjUwN5eWkUGlhLTNbyl+O2w2a7oNeV e2e@e2e-HP-Laptop-15-da0xxx",
  "backups": false,
  "tags": []
}');
 
$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/');
$request->setRequestMethod('POST');
$request->setBody($body);
 
$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
)));
 
$request->setHeaders(array(
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE',
  'Content-Type' => 'application/json'
));
 
$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/nodes/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"name\": \"node-awa\",\n  \"region\": \"ncr\",\n  \"plan\": \"B-2VCPU-8RAM-115DISK\",\n  \"image\": \"CentOS-6.10-Distro\",\n  \"ssh_keys\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC88ZxOCzW1wP/MRJXdtLmzEgPfVhvHJsrheWtPcsG5qXJ2ztUqSCEIky58qIbbcBnDPySkXMj+VqPKIXcMeV2KwO/QnXS2R3uoO0gHcTEux5IDdmqcEVTmEP3tb0V7EJecLbRDm8uuox+/cjCvLSGEB5bIGhUm8a6kDs+xFpOHgKm4JcF9Vpvev7Bj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F3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type: application/json"
  ),
));
 
$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": "POST",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0"
  ],
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE"
  }
};
 
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.write(JSON.stringify({ name: 'node-awa',
  region: 'ncr',
  plan: 'B-2VCPU-8RAM-115DISK',
  image: 'CentOS-6.10-Distro',
  ssh_keys: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC88ZxOCzW1wP/MRJXdtLmzEgPfVhvHJsrheWtPcsG5qXJ2ztUqSCEIky58qIbbcBnDPySkXMj+VqPKIXcMeV2KwO/QnXS2R3uoO0gHcTEux5IDdmqcEVTmEP3tb0V7EJecLbRDm8uuox+/cjCvLSGEB5bIGhUm8a6kDs+xFpOHgKm4JcF9Vpvev7BjIYWaaLNh5+lCm3uM0t/mGRGacv6mSbm7PXGI2MC7aL2EQdb7/OJe81O6qg9wwNyyrmgAnkYh8yhexIUVzYDO2pKK5IJrp1qZlJQap054h2ihW7u22CQSe9nEwDdNsaFjUwN5eWkUGlhLTNbyl+O2w2a7oNeV e2e@e2e-HP-Laptop-15-da0xxx',
  backups: false,
  tags: [] }));
req.end();

			 
2. NodeJs Request Example
var request = require("request");
  var options = { method: 'POST',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   { 'Postman-Token': '6069de25-e756-4c0d-a114-6914559d5ad9',
     'cache-control': 'no-cache',
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE',
     'Content-Type': 'application/json' },
  body: 
   { name: 'node-awa',
     region: 'ncr',
     plan: 'B-2VCPU-8RAM-115DISK',
     image: 'CentOS-6.10-Distro',
     ssh_keys: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC88ZxOCzW1wP/MRJXdtLmzEgPfVhvHJsrheWtPcsG5qXJ2ztUqSCEIky58qIbbcBnDPySkXMj+VqPKIXcMeV2KwO/QnXS2R3uoO0gHcTEux5IDdmqcEVTmEP3tb0V7EJecLbRDm8uuox+/cjCvLSGEB5bIGhUm8a6kDs+xFpOHgKm4JcF9Vpvev7BjIYWaaLNh5+lCm3uM0t/mGRGacv6mSbm7PXGI2MC7aL2EQdb7/OJe81O6qg9wwNyyrmgAnkYh8yhexIUVzYDO2pKK5IJrp1qZlJQap054h2ihW7u22CQSe9nEwDdNsaFjUwN5eWkUGlhLTNbyl+O2w2a7oNeV e2e@e2e-HP-Laptop-15-da0xxx',
     backups: false,
     tags: [] },
  json: true };
 
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("POST", "https://api.e2enetworks.com/myaccount/api/v1/nodes/");
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab"
});
req.headers({
  "Postman-Token": "8ff6015a-300a-444d-b9cf-455333c40fd7",
  "cache-control": "no-cache",
  "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
  "Content-Type": "application/json"
});
 
req.type("json");
req.send({
  "name": "node-awa",
  "region": "ncr",
  "plan": "B-2VCPU-8RAM-115DISK",
  "image": "CentOS-6.10-Distro",
  "ssh_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC88ZxOCzW1wP/MRJXdtLmzEgPfVhvHJsrheWtPcsG5qXJ2ztUqSCEIky58qIbbcBnDPySkXMj+VqPKIXcMeV2KwO/QnXS2R3uoO0gHcTEux5IDdmqcEVTmEP3tb0V7EJecLbRDm8uuox+/cjCvLSGEB5bIGhUm8a6kDs+xFpOHgKm4JcF9Vpvev7BjIYWaaLNh5+lCm3uM0t/mGRGacv6mSbm7PXGI2MC7aL2EQdb7/OJe81O6qg9wwNyyrmgAnkYh8yhexIUVzYDO2pKK5IJrp1qZlJQap054h2ihW7u22CQSe9nEwDdNsaFjUwN5eWkUGlhLTNbyl+O2w2a7oNeV e2e@e2e-HP-Laptop-15-da0xxx",
  "backups": false,
  "tags": []
});
 
req.end(function (res) {
  if (res.error) throw new Error(res.error);
 
  console.log(res.body);
});

			 

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

content-type: application/json; charset=utf-8
status: 202 Accepted
ratelimit-limit: 1200
ratelimit-remaining: 965
ratelimit-reset: 1415984218

Request Body

{
  "name": "node-awa",
  "region": "ncr",
  "plan": "B-2VCPU-8RAM-115DISK",
  "image": "CentOS-6.10-Distro",
  "ssh_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC88ZxOCzW1wP/MRJXdtLmzEgPfVhvHJsrheWtPcsG5qXJ2ztUqSCEIky58qIbbcBnDPySkXMj+VqPKIXcMeV2KwO/QnXS2R3uoO0gHcTEux5IDdmqcEVTmEP3tb0V7EJecLbRDm8uuox+/cjCvLSGEB5bIGhUm8a6kDs+xFpOHgKm4JcF9Vpvev7BjIYWaaLNh5+lCm3uM0t/mGRGacv6mSbm7PXGI2MC7aL2EQdb7/OJe81O6qg9wwNyyrmgAnkYh8yhexIUVzYDO2pKK5IJrp1qZlJQap054h2ihW7u22CQSe9nEwDdNsaFjUwN5eWkUGlhLTNbyl+O2w2a7oNeV e2e@e2e-HP-Laptop-15-da0xxx",
  "backups": false,
  "tags": []
}

Response Body

{
                "message": "Success",
                "code": 200,
                "data": {
                    "id": 14962,
                    "name": "centos-test",
                    "created_at": "2019-06-04T12:07:13.436504Z",
                    "public_ip_address": "101.53.157.223",
                    "private_ip_address": "172.16.107.121",
                    "backup": false,
                    "disk": "115 GB",
                    "status": "Create",
                    "vcpus": "2",
                    "memory": "8.00 GB",
                    "plan": "B-2VCPU-8RAM-115DISK",
                    "region": "ncr",
                    "is_locked": false
                },
                "errors": {}
            }

Get Node By ID

To get information regarding any node, send a GET request to the endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/<$NODE_ID>/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab

The request returns a JSON object that contains the following node attributes:

NameTypeDescription
id integer A unique integer identifier created and assigned to the node after its creation.
namestring The name assigned to the node.
vcpusinteger The number of virtual CPUs of the node.
diskinteger The disk space of the node in gigabytes.
lockedboolean A boolean value denoting whether the node is locked or not. When locked, the feature prevents any user actions on the node. (Currently Unavailable)
created_at stringThe time when node created represented in ISO8601 which includes both the date and time.
statusstringA string that denotes the state of the node: ‘created’, ‘running’, ‘power-off’, or ‘terminate’.
backupsboolean A boolean value that indicates whether backups are enabled.
public_ip_address/ private_ip_addressobject Information regarding the network configuration of the node.
tagsarray Tags associated with the node, represented as an array. (currently not available)

Get Node By ID

cURL Example

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

PHP Example

1. PHP HttpRequest Example
$request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
));
$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
 var request = require("request");
var options = { method: 'GET',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   { 
Authorization: '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n_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' } };
request(options, function (error, response, body) {
  if (error) throw new Error(error);
  console.log(body);
});
3. PHP CURL Example
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.e2enetworks.com/myaccount/api/v1/nodes/169/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  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",
    "Postman-Token: 6c758b4d-a030-43be-a8a9-43675a39490d",
    "cache-control: no-cache"
  ),
));
 
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
 
if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} 

NODEJS Example

1. Nodejs Native Example
var http = require("http");
var options = {
  "method": "GET",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0",
    "169",
    ""
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Nj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7d1CeL3oSRE"
  }
};
 
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/nodes/169/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   { 
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' } };
 
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/nodes/169/");
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab"
});
 
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);
});

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

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

Response Body

{
    "message": "Success",
    "code": 200,
    "data": [
        {
          "id": 14962,
          "name": "centos-test",
          "created_at": "2019-06-04T12:07:13.436504Z",
          "public_ip_address": "101.53.157.223",
          "private_ip_address": "172.16.107.121",
          "backup": false,
          "disk": "115 GB",
          "status": "Create",
          "vcpus": "2",
          "memory": "8.00 GB",
          "plan": "B-2VCPU-8RAM-115DISK",
          "region": "ncr",
          "is_locked": false
        }
    ],
    "errors": {}
}

Get Node List

To get the list of nodes in your MyAccount, send a GET request to the endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab&page_no=1&per_page=2.

The request returns an array of JSON objects; each JSON object represents the information of each node.

The JSON objects contain the following node attributes:

NameTypeDescription
idintegerA unique integer identifier created and assigned to the node after its creation.
namestringThe name assigned to the node.
memoryintegerMemory (typically RAM) of the node represented in megabytes.
vcpusintegerThe number of virtual CPUs of the node.
diskintegerThe disk space of the node in gigabytes.
lockedbooleanA boolean value denoting whether the node is locked or not. When locked, the feature prevents any user actions on the node. (Currently Unavailable)
created_atstringThe time when node created represented in ISO8601 which includes both the date and time.
statusstringA string that denotes the state of the node: ‘created’, ‘running’, ‘power-off’, or ‘terminate’.
backup_idsarrayA boolean value that indicates whether backups are enabled.
regionstringIdentifier of the region you wish to create node in.
(Currently, only ncr region is available.)
imagestringUnique image ID of public or private image, or identifier of the public image; which would be the base image for the node.
public_ip_address/ private_ip_addressstringInformation regarding the network configuration of the node.
tagsarrayTags associated with the node, represented as an array.(currenlty not available)

List All Nodes

cURL Example

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

PHP Example

1. PHP HttpRequest Example
			$request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/');
$request->setMethod(HTTP_METH_GET);
 
$request->setQueryData(array(
  'apikey' => '10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FyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.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/nodes/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab',
  'page_no' => '1',
  'per_page' => '2'
)));
 
$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/nodes/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab&page_no=1&per_page=2",
  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 eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIi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C1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_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-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0"
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE"
  }
};
 
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/nodes/',
  qs: 
   { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab',
     page_no: '1',
     per_page: '2' },
  headers: 
   { 'Postman-Token': '1cf35aa2-567b-44d6-aacd-ec9cfdb7b76d',
     'cache-control': 'no-cache',
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' } };
 
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/nodes/");
 
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  "page_no": "1",
  "per_page": "2"
});
 
req.headers({
  "Postman-Token": "97eade46-a2c2-4362-9bda-a35a720742b8",
  "cache-control": "no-cache",
  "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);
});
			 

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

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

Response Body

Response:
{
    "message": "Success",
    "code": 200,
    "data": [
        {
            "id": 169,
            "name": "node-awa",
            "created_at": "2019-04-23T09:19:28.842209Z",
            "public_ip_address": "101.53.147.102",
            "private_ip_address": "172.16.215.166",
            "backup": false,
            "disk": "60 GB",
            "status": "Create",
            "vcpus": "2",
            "memory": "15.00 GB",
            "plan": "B-2VCPU-8RAM-115DISK",
            "region": "national capitail"
        },
        {
            "id": 170,
            "name": "hgfh",
            "created_at": "2019-04-23T09:48:12.481261Z",
            "public_ip_address": "101.53.147.241",
            "private_ip_address": "172.16.215.84",
            "backup": false,
            "disk": "60 GB",
            "status": "Create",
            "vcpus": "2",
            "memory": "15.00 GB",
            "plan": "B-2VCPU-8RAM-115DISK",
            "region": "national capitail"
        }
    ],
    "errors": {}
}

Delete node

Send a DELETE request to the endpoint to delete a node from your MyAccount.https://api.e2enetworks.com/myaccount/api/v1/nodes/<$NODE_ID>/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab.

Delete node

cURL Example

			curl -X DELETE 'https://api.e2enetworks.com/myaccount/api/v1/nodes/171/?apikey=10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ZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'

PHP Example

1. PHP HttpRequest Example
				$request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/171/');
$request->setMethod(HTTP_METH_DELETE);
 
$request->setQueryData(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
));
 
$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/nodes/171/');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
)));
 
$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/nodes/171/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  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": "DELETE",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0",
    "171",
    ""
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE"
  }
};
 
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: 'DELETE',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/171/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   {
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2p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yiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' } };
 
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("DELETE", "https://api.e2enetworks.com/myaccount/api/v1/nodes/171/");
 
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab"
});
 
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);
});
			

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

content-type: application/octet-stream
status: 204 No Content
ratelimit-limit: 1200
ratelimit-remaining: 901
ratelimit-reset: 1415984218

Response Body

Response:
{
    "message": "Success",
    "code": 200,
    "data": {},
    "errors": {}
}

Action on Node

To perform an action, such as Power On, Power Off, Reboot, and Backup enable/disable, on a node.

Enable backup

To enable backups on an existing Node send a POST request to the endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/<$NODE_ID>/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab

Set the "type" attribute to enable_backups.

NameTypeDescriptionRequired
typestringMust be enable_backupstrue

Enable backup

cURL Example

curl -X POST 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.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MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'-H 'Content-Type: application/json' -d '{
  "type": "enable_backup"
}'

PHP Example

1. PHP HttpRequest Example:
		  $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setMethod(HTTP_METH_POST);
 
$request->setQueryData(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'
));
 
$request->setBody('{
  "type": "enable_backup"
}');
 
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;
 
$body = new http\Message\Body;
$body->append('{
  "type": "enable_backup"
}');
 
$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setRequestMethod('POST');
$request->setBody($body);
 
$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
)));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  '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/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"type\": \"enable_backup\"\n}",
  CURLOPT_HTTPHEADER => array(
    "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type: application/json"
  ),
));
 
$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": "POST",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0",
    "169",
    "actions",
    ""
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type": "application/json"
  }
};
 
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.write(JSON.stringify({ type: 'enable_backup' }));
req.end();


		  
		  
2. NodeJs Request Example
		  var request = require("request");
 
var options = { method: 'POST',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5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hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' },
  body: { type: 'enable_backup' },
  json: true };
 
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("POST", "https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/");
 
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab"
});
 
req.headers({
  "Postman-Token": "eb9afcd9-38ca-4872-9eb4-85c5f3531429",
  "cache-control": "no-cache",
  "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
  "Content-Type": "application/json"
});
 
req.type("json");
req.send({
  "type": "enable_backup"
});
 
req.end(function (res) {
  if (res.error) throw new Error(res.error);
 
  console.log(res.body);
});
		  

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

content-type: application/json; charset=utf-8
status: 201 Created
ratelimit-limit: 1200
ratelimit-remaining: 1099
ratelimit-reset: 1415984218

Request Body

{
  "type": "enable_backup"
}

Response Body

{
    "message": "Success",
    "code": 200,
    "data": {
        "id": 25,
        "created_at": "2019-05-13T10:41:17.011027Z",
        "status": "in_progress",
        "action_type": "enable_backup",
        "resource_id": "6"
    },
    "errors": {}
}

Disable Backups

To disable backups on an existing Node send a POST request to the endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/<$NODE_ID>/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab

Set the "type" attribute to disable_backups.

NameTypeDescriptionRequired
typestringMust be disable_backupstrue

Disable Backups

cURL Example

curl -X POST 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'-H 'Content-Type: application/json' -d '{
  "type": "disable_backup"
}'

PHP Example

1. PHP HttpRequest Example:
			$request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setMethod(HTTP_METH_POST);
 
$request->setQueryData(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'
));
 
$request->setBody('{
  "type": "disable_backup"
}');
 
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;
 
$body = new http\Message\Body;
$body->append('{
  "type": "disable_backup"
}');
 
$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setRequestMethod('POST');
$request->setBody($body);
 
$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
)));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  'Authorization' => 'Bearer eyJhbG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2ui5jNdSRG_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/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"type\": \"disable_backup\"\n}",
  CURLOPT_HTTPHEADER => array(
    "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type: application/json"
  ),
));
 
$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": "POST",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0",
    "169",
    "actions",
    ""
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5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1CeL3oSRE",
    "Content-Type": "application/json"
  }
};
 
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.write(JSON.stringify({ type: 'disable_backup' }));
req.end();


			 
2. NodeJs Request Example
			 var request = require("request");
 
var options = { method: 'POST',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   {
     'Content-Type': 'application/json',
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' },
  body: { type: 'disable_backup' },
  json: true };
 
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("POST", "https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/");
 
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab"
});
 
req.headers({
  "Postman-Token": "eb9afcd9-38ca-4872-9eb4-85c5f3531429",
  "cache-control": "no-cache",
  "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
  "Content-Type": "application/json"
});
 
req.type("json");
req.send({
  "type": "disable_backup"
});
 
req.end(function (res) {
  if (res.error) throw new Error(res.error);
 
  console.log(res.body);
});



			 

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

content-type: application/json; charset=utf-8
status: 201 Created
ratelimit-limit: 1200
ratelimit-remaining: 1099
ratelimit-reset: 1415984218

Request Body

{
  "type": "disable_backup"
}

Response Body

{
    "message": "Success",
    "code": 200,
    "data": {
        "id": 26,
        "created_at": "2019-05-13T10:48:48.680514Z",
        "status": "done",
        "action_type": "disable_backup",
        "resource_id": "6"
    },
    "errors": {}
}

Reboot Node

To reboot on an existing Node send a POST request to the endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/<$NODE_ID>/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab

Set the "type" attribute to reboot.

NameTypeDescriptionRequired
typestringMust be reboottrue

Reboot Node

cURL Example

curl -X POST 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'-H 'Content-Type: application/json' -d '{
  "type": "reboot"
}'

PHP Example

1. PHP HttpRequest Example:
			$request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setMethod(HTTP_METH_POST);
 
$request->setQueryData(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'
));
 
$request->setBody('{
  "type": "reboot"
}');
 
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;
 
$body = new http\Message\Body;
$body->append('{
  "type": "reboot"
}');
 
$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setRequestMethod('POST');
$request->setBody($body);
 
$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
)));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  '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/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"type\": \"reboot\"\n}",
  CURLOPT_HTTPHEADER => array(
    "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type: application/json"
  ),
));
 
$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": "POST",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0",
    "169",
    "actions",
    ""
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type": "application/json"
  }
};
 
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.write(JSON.stringify({ type: 'reboot' }));
req.end();


			 
2. NodeJs Request Example
			 var request = require("request");
 
var options = { method: 'POST',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   {
     'Content-Type': 'application/json',
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' },
  body: { type: 'reboot' },
  json: true };
 
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("POST", "https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/");
 
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab"
});
 
req.headers({
  "Postman-Token": "eb9afcd9-38ca-4872-9eb4-85c5f3531429",
  "cache-control": "no-cache",
  "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6IC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eoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
  "Content-Type": "application/json"
});
 
req.type("json");
req.send({
  "type": "reboot"
});
 
req.end(function (res) {
  if (res.error) throw new Error(res.error);
 
  console.log(res.body);
});
			 

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

content-type: application/json; charset=utf-8
status: 201 Created
ratelimit-limit: 1200
ratelimit-remaining: 1099
ratelimit-reset: 1415984218

Request Body

{
  "type": "reboot"
}

Response Body

 
			  Response:
{
    "message": "Success",
    "code": 200,
    "data": {
        "id": 195,
        "created_at": "2019-04-23T13:17:30.365025Z",
        "status": "done",
        "action_type": "reboot",
        "resource_id": "169"
    },
    "errors": {}
}

Power-Off Node

To Power-Off on an existing Node send a POST request to the endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/<$NODE_ID>/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab

Set the "type" attribute to power_off.

NameTypeDescriptionRequired
typestringMust be power_offtrue

Power-Off Node

cURL Example

			curl -X POST 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'-H 'Content-Type: application/json' -d '{
  "type": "power_off"
}'


PHP Example

1. PHP HttpRequest Example
			 $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setMethod(HTTP_METH_POST);
 
$request->setQueryData(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
));
 
$request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5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'
));
 
$request->setBody('{
  "type": "power_off"
}');
 
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;
 
$body = new http\Message\Body;
$body->append('{
  "type": "power_off"
}');
 
$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setRequestMethod('POST');
$request->setBody($body);
 
$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
)));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  '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/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"type\": \"power_off\"\n}",
  CURLOPT_HTTPHEADER => array(
    "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9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type: application/json"
  ),
));
 
$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": "POST",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0",
    "169",
    "actions",
    ""
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type": "application/json"
  }
};
 
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.write(JSON.stringify({ type: 'power_off' }));
req.end(); 
			 
2. NodeJs Request Example
			 var unirest = require("unirest");
 
var req = unirest("POST", "https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/");
 
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab"
});
 
req.headers({
  "Postman-Token": "eb9afcd9-38ca-4872-9eb4-85c5f3531429",
  "cache-control": "no-cache",
  "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLT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  "Content-Type": "application/json"
});
 
req.type("json");
req.send({
  "type": "power_off"
});
 
req.end(function (res) {
  if (res.error) throw new Error(res.error);
 
  console.log(res.body);
});


			 
			 
3. NodeJs Unirest Example
			 var unirest = require("unirest");
 
var req = unirest("POST", "https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/");
 
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab"
});
 
req.headers({
  "Postman-Token": "eb9afcd9-38ca-4872-9eb4-85c5f3531429",
  "cache-control": "no-cache",
  "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
  "Content-Type": "application/json"
});
 
req.type("json");
req.send({
  "type": "reboot"
});
 
req.end(function (res) {
  if (res.error) throw new Error(res.error);
 
  console.log(res.body);
});

			 

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Header

content-type: application/json; charset=utf-8
status: 201 Created
ratelimit-limit: 1200
ratelimit-remaining: 1099
ratelimit-reset: 1415984218

Request Body

{
  "type": "power_off"
}

Response Body

Response:
{
    "message": "Success",
    "code": 200,
    "data": {
        "id": 191,
        "created_at": "2019-04-23T13:17:30.365025Z",
        "status": "done",
        "action_type": "power_off",
        "resource_id": "169"
    },
    "errors": {}
}

Power-On Node

To Power on an existing Node send a POST request to the endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/<$NODE_ID>/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab

Set the "type" attribute to power_on.

NameTypeDescriptionRequired
typestringMust be power_ontrue

Power-On Node

cURL Example

curl -X POST 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' -H 'Authorization: Bearer eyJh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Uim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'-H 'Content-Type: application/json' -d '{
  "type": "power_on"
}'

PHP Example

1. PHP HttpRequest Example
			  $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setMethod(HTTP_METH_POST);
 
$request->setQueryData(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'
));
 
$request->setBody('{
  "type": "power_on"
}');
 
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;
 
$body = new http\Message\Body;
$body->append('{
  "type": "power_on"
}');
 
$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setRequestMethod('POST');
$request->setBody($body);
 
$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
)));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  '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/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"type\": \"power_on\"\n}",
  CURLOPT_HTTPHEADER => array(
    "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type: application/json"
  ),
));
 
$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": "POST",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0",
    "169",
    "actions",
    ""
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type": "application/json"
  }
};
 
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.write(JSON.stringify({ type: 'power_on' }));
req.end();

			 
			 
2. NodeJs Request Example
			 var request = require("request");
 
var options = { method: 'POST',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   {
     'Content-Type': 'application/json',
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' },
  body: { type: 'power_on' },
  json: true };
 
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("POST", "https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/");
 
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab"
});
 
req.headers({
  "Postman-Token": "eb9afcd9-38ca-4872-9eb4-85c5f3531429",
  "cache-control": "no-cache",
  "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
  "Content-Type": "application/json"
});
 
req.type("json");
req.send({
  "type": "power_on",
  "name": "nifty-new-name"
});
 
req.end(function (res) {
  if (res.error) throw new Error(res.error);
 
  console.log(res.body);
});

			 

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

content-type: application/json; charset=utf-8
status: 201 Created
ratelimit-limit: 1200
ratelimit-remaining: 1099
ratelimit-reset: 1415984218

Request Body

{
  "type": "power_on"
}

Response Body

Response:
{
    "message": "Success",
    "code": 200,
    "data": {
        "id": 195,
        "created_at": "2019-04-23T13:17:30.365025Z",
        "status": "done",
        "action_type": "power_on",
        "resource_id": "169"
    },
    "errors": {}
}
 

Rename Node

To Rename on an existing Node send a POST request to the endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/<$NODE_ID>/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab

Set the "type" attribute to rename.

NameTypeDescriptionRequired
typestringMust be renametrue
namestringThe new name for the node.true

Rename Node

cURL Example

curl -X POST 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'-H 'Content-Type: application/json' -d '{
 "type": "rename",
  "name": "nifty-new-name"
}'

PHP Example

1. PHP HttpRequest Example
			 $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setMethod(HTTP_METH_POST);
 
$request->setQueryData(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'
));
 
$request->setBody('{
  "type": "rename",
  "name": "nifty-new-name"
}');
 
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;
 
$body = new http\Message\Body;
$body->append('{
  "type": "rename",
  "name": "nifty-new-name"
}');
 
$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setRequestMethod('POST');
$request->setBody($body);
 
$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
)));
 
$request->setHeaders(array(
  'Content-Type' => 'application/json',
  '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/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"type\": \"rename\",\n  \"name\": \"nifty-new-name\"\n}",
  CURLOPT_HTTPHEADER => array(
    "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type: application/json"
  ),
));
 
$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": "POST",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0",
    "169",
    "actions",
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vbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type": "application/json"
  }
};
 
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.write(JSON.stringify({ type: 'rename', name: 'nifty-new-name' }));
req.end();


			
2. NodeJs Request Example
			var request = require("request");
 
var options = { method: 'POST',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   {
     'Content-Type': 'application/json',
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' },
 body: { type: 'rename', name: 'nifty-new-name' },
  json: true };
 
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("POST", "https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/");
 
req.query({
  "apikey": "10581cd6-3bb6-4b4c-a5fb-79a75b61ecab"
});
 
req.headers({
  "Postman-Token": "eb9afcd9-38ca-4872-9eb4-85c5f3531429",
  "cache-control": "no-cache",
  "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5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CeL3oSRE",
  "Content-Type": "application/json"
});
 
req.type("json");
req.send({
  "type": "rename",
  "name": "nifty-new-name"
});
 
req.end(function (res) {
  if (res.error) throw new Error(res.error);
 
  console.log(res.body);
});

			

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

content-type: application/json; charset=utf-8
status: 201 Created
ratelimit-limit: 1200
ratelimit-remaining: 1099
ratelimit-reset: 1415984218

Request Body

{
  "type": "rename",
  "name": "nifty-new-name"
}

Response Body

{
    "message": "Success",
    "code": 200,
    "data": {
        "id": 193,
        "created_at": "2019-04-23T13:14:11.150168Z",
        "status": "done",
        "action_type": "rename",
        "resource_id": "169"
    },

Lock VM

To lock an existing Node send a POST request to the endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/<$NODE_ID>/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab

Set the "type" attribute to lock_vm.

NameTypeDescriptionRequired
typestringMust be lock_vmtrue
namestringThe new name for the node.true

Lock VM

cURL Example

curl -X POST 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'-H 'Content-Type: application/json' -d '{
  "type": "lock_vm"
}'

PHP Example

1. PHP HttpRequest Example
       $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setMethod(HTTP_METH_POST);

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

$request->setHeaders(array(
  'Content-Type' => 'application/json',
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldU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Jr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'
));

$request->setBody('{
  "type": "lock_vm"
}');

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;

$body = new http\Message\Body;
$body->append('{
  "type": "lock_vm"
}');

$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
)));

$request->setHeaders(array(
  'Content-Type' => 'application/json',
  '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/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"type\": \"lock_vm\"\n}",
  CURLOPT_HTTPHEADER => array(
    "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ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X-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type: application/json"
  ),
));

$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": "POST",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0",
    "169",
    "actions",
    ""
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type": "application/json"
  }
};

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.write(JSON.stringify({ type: 'lock_vm' }));
req.end();
      
2. NodeJs Request Example
      var request = require("request");
var options = { method: 'POST',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   {
     'Content-Type': 'application/json',
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' },
 body: { type: 'rename', name: 'nifty-new-name' },
  json: true };
 
request(options, function (error, response, body) {
  if (error) throw new Error(error);
 
  console.log(body);
});
      
3. NodeJs Unirest Example
      var request = require("request");
var options = { method: 'POST',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/',
  qs: {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haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' },
  body: { type: 'lock_vm' },
  json: true };

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

  console.log(body);
});
      

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

content-type: application/json; charset=utf-8
status: 201 Created
ratelimit-limit: 1200
ratelimit-remaining: 1099
ratelimit-reset: 1415984218

Request Body

{
  "type": "lock_vm"
}

Response Body

{
    "message": "Success",
    "code": 200,
    "data": {
        "id": 195,
        "created_at": "2019-04-23T13:17:30.365025Z",
        "status": "done",
        "action_type": "lock_vm",
        "resource_id": "169"
    },
    "errors": {}
}

Unlock VM

To unlock an existing Node send a POST request to the endpoint https://api.e2enetworks.com/myaccount/api/v1/nodes/<$NODE_ID>/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab

Set the "type" attribute to unlock_vm.

NameTypeDescriptionRequired
typestringMust be unlock_vmtrue
namestringThe new name for the node.true

Unlock VM

cURL Example

curl -X POST 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'-H 'Content-Type: application/json' -d '{
  "type": "unlock_vm"
}'

PHP Example

1. PHP HttpRequest Example
       $request = new HttpRequest();
$request->setUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setMethod(HTTP_METH_POST);

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

$request->setHeaders(array(
  'Content-Type' => 'application/json',
  'Authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE'
));

$request->setBody('{
  "type": "unlock_vm"
}');

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;

$body = new http\Message\Body;
$body->append('{
  "type": "unlock_vm"
}');

$request->setRequestUrl('https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString(array(
  'apikey' => '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab'
)));

$request->setHeaders(array(
  'Content-Type' => 'application/json',
  '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/nodes/169/actions/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT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I6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type: application/json"
  ),
));

$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": "POST",
  "hostname": [
    "api-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "nodes",
    "1.0",
    "169",
    "actions",
    ""
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE",
    "Content-Type": "application/json"
  }
};

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.write(JSON.stringify({ type: 'unlock_vm' }));
req.end();

      
2. NodeJs Request Example
      var request = require("request");
var options = { method: 'POST',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   {
     'Content-Type': 'application/json',
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiO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SvP20XGh4T7d1CeL3oSRE' },
 body: { type: 'unlock_vm'},
  json: true };
 
request(options, function (error, response, body) {
  if (error) throw new Error(error);
 
  console.log(body);
});



      
3. NodeJs Unirest Example
      var request = require("request");
var options = { method: 'POST',
  url: 'https://api.e2enetworks.com/myaccount/api/v1/nodes/169/actions/',
  qs: { apikey: '10581cd6-3bb6-4b4c-a5fb-79a75b61ecab' },
  headers: 
   {
     'Content-Type': 'application/json',
     Authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE' },
  body: { type: 'unlock_vm' },
  json: true };

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

  console.log(body);
});


      

Request Headers

Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Response Headers

content-type: application/json; charset=utf-8
status: 201 Created
ratelimit-limit: 1200
ratelimit-remaining: 1099
ratelimit-reset: 1415984218

Request Body

{
  "type": "unlock_vm"
}

Response Body

{
    "message": "Success",
    "code": 200,
    "data": {
        "id": 195,
        "created_at": "2019-04-23T13:17:30.365025Z",
        "status": "done",
        "action_type": "unlock_vm",
        "resource_id": "169"
    },
    "errors": {}
}

Images

E2ENetworks image can be used to create a Node and also upgrade existing saved images.

To interact with images, you will generally send requests to the images endpoint at https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=10581cd6-3bb6-4b4c-a5fb-79a75b61ecab .

NameTypeDescription
nameStringName of node images
planStringThe unique slug identifier for the plan of this node image
imagestringBase 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
  • string
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

List all Images public and private

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:

NameTypeDescription
nameStringName of node images
planStringThe unique slug identifier for the plan of this node image
imagestringBase 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

List all Images public and private

cURL Example

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 Example

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 eyJhbGciOiJSUz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SRG_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.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1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_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-integration",
    "e2enetworks",
    "com"
  ],
  "path": [
    "myaccount",
    "images",
    "1.0"
  ],
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiJjYmE3Njc5Zi1mOWFhLTQzZGEtYWNiMi1hNzBlZGEwN2Q3ODkiLCJleHAiOjE1ODc1NDA4MzMsIm5iZiI6MCwiaWF0IjoxNTU2MDA0ODMzLCJpc3MiOiJodHRwOi8vMTcyLjE2LjIxNS45NTo4MDgwL2F1dGgvcmVhbG1zL2FwaW1hbiIsImF1ZCI6ImFwaW1hbiIsInN1YiI6IjMxOWU1ZGExLTZmYzItNDY2ZS1iNDI4LTRmOTViOTRlNDMzMCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwaW1hbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImY2YTUxNTQ5LWRkMjYtNDVkYS04YWI0LTlhNTZjOWY3NTUyYyIsImFjciI6IjEiLCJjbGllbnRfc2Vzc2lvbiI6IjViOWJlMjY4LWE1ZDAtNGMxMC05NWQ0LTdhNzU5NTNkODlhMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsImFwaXVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50Iiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXIrMUBlMmVuZXR3b3Jrcy5jb20iLCJnaXZlbl9uYW1lIjoiQXdhZGhlc2giLCJmYW1pbHlfbmFtZSI6Ikt1bWFyIiwiZW1haWwiOiJhd2FkaGVzaC5rdW1hcisxQGUyZW5ldHdvcmtzLmNvbSJ9.Hp9VED8hYAbF9XbNQn_WyhCHUim2ui5jNdSRG_lP9B_7gU1YXLsHotupJr3iEJb7FC1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_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 eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIi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C1XbeoKobwv9PpPJOtyiNUvEPWBza5ir_U737ujdD-NYSzUX-412sTqktjdKqcR78XfpmCIDE-5MeHf5cC3atSvP20XGh4T7d1CeL3oSRE"
});
 
 
req.end(function (res) {
  if (res.error) throw new Error(res.error);
 
  console.log(res.body);
});


      

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

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.

NameTypeDescription
nameStringName of node images
planStringThe unique slug identifier for the plan of this node image
imagestringBase 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

List Images By Image Type

cURL Example

curl -X GET 'https://api.e2enetworks.com/myaccount/api/v1/images/?apikey=999f9803-faf7-4c4b-803c-7fb7ce5214de&image_type=public'-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiA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jUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_VOsVmTQEP31G9k_d4iZho1p-EJfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-X-rqyB2oFkTi8rB9b3wbl76CRRUywsmRvuOtd0RrbCEHdevOiK-2XArUT9BGvx7StyQWOtBpx-9krRhkir9XbDobCFoyapoBbuinOSnPx_NSvLLQZbfWPRxboL4zeOcwHqI7RA' 
            

PHP Example

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' => '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',
  'image_type' => 'public'
)));

$request->setHeaders(array(
  'authorization' => 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiO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A4TqCStWAxjZ1f47PNy6zI-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_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&image_type=public",
  "headers": {
    "authorization": "Bearer eyJhbGciOiJSUzI1NiIsIn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MRfwD2K5yjUyYlKyLFeRo1V2v5KJ8kszcavGSzyOhr7_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',
     image_type: 'public' },
  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",
  "image_type": "public"
});

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


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

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

      

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

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 images assigned to a specific image type, add the cpu 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.

NameTypeDescription
nameStringName of node images
planStringThe unique slug identifier for the plan of this node image
imagestringBase 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

List Images By CPU

cURL Example

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

PHP Example

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.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV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o $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.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",
  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.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI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oyapoBbuinOSnPx_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.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' },
  headers: 
   { 
     authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MC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Bpx-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.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);
});

      

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

Response 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.

NameTypeDescription
nameStringName of node images
planStringThe unique slug identifier for the plan of this node image
imagestringBase 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

List Images By RAM

cURL Example

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 Example

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',
  'ram' => '8'
));

$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',
  '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&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 eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoiYXBpbWFudWkiLCJzdWIiOiI1NTcyZTk0Ni0zMTMyLTQ4YjktYjQ3OC1jMWU4ZWI1MTIwZWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcGltYW51aSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImYzNjM0NGY5LTg4MzctNGExNi05ZGY5LTc4MzE3NTg0MWQ2NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iLCJhcGl1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwibmFtZSI6IkF3YWRoZXNoIEt1bWFyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIiwiZ2l2ZW5fbmFtZSI6IkF3YWRoZXNoIiwiZmFtaWx5X25hbWUiOiJLdW1hciIsImVtYWlsIjoiYXdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.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&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',
     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": "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);
});

      

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

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.

NameTypeDescription
nameStringName of node images
planStringThe unique slug identifier for the plan of this node image
imagestringBase 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

List Images By Series

cURL Example

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

PHP Example

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' => '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&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.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJ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OSnPx_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-7fb7ce5214de",
  "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);
});

      

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

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 CPU & RAM

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.

NameTypeDescription
nameStringName of node images
planStringThe unique slug identifier for the plan of this node image
imagestringBase 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

List Images By CPU & RAM

cURL Example

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 Example

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.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',
  '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 eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHAiOjE1OTA1NjM4ODAsIm5iZiI6MCwiaWF0IjoxNTU5MDI3ODgwLCJpc3MiOiJodHRwOi8vZ2F0ZXdheS5lMmVuZXR3b3Jrcy5jb20vYXV0aC9yZWFsbXMvYXBpbWFuIiwiYXVkIjoi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"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.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",
  "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);
});

      

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

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.

NameTypeDescription
nameStringName of node images
planStringThe unique slug identifier for the plan of this node image
imagestringBase 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

List Images By CPU, RAM & SERIES

cURL Example

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 Example

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 eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmNla1ZiUXBRIn0.eyJqdGkiOiJjNWQ0M2I4ZC1lODM5LTRlMDMtOGQ1ZS02MGQ2MjI5MGM3NDIiLCJleHA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bCEHdevOiK-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",
  CURLOPT_HTTPHEADER => array(
    "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhs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JfXxlOLpzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-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: 
   { 
     authorization: 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjejBXYVVKVF9wWmE5MXNpRl9QRXVxUUpqdm5VODhsMXdsVmN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pzQhKBtXgvSJBbseGRXe8YzA4TqCStWAxjZ1f47PNy6zI-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);
});

      

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

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.

NameTypeDescription
nameStringName of node images
planStringThe unique slug identifier for the plan of this node image
imagestringBase 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

List Images By OS and Version

cURL Example

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 Example

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->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u3UeEs2FY-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_TIME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XdhZGhlc2gua3VtYXJAZTJlbmV0d29ya3MuY29tIn0.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/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JAZTJlbmV0d29ya3MuY29tIn0.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);
});

      

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

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": {}
}