stratumctl subnets
Manage subnets
stratumctl subnets [flags]Aliases: subnet
Subcommands
Section titled “Subcommands”stratumctl subnets create: Create a subnet (returns 202)stratumctl subnets delete: Soft-delete a subnetstratumctl subnets get: Describe a subnetstratumctl subnets list: List subnets in a project
stratumctl subnets create
Section titled “stratumctl subnets create”Create a subnet (returns 202)
stratumctl subnets create <name> [flags]Examples
Section titled “Examples”stratumctl subnets create web-snet --vpc vpc-9k2m4x7qstratumctl subnets create dmz --vpc vpc-9k2m4x7q --cidr-block 10.0.1.0/24 --type publicstratumctl 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) |
stratumctl subnets delete
Section titled “stratumctl subnets delete”Soft-delete a subnet
stratumctl subnets delete <subnet-id> [flags]Examples
Section titled “Examples”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) |
stratumctl subnets get
Section titled “stratumctl subnets get”Describe a subnet
stratumctl subnets get <subnet-id> [flags]Examples
Section titled “Examples”stratumctl subnets get subnet-3k8m2x7qstratumctl subnets get subnet-3k8m2x7q --output json| Flag | Type | Default | Description |
|---|---|---|---|
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) |
stratumctl subnets list
Section titled “stratumctl subnets list”List subnets in a project
stratumctl subnets list [flags]Examples
Section titled “Examples”stratumctl subnets liststratumctl 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 |
