n8n-nodes-librenms
Version:
n8n community node for LibreNMS network monitoring system integration with comprehensive device management and monitoring capabilities
46 lines (43 loc) • 948 B
text/typescript
import { INodeProperties } from 'n8n-workflow';
export const systemOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['system'],
},
},
options: [
{
name: 'Get System Information',
value: 'getSystemInfo',
description: 'Get LibreNMS instance system information',
action: 'Get system information',
routing: {
request: {
method: 'GET',
url: '/system',
},
output: {
postReceive: [
{
type: 'rootProperty',
properties: {
property: 'system',
},
},
],
},
},
},
],
default: 'getSystemInfo',
},
];
export const systemFields: INodeProperties[] = [
// No additional fields needed for system info endpoint
// This is where we would add fields for filtering, pagination, etc. for other operations
];