Skip to content

metalcloud-cli file-share update-config

Update file share configuration

Update the configuration of an existing file share with new settings.

This command allows you to modify various configuration parameters of a file share such as storage size, access permissions, mount options, and other settings.

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 update

Required Flags: —config-source Source of the file share configuration updates Can be ‘pipe’ for stdin input or path to a JSON file

Configuration Format: The configuration should be a JSON object containing the file share properties to update:

  • name: File share name
  • size: Storage size (if supported for expansion)
  • access_mode: Access permissions
  • mount_options: Mount configuration options
  • description: File share description

Examples:

Update file share configuration from a JSON file

Section titled “Update file share configuration from a JSON file”

metalcloud-cli file-share update-config my-infrastructure 12345 —config-source config.json

echo ’{“description”:“Updated shared storage”}’ | metalcloud-cli file-share update-config my-infrastructure 12345 —config-source pipe

metalcloud-cli file-share update-config 100 12345 —config-source /path/to/config.json

metalcloud-cli file-share update-config infrastructure_id_or_label file_share_id [flags]
--config-source string Source of the file share configuration updates. Can be 'pipe' or path to a JSON file.
-h, --help help for update-config
-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")

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

Section titled “Auto generated by spf13/cobra on 11-Aug-2025”