npm.io
1.0.0 • Published 7 years ago

delorean-up-api

Licence
MIT
Version
1.0.0
Deps
1
Size
192 kB
Vulns
0
Weekly
0

delorean-up-api

DeloreanUp Api - JavaScript client for deloreanUp backend

DeloreanUp backend server is used to generate volume's backup using doc-nodes and send of this backups on a predefined persistent system (eg. NFS, SWIFT, ...)

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

Install it via:

npm install delorean-up-api --save

Getting Started

Please follow the installation instruction and execute the following JS code:

var DeloreanUpApi = require('delorean_up_api');

var api = new DeloreanUpApi.NodesApi()

var nodeId = "nodeId_example"; // {String} ID of the node

var containerId = "containerId_example"; // {String} ID of the container to return


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.containerBackupPOST(nodeId, containerId, callback);

Documentation for API Endpoints

All URIs are relative to http://localhost:3000/api/v1.0.0

Class Method HTTP request Description
DeloreanUpApi.NodesApi containerBackupPOST POST /nodes/{nodeId}/containers/{containerId}/backup Create backup of the container passed by Id.
DeloreanUpApi.NodesApi containerMountsGET GET /nodes/{nodeId}/containers/{containerId}/mounts Returns an array of mounts object.
DeloreanUpApi.NodesApi nodeContainerByIdGET GET /nodes/{nodeId}/containers/{containerId} Returns a container object.
DeloreanUpApi.NodesApi nodeContainersGET GET /nodes/{nodeId}/containers Returns a list of active container in a node.
DeloreanUpApi.NodesApi nodesGET GET /nodes/ Returns a list of nodes.

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.