metalcloud-cli file-share update-config¶
Update file share configuration
Synopsis¶
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¶
metalcloud-cli file-share update-config my-infrastructure 12345 –config-source config.json
Update using pipe input¶
echo ‘{“description”:”Updated shared storage”}’ | metalcloud-cli file-share update-config my-infrastructure 12345 –config-source pipe
Update with infrastructure ID¶
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]
Options¶
--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
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¶
metalcloud-cli file-share - Manage file shares for infrastructure resources