Skip to content

metalcloud-cli template-asset

Manage template assets for OS templates

Manage template assets associated with OS templates. Template assets are files that are used during the deployment process of operating systems on different device types.

Template assets have different usages depending on the device type:

SERVER device type supports:

  • build_source_image: Source image for building (requires file.url)
  • build_component: Component to be copied during build (uses file.path for ISO location)
  • secondary_image: Secondary image mounted in 2nd virtual media (requires file.url)

NETWORK_DEVICE type supports:

  • source_image: NOS image for ONIE install process (requires file.url, uses file.path for HTTP URL)
  • switch_ztp_config: Configuration for ZTP process (uses file.path for HTTP URL)
  • generic: General purpose asset for ZTP process (uses file.path for HTTP URL)

VM device type supports:

  • metadata_source_image: VM image metadata (uses file.path to identify metadata)
  • generic: General purpose asset (uses file.path to identify role)

Available commands: list, get, config-example, create, update, delete

-h, --help help for template-asset
-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”