Scaleway logo
VPC API

CIDR subnet management for your Private Networks.


List subnets

GET
https://api.scaleway.com
/vpc/v2/regions/{region}/subnets

List any Private Network's subnets. See ListPrivateNetworks to list a specific Private Network's subnets.

List subnets › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
it-mil
nl-ams
pl-waw

List subnets › query Parameters

Sort order of the returned subnets.

Enum values:
created_at_asc
created_at_desc
Default: created_at_asc
page
​integer · int32

Page number to return, from the paginated results.

page_size
​integer · uint32

Maximum number of Private Networks to return per page.

organization_id
​string

Organization ID to filter for. Only subnets belonging to this Organization will be returned. (UUID format)

project_id
​string

Project ID to filter for. Only subnets belonging to this Project will be returned. (UUID format)

subnet_ids
​string[]

Subnet IDs to filter for. Only subnets matching the specified IDs will be returned.

vpc_id
​string

VPC ID to filter for. Only subnets belonging to this VPC will be returned. (UUID format)

List subnets › Responses

200
total_count
​integer · uint32