metalcloud-cli file-share get-hosts

Get hosts configured for a file share

Synopsis

Get the list of hosts that are configured to access the specified file share.

This command displays all hosts that have been granted access to the file share, including their mount configurations and access permissions.

Required Arguments: infrastructure_id_or_label The infrastructure ID (numeric) or label containing the file share file_share_id The ID of the file share to get hosts for

Examples:

Get hosts for a file share by infrastructure label and file share ID

metalcloud-cli file-share get-hosts my-infrastructure 12345

Get hosts using infrastructure ID

metalcloud-cli file-share get-hosts 100 12345

metalcloud-cli file-share get-hosts infrastructure_id_or_label file_share_id [flags]

Options

  -h, --help   help for get-hosts

Options inherited from parent commands

  -k, --api_key string         MetalCloud API key
  -c, --config string          Config file path
  -d, --debug                  Set to enable debug logging
  -e, --endpoint string        MetalCloud API endpoint
  -f, --format string          Output format. Supported values are 'text','csv','md','json','yaml'. (default "text")
  -i, --insecure_skip_verify   Set to allow insecure transport
  -l, --log_file string        Log file path
  -v, --verbosity string       Log level verbosity (default "INFO")

SEE ALSO

Auto generated by spf13/cobra on 11-Aug-2025