Scaleway logo
Autoscaling Groups API

Autoscaling groups automatically adjust the number of Instances based on metrics like CPU or memory usage. This allows you to automatically scale your infrastructure up or down to meet demand while optimizing costs.


List autoscaling groups

GET
https://api.scaleway.com
/autoscaling/v1alpha2/zones/{zone}/groups

List all autoscaling groups in a project.

List autoscaling groups › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
fr-par-3
nl-ams-1
nl-ams-2
nl-ams-3
pl-waw-1
pl-waw-2

List autoscaling groups › query Parameters

project_id
​string · required

Project ID to filter groups.

Order criteria for listing groups.

Enum values:
created_at_desc
created_at_asc
Default: created_at_desc
page_size
​integer · uint32

Page size for pagination.

page_token
​string

Token for pagination.

template_id
​string

Template ID to filter groups.

load_balancer_id
​string

Load balancer ID to filter groups.

List autoscaling groups › Responses

200

List of group summaries.

next_page_token
​string | null

Token for the next page of results.

total_count
​integer · uint64

Total number of groups.


Create an autoscaling group

POST
https://api.scaleway.com
/autoscaling/v1alpha2/zones/{zone}/groups

Create a new autoscaling group with the specified configuration including template, scaling policy, and optional load balancer settings.

Create an autoscaling group › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
fr-par-3
nl-ams-1
nl-ams-2
nl-ams-3
pl-waw-1
pl-waw-2

Create an autoscaling group › Request Body

project_id
​string

Project ID to create the group in.

name
​string

Name of the autoscaling group.

tags
​string[]

Tags associated with the group.

template_id
​string

Template ID for instances in this group.

Scaling policy configuration.

​scaleway.autoscaling.v1alpha2.LoadBalancerConfigurationSpec

Optional load balancer configuration.

Create an autoscaling group › Responses

200
srn
​string · pattern: ^srn://autoscaling\.…

SRN of the Autoscaling Group.

id
​string

Unique identifier of the autoscaling group.

project_id
​string

Project ID owning this group.

name
​string

Name of the autoscaling group.

tags
​string[]

Tags associated with the group.

created_at
​string | null · date-time

Creation timestamp of the group. (RFC 3339 format)

updated_at
​string | null · date-time

Last update timestamp of the group. (RFC 3339 format)

Current status of the autoscaling group.

Enum values:
unknown_group_status
active
scaling_out
scaling_in
refreshing
healing
scaling_failure
deleting
Default: unknown_group_status

List of active alerts on the group.

current_size
​integer · uint32

Current number of instances in the group.

target_size
​integer · uint32

Target number of instances the group is scaling to.

last_scale_out_at
​string | null · date-time

Timestamp of the last scale out event. (RFC 3339 format)

last_scale_in_at
​string | null · date-time

Timestamp of the last scale in event. (RFC 3339 format)

template_id
​string

The Instance template ID used to create instances in this group.

Scaling policy configuration.

Optional load balancer configuration.

zone
​string

Zone of the Autoscaling Group.


Get an autoscaling group

GET
https://api.scaleway.com
/autoscaling/v1alpha2/zones/{zone}/groups/{group_id}

Get details of a specified autoscaling group including its configuration, current size, and status.

Get an autoscaling group › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
fr-par-3
nl-ams-1
nl-ams-2
nl-ams-3
pl-waw-1
pl-waw-2
group_id
​string · required

ID of the group to get.

Get an autoscaling group › Responses

200
srn
​string · pattern: ^srn://autoscaling\.…

SRN of the Autoscaling Group.

id
​string

Unique identifier of the autoscaling group.

project_id
​string

Project ID owning this group.

name
​string

Name of the autoscaling group.

tags
​string[]

Tags associated with the group.

created_at
​string | null · date-time

Creation timestamp of the group. (RFC 3339 format)

updated_at
​string | null · date-time

Last update timestamp of the group. (RFC 3339 format)

Current status of the autoscaling group.

Enum values:
unknown_group_status
active
scaling_out
scaling_in
refreshing
healing
scaling_failure
deleting
Default: unknown_group_status

List of active alerts on the group.

current_size
​integer · uint32

Current number of instances in the group.

target_size
​integer · uint32

Target number of instances the group is scaling to.

last_scale_out_at
​string | null · date-time

Timestamp of the last scale out event. (RFC 3339 format)

last_scale_in_at
​string | null · date-time

Timestamp of the last scale in event. (RFC 3339 format)

template_id
​string

The Instance template ID used to create instances in this group.

Scaling policy configuration.

Optional load balancer configuration.

zone
​string

Zone of the Autoscaling Group.


Update an autoscaling group

PATCH
https://api.scaleway.com
/autoscaling/v1alpha2/zones/{zone}/groups/{group_id}

Update the configuration of a specified autoscaling group including name, tags, template, scaling policy, and load balancer settings.

