All URIs are relative to https://koding.com/remote.api
| Method | HTTP request | Description |
|---|---|---|
| approve | POST /JMachine.approve/{id} | |
| deny | POST /JMachine.deny/{id} | |
| one | POST /JMachine.one | |
| reviveUsers | POST /JMachine.reviveUsers/{id} | |
| setChannelId | POST /JMachine.setChannelId/{id} | |
| setLabel | POST /JMachine.setLabel/{id} | |
| setProvisioner | POST /JMachine.setProvisioner/{id} | |
| share | POST /JMachine.share/{id} | |
| shareWith | POST /JMachine.shareWith/{id} | |
| some | POST /JMachine.some | |
| unshare | POST /JMachine.unshare/{id} |
DefaultResponse approve(id, body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.approve(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse deny(id, body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.deny(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse one(body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.one(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse reviveUsers(id, body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.reviveUsers(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse setChannelId(id, body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.setChannelId(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse setLabel(id, body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.setLabel(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse setProvisioner(id, body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.setProvisioner(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse share(id, body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.share(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse shareWith(id, body)
Method JMachine.shareWith
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.shareWith(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse some(body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.some(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse unshare(id, body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JMachineApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.unshare(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined