Skip to content

metalcloud-cli server-cleanup-policy list

List all server cleanup policies

List all server cleanup policies configured in the system.

This command displays a table of all available server cleanup policies with their key attributes including ID, name, status, and configuration summary.

Output Format: By default, output is formatted as a table. Use global flags to change output format: —format=json JSON output —format=csv CSV output —format=yaml YAML output

Required Permissions:

  • server_cleanup_policies:read

Examples:

List all server cleanup policies in table format

Section titled “List all server cleanup policies in table format”

metalcloud-cli server-cleanup-policy list

metalcloud-cli server-cleanup-policy list —format=json

metalcloud-cli scp ls —format=csv

metalcloud-cli server-cleanup-policy list [flags]
-h, --help help for list
-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”