Commit 449c01f0 authored by Marcin Haba's avatar Marcin Haba
Browse files

baculum: Add documentation for component actions

parent 674ec1c2
......@@ -6427,6 +6427,55 @@
]
}
},
"/api/v2/actions/{component}/{action}/": {
"get": {
"tags": ["actions"],
"summary": "Run Bacula component action",
"description": "Run Bacula component action.",
"responses": {
"200": {
"description": "Run Bacula component action",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"output": {
"type": "string"
},
"error": {
"type": "integer",
"description": "Error code",
"enum": [0, 110, 111, 112, 113, 1000]
}
}
}
}
}
}
},
"parameters": [
{
"name": "component",
"in": "path",
"required": true,
"description": "Component name: director, storage or client.",
"schema": {
"type": "string"
}
},
{
"name": "action",
"in": "path",
"required": true,
"description": "Component action: start, stop or restart.",
"schema": {
"type": "string"
}
}
]
}
},
"/api/v2/objects": {
"get": {
"tags": ["objects"],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment