Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@corellium/client-api
Advanced tools
CorelliumClient - JavaScript client for @corellium/client-api REST API to manage your virtual devices. This SDK is automatically generated by the OpenAPI Generator project:
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install @corellium/client-api --save
Finally, you need to build the module:
npm run build
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
To use the link you just defined in your project, switch to the directory you want to use your @corellium/client-api from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
Finally, you need to build the module:
npm run build
If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
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):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
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
}
}
]
}
Please follow the installation instruction and execute the following JS code:
var CorelliumClient = require('@corellium/client-api');
var api = new CorelliumClient.CorelliumApi()
var body = {
"username": "admin",
"password": "password"
}; // {Object} Authorization data ( Credentials|ApiToken )
api.v1AuthLogin(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
All URIs are relative to https://app.corellium.com/api
Class | Method | HTTP request | Description |
---|---|---|---|
CorelliumClient.CorelliumApi | v1AuthLogin | POST /v1/auth/login | Log In |
CorelliumClient.CorelliumApi | v1CreateImage | POST /v1/images | Create a new Image |
CorelliumClient.CorelliumApi | v1CreateInstance | POST /v1/instances | Create Instance |
CorelliumClient.CorelliumApi | v1CreateSnapshot | POST /v1/instances/{instanceId}/snapshots | Create Instance Snapshot |
CorelliumClient.CorelliumApi | v1DeleteImage | DELETE /v2/images/{imageId} | Delete Image |
CorelliumClient.CorelliumApi | v1DeleteInstance | DELETE /v1/instances/{instanceId} | Remove Instance |
CorelliumClient.CorelliumApi | v1GetImage | GET /v1/images/{imageId} | Get Image Metadata |
CorelliumClient.CorelliumApi | v1GetImages | GET /v1/images | Get all Images Metadata |
CorelliumClient.CorelliumApi | v1GetInstance | GET /v1/instances/{instanceId} | Get Instance |
CorelliumClient.CorelliumApi | v1GetInstanceConsole | GET /v1/instances/{instanceId}/console | Get console websocket URL |
CorelliumClient.CorelliumApi | v1GetInstanceGpios | GET /v1/instances/{instanceId}/gpios | Get Instance GPIOs |
CorelliumClient.CorelliumApi | v1GetInstancePeripherals | GET /v1/instances/{instanceId}/peripherals | Get Instance Peripherals |
CorelliumClient.CorelliumApi | v1GetInstanceScreenshot | GET /v1/instances/{instanceId}/screenshot.{format} | Get Instance Screenshot |
CorelliumClient.CorelliumApi | v1GetInstanceState | GET /v1/instances/{instanceId}/state | Get state of Instance |
CorelliumClient.CorelliumApi | v1GetInstances | GET /v1/instances | Get Instances |
CorelliumClient.CorelliumApi | v1GetModelSoftware | GET /v1/models/{model}/software | Get Software for Model |
CorelliumClient.CorelliumApi | v1GetModels | GET /v1/models | Get Supported Models |
CorelliumClient.CorelliumApi | v1GetProject | GET /v1/projects/{projectId} | Get Project |
CorelliumClient.CorelliumApi | v1GetProjectInstances | GET /v1/projects/{projectId}/instances | Get Instances in Project |
CorelliumClient.CorelliumApi | v1GetProjectVpnConfig | GET /v1/projects/{projectId}/vpnconfig/{format} | Get Project VPN Configuration |
CorelliumClient.CorelliumApi | v1GetProjects | GET /v1/projects | Get Projects |
CorelliumClient.CorelliumApi | v1GetSnapshot | GET /v1/instances/{instanceId}/snapshots/{snapshotId} | Get Instance Snapshots |
CorelliumClient.CorelliumApi | v1GetSnapshots | GET /v1/instances/{instanceId}/snapshots | Get Instance Snapshots |
CorelliumClient.CorelliumApi | v1PatchInstance | PATCH /v1/instances/{instanceId} | Update Instance |
CorelliumClient.CorelliumApi | v1PauseInstance | POST /v1/instances/{instanceId}/pause | Pause an Instance |
CorelliumClient.CorelliumApi | v1Ready | GET /v1/ready | API Status |
CorelliumClient.CorelliumApi | v1RebootInstance | POST /v1/instances/{instanceId}/reboot | Reboot an Instance |
CorelliumClient.CorelliumApi | v1RestoreSnapshot | POST /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore a Snapshot |
CorelliumClient.CorelliumApi | v1SetInstanceGpios | PUT /v1/instances/{instanceId}/gpios | Set Instance GPIOs |
CorelliumClient.CorelliumApi | v1SetInstancePeripherals | PUT /v1/instances/{instanceId}/peripherals | Set Instance Peripherals |
CorelliumClient.CorelliumApi | v1SetInstanceState | PUT /v1/instances/{instanceId}/state | Set state of Instance |
CorelliumClient.CorelliumApi | v1SnapshotDelete | DELETE /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete a Snapshot |
CorelliumClient.CorelliumApi | v1SnapshotRename | PATCH /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename a Snapshot |
CorelliumClient.CorelliumApi | v1StartInstance | POST /v1/instances/{instanceId}/start | Start an Instance |
CorelliumClient.CorelliumApi | v1StopInstance | POST /v1/instances/{instanceId}/stop | Stop an Instance |
CorelliumClient.CorelliumApi | v1UnpauseInstance | POST /v1/instances/{instanceId}/unpause | Unpause an Instance |
CorelliumClient.CorelliumApi | v1UploadImageData | POST /v1/images/{imageId} | Upload Image Data |
CorelliumClient.CorelliumApi | v1UsersLogin | POST /v1/users/login | Log In |
FAQs
Corellium Client API
The npm package @corellium/client-api receives a total of 0 weekly downloads. As such, @corellium/client-api popularity was classified as not popular.
We found that @corellium/client-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.