Longhorn Manager API
The Longhorn Manager REST API provides programmatic access to all Longhorn storage management operations. The API follows the Rancher REST API specification and is served by the Longhorn Manager service, typically accessible within a Kubernetes cluster at port 9500 or via the longhorn-backend service. It provides full lifecycle management for volumes, snapshots, backups, nodes, disks, engine images, recurring jobs, and system settings. The API is used by the Longhorn UI and can be accessed directly for automation and integration. The schema is discoverable at /v1/schemas.
What You Can Do
MCP Tools
listvolumes
Longhorn List volumes
createvolume
Longhorn Create a volume
getvolume
Longhorn Get a volume
deletevolume
Longhorn Delete a volume
attachvolume
Longhorn Attach a volume to a node
detachvolume
Longhorn Detach a volume from its node
expandvolume
Longhorn Expand a volume
createsnapshot
Longhorn Create a snapshot
listsnapshots
Longhorn List snapshots for a volume
deletesnapshot
Longhorn Delete a snapshot
revertsnapshot
Longhorn Revert a volume to a snapshot
backupsnapshot
Longhorn Back up a snapshot
listbackupvolumes
Longhorn List backup volumes
getbackupvolume
Longhorn Get a backup volume
listbackups
Longhorn List backups for a backup volume
listnodes
Longhorn List nodes
getnode
Longhorn Get a node
updatenode
Longhorn Update a node
listengineimages
Longhorn List engine images
createengineimage
Longhorn Create an engine image
getengineimage
Longhorn Get an engine image
deleteengineimage
Longhorn Delete an engine image
listrecurringjobs
Longhorn List recurring jobs
createrecurringjob
Longhorn Create a recurring job
getrecurringjob
Longhorn Get a recurring job
updaterecurringjob
Longhorn Update a recurring job
deleterecurringjob
Longhorn Delete a recurring job
listsettings
Longhorn List all settings
getsetting
Longhorn Get a setting
updatesetting
Longhorn Update a setting
listbackingimages
Longhorn List backing images
createbackingimage
Longhorn Create a backing image
listsystembackups
Longhorn List system backups
createsystembackup
Longhorn Create a system backup