rmm_api v1.0.0
rmm_api
RmmApi - JavaScript client for rmm_api
For this sample, you can use the api key special-key
to test the authorization filters.
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
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install rmm_api --save
Local development
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
Finally, switch to the directory you want to use your rmm_api from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
You should now be able to require('rmm_api')
in javascript files from the directory you ran the last
command above from.
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/rmm_api then install it via:
npm install YOUR_USERNAME/rmm_api --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually
use this library):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Getting Started
Please follow the installation instruction and execute the following JS code:
var RmmApi = require('rmm_api');
var defaultClient = RmmApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: api_auth
var api_auth = defaultClient.authentications['api_auth'];
api_auth.accessToken = "YOUR ACCESS TOKEN"
var api = new RmmApi.AcceptApi()
var body = new RmmApi.Accept(); // {Accept} Accept object that needs to be added to the store
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.addAccept(body, callback);
Documentation for API Endpoints
All URIs are relative to http://api-dss.virtuhorizon.com/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
RmmApi.AcceptApi | addAccept | POST /Accept | Add a new Accept to the store |
RmmApi.AcceptApi | findAcceptsByStatus | GET /Accept/findByStatus | Finds Accepts by status |
RmmApi.AcceptApi | findAcceptsByTags | GET /Accept/findByTags | Finds Accepts by tags |
RmmApi.AcceptApi | getAcceptById | GET /Accept/{AcceptId} | Find Accept by ID |
RmmApi.AcceptApi | uploadFileAccept | POST /Accept/{AcceptId}/uploadBin | uploads a binary |
RmmApi.ArgApi | addArg | POST /Arg | Add a new Arg to the store |
RmmApi.ArgApi | findArgsByStatus | GET /Arg/findByStatus | Finds Args by status |
RmmApi.ArgApi | findArgsByTags | GET /Arg/findByTags | Finds Args by tags |
RmmApi.ArgApi | getArgById | GET /Arg/{ArgId} | Find Arg by ID |
RmmApi.ArgApi | uploadFileArg | POST /Arg/{ArgId}/uploadBin | uploads a binary |
RmmApi.DeploymentkeyApi | addDeploymentkey | POST /Deploymentkey | Add a new Deploymentkey to the store |
RmmApi.DeploymentkeyApi | findDeploymentkeysByStatus | GET /Deploymentkey/findByStatus | Finds Deploymentkeys by status |
RmmApi.DeploymentkeyApi | findDeploymentkeysByTags | GET /Deploymentkey/findByTags | Finds Deploymentkeys by tags |
RmmApi.DeploymentkeyApi | getDeploymentkeyById | GET /Deploymentkey/{DeploymentkeyId} | Find Deploymentkey by ID |
RmmApi.DeploymentkeyApi | uploadFileDeploymentkey | POST /Deploymentkey/{DeploymentkeyId}/uploadBin | uploads a binary |
RmmApi.GroupApi | addGroup | POST /Group | Add a new Group to the store |
RmmApi.GroupApi | findGroupsByStatus | GET /Group/findByStatus | Finds Groups by status |
RmmApi.GroupApi | findGroupsByTags | GET /Group/findByTags | Finds Groups by tags |
RmmApi.GroupApi | getGroupById | GET /Group/{GroupId} | Find Group by ID |
RmmApi.GroupApi | uploadFileGroup | POST /Group/{GroupId}/uploadBin | uploads a binary |
RmmApi.HostendpointApi | addHostendpoint | POST /Hostendpoint | Add a new Hostendpoint to the store |
RmmApi.HostendpointApi | findHostendpointsByStatus | GET /Hostendpoint/findByStatus | Finds Hostendpoints by status |
RmmApi.HostendpointApi | findHostendpointsByTags | GET /Hostendpoint/findByTags | Finds Hostendpoints by tags |
RmmApi.HostendpointApi | getHostendpointById | GET /Hostendpoint/{HostendpointId} | Find Hostendpoint by ID |
RmmApi.HostendpointApi | uploadFileHostendpoint | POST /Hostendpoint/{HostendpointId}/uploadBin | uploads a binary |
RmmApi.IdentifierApi | addIdentifier | POST /Identifier | Add a new Identifier to the store |
RmmApi.IdentifierApi | findIdentifiersByStatus | GET /Identifier/findByStatus | Finds Identifiers by status |
RmmApi.IdentifierApi | findIdentifiersByTags | GET /Identifier/findByTags | Finds Identifiers by tags |
RmmApi.IdentifierApi | getIdentifierById | GET /Identifier/{IdentifierId} | Find Identifier by ID |
RmmApi.IdentifierApi | uploadFileIdentifier | POST /Identifier/{IdentifierId}/uploadBin | uploads a binary |
RmmApi.InfoApi | addInfo | POST /Info | Add a new Info to the store |
RmmApi.InfoApi | findInfosByStatus | GET /Info/findByStatus | Finds Infos by status |
RmmApi.InfoApi | findInfosByTags | GET /Info/findByTags | Finds Infos by tags |
RmmApi.InfoApi | getInfoById | GET /Info/{InfoId} | Find Info by ID |
RmmApi.InfoApi | uploadFileInfo | POST /Info/{InfoId}/uploadBin | uploads a binary |
RmmApi.ListApi | addList | POST /List | Add a new List to the store |
RmmApi.ListApi | findListsByStatus | GET /List/findByStatus | Finds Lists by status |
RmmApi.ListApi | findListsByTags | GET /List/findByTags | Finds Lists by tags |
RmmApi.ListApi | getListById | GET /List/{ListId} | Find List by ID |
RmmApi.ListApi | uploadFileList | POST /List/{ListId}/uploadBin | uploads a binary |
RmmApi.LogApi | addLog | POST /Log | Add a new Log to the store |
RmmApi.LogApi | findLogsByStatus | GET /Log/findByStatus | Finds Logs by status |
RmmApi.LogApi | findLogsByTags | GET /Log/findByTags | Finds Logs by tags |
RmmApi.LogApi | getLogById | GET /Log/{LogId} | Find Log by ID |
RmmApi.LogApi | uploadFileLog | POST /Log/{LogId}/uploadBin | uploads a binary |
RmmApi.OpApi | addOp | POST /Op | Add a new Op to the store |
RmmApi.OpApi | findOpsByStatus | GET /Op/findByStatus | Finds Ops by status |
RmmApi.OpApi | findOpsByTags | GET /Op/findByTags | Finds Ops by tags |
RmmApi.OpApi | getOpById | GET /Op/{OpId} | Find Op by ID |
RmmApi.OpApi | uploadFileOp | POST /Op/{OpId}/uploadBin | uploads a binary |
RmmApi.ScheduleApi | addSchedule | POST /Schedule | Add a new Schedule to the store |
RmmApi.ScheduleApi | findSchedulesByStatus | GET /Schedule/findByStatus | Finds Schedules by status |
RmmApi.ScheduleApi | findSchedulesByTags | GET /Schedule/findByTags | Finds Schedules by tags |
RmmApi.ScheduleApi | getScheduleById | GET /Schedule/{ScheduleId} | Find Schedule by ID |
RmmApi.ScheduleApi | uploadFileSchedule | POST /Schedule/{ScheduleId}/uploadBin | uploads a binary |
RmmApi.SequenceApi | addSequence | POST /Sequence | Add a new Sequence to the store |
RmmApi.SequenceApi | findSequencesByStatus | GET /Sequence/findByStatus | Finds Sequences by status |
RmmApi.SequenceApi | findSequencesByTags | GET /Sequence/findByTags | Finds Sequences by tags |
RmmApi.SequenceApi | getSequenceById | GET /Sequence/{SequenceId} | Find Sequence by ID |
RmmApi.SequenceApi | uploadFileSequence | POST /Sequence/{SequenceId}/uploadBin | uploads a binary |
RmmApi.StackApi | addStack | POST /Stack | Add a new Stack to the store |
RmmApi.StackApi | findStacksByStatus | GET /Stack/findByStatus | Finds Stacks by status |
RmmApi.StackApi | findStacksByTags | GET /Stack/findByTags | Finds Stacks by tags |
RmmApi.StackApi | getStackById | GET /Stack/{StackId} | Find Stack by ID |
RmmApi.StackApi | uploadFileStack | POST /Stack/{StackId}/uploadBin | uploads a binary |
RmmApi.TagApi | addTag | POST /Tag | Add a new Tag to the store |
RmmApi.TagApi | findTagsByStatus | GET /Tag/findByStatus | Finds Tags by status |
RmmApi.TagApi | findTagsByTags | GET /Tag/findByTags | Finds Tags by tags |
RmmApi.TagApi | getTagById | GET /Tag/{TagId} | Find Tag by ID |
RmmApi.TagApi | uploadFileTag | POST /Tag/{TagId}/uploadBin | uploads a binary |
RmmApi.ThumbprintkeyApi | addThumbprintkey | POST /Thumbprintkey | Add a new Thumbprintkey to the store |
RmmApi.ThumbprintkeyApi | findThumbprintkeysByStatus | GET /Thumbprintkey/findByStatus | Finds Thumbprintkeys by status |
RmmApi.ThumbprintkeyApi | findThumbprintkeysByTags | GET /Thumbprintkey/findByTags | Finds Thumbprintkeys by tags |
RmmApi.ThumbprintkeyApi | getThumbprintkeyById | GET /Thumbprintkey/{ThumbprintkeyId} | Find Thumbprintkey by ID |
RmmApi.ThumbprintkeyApi | uploadFileThumbprintkey | POST /Thumbprintkey/{ThumbprintkeyId}/uploadBin | uploads a binary |
RmmApi.TransactionApi | addTransaction | POST /Transaction | Add a new Transaction to the store |
RmmApi.TransactionApi | findTransactionsByStatus | GET /Transaction/findByStatus | Finds Transactions by status |
RmmApi.TransactionApi | findTransactionsByTags | GET /Transaction/findByTags | Finds Transactions by tags |
RmmApi.TransactionApi | getTransactionById | GET /Transaction/{TransactionId} | Find Transaction by ID |
RmmApi.TransactionApi | uploadFileTransaction | POST /Transaction/{TransactionId}/uploadBin | uploads a binary |
RmmApi.VarApi | addVar | POST /Var | Add a new Var to the store |
RmmApi.VarApi | findVarsByStatus | GET /Var/findByStatus | Finds Vars by status |
RmmApi.VarApi | findVarsByTags | GET /Var/findByTags | Finds Vars by tags |
RmmApi.VarApi | getVarById | GET /Var/{VarId} | Find Var by ID |
RmmApi.VarApi | uploadFileVar | POST /Var/{VarId}/uploadBin | uploads a binary |
Documentation for Models
- RmmApi.Accept
- RmmApi.ApiResponse
- RmmApi.Arg
- RmmApi.Deploymentkey
- RmmApi.Group
- RmmApi.Hostendpoint
- RmmApi.Identifier
- RmmApi.Info
- RmmApi.List
- RmmApi.Log
- RmmApi.ModelVar
- RmmApi.Op
- RmmApi.Schedule
- RmmApi.Sequence
- RmmApi.Stack
- RmmApi.Tag
- RmmApi.Thumbprintkey
- RmmApi.Transaction
Documentation for Authorization
api_auth
- Type: OAuth
- Flow: implicit
- Authorization URL: http://api.virtuhorizon.com/oauth/dialog
- Scopes:
- read:systems: read your systems
- write:systems: modify systems in your account
api_key
- Type: API key
- API key parameter name: api_key
- Location: HTTP header
6 years ago