All URIs are relative to https://localhost/api/v3/onepanel
Method | HTTP request | Description |
---|---|---|
addOnes3 | POST /provider/ones3 | Add OneS3 services |
addProviderDatabases | POST /provider/databases | Deploy provider databases |
addProviderManagers | POST /provider/managers | Add provider cluster managers |
addProviderWorkers | POST /provider/workers | Add provider cluster workers |
configureProvider | POST /provider/configuration | Configure provider deployment |
getOnes3StatusClusterWide | GET /provider/ones3 | Get OneS3 service status (cluster-wide) |
getOnes3StatusOnHost | GET /provider/ones3/{host} | Get OneS3 service status on a host |
getProviderClusterIps | GET /provider/cluster_ips | Get provider cluster nodes IPs |
getProviderConfiguration | GET /provider/configuration | Get provider cluster configuration |
getProviderDatabaseStatus | GET /provider/databases/{host} | Get provider database status |
getProviderDatabasesStatus | GET /provider/databases | Get provider databases status |
getProviderManagerStatus | GET /provider/managers/{host} | Get provider cluster manager status |
getProviderManagersStatus | GET /provider/managers | Get provider cluster managers status |
getProviderNagiosReport | GET /provider/nagios | Get provider nagios report |
getProviderWorkerStatus | GET /provider/workers/{host} | Get provider cluster worker status |
getProviderWorkersStatus | GET /provider/workers | Get provider cluster workers status |
modifyProviderClusterIps | PATCH /provider/cluster_ips | Set external IPs of nodes in application config |
startStopOnes3ClusterWide | PATCH /provider/ones3 | Start/stop OneS3 service (cluster-wide) |
startStopOnes3OnHost | PATCH /provider/ones3/{host} | Start/stop OneS3 service on a host |
startStopProviderDatabase | PATCH /provider/databases/{host} | Start/stop provider database |
startStopProviderDatabases | PATCH /provider/databases | Start/stop provider databases |
startStopProviderManager | PATCH /provider/managers/{host} | Start/stop provider cluster manager |
startStopProviderManagers | PATCH /provider/managers | Start/stop provider cluster managers |
startStopProviderWorker | PATCH /provider/workers/{host} | Start/stop provider cluster worker |
startStopProviderWorkers | PATCH /provider/workers | Start/stop provider cluster workers |
TaskId addOnes3(serviceHosts)
Add OneS3 services
Deploys the OneS3 service on the specified hosts. NOTE: the OneS3 service requires that the provider is registered in Onezone before it can be started. If it's not the case, the service will be enabled, but its start will be postponed and automatically resumed after the registration.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var serviceHosts = new Onepanel.ServiceOnes3(); // ServiceOnes3 | The OneS3 service hosts configuration.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.addOnes3(serviceHosts, callback);
Name | Type | Description | Notes |
---|---|---|---|
serviceHosts | ServiceOnes3 | The OneS3 service hosts configuration. |
- Content-Type: application/json
- Accept: Not defined
TaskId addProviderDatabases(serviceHosts)
Deploy provider databases
Deploys a database service on provided hosts.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var serviceHosts = new Onepanel.ServiceDatabases(); // ServiceDatabases | The service hosts configuration where databases should be deployed.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.addProviderDatabases(serviceHosts, callback);
Name | Type | Description | Notes |
---|---|---|---|
serviceHosts | ServiceDatabases | The service hosts configuration where databases should be deployed. |
- Content-Type: application/json
- Accept: Not defined
TaskId addProviderManagers(managerHosts)
Add provider cluster managers
Deploys a cluster manager service on provided hosts.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var managerHosts = new Onepanel.ManagerHosts(); // ManagerHosts | The cluster manager service hosts configuration.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.addProviderManagers(managerHosts, callback);
Name | Type | Description | Notes |
---|---|---|---|
managerHosts | ManagerHosts | The cluster manager service hosts configuration. |
- Content-Type: application/json
- Accept: Not defined
TaskId addProviderWorkers(serviceHosts)
Add provider cluster workers
Deploys cluster worker services on provided hosts.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var serviceHosts = new Onepanel.ServiceHosts(); // ServiceHosts | The service hosts configuration where workers should be deployed.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.addProviderWorkers(serviceHosts, callback);
Name | Type | Description | Notes |
---|---|---|---|
serviceHosts | ServiceHosts | The service hosts configuration where workers should be deployed. |
- Content-Type: application/json
- Accept: Not defined
TaskId configureProvider(providerConfiguration)
Configure provider deployment
Configures and starts provider services, such as database, cluster manager and cluster worker. Depending on the configuration, sets up provider storage and registers in the zone. This request can be executed unauthorized as long as there are no admin users.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var providerConfiguration = new Onepanel.ProviderConfiguration(); // ProviderConfiguration | The provider configuration description.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.configureProvider(providerConfiguration, callback);
Name | Type | Description | Notes |
---|---|---|---|
providerConfiguration | ProviderConfiguration | The provider configuration description. |
- Content-Type: application/json, application/x-yaml
- Accept: Not defined
ServiceStatus getOnes3StatusClusterWide()
Get OneS3 service status (cluster-wide)
Returns the status of OneS3 service on each host where it has been deployed.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getOnes3StatusClusterWide(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
ServiceStatusHost getOnes3StatusOnHost(host)
Get OneS3 service status on a host
Returns the status of the OneS3 service on the selected host.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var host = "host_example"; // String | The cluster host for which the OneS3 service status should be returned.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getOnes3StatusOnHost(host, callback);
Name | Type | Description | Notes |
---|---|---|---|
host | String | The cluster host for which the OneS3 service status should be returned. |
- Content-Type: Not defined
- Accept: application/json
ClusterIps getProviderClusterIps()
Get provider cluster nodes IPs
Returns IPs of nodes in provider cluster.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getProviderClusterIps(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
ProviderConfigurationDetails getProviderConfiguration()
Get provider cluster configuration
Returns the provider cluster configuration.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getProviderConfiguration(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
ServiceStatusHost getProviderDatabaseStatus(host)
Get provider database status
Returns status of database service on the selected host.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var host = "host_example"; // String | The name of a host for which database service status should be returned.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getProviderDatabaseStatus(host, callback);
Name | Type | Description | Notes |
---|---|---|---|
host | String | The name of a host for which database service status should be returned. |
- Content-Type: Not defined
- Accept: application/json
ServiceStatus getProviderDatabasesStatus()
Get provider databases status
Returns status of database service on each host where it has been deployed.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getProviderDatabasesStatus(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
ServiceStatusHost getProviderManagerStatus(host)
Get provider cluster manager status
Returns status of cluster manager service on the selected host.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var host = "host_example"; // String | The name of a host for which cluster manager service status should be returned.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getProviderManagerStatus(host, callback);
Name | Type | Description | Notes |
---|---|---|---|
host | String | The name of a host for which cluster manager service status should be returned. |
- Content-Type: Not defined
- Accept: application/json
ServiceStatus getProviderManagersStatus()
Get provider cluster managers status
Returns status of cluster manager service on each host where it has been deployed.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getProviderManagersStatus(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
getProviderNagiosReport()
Get provider nagios report
Returns the provider nagios report.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getProviderNagiosReport(callback);
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: Not defined
- Accept: text/xml
ServiceStatusHost getProviderWorkerStatus(host)
Get provider cluster worker status
Returns status of cluster worker service on the selected host.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var host = "host_example"; // String | The name of a host for which cluster worker service status should be returned.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getProviderWorkerStatus(host, callback);
Name | Type | Description | Notes |
---|---|---|---|
host | String | The name of a host for which cluster worker service status should be returned. |
- Content-Type: Not defined
- Accept: application/json
ServiceStatus getProviderWorkersStatus()
Get provider cluster workers status
Returns status of cluster worker service on each host where it has been deployed.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getProviderWorkersStatus(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
modifyProviderClusterIps(clusterIps)
Set external IPs of nodes in application config
Informs cluster nodes about external IPs which can be used to access them by other providers.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var clusterIps = new Onepanel.ModifyClusterIps(); // ModifyClusterIps | The provider configuration description.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.modifyProviderClusterIps(clusterIps, callback);
Name | Type | Description | Notes |
---|---|---|---|
clusterIps | ModifyClusterIps | The provider configuration description. |
null (empty response body)
- Content-Type: application/json, application/x-yaml
- Accept: Not defined
startStopOnes3ClusterWide(opts)
Start/stop OneS3 service (cluster-wide)
Starts or stops OneS3 service on all hosts in the cluster. NOTE: the OneS3 service requires that the provider is registered in Onezone before it can be started. If it's not the case, the start of the service will be postponed and automatically resumed after the registration.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var opts = {
'started': true // Boolean | Defines the intended state of the OneS3 service. The service will be started or stopped in order to match the requested state. Starting may be postponed (see the description).
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.startStopOnes3ClusterWide(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
started | Boolean | Defines the intended state of the OneS3 service. The service will be started or stopped in order to match the requested state. Starting may be postponed (see the description). | [optional] [default to true] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
startStopOnes3OnHost(host, opts)
Start/stop OneS3 service on a host
Starts or stops the OneS3 service on the selected host in the cluster. NOTE: the OneS3 service requires that the provider is registered in Onezone before it can be started. If it's not the case, the start of the service will be postponed and automatically resumed after the registration.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var host = "host_example"; // String | The cluster host for which OneS3 service status should be changed.
var opts = {
'started': true // Boolean | Defines the intended state of the OneS3 service. The service will be started or stopped in order to match the requested state. Starting may be postponed (see the description).
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.startStopOnes3OnHost(host, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
host | String | The cluster host for which OneS3 service status should be changed. | |
started | Boolean | Defines the intended state of the OneS3 service. The service will be started or stopped in order to match the requested state. Starting may be postponed (see the description). | [optional] [default to true] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
startStopProviderDatabase(host, opts)
Start/stop provider database
Starts or stops database service on the selected hosts in the local deployment.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var host = "host_example"; // String | The name of a host for which database service status should be changed.
var opts = {
'started': true // Boolean | Defines the intended state of the database service. The service will be started or stopped in order to match the requested state.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.startStopProviderDatabase(host, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
host | String | The name of a host for which database service status should be changed. | |
started | Boolean | Defines the intended state of the database service. The service will be started or stopped in order to match the requested state. | [optional] [default to true] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
startStopProviderDatabases(opts)
Start/stop provider databases
Starts or stops database service on all hosts in the local deployment.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var opts = {
'started': true // Boolean | Defines the intended state of the database service. The service will be started or stopped in order to match the requested state.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.startStopProviderDatabases(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
started | Boolean | Defines the intended state of the database service. The service will be started or stopped in order to match the requested state. | [optional] [default to true] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
startStopProviderManager(host, opts)
Start/stop provider cluster manager
Starts or stops cluster manager service on the selected hosts in the local deployment.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var host = "host_example"; // String | The name of a host for which cluster manager service status should be changed.
var opts = {
'started': true // Boolean | Defines the intended state of the cluster manager service. The service will be started or stopped in order to match the requested state.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.startStopProviderManager(host, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
host | String | The name of a host for which cluster manager service status should be changed. | |
started | Boolean | Defines the intended state of the cluster manager service. The service will be started or stopped in order to match the requested state. | [optional] [default to true] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
startStopProviderManagers(opts)
Start/stop provider cluster managers
Starts or stops cluster manager service on all hosts in the local deployment.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var opts = {
'started': true // Boolean | Defines the intended state of the cluster manager service. The service will be started or stopped in order to match the requested state.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.startStopProviderManagers(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
started | Boolean | Defines the intended state of the cluster manager service. The service will be started or stopped in order to match the requested state. | [optional] [default to true] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
startStopProviderWorker(host, opts)
Start/stop provider cluster worker
Starts or stops cluster worker service on the selected host in the local deployment.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var host = "host_example"; // String | The name of a host for which cluster worker service status should be changed.
var opts = {
'started': true // Boolean | Defines the intended state of the cluster worker service. The service will be started or stopped in order to match the requested state.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.startStopProviderWorker(host, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
host | String | The name of a host for which cluster worker service status should be changed. | |
started | Boolean | Defines the intended state of the cluster worker service. The service will be started or stopped in order to match the requested state. | [optional] [default to true] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
startStopProviderWorkers(opts)
Start/stop provider cluster workers
Starts or stops cluster worker service on all hosts in the local deployment.
var Onepanel = require('onepanel');
var defaultClient = Onepanel.ApiClient.instance;
// Configure API key authorization: api_key1
var api_key1 = defaultClient.authentications['api_key1'];
api_key1.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key1.apiKeyPrefix = 'Token';
// Configure API key authorization: api_key2
var api_key2 = defaultClient.authentications['api_key2'];
api_key2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key2.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basic
var basic = defaultClient.authentications['basic'];
basic.username = 'YOUR USERNAME';
basic.password = 'YOUR PASSWORD';
var apiInstance = new Onepanel.OneproviderClusterApi();
var opts = {
'started': true // Boolean | Defines the intended state of the cluster worker service. The service will be started or stopped in order to match the requested state.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.startStopProviderWorkers(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
started | Boolean | Defines the intended state of the cluster worker service. The service will be started or stopped in order to match the requested state. | [optional] [default to true] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined