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