Skip to content

List Auto Scaling Group Schedules

GET
/notebooks/autoscale-groups/{group_id}/scheduled-policies/
curl --request GET \
--url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/autoscale-groups/{group_id}/scheduled-policies/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \
--header 'Authorization: Bearer <API_TOKEN>'

Returns the schedules of an Auto Scaling Group, newest first. A schedule changes the group’s minimum and maximum number of VMs at the times you set.

group_id
required
integer

Auto Scaling Group ID

project_id
required
integer

Project ID

active_iam
integer

Active IAM ID (To access contact person account) Find your Active IAM ID here

location
required
string
Allowed values: Delhi Chennai

Location

The schedules

Media typeapplication/json
object
code
integer
message
string
data
Array<object>
object
id
integer
group_id

ID of the Auto Scaling Group.

integer
name

The schedule’s name. Empty when none was sent.

string
<= 128 characters
cron_expression

When the schedule runs, as a cron expression.

string
<= 64 characters
timezone_name

The time zone cron_expression is read in.

string
<= 64 characters
target_min_replicas

Minimum number of VMs the schedule sets.

integer
target_max_replicas

Maximum number of VMs the schedule sets.

integer
enabled

false when the schedule is paused and does not run.

boolean
duration_seconds

How long, in seconds, the schedule holds its range before the group goes back to its own. null when the change is permanent.

integer
nullable
window_ends_at

When the hold that is on now ends. null when the schedule is not holding.

string
nullable
next_run_at

When the schedule runs next. null when it is paused.

string
nullable
last_run_at

When the schedule last ran. null until it has.

string
nullable
created_at
string
nullable
errors
object

Example

{
"code": 200,
"message": "Success",
"data": [
{
"id": 12,
"group_id": 41,
"name": "Morning",
"cron_expression": "0 8 * * 1-5",
"timezone_name": "Asia/Kolkata",
"target_min_replicas": 3,
"target_max_replicas": 10,
"enabled": true,
"duration_seconds": 28800,
"window_ends_at": null,
"next_run_at": "2026-10-22T08:00:00+05:30",
"last_run_at": null,
"created_at": "2026-10-21T10:02:11+00:00"
}
],
"errors": {}
}

project_id is missing or not a number.

Media typeapplication/json
object
code
integer
message
string
data
object
errors
string

Example

{
"code": 400,
"message": "Bad Request",
"data": {},
"errors": "Project ID is missing or invalid"
}

No Auto Scaling Group with that ID in the project and region.

Media typeapplication/json
object
code
integer
message
string
data
object
errors
string

Example

{
"code": 404,
"message": "Bad Request",
"data": {},
"errors": "Autoscale Group not found"
}