UNPKG

@ev1lc0rp/n8n-nodes-ninjaone

Version:

Professional NinjaOne RMM integration for n8n with complete ticketing and device management

287 lines 9.95 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deviceOperations = void 0; exports.deviceOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['device'], }, }, options: [ { name: 'Control Windows Service', value: 'controlWindowsService', action: 'Control windows service', routing: { request: { method: 'POST', url: '=/v2/device/{{$parameter.deviceId}}/windows-service/{{$parameter.serviceName}}/control', body: { action: '={{$parameter.serviceAction}}', }, }, }, }, { name: 'Get', value: 'get', action: 'Get a device', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}', }, }, }, { name: 'Get Activities', value: 'getActivities', action: 'Get device activities', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/activities', }, }, }, { name: 'Get Alerts', value: 'getAlerts', action: 'Get device alerts', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/alerts', }, }, }, { name: 'Get Custom Fields', value: 'getCustomFields', action: 'Get device custom fields', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/custom-fields', }, }, }, { name: 'Get Dashboard URL', value: 'getDashboardUrl', action: 'Get device dashboard URL', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/dashboard-url', }, }, }, { name: 'Get Disks', value: 'getDisks', action: 'Get device disks', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/disks', }, }, }, { name: 'Get Jobs', value: 'getJobs', action: 'Get device jobs', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/jobs', }, }, }, { name: 'Get Last Logged On User', value: 'getLastLoggedOnUser', action: 'Get last logged on user', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/last-logged-on-user', }, }, }, { name: 'Get Many', value: 'getAll', action: 'Get many devices', routing: { request: { method: 'GET', url: '/v2/devices', qs: { limit: '={{$parameter.limit}}', offset: '={{$parameter.offset}}', }, }, }, }, { name: 'Get Network Interfaces', value: 'getNetworkInterfaces', action: 'Get device network interfaces', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/network-interfaces', }, }, }, { name: 'Get OS Patch Installs', value: 'getOsPatchInstalls', action: 'Get OS patch installs', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/os-patch-installs', }, }, }, { name: 'Get OS Patches', value: 'getOsPatches', action: 'Get OS patches', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/os-patches', }, }, }, { name: 'Get Policy Overrides', value: 'getPolicyOverrides', action: 'Get policy overrides', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/policy/overrides', }, }, }, { name: 'Get Processors', value: 'getProcessors', action: 'Get device processors', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/processors', }, }, }, { name: 'Get Software', value: 'getSoftware', action: 'Get device software', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/software', }, }, }, { name: 'Get Software Patch Installs', value: 'getSoftwarePatchInstalls', action: 'Get software patch installs', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/software-patch-installs', }, }, }, { name: 'Get Software Patches', value: 'getSoftwarePatches', action: 'Get software patches', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/software-patches', }, }, }, { name: 'Get Volumes', value: 'getVolumes', action: 'Get device volumes', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/volumes', }, }, }, { name: 'Get Windows Services', value: 'getWindowsServices', action: 'Get windows services', routing: { request: { method: 'GET', url: '=/v2/device/{{$parameter.deviceId}}/windows-services', }, }, }, { name: 'Reboot Device', value: 'rebootDevice', action: 'Reboot device', routing: { request: { method: 'POST', url: '=/v2/device/{{$parameter.deviceId}}/reboot/{{$parameter.rebootMode || "NORMAL"}}', }, }, }, { name: 'Run Script', value: 'runScript', action: 'Run script on device', routing: { request: { method: 'POST', url: '=/v2/device/{{$parameter.deviceId}}/script/run', body: { type: '={{$parameter.scriptType}}', scriptId: '={{$parameter.scriptId}}', scriptContent: '={{$parameter.scriptContent}}', parameters: '={{$parameter.scriptParameters}}', runAs: '={{$parameter.runAs || "SYSTEM"}}', }, }, }, }, { name: 'Update Custom Fields', value: 'updateCustomFields', action: 'Update device custom fields', routing: { request: { method: 'PATCH', url: '=/v2/device/{{$parameter.deviceId}}/custom-fields', }, }, }, ], default: 'getAll', }, ]; //# sourceMappingURL=device.js.map