CreateConfigGroup

更新时间:
复制 MD 格式

Creates a configuration group that contains settings for cloud desktop scheduled tasks.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID. You must set this parameter to cn-shanghai because this feature is not region-specific.

Valid values:

  • cn-shanghai :

    China (Shanghai)

cn-shanghai

Name

string

Yes

The name of the configuration group.

Scheduled task group

Description

string

No

The description of the configuration group.

Scheduled task description content

Type

string

Yes

The type of the configuration group.

Valid values:

  • Timer :

    scheduled task

Timer

ProductType

string

Yes

The product type for the configuration group.

Valid values:

  • CLOUD_DESKTOP :

    cloud desktop

CLOUD_DESKTOP

ConfigTimers

array<object>

No

The scheduled task configurations. This is a list.

array<object>

No

The configuration of a scheduled task.

TimerType

string

Yes

The type of the scheduled task.

Valid values:

  • NoOperationDisconnect :

    disconnect after inactivity

  • NoConnect :

    Disconnect task (requires OperationType)

  • TimerBoot :

    start on schedule

  • TimerReset :

    reset on schedule

  • NoOperationShutdown :

    shut down after inactivity

  • NoOperationHibernate :

    hibernate after inactivity

  • TimerShutdown :

    shut down on schedule

  • NoOperationReboot :

    restart after inactivity

  • TimerReboot :

    restart on schedule

TIMER_BOOT

CronExpression

string

No

The Cron expression for the scheduled task.

Important The Cron expression is specified in UTC. For example, to run a task at 00:00 China Standard Time (UTC+8) every day, use the expression 0 0 16 ? * 1,2,3,4,5,6,7.

0 0 16 ? * 1,2,3,4,5,6,7

Interval

integer

No

The time interval in minutes.

10

Enforce

boolean

No

Specifies whether to force the scheduled task to run.

true

ResetType

string

No

The reset type for the cloud desktop.

Valid values:

  • RESET_TYPE_SYSTEM :

    Resets only the system disk.

  • RESET_TYPE_USER_DISK :

    Resets only the data disk.

  • RESET_TYPE_BOTH :

    Resets both the system and data disks.

RESET_TYPE_SYSTEM

AllowClientSetting

boolean

No

Specifies whether to allow an end user to configure scheduled tasks.

true

OperationType

string

No

The operation type for the scheduled task. This parameter applies only to disconnect tasks.

Valid values:

  • Hibernate :

    hibernate

  • Shutdown :

    shutdown

Shutdown

TriggerType

string

No

The trigger type for inactivity-based scheduled tasks.

Valid values:

  • Advanced :

    smart detection

  • Standard :

    standard detection

Standard

ProcessWhitelist

array

No

The process whitelist for smart detection in inactivity-based scheduled tasks. The scheduled task is not triggered if a process in this whitelist is running.

string

No

The name of the process.

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 image ID. This parameter is used for scheduled image update tasks.

m-5b0vjqbiqu010XXXXXX

LockScreenTime

integer

No

The inactivity period, in seconds, before the screen locks. This feature is available only for AD-joined desktops.

1800

AppointmentTimer

integer

No

The timestamp for a one-time scheduled task. The task runs at the specified time.

1764660600967

PatchId

string

No

KB5082063

CreateSnapshot

boolean

No

VerificationTime

integer

No

VerificationNotificationTime

integer

No

IpSegments

array

No

string

No

Response elements

Element

Type

Description

Example

object

The returned data.

RequestId

string

The request ID.

EE9472BC-0B5D-5458-85CD-C52BDD******

GroupId

string

The configuration group ID.

ccg-0ctwi5zbswtql****

Message

string

The result of the operation.

Examples

Success response

JSON format

{
  "RequestId": "EE9472BC-0B5D-5458-85CD-C52BDD******",
  "GroupId": "ccg-0ctwi5zbswtql****",
  "Message": "无"
}

Error codes

HTTP status code

Error code

Error message

Description

400 TestCode%sTestCode%sTestCode%s TestCodeMsg.%s,TestCodeMsg.%s.TestCodeMsg,%s.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.