n8n-nodes-tenable-community
Version:
n8n node for the Tenable One platform
114 lines (113 loc) • 3.78 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.webAppScanningFields = void 0;
exports.webAppScanningFields = [
// Operations for Attachment
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['attachment'],
},
},
options: [
{
name: 'Download',
value: 'download',
action: 'Download an attachment',
},
],
default: 'download',
},
// Operations for Configuration
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['configuration'],
},
},
options: [
{ name: 'Create', value: 'create', action: 'Create a scan configuration' },
{ name: 'Delete', value: 'delete', action: 'Delete a scan configuration' },
{ name: 'Get', value: 'get', action: 'Get scan configuration details' },
{ name: 'Get Remediation Scan Config', value: 'getRemediation', action: 'Get remediation scan configuration' },
{ name: 'Get Status', value: 'getStatus', action: 'Get scan configuration processing status' },
{ name: 'Move', value: 'move', action: 'Move a scan configuration' },
{ name: 'Search', value: 'search', action: 'Search scan configurations' },
{ name: 'Update', value: 'update', action: 'Update a scan configuration' },
],
default: 'search',
},
// Operations for Export
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['export'],
},
},
options: [
{ name: 'Cancel', value: 'cancel', action: 'Cancel a findings export' },
{ name: 'Download Chunk', value: 'downloadChunk', action: 'Download a findings export chunk' },
{ name: 'Export Findings', value: 'exportFindings', action: 'Export findings' },
{ name: 'Get Status', value: 'getStatus', action: 'Get findings export status' },
{ name: 'List Jobs', value: 'listJobs', action: 'List findings export jobs' },
],
default: 'exportFindings',
},
// ... and so on for all resources. This is a truncated example.
// Fields for Attachment: Download
{
displayName: 'Attachment ID',
name: 'attachmentId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: ['attachment'],
operation: ['download'],
},
},
description: 'The UUID of the attachment to download',
},
// Fields for Configuration: Create
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: ['configuration'],
operation: ['create', 'update'],
},
},
},
{
displayName: 'Targets',
name: 'targets',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: ['configuration'],
operation: ['create', 'update'],
},
},
description: 'Comma-separated list of URLs to scan',
},
// ... other fields for creating/updating configurations
];