All Products
Search
Document Center

Function Compute:ScheduledPolicy

Last Updated:Jan 28, 2026

Parameter

Type

Description

Example

object

The policy.

name

string

The policy name.

startTime

string

The start time.

endTime

string

The end time.

target

integer

The current number of target resources. If a metric-based auto scaling policy or a scheduled policy is in effect, this parameter specifies the number of resources calculated by the policy. Otherwise, this parameter specifies the default number of provisioned instances.

Note

How is this different from defaultTarget?
Assume that you set the number of provisioned instances to 1 and then add a scheduled auto scaling policy to set the number to 5 for a specific time period.

  • When the scheduled policy is active, target is 5 and defaultTarget is 1.

  • When the scheduled policy is inactive, both target and defaultTarget are 1.

scheduleExpression

string

The schedule configuration.

timeZone

string

The time zone. If this parameter is left empty, the times for startTime, endTime, and scheduleExpression must be in UTC format.