type => 'boolean',
default => 0,
optional => 1,
+ description => 'Only list tasks with a status of ERROR.',
},
source => {
type => 'string',
method => 'DELETE',
description => 'Stop a task.',
permissions => {
- description => "The user needs 'Sys.Modify' permissions on '/nodes/<node>' if the task does not belong to him.",
+ description => "The user needs 'Sys.Modify' permissions on '/nodes/<node>' if they aren't the owner of the task.",
user => 'all',
},
protected => 1,
path => '{upid}/log',
method => 'GET',
permissions => {
- description => "The user needs 'Sys.Audit' permissions on '/nodes/<node>' if the task does not belong to him.",
+ description => "The user needs 'Sys.Audit' permissions on '/nodes/<node>' if they aren't the owner of the task.",
user => 'all',
},
protected => 1,
additionalProperties => 0,
properties => {
node => get_standard_option('pve-node'),
- upid => { type => 'string' },
+ upid => {
+ type => 'string',
+ description => "The task's unique ID.",
+ },
start => {
type => 'integer',
minimum => 0,
default => 0,
optional => 1,
+ description => "The line number to start printing at.",
},
limit => {
type => 'integer',
minimum => 0,
default => 50,
optional => 1,
+ description => "The maximum amount of lines that should be printed.",
},
},
},
path => '{upid}/status',
method => 'GET',
permissions => {
- description => "The user needs 'Sys.Audit' permissions on '/nodes/<node>' if the task does not belong to him.",
+ description => "The user needs 'Sys.Audit' permissions on '/nodes/<node>' if they are not the owner of the task.",
user => 'all',
},
protected => 1,
additionalProperties => 0,
properties => {
node => get_standard_option('pve-node'),
- upid => { type => 'string' },
+ upid => {
+ type => 'string',
+ description => "The task's unique ID.",
+ },
},
},
returns => {