metalcloud-cli drive update-config¶
Update drive configuration settings
Synopsis¶
Update drive configuration settings using JSON configuration.
This command updates the configuration of an existing drive. The new configuration must be provided via JSON file or stdin pipe. Only the specified fields will be updated.
Arguments: infrastructure_id_or_label The ID or label of the infrastructure drive_id The unique identifier of the drive
Required Flags: –config-source string Source of the drive configuration updates Can be ‘pipe’ (for stdin input) or path to a JSON file
Examples:
Update drive configuration from JSON file¶
metalcloud-cli drive update-config my-infrastructure 12345 –config-source drive-updates.json
Update drive configuration from stdin¶
echo ‘{“size_bytes”: 2000000000}’ | metalcloud-cli drive update-config my-infrastructure 12345 –config-source pipe
Update using configuration file path¶
metalcloud-cli drive config-update 1001 67890 –config-source /path/to/config.json
metalcloud-cli drive update-config infrastructure_id_or_label drive_id [flags]
Options¶
--config-source string Source of the drive 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 drive - Manage drives within infrastructures