metalcloud-cli storage credentials

Retrieve credentials for a storage pool

Synopsis

Retrieve authentication credentials for a specific storage pool.

This command returns the credentials required to connect to and manage the storage pool. The credentials typically include connection information, authentication tokens, or access keys depending on the storage driver type.

Arguments: storage_id The numeric ID of the storage pool

Examples:

Get credentials for storage pool with ID 123

metalcloud storage credentials 123

Get credentials and save to file

metalcloud storage credentials 456 > storage-creds.json

metalcloud-cli storage credentials storage_id [flags]

Options

  -h, --help   help for credentials

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