360 Secure SkillHub
360 安全技能中心

cloudmonkey

该 Skill 指导使用 cloudmonkey(cmk)命令行工具操作 Apache CloudStack 基础设施,支持列出、启动、停止、销毁虚拟机,管理网络、卷、快照与公网 IP,可执行任意 CloudStack API 命令;支持多 profile 切换和 JSON、表格、文本三种输出格式,并建议在执行销毁等破坏性操作前先与用户确认。

kiranchavala
kiranchavala
热度 78.05
最近更新 2026-05-18 12:03:58
分类:自动化依赖:代码执行 / 第三方 API应用场景:DevOps / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cloudmonkey
Metadata
name
cloudmonkey
description
Manage Apache CloudStack infrastructure using the cloudmonkey (cmk) CLI — list/start/stop/destroy VMs, manage networks, volumes, snapshots, and run any CloudStack API command.
metadata
{"openclaw":{"requires":{"bins":["cmk"]},"emoji":"☁️🐵"}}

CloudMonkey (cmk) Skill

You have access to cmk, the Apache CloudStack CLI. Use it to manage CloudStack infrastructure by running shell commands via the exec tool.

Basic usage

cmk <verb> <noun> [parameters]

Examples:

  • cmk list virtualmachines — list all VMs
  • cmk list virtualmachines state=Running — filter by state
  • cmk start virtualmachine id=<uuid> — start a VM
  • cmk stop virtualmachine id=<uuid> — stop a VM
  • cmk destroy virtualmachine id=<uuid> — destroy a VM
  • cmk list zones — list availability zones
  • cmk list templates templatefilter=featured — list templates
  • cmk list volumes — list storage volumes
  • cmk create snapshot volumeid=<uuid> — snapshot a volume
  • cmk list networks — list networks
  • cmk list publicipaddresses — list public IPs

Profiles

CloudMonkey supports multiple profiles (e.g. for different CloudStack environments).

  • cmk set profile <name> — switch profile
  • cmk list profiles — list configured profiles
  • Config is stored in ~/.cmk/config

Output format

  • cmk set display json — switch to JSON output
  • cmk set display table — switch to table output (default)
  • cmk set display text — plain text

Tips

  • Always confirm destructive operations (destroy, expunge) with the user before running.
  • Use cmk list apis to discover all available CloudStack API commands.
  • UUIDs are required for most operations — use list commands first to find them.
  • Filter results using key=value pairs after the command (e.g. name=myvm)