
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
conservatory-api
Advanced tools
The node.js conservatory-api library enables access to the RESTful API for conservatory
.
var conservatory = require('conservatory-api');
var client = conservatory.createClient({
host: 'api.nodejitsu.com',
port: 80,
auth: {
username: 'charlie',
password: 'foobar',
}
});
client.groups.list(function (err, result) {
if (err) {
console.log(err);
return;
}
console.log(JSON.stringify(result, null, 2, true));
});
This method sets up a client for connecting to conservatory
. Here's a minimal example for connecting to conservatory as charlie
:
var client = conservatory.createClient({
host: 'api.nodejitsu.com',
port: 80,
auth: {
username: 'charlie',
password: 'foobar',
}
});
The options object contains three required properties:
auth.username
: The username for your Nodejitsu accountauth.password
: The password for your Nodejitsu accounthost
: The api host (typically http://conservatory.nodejitsu.com.Method calls are generally structured as resource
and action
.
client.resource.action("data", function (err, result) {
if (err) {
throw err;
}
//
// use the result
//
});
Most actions take a string argument and a callback, though a few actions only take a callback.
The client's methods are reflective of conservatory
resources. Here's a broad overview:
servers.provision
servers.getPosition
servers.free
servers.get
servers.list
servers.list
servers.listRole
servers.update
groups.get
groups.list
groups.listProvider
groups.update
groups.destroy
users.create
users.get
users.list
users.update
users.destroy
users.getKey
users.getKeys
users.addKey
users.updateKey
This library may be installed using npm:
$ npm install nodejitsu-api
All tests are included in conservatory
to facilitate integration tests and to avoid the need for complex mocking.
Proprietary. Copyright (c) 2011 Nodejitsu Inc.
FAQs
conservatory API client wrapper
The npm package conservatory-api receives a total of 0 weekly downloads. As such, conservatory-api popularity was classified as not popular.
We found that conservatory-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.