JSON RPC
Module description
LogDump - a subsystem that manages cluster dumps and logs
Operations
Delete Imports params
Context model: ImportParams
Request data
Add Imports params
Context model: ImportParams
Request data
{
"context": {
"op": "import_param_add"
},
"data": {
"pre_exec": "<pre_exec>",
"post_exec": "<post_exec>"
}
}
Description
pre_exec [ * ] - List of pre commands
post_exec [ * ] - List of post commands
Show Imports params
Context model: ImportParams
Request data
Update Imports params
Context model: ImportParams
Request data
{
"context": {
"op": "import_param_update"
},
"data": {
"pre_exec": "<pre_exec>",
"post_exec": "<post_exec>"
}
}
Description
pre_exec [ * ] - List of pre commands
post_exec [ * ] - List of post commands
Delete Exports params
Context model: ExportParams
Request data
Add Exports params
Context model: ExportParams
Request data
{
"context": {
"op": "export_param_add"
},
"data": {
"pre_exec": "<pre_exec>",
"post_exec": "<post_exec>",
"db": "<db>",
"sosreport": "<sosreport>",
"path": "<path>",
"passwd": "<passwd>"
}
}
Description
pre_exec [ * ] - List of pre commands
post_exec [ * ] - List of post commands
db [ str ] - Should DB state be exported? ['yes', 'no']
sosreport [ str ] - Should sosreport file be exported? ['yes', 'no']
path [ path ] - Path to the dir where the archive will be exported to
passwd [ str ] - Password for the exported archive
Show Exports params
Context model: ExportParams
Request data
Update Exports params
Context model: ExportParams
Request data
{
"context": {
"op": "export_param_update"
},
"data": {
"pre_exec": "<pre_exec>",
"post_exec": "<post_exec>",
"db": "<db>",
"sosreport": "<sosreport>",
"path": "<path>",
"passwd": "<passwd>"
}
}
Description
pre_exec [ * ] - List of pre commands
post_exec [ * ] - List of post commands
db [ str ] - Should DB state be exported? ['yes', 'no']
sosreport [ str ] - Should sosreport file be exported? ['yes', 'no']
path [ path ] - Path to the dir where the archive will be exported to
passwd [ str ] - Password for the exported archive
Clear import task
Context model: ImportsQ
Request data
Description
uuid [ required ] - Task UUID
Add import task
Context model: ImportsQ
Request data
{
"context": {
"op": "import_add"
},
"data": {
"node": "<node>",
"pre_exec": "<pre_exec>",
"post_exec": "<post_exec>",
"zip": "<zip>"
}
}
Description
node [ * required ] - Node names
pre_exec [ * ] - List of pre commands
post_exec [ * ] - List of post commands
zip [ ] - Zip file name
Show import task
Context model: ImportsQ
Request data
Description
uuid [ required ] - Task UUID
List all imports tasks
Context model: ImportsQ
Request data
Clear export task
Context model: ExportsQ
Request data
Description
uuid [ required ] - Task UUID
node [ ] - Node UUID
Add export task
Context model: ExportsQ
Request data
{
"context": {
"op": "export_add"
},
"data": {
"node": "<node>",
"pre_exec": "<pre_exec>",
"post_exec": "<post_exec>",
"db": "<db>",
"sosreport": "<sosreport>",
"path": "<path>",
"passwd": "<passwd>",
"delete_after": "<delete_after>"
}
}
Description
node [ * required ] - Node names
pre_exec [ * ] - List of pre commands
post_exec [ * ] - List of post commands
db [ str ] - Should DB state be exported? ['yes', 'no']
sosreport [ str ] - Should sosreport file be exported? ['yes', 'no']
path [ path ] - Path to the dir where the archive will be exported to
passwd [ str ] - Password for the exported archive
delete_after [ date ] - Date or number of days after which the archive will be deleted
Show export task
Context model: ExportsQ
Request data
Description
uuid [ required ] - Task UUID
node [ ] - Node UUID
List all export tasks
Context model: ExportsQ
Request data
trace
Request data
Description
trace_token [ str required ] - trace_token
Models
ExportParams
pre_exec [ * ] - List of pre commands
post_exec [ * ] - List of post commands
db [ str ] - Should DB state be exported? ['yes', 'no']
sosreport [ str ] - Should sosreport file be exported? ['yes', 'no']
path [ path ] - Path to the dir where the archive will be exported to
passwd [ str ] - Password for the exported archive
delete_after [ date ] - Date or number of days after which the archive will be deleted
ImportParams
pre_exec [ * ] - List of pre commands
post_exec [ * ] - List of post commands
ExportsQ
uuid [ required ] - Task UUID
node [ * required ] - Node names
pre_exec [ * ] - List of pre commands
post_exec [ * ] - List of post commands
db [ str ] - Should DB state be exported? ['yes', 'no']
sosreport [ str ] - Should sosreport file be exported? ['yes', 'no']
path [ path ] - Path to the dir where the archive will be exported to
passwd [ str ] - Password for the exported archive
delete_after [ date ] - Date or number of days after which the archive will be deleted
ImportsQ
uuid [ required ] - Task UUID
node [ * required ] - Node names
pre_exec [ * ] - List of pre commands
post_exec [ * ] - List of post commands