Apache CloudStack
Apache CloudStack Reference
Section titled “Apache CloudStack Reference”Apache CloudStack is the cloud orchestration platform at the core of ZSoftly Private Cloud.
Version
Section titled “Version”Your credentials document specifies the exact CloudStack version deployed in your environment.
Official documentation
Section titled “Official documentation”| Resource | URL |
|---|---|
| Installation Guide | https://docs.cloudstack.apache.org/en/latest/installguide/ |
| Administrator Guide | https://docs.cloudstack.apache.org/en/latest/adminguide/ |
| User Guide | https://docs.cloudstack.apache.org/en/latest/userguide/ |
| API Reference | https://cloudstack.apache.org/api.html |
| Release Notes | https://docs.cloudstack.apache.org/en/latest/releasenotes/ |
ZSoftly does not maintain a mirror of CloudStack documentation. The official documentation above is authoritative.
CloudMonkey (cmk)
Section titled “CloudMonkey (cmk)”CloudMonkey is the official CloudStack CLI. ZSoftly uses the Go binary (v6.5.0), not the Python package.
Install
Section titled “Install”Linux:
ARCH=$(uname -m)case "$ARCH" in x86_64) BINARY="cmk.linux.x86-64" ;; aarch64) BINARY="cmk.linux.arm64" ;; armv7l) BINARY="cmk.linux.arm32" ;; i686) BINARY="cmk.linux.x86" ;; *) echo "Unsupported architecture: $ARCH"; exit 1 ;;esacwget "https://github.com/apache/cloudstack-cloudmonkey/releases/download/6.5.0/${BINARY}"chmod +x "$BINARY"sudo mv "$BINARY" /usr/local/bin/cmkcmk versionmacOS:
ARCH=$(uname -m)case "$ARCH" in arm64) BINARY="cmk.darwin.arm64" ;; x86_64) BINARY="cmk.darwin.x86-64" ;; *) echo "Unsupported architecture: $ARCH"; exit 1 ;;esaccurl -LO "https://github.com/apache/cloudstack-cloudmonkey/releases/download/6.5.0/${BINARY}"chmod +x "$BINARY"sudo mv "$BINARY" /usr/local/bin/cmkcmk versionWindows: Download the .exe from the
releases page, rename to
cmk.exe, and add its folder to PATH.
Configure
Section titled “Configure”Your management server URL is in the credentials document provided at handover.
cmk set profile admincmk set url https://<your-management-server>/client/apicmk set output jsoncmk set asyncblock truecmk set apikey <your-api-key>cmk set secretkey <your-secret-key>Sync the API cache once after first configure:
cmk syncConfig is saved to $HOME/.cmk/config.
Get API credentials
Section titled “Get API credentials”In the CloudStack UI: top-right username menu → View API credentials.
Verify
Section titled “Verify”cmk list zones | grep -o '"name": "[^"]*"'Usage examples
Section titled “Usage examples”cmk list zonescmk list virtualmachines listall=truecmk list routers listall=truecmk listCapabilities | grep cloudstackversionFull reference: github.com/apache/cloudstack-cloudmonkey