All URIs are relative to http://localhost/v1.41
Method | HTTP request | Description |
---|---|---|
configCreate | POST /configs/create | Create a config |
configDelete | DELETE /configs/{id} | Delete a config |
configInspect | GET /configs/{id} | Inspect a config |
configList | GET /configs | List configs |
configUpdate | POST /configs/{id}/update | Update a Config |
IdResponse configCreate(opts)
Create a config
var DockerEngineApi = require('docker_engine_api');
var apiInstance = new DockerEngineApi.ConfigApi();
var opts = {
'body': new DockerEngineApi.object() // object |
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.configCreate(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | object | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
configDelete(id)
Delete a config
var DockerEngineApi = require('docker_engine_api');
var apiInstance = new DockerEngineApi.ConfigApi();
var id = "id_example"; // String | ID of the config
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.configDelete(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of the config |
null (empty response body)
No authorization required
- Content-Type: application/json, text/plain
- Accept: application/json
Config configInspect(id)
Inspect a config
var DockerEngineApi = require('docker_engine_api');
var apiInstance = new DockerEngineApi.ConfigApi();
var id = "id_example"; // String | ID of the config
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.configInspect(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of the config |
No authorization required
- Content-Type: application/json, text/plain
- Accept: application/json
[Config] configList(opts)
List configs
var DockerEngineApi = require('docker_engine_api');
var apiInstance = new DockerEngineApi.ConfigApi();
var opts = {
'filters': "filters_example" // String | A JSON encoded value of the filters (a `map[string][]string`) to process on the configs list. Available filters: - `id=<config id>` - `label=<key> or label=<key>=value` - `name=<config name>` - `names=<config name>`
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.configList(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
filters | String | A JSON encoded value of the filters (a map[string][]string ) to process on the configs list. Available filters: - id=<config id> - label=<key> or label=<key>=value - name=<config name> - names=<config name> |
[optional] |
No authorization required
- Content-Type: application/json, text/plain
- Accept: application/json
configUpdate(id, version, opts)
Update a Config
var DockerEngineApi = require('docker_engine_api');
var apiInstance = new DockerEngineApi.ConfigApi();
var id = "id_example"; // String | The ID or name of the config
var version = 789; // Number | The version number of the config object being updated. This is required to avoid conflicting writes.
var opts = {
'body': new DockerEngineApi.ConfigSpec() // ConfigSpec | The spec of the config to update. Currently, only the Labels field can be updated. All other fields must remain unchanged from the [ConfigInspect endpoint](#operation/ConfigInspect) response values.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.configUpdate(id, version, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID or name of the config | |
version | Number | The version number of the config object being updated. This is required to avoid conflicting writes. | |
body | ConfigSpec | The spec of the config to update. Currently, only the Labels field can be updated. All other fields must remain unchanged from the ConfigInspect endpoint response values. | [optional] |
null (empty response body)
No authorization required
- Content-Type: application/json, text/plain
- Accept: application/json, text/plain