云桌面 Workspace-修改定时任务:请求示例

时间:2025-02-12 15:01:18

请求示例

{  "scheduled_type" : "FIXED_TIME",  "day_interval" : 1,  "week_list" : "1,2,7",  "month_list" : "1,3,12",  "date_list" : "1,2,28,L",  "scheduled_date" : "2022-12-23",  "scheduled_time" : "09:00:00",  "expire_time" : "2022-12-31 09:00:00",  "gray_count" : 1000,  "gray_desktop_ids" : [ "string" ],  "gray_fail_threshold" : 1000,  "life_cycle_type" : "string",  "time_zone" : "Asia/Shanghai",  "task_name" : "测试任务",  "force_execute" : false,  "description" : "一个描述。",  "enable" : true,  "extra_params" : "{ \"notify_message\": \"测试\" }",  "apply_objects" : [ {    "object_id" : "2b31e-d520xxxx-xxebedb6-e57xxxxxx",    "object_type" : "DESKTOP",    "object_name" : "测试桌面"  } ],  "priority" : 50,  "is_gray" : true,  "wait_time" : 43200}
support.huaweicloud.com/api-workspace/UpdateScheduledTasks.html