pcloud compute instances detach-network

Detach a Network from a VM Instance

Synopsis

Detach a Network from a VM Instance in IBM Power Cloud. If “macAddress” is not specified, then a confirmation is asked to the user to verify that all attachments for that given network can be detached. If “macAddress” is specified, only that single attachment is detached from the given network (no confirmation is required). Note that InstanceID can be used as parameter instead of InstanceName.

pcloud compute instances detach-network <InstanceName> --network <NetworkName> [flags]

Options

  -h, --help                help for detach-network
  -m, --macAddress string   MAC address to detach (optional). If no MAC address is provided, all attachments of the Network are detached after user confirmation
  -n, --network string      Network to detach from the VM Instance (note that 'NetworkName' or 'NetworkID' can be used) (required)
  -q, --quiet               Quiet detach (no confirmation is required)

Options inherited from parent commands

  -F, --format string      Available formats: 'table', 'yaml', 'json', 'csv'.
                            Default is command specific.
                            Can be used with describe and list subcommands.
  -D, --log.dir string     Override Log file directory
  -L, --log.file string    Override Log file name
  -V, --verbosity string   Override Log verbosity

SEE ALSO