metalctl firewall create

create a firewall

Synopsis

create a new firewall connected to the given networks.

metalctl firewall create [flags]

Options

  -d, --description string    Description of the firewall to create. [optional]
  -h, --help                  help for create
  -H, --hostname string       Hostname of the firewall. [required]
  -I, --id string             ID of a specific firewall to allocate, if given, size and partition are ignored. Need to be set to reserved (--reserve) state before.
  -i, --image string          OS Image to install. [required]
      --ips strings           Sets the firewall's IP address. Usage: [--ips[=IPV4-ADDRESS[,IPV4-ADDRESS]...]]...
                              IPV4-ADDRESS specifies the IPv4 address to add.
                              It can only be used in conjunction with --networks.
  -n, --name string           Name of the firewall. [optional]
      --networks strings      Adds network(s). Usage: --networks NETWORK[:MODE][,NETWORK[:MODE]]... [--networks NETWORK[:MODE][,
                              NETWORK[:MODE]]...]...
                              NETWORK specifies the id of an existing network.
                              MODE can be omitted or one of:
                              	auto	IP address is automatically acquired from the given network
                              	noauto	No automatic IP address acquisition
  -S, --partition string      partition/datacenter where the firewall is created. [required, except for reserved machines]
  -P, --project string        Project where the firewall should belong to. [required]
  -s, --size string           Size of the firewall. [required, except for reserved machines]
  -p, --sshpublickey string   SSH public key for access via ssh and console. [optional]
                              Can be either the public key as string, or pointing to the public key file to use e.g.: "@~/.ssh/id_rsa.pub".
                              If ~/.ssh/[id_ed25519.pub | id_rsa.pub | id_dsa.pub] is present it will be picked as default, matching the first one in this order.
      --tags strings          tags to add to the firewall, use it like: --tags "tag1,tag2" or --tags "tag3".
      --userdata string       cloud-init.io compatible userdata. [optional]
                              Can be either the userdata as string, or pointing to the userdata file to use e.g.: "@/tmp/userdata.cfg".

Options inherited from parent commands

      --apitoken string        api token to authenticate. Can be specified with METALCTL_APITOKEN environment variable.
  -c, --config string          alternative config file path, (default is ~/.metalctl/config.yaml).
                               Example config.yaml:
                               
                               ---
                               apitoken: "alongtoken"
                               ...
                               
                               
      --debug                  debug output
  -f, --file string            filename of the create or update request in yaml format, or - for stdin.
                               Example image update:
                               
                               # metalctl image describe ubuntu-19.04 > ubuntu.yaml
                               # vi ubuntu.yaml
                               ## either via stdin
                               # cat ubuntu.yaml | metalctl image update -f -
                               ## or via file
                               # metalctl image update -f ubuntu.yaml
                               
      --kubeconfig string      Path to the kube-config to use for authentication and authorization. Is updated by login.
      --no-headers             do not print headers of table output format (default print headers)
      --order string           order by (comma separated) column(s), possible values: size|id|status|event|when|partition|project
  -o, --output-format string   output format (table|wide|markdown|json|yaml|template), wide is a table with more columns. (default "table")
      --template string        output template for template output-format, go template format.
                               For property names inspect the output of -o json or -o yaml for reference.
                               Example for machines:
                               
                               metalctl machine list -o template --template "{{ .id }}:{{ .size.id  }}"
                               
                               
  -u, --url string             api server address. Can be specified with METALCTL_URL environment variable.

SEE ALSO

Auto generated by spf13/cobra on 14-Aug-2020