metalcloud-cli infrastructure list¶
List infrastructures with optional filtering
Synopsis¶
List all infrastructures with various filtering options to control visibility and scope.
By default, this command shows only active infrastructures owned by the current user. Use the filtering flags to customize the output based on your needs.
Flags: –show-all Show infrastructures from all users (requires admin privileges) –show-ordered Include ordered (created but not yet deployed) infrastructures –show-deleted Include deleted infrastructures in the output
Examples:
List your active infrastructures¶
metalcloud-cli infrastructure list
List all infrastructures including ordered and deleted ones¶
metalcloud-cli infrastructure list –show-all –show-ordered –show-deleted
List only your ordered infrastructures¶
metalcloud-cli infrastructure list –show-ordered
List all infrastructures from all users (admin only)¶
metalcloud-cli infrastructure list –show-all
metalcloud-cli infrastructure list [flags...] [flags]
Options¶
-h, --help help for list
--show-all If set will return all infrastructures.
--show-deleted If set will also return deleted infrastructures.
--show-ordered If set will also return ordered (created but not deployed) infrastructures.
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 infrastructure - Manage infrastructure resources and configurations