UNPKG

n8n-nodes-tenable-community

Version:

n8n node for the Tenable One platform

98 lines (97 loc) 2.97 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.platformFields = exports.platformOperations = void 0; exports.platformOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: [ 'accessControl', ], }, }, options: [ { name: 'List Allowed IP Addresses', value: 'listAllowedIpAddresses', description: 'Returns a list of IPv4 and IPv6 addresses that are allowed to access the Tenable API', action: 'List allowed ip addresses', }, { name: 'Update Allowed IP Addresses', value: 'updateAllowedIpAddresses', description: 'Adds IP addresses or updates the existing list of IP addresses allowed to access the Tenable API', action: 'Update allowed ip addresses', }, ], default: 'listAllowedIpAddresses', }, { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: [ 'server', ], }, }, options: [ { name: 'Get Status', value: 'getStatus', description: 'Gets the server status', action: 'Get status', }, { name: 'Get Properties', value: 'getProperties', description: 'Lists the server version and other properties', action: 'Get properties', }, ], default: 'getStatus', }, ]; exports.platformFields = [ // ACCESS CONTROL { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', placeholder: 'Add Field', default: {}, displayOptions: { show: { resource: [ 'accessControl', ], operation: [ 'updateAllowedIpAddresses', ], }, }, options: [ { displayName: 'Allowed IPv4 Addresses', name: 'allowed_ipv4_addresses', type: 'string', default: '', description: 'A comma-separated list of IPv4 addresses to allow', }, { displayName: 'Allowed IPv6 Addresses', name: 'allowed_ipv6_addresses', type: 'string', default: '', description: 'A comma-separated list of IPv6 addresses to allow', }, ], }, ];