ByCloud Docs
GuidesCLIAPISDK

List subnets

bycloud networking subnets list [flags]

List all subnets in the current project

Options

--cidr

stringoptional

Filter by CIDR

--ip_version

integeroptional

Filter by IP version

Values: 4, 6

--limit

integeroptional

Maximum number of items to return

Default: 20

--marker

stringoptional

ID of the last item from the previous page (for pagination)

--name

stringoptional

Filter by name (exact match or prefix with *)

--network_id

stringoptional

Filter by network ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

--tags

stringoptional

Filter by tags (comma-separated)

Command

bycloud networking subnets list

Output

ID CRN NAME DESCRIPTION NETWORK_ID
550e8400-e29b-41d4-a716-446655 crn:spo1:network:subnet:550e84 private-subnet string 550e8400-e29b-41d4-a716-446655
550e8400-e29b-41d4-a716-446655 crn:spo1:network:subnet:550e84 private-subnet string 550e8400-e29b-41d4-a716-446655