n8n-nodes-proxmox
Version:
n8n community node for Proxmox Virtual Environment (VE) API integration with VM, container, storage, and cluster management capabilities
71 lines (70 loc) • 1.85 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.taskTimeoutOption = exports.waitForTaskOption = exports.vmIdOption = exports.nodeNameOption = exports.limitOption = exports.returnAllOption = void 0;
exports.returnAllOption = {
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a specified limit',
};
exports.limitOption = {
displayName: 'Limit',
name: 'limit',
type: 'number',
typeOptions: {
minValue: 1,
maxValue: 1000,
},
default: 100,
description: 'Max number of results to return',
displayOptions: {
show: {
returnAll: [false],
},
},
};
exports.nodeNameOption = {
displayName: 'Node Name',
name: 'nodeName',
type: 'string',
required: true,
default: '',
placeholder: 'pve-node-01',
description: 'Name of the ProxMox node',
};
exports.vmIdOption = {
displayName: 'VM/Container ID',
name: 'vmId',
type: 'number',
required: true,
default: 100,
typeOptions: {
minValue: 100,
maxValue: 999999999,
},
description: 'Unique ID of the virtual machine or container',
};
exports.waitForTaskOption = {
displayName: 'Wait for Task Completion',
name: 'waitForTask',
type: 'boolean',
default: true,
description: 'Whether to wait for the ProxMox task to complete before returning',
};
exports.taskTimeoutOption = {
displayName: 'Task Timeout (seconds)',
name: 'taskTimeout',
type: 'number',
default: 300,
typeOptions: {
minValue: 10,
maxValue: 3600,
},
description: 'Maximum time to wait for task completion',
displayOptions: {
show: {
waitForTask: [true],
},
},
};