All URIs are relative to http://portainer.domain/api
| Method | HTTP request | Description |
|---|---|---|
| publicSettingsInspect | GET /settings/public | Retrieve Portainer public settings |
| settingsInspect | GET /settings | Retrieve Portainer settings |
| settingsLDAPCheck | PUT /settings/authentication/checkLDAP | Test LDAP connectivity |
| settingsUpdate | PUT /settings | Update Portainer settings |
PublicSettingsInspectResponse publicSettingsInspect()
Retrieve Portainer public settings
Retrieve public settings. Returns a small set of settings that are not reserved to administrators only. Access policy: public
var PortainerApi = require('portainer_api');
var defaultClient = PortainerApi.ApiClient.instance;
// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix = 'Token';
var apiInstance = new PortainerApi.SettingsApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.publicSettingsInspect(callback);
This endpoint does not need any parameter.
Settings settingsInspect()
Retrieve Portainer settings
Retrieve Portainer settings. Access policy: administrator
var PortainerApi = require('portainer_api');
var defaultClient = PortainerApi.ApiClient.instance;
// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix = 'Token';
var apiInstance = new PortainerApi.SettingsApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.settingsInspect(callback);
This endpoint does not need any parameter.
settingsLDAPCheck(body)
Test LDAP connectivity
Test LDAP connectivity using LDAP details. Access policy: administrator
var PortainerApi = require('portainer_api');
var defaultClient = PortainerApi.ApiClient.instance;
// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix = 'Token';
var apiInstance = new PortainerApi.SettingsApi();
var body = new PortainerApi.SettingsLDAPCheckRequest(); // SettingsLDAPCheckRequest | LDAP settings
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.settingsLDAPCheck(body, callback);
| Name | Type | Description | Notes |
|---|---|---|---|
| body | SettingsLDAPCheckRequest | LDAP settings |
null (empty response body)
Settings settingsUpdate(body)
Update Portainer settings
Update Portainer settings. Access policy: administrator
var PortainerApi = require('portainer_api');
var defaultClient = PortainerApi.ApiClient.instance;
// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix = 'Token';
var apiInstance = new PortainerApi.SettingsApi();
var body = new PortainerApi.SettingsUpdateRequest(); // SettingsUpdateRequest | New settings
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.settingsUpdate(body, callback);
| Name | Type | Description | Notes |
|---|---|---|---|
| body | SettingsUpdateRequest | New settings |