Skip to content

stratumctl subnets

Manage subnets

Terminal window
stratumctl subnets [flags]

Aliases: subnet

Create a subnet (returns 202)

Terminal window
stratumctl subnets create <name> [flags]
Terminal window
stratumctl subnets create web-snet --vpc vpc-9k2m4x7q
stratumctl subnets create dmz --vpc vpc-9k2m4x7q --cidr-block 10.0.1.0/24 --type public
stratumctl subnets create db-snet --vpc vpc-9k2m4x7q --prefix-length 26
Flag Type Default Description
--az string Availability zone override
--cidr-block string CIDR block within the VPC; omitted = the first free /24 (or –prefix-length) of the VPC
--description string Free-form description
--display-name string Human-friendly display name
--prefix-length int 0 size of the auto-assigned block when –cidr-block is omitted (16-28, default 24)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--type string private Subnet type (public | private)
--vpc string Parent VPC ID (required)

Soft-delete a subnet

Terminal window
stratumctl subnets delete <subnet-id> [flags]
Terminal window
stratumctl subnets delete subnet-3k8m2x7q
Flag Type Default Description
--force bool false delete a platform-owned resource anyway (needs platform:ManageInternal; audited; the platform re-creates it)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe a subnet

Terminal window
stratumctl subnets get <subnet-id> [flags]
Terminal window
stratumctl subnets get subnet-3k8m2x7q
stratumctl subnets get subnet-3k8m2x7q --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List subnets in a project

Terminal window
stratumctl subnets list [flags]
Terminal window
stratumctl subnets list
stratumctl subnets list --vpc vpc-9k2m4x7q --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--vpc string Filter by VPC ID