When the Crontab function is enabled, the system will scan the Crontab file at the minutes 0, 10, 20, 30, 40 and 50 of each hour and execute the CLI commands whose start time is within five minutes earlier or later than these minutes.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| enable_crontab | enable_crontab | boolean | |
| crontab_config | crontab_config | clitext |
{
"Crontab": {
"meta": {
"abstract": false,
"verbose_name": Crontab Configuration,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||
|---|---|---|---|---|---|---|---|
| using | UnionField (Nested Field. It should be a dict.)
|
Format
{
"url": xxxx
}
|
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| url | importurl |
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: enable_crontab, crontab_config, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: enable_crontab, crontab_config, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| enable_crontab | enable_crontab | boolean | |
| crontab_config | crontab_config | clitext |
{
"Crontab": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"Crontab": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"Crontab": {
<field>:<value>,
}
}
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: enable_crontab, crontab_config, |
| Field Name | Type | Description |
|---|---|---|
| enable_crontab | boolean |
All configuration fields and their values are replied:
{
"Crontab": {
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}