metalcloud-cli bucket update-config¶
Update bucket configuration with new settings
Synopsis¶
Update the configuration of an existing bucket with new settings or modifications.
This command allows you to modify bucket configuration parameters such as access policies, storage settings, or other configurable properties. The new configuration is provided through either a JSON file or piped input containing the updated settings.
Required Arguments: infrastructure_id_or_label The ID or label of the infrastructure containing the bucket bucket_id The unique identifier of the bucket to update
Required Flags: –config-source string Source of the bucket configuration updates Accepts either ‘pipe’ for piped JSON input or a path to a JSON file
Examples:
Update bucket configuration from a JSON file¶
metalcloud-cli bucket update-config 100 42 –config-source new-config.json
Update configuration using piped input¶
echo ‘{“policy”: “public-read”}’ | metalcloud-cli bucket update-config production bucket-123 –config-source pipe
Update bucket with configuration file¶
metalcloud-cli bucket config-update staging my-bucket –config-source /configs/update.json
metalcloud-cli bucket update-config infrastructure_id_or_label bucket_id [flags]
Options¶
--config-source string Source of the bucket 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 bucket - Manage S3-compatible object storage buckets