Skip to main content
Glama

liara_create_snapshot

Create a snapshot of a virtual machine to capture its current state for backup, recovery, or cloning purposes.

Instructions

Create a VM snapshot

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vmIdYesThe VM ID
nameNoSnapshot name (optional)

Implementation Reference

  • The main handler function that implements the logic for creating a VM snapshot. It validates the VM ID, creates a specialized IaaS client, and makes a POST request to the Liara IaaS API to create the snapshot.
    export async function createSnapshot( client: LiaraClient, vmId: string, name?: string ): Promise<{ snapshotId: string; name: string; createdAt: string }> { validateRequired(vmId, 'VM ID'); const iaasClient = createIaaSClient(client); const body = name ? { name } : {}; return await iaasClient.post<{ snapshotId: string; name: string; createdAt: string }>( `/vm/${vmId}/snapshots`, body ); }

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/razavioo/liara-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server