Skip to main content
Glama

liara_detach_network

Remove a network from a virtual machine to manage connectivity and isolate resources on the Liara cloud platform.

Instructions

Detach a network from a VM

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vmIdYesThe VM ID
networkIdYesThe network ID

Implementation Reference

  • Executes the detachment of a network from a specified virtual machine using the Liara IaaS API. This is the core logic for the liara_detach_network tool.
    export async function detachNetwork( client: LiaraClient, vmId: string, networkId: string ): Promise<void> { validateRequired(vmId, 'VM ID'); validateRequired(networkId, 'Network ID'); const iaasClient = createIaaSClient(client); await iaasClient.delete(`/vm/${vmId}/networks/${networkId}`); }

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