UNPKG

n8n-nodes-tenable-community

Version:

n8n node for the Tenable One platform

485 lines (484 loc) 13.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.msspFields = exports.msspOperations = void 0; exports.msspOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: [ 'accounts', ], }, }, options: [ { name: 'Create Evaluation Account V1', value: 'createEvalV1', description: 'Creates an evaluation account (deprecated)', action: 'Create an evaluation account v1', }, { name: 'Create Evaluation Account V2', value: 'createEvalV2', description: 'Creates an evaluation account', action: 'Create an evaluation account v2', }, { name: 'Create Quote', value: 'createQuote', description: 'Creates a quote for a customer', action: 'Create a quote', }, { name: 'Get', value: 'get', description: 'Returns details for the specified child account', action: 'Get a child account', }, { name: 'List', value: 'list', description: 'Returns a list of child accounts', action: 'List child accounts', }, { name: 'List Domains', value: 'listDomains', description: 'Returns a list of domains for the specified child account', action: 'List domains for a child account', }, ], default: 'list', }, { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: [ 'accountGroups', ], }, }, options: [ { name: 'Create', value: 'create', description: 'Creates a new account group', action: 'Create an account group', }, { name: 'Delete', value: 'delete', description: 'Deletes the specified account group', action: 'Delete an account group', }, { name: 'Get', value: 'get', description: 'Returns the details for the specified account group', action: 'Get an account group', }, { name: 'List', value: 'list', description: 'Returns a list of account groups', action: 'List account groups', }, { name: 'Update', value: 'update', description: 'Updates the specified account group', action: 'Update an account group', }, ], default: 'list', }, ]; exports.msspFields = [ // ACCOUNTS { displayName: 'Email', name: 'email', type: 'string', placeholder: 'name@email.com', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createEvalV1', ], }, }, default: '', description: 'The MSSP partner\'s email address', }, { displayName: 'Country', name: 'country', type: 'string', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createEvalV1', 'createEvalV2', ], }, }, default: '', description: 'The primary contact\'s country in ISO 3166-1 alpha-2 format', }, { displayName: 'Customer Name', name: 'customerName', type: 'string', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createEvalV2', 'createQuote', ], }, }, default: '', description: 'The name of the customer account', }, { displayName: 'Licensed Apps', name: 'licensedApps', type: 'string', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createEvalV2', ], }, }, default: '', description: 'A comma-separated list of licensed Tenable applications', }, { displayName: 'Default Contact Email', name: 'defaultContactEmail', type: 'string', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createEvalV2', ], }, }, default: '', description: 'The default email address used for contacting the owner of the evaluation account', }, { displayName: 'Admin Username', name: 'adminUsername', type: 'string', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createEvalV2', 'createQuote', ], }, }, default: '', description: 'A unique username for the evaluation account', }, { displayName: 'Partner', name: 'partner', type: 'json', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createQuote', ], }, }, default: '', description: 'The customer\'s partner information', }, { displayName: 'Distributor', name: 'distributor', type: 'json', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createQuote', ], }, }, default: '', description: 'The customer\'s distributor information', }, { displayName: 'Licensed Apps', name: 'licensedApps', type: 'json', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createQuote', ], }, }, default: '', description: 'An array of licensed Tenable applications and the amount of assets per application', }, { displayName: 'Contact', name: 'contact', type: 'json', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createQuote', ], }, }, default: '', description: 'The customer\'s contact information', }, { displayName: 'Region', name: 'region', type: 'string', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createQuote', ], }, }, default: '', description: 'The primary contact\'s country in ISO 3166-1 alpha-2 format', }, { displayName: 'Requester', name: 'requester', type: 'json', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createQuote', ], }, }, default: '', description: 'The quote requester\'s first and last name', }, { displayName: 'Licensee', name: 'licensee', type: 'json', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'createQuote', ], }, }, default: '', description: 'The quote licensee\'s first and last name', }, { displayName: 'Account UUID', name: 'accountUuid', type: 'string', required: true, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'get', 'listDomains', ], }, }, default: '', description: 'The UUID of the child account', }, { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', placeholder: 'Add Field', default: {}, displayOptions: { show: { resource: [ 'accounts', ], operation: [ 'list', ], }, }, options: [ { displayName: 'Filter', name: 'f', type: 'string', default: '', description: 'A filter condition in the format `field:operator:value`', }, { displayName: 'Filter Type', name: 'ft', type: 'string', default: 'and', description: 'Specifies whether Tenable MSSP applies `AND` or `OR` to conditions', }, { displayName: 'Group', name: 'group', type: 'string', default: '', description: 'The UUID of an account group', }, { displayName: 'Wildcard', name: 'w', type: 'string', default: '', description: 'Wildcard filter text', }, { displayName: 'Wildcard Fields', name: 'wf', type: 'string', default: '', description: 'A comma-delimited subset of wildcard_fields to search', }, ], }, // ACCOUNT GROUPS { displayName: 'Name', name: 'name', type: 'string', required: true, displayOptions: { show: { resource: [ 'accountGroups', ], operation: [ 'create', 'update', ], }, }, default: '', description: 'The name of the account group', }, { displayName: 'Account Group UUID', name: 'accountGroupUuid', type: 'string', required: true, displayOptions: { show: { resource: [ 'accountGroups', ], operation: [ 'get', 'update', 'delete', ], }, }, default: '', description: 'The UUID of the account group', }, { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', placeholder: 'Add Field', default: {}, displayOptions: { show: { resource: [ 'accountGroups', ], operation: [ 'create', 'update', ], }, }, options: [ { displayName: 'Account UUIDs', name: 'accountUuids', type: 'string', default: '', description: 'A comma-separated list of account UUIDs to add to the account group', }, ], }, ];