stratumctl network-interfaces
Manage network interfaces
stratumctl network-interfaces [flags]Aliases: network-interface, nic, nics, eni
Subcommands
Section titled “Subcommands”stratumctl network-interfaces attach: Attach a NIC to an instancestratumctl network-interfaces create: Create a network interface (returns 202)stratumctl network-interfaces delete: Soft-delete a network interfacestratumctl network-interfaces detach: Detach a NIC from its instancestratumctl network-interfaces get: Describe a network interfacestratumctl network-interfaces list: List network interfaces in a project
stratumctl network-interfaces attach
Section titled “stratumctl network-interfaces attach”Attach a NIC to an instance
stratumctl network-interfaces attach <nic-id> [flags]Examples
Section titled “Examples”stratumctl network-interfaces attach nic-7k2m9x4q8a --instance i-uy3ureaklqstratumctl network-interfaces attach nic-7k2m9x4q8a --instance i-uy3ureaklq --device-index 1| Flag | Type | Default | Description |
|---|---|---|---|
--device-index |
int | 0 |
NIC order in the instance’s domain XML |
--instance |
string | Target instance ID (required) | |
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) |
stratumctl network-interfaces create
Section titled “stratumctl network-interfaces create”Create a network interface (returns 202)
stratumctl network-interfaces create <name> [flags]Examples
Section titled “Examples”stratumctl network-interfaces create web-nic --subnet subnet-3k8m2x7qstratumctl network-interfaces create web-nic --subnet subnet-3k8m2x7q --security-group sg-3f8d2k9x| Flag | Type | Default | Description |
|---|---|---|---|
--description |
string | Free-form description | |
--display-name |
string | Human-friendly display name | |
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) | |
--security-group |
stringSlice | Security group ID (repeatable, max 5) | |
--source-dest-check |
bool | true |
Drop traffic whose src/dst doesn’t match the NIC IP |
--subnet |
string | Parent subnet ID (required) |
stratumctl network-interfaces delete
Section titled “stratumctl network-interfaces delete”Soft-delete a network interface
stratumctl network-interfaces delete <nic-id> [flags]Examples
Section titled “Examples”stratumctl network-interfaces delete nic-7k2m9x4q8a| Flag | Type | Default | Description |
|---|---|---|---|
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) |
stratumctl network-interfaces detach
Section titled “stratumctl network-interfaces detach”Detach a NIC from its instance
stratumctl network-interfaces detach <nic-id> [flags]Examples
Section titled “Examples”stratumctl network-interfaces detach nic-7k2m9x4q8a| Flag | Type | Default | Description |
|---|---|---|---|
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) |
stratumctl network-interfaces get
Section titled “stratumctl network-interfaces get”Describe a network interface
stratumctl network-interfaces get <nic-id> [flags]Examples
Section titled “Examples”stratumctl network-interfaces get nic-7k2m9x4q8astratumctl network-interfaces get nic-7k2m9x4q8a --output json| Flag | Type | Default | Description |
|---|---|---|---|
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) |
stratumctl network-interfaces list
Section titled “stratumctl network-interfaces list”List network interfaces in a project
stratumctl network-interfaces list [flags]Examples
Section titled “Examples”stratumctl network-interfaces liststratumctl network-interfaces list --instance i-uy3ureaklq --output json| Flag | Type | Default | Description |
|---|---|---|---|
--instance |
string | Filter by attached instance | |
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) | |
--subnet |
string | Filter by subnet ID |
