Modify settings in a configuration group, such as for scheduled tasks.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Set this parameter to |
cn-shanghai |
| GroupId |
string |
Yes |
The ID of the configuration group. |
cg-i1ruuudp92qpj**** |
| ConfigTimers |
array<object> |
No |
The scheduled task configurations. |
|
|
array<object> |
No |
A single scheduled task configuration. |
||
| TimerType |
string |
No |
The type of the scheduled task. Valid values:
|
TimerBoot |
| CronExpression |
string |
No |
The cron expression for the scheduled task. Note
The cron expression is based on UTC. For example, to run a task daily at 00:00 China Standard Time (UTC+8), set the expression to |
0 0 16 ? * 1,2,3,4,5,6,7 |
| Interval |
integer |
No |
The interval in minutes. |
10 |
| Enforce |
boolean |
No |
If |
false |
| ResetType |
string |
No |
Specifies which disks to reset. Valid values:
|
RESET_TYPE_SYSTEM |
| AllowClientSetting |
boolean |
No |
If |
true |
| OperationType |
string |
No |
The action to perform. This parameter is valid only when Valid values:
|
Shutdown |
| TriggerType |
string |
No |
The trigger type for scheduled tasks that are based on user inactivity. Valid values:
|
Standard |
| ProcessWhitelist |
array |
No |
A list of processes that, if running, prevent an idle task from being triggered. This only applies when |
|
|
string |
No |
The process name. |
chrome |
|
| NotificationTime |
integer |
No |
||
| SegmentTimers |
array<object> |
No |
||
|
object |
No |
|||
| OperationType |
string |
No |
||
| StartCronExpression |
string |
No |
||
| EndCronExpression |
string |
No |
||
| Interval |
integer |
No |
||
| TriggerType |
string |
No |
||
| ProcessWhitelist |
array |
No |
||
|
string |
No |
|||
| NotificationTime |
integer |
No |
||
| TimerOrder |
integer |
No |
||
| Timezone |
string |
No |
||
| Enforce |
boolean |
No |
||
| ResetType |
string |
No |
||
| ImageId |
string |
No |
The ID of the image for a scheduled image update task. |
m-5b0vjqbiqu010XXXXXX |
| LockScreenTime |
integer |
No |
The number of seconds of inactivity before the screen is locked. This setting only applies to AD desktops. |
1800 |
| AppointmentTimer |
integer |
No |
The execution time for a one-time task, specified as a Unix timestamp in milliseconds. |
1764660600967 |
| VerificationTime |
integer |
No |
||
| VerificationNotificationTime |
integer |
No |
||
| IpSegments |
array |
No |
||
|
string |
No |
|||
| Name |
string |
No |
The name of the configuration group. |
Scheduled task |
| Description |
string |
No |
The description of the configuration group. |
Scheduled task |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| GroupId |
string |
The group ID. |
cg-i1ruuudp92qpj**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"GroupId": "cg-i1ruuudp92qpj****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationTooFrequent | The operation is too frequent, please try again later. | Operation is too frequent, please try again later |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.