The DataVaccinator Vault executable vaccinator
, typically located at /opt/vaccinator/
, is usually running the service. But it also accepts additional commandline parameters for management functionality beside the service function.
As soon as you provide a commandline parameter, the executable will not establish a service and will not open ports. Instead, it will exit after the function was executed or an error occurs.
Therefore, you can run the service (eg started by system.d) and then call the same executable with commandline parameters for management.
ℹ️
|
You very likely need to run the executable with sudo or as root. |
-j |
JSON operation instructions. |
-p |
Pretty print any JSON results. |
The j
parameter contains the JSON to execute. There, the op
parameter defines the desired operation for your call.
This is an example call for getting the list:
vaccinator -j='{"op":"list"}'
You get a pretty printed version of the result by adding the -p option:
vaccinator -p -j='{"op":"list"}'
Option |
list |
Description |
List all service providers. |
Returns |
A JSON formatted array with status information and all available service providers and their configuration (except the password) in the data field. |
Example |
This is some example output: {
"status": "OK",
"data": [
{
"created": "2021-07-16T14:43:56.083876+02:00",
"desc": "Just a test entry",
"ip": "127.0.0.1",
"name": "test",
"sid": 1
},
{
"created": "2022-05-10T13:40:47.157329+02:00",
"desc": "The first valid provider",
"ip": "192.168.1.10",
"name": "Company Division A",
"sid": 2
}
]
} Please note that |
Option |
add |
Description |
Add a new service providers. |
Values |
The following values may become provided:
|
Returns |
A JSON formatted array with status information. |
Example |
Call: {
"op": "add",
"sid": 2,
"name": "Some new provider",
"password": "superSecure",
"ip": "10.10.0.1 10.10.0.2 10.10.0.3"
} Result: {
"status": "SUCCESS"
} |
Option |
update |
Description |
Update an existing service providers. |
Values |
The following values may become provided:
|
Returns |
A JSON formatted array with status information. |
Example |
Call: {
"op": "update",
"sid": 2,
"name": "Some new provider name",
"description": "This is an updated one"
} Result: {
"status": "SUCCESS"
} |
🔥
|
This option allows you to remove a service provider with all the data saved. To prevent accidential deletion, this function asks for confirmation on the command line by default. To prevent the confirmation prompt, set the force parameter (eg in automated environments). |
Option |
remove |
Description |
Remove an existing service provider. |
Values |
The following values may become provided:
|
Returns |
A JSON formatted array with status information. |
Example |
Call: {
"op": "remove",
"sid": 2,
"force": true
} Result: {
"status": "SUCCESS"
} |