UNPKG

n8n-nodes-proxmox

Version:

n8n community node for Proxmox Virtual Environment (VE) API integration with VM, container, storage, and cluster management capabilities

33 lines (32 loc) 1.03 kB
import { IExecuteFunctions } from 'n8n-workflow'; /** * Handle ProxMox API errors with context-specific messages */ export declare function handleProxMoxError(this: IExecuteFunctions, error: any, operation: string, resource: string): never; /** * Validate required parameters for ProxMox operations */ export declare function validateParameters(this: IExecuteFunctions, parameters: { [key: string]: any; }, required: string[], operation: string): void; /** * Validate ProxMox node name format */ export declare function validateNodeName(nodeName: string): boolean; /** * Validate ProxMox VM/Container ID format */ export declare function validateVmId(vmId: string | number): boolean; /** * Validate ProxMox storage name format */ export declare function validateStorageName(storageName: string): boolean; /** * Parse and validate ProxMox resource ID from various formats */ export declare function parseResourceId(resourceId: string): { node: string; type?: string; vmid?: number; storage?: string; };