Update an autoscaling group › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
fr-par-3
nl-ams-1
nl-ams-2
nl-ams-3
pl-waw-1
pl-waw-2
group_id
​string · required

ID of the group to update.

Update an autoscaling group › Request Body

name
​string | null

New name for the group.

tags
​array | null

New tags for the group.

template_id
​string | null

New template ID for instances.

New scaling policy configuration.

​scaleway.autoscaling.v1alpha2.LoadBalancerConfigurationSpec

New load balancer configuration.

Update an autoscaling group › Responses

200
srn
​string · pattern: ^srn://autoscaling\.…

SRN of the Autoscaling Group.

id
​string

Unique identifier of the autoscaling group.

project_id
​string

Project ID owning this group.

name
​string

Name of the autoscaling group.

tags
​string[]

Tags associated with the group.

created_at
​string | null · date-time

Creation timestamp of the group. (RFC 3339 format)

updated_at
​string | null · date-time

Last update timestamp of the group. (RFC 3339 format)

Current status of the autoscaling group.

Enum values:
unknown_group_status
active
scaling_out
scaling_in
refreshing
healing
scaling_failure
deleting
Default: unknown_group_status

List of active alerts on the group.

current_size
​integer · uint32

Current number of instances in the group.

target_size
​integer · uint32

Target number of instances the group is scaling to.

last_scale_out_at
​string | null · date-time

Timestamp of the last scale out event. (RFC 3339 format)

last_scale_in_at
​string | null · date-time

Timestamp of the last scale in event. (RFC 3339 format)

template_id
​string

The Instance template ID used to create instances in this group.

Scaling policy configuration.

Optional load balancer configuration.

zone
​string

Zone of the Autoscaling Group.


Delete an autoscaling group

DELETE
https://api.scaleway.com
/autoscaling/v1alpha2/zones/{zone}/groups/{group_id}

Delete a specified autoscaling group and all its associated resources.

Delete an autoscaling group › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
fr-par-3
nl-ams-1
nl-ams-2
nl-ams-3
pl-waw-1
pl-waw-2
group_id
​string · required

ID of the group to delete.

Delete an autoscaling group › Responses

200
srn
​string · pattern: ^srn://autoscaling\.…

SRN of the Autoscaling Group.

id
​string

Unique identifier of the autoscaling group.

project_id
​string

Project ID owning this group.

name
​string

Name of the autoscaling group.

tags
​string[]

Tags associated with the group.

created_at
​string | null · date-time

Creation timestamp of the group. (RFC 3339 format)

updated_at
​string | null · date-time

Last update timestamp of the group. (RFC 3339 format)

Current status of the autoscaling group.

Enum values:
unknown_group_status
active
scaling_out
scaling_in
refreshing
healing
scaling_failure
deleting
Default: unknown_group_status

List of active alerts on the group.

current_size
​integer · uint32

Current number of instances in the group.

target_size
​integer · uint32

Target number of instances the group is scaling to.

last_scale_out_at
​string | null · date-time

Timestamp of the last scale out event. (RFC 3339 format)

last_scale_in_at
​string | null · date-time

Timestamp of the last scale in event. (RFC 3339 format)

template_id
​string

The Instance template ID used to create instances in this group.

Scaling policy configuration.

Optional load balancer configuration.

zone
​string

Zone of the Autoscaling Group.


Refresh an autoscaling group

POST
https://api.scaleway.com
/autoscaling/v1alpha2/zones/{zone}/groups/{group_id}/refresh

This will replace all the instances of the group. Its main use case is applying changes if the instance template has been updated.

Refresh an autoscaling group › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
fr-par-3
nl-ams-1
nl-ams-2
nl-ams-3
pl-waw-1
pl-waw-2
group_id
​string · required

Refresh an autoscaling group › Request Body

Refresh an autoscaling group › Responses

200
srn
​string · pattern: ^srn://autoscaling\.…

SRN of the Autoscaling Group.

id
​string

Unique identifier of the autoscaling group.

project_id
​string

Project ID owning this group.

name
​string

Name of the autoscaling group.

tags
​string[]

Tags associated with the group.

created_at
​string | null · date-time

Creation timestamp of the group. (RFC 3339 format)

updated_at
​string | null · date-time

Last update timestamp of the group. (RFC 3339 format)

Current status of the autoscaling group.

Enum values:
unknown_group_status
active
scaling_out
scaling_in
refreshing
healing
scaling_failure
deleting
Default: unknown_group_status

List of active alerts on the group.

current_size
​integer · uint32

Current number of instances in the group.

target_size
​integer · uint32

Target number of instances the group is scaling to.

last_scale_out_at
​string | null · date-time

Timestamp of the last scale out event. (RFC 3339 format)

last_scale_in_at
​string | null · date-time

Timestamp of the last scale in event. (RFC 3339 format)

template_id
​string

The Instance template ID used to create instances in this group.

Scaling policy configuration.

Optional load balancer configuration.

zone
​string

Zone of the Autoscaling Group.