n8n-nodes-tenable-community
Version:
n8n node for the Tenable One platform
295 lines (294 loc) • 7.36 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.identityExposureFields = exports.identityExposureOperations = void 0;
exports.identityExposureOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: [
'adObjects',
],
},
},
options: [
{
name: 'Get',
value: 'get',
description: 'Get ad-object instance by ID',
action: 'Get an ad object',
},
{
name: 'Search',
value: 'search',
description: 'Search all AD objects having deviances by profile by checker',
action: 'Search ad objects',
},
],
default: 'get',
},
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: [
'alerts',
],
},
},
options: [
{
name: 'Get',
value: 'get',
description: 'Get alert instance by ID',
action: 'Get an alert',
},
{
name: 'Update',
value: 'update',
description: 'Update alert instance',
action: 'Update an alert',
},
],
default: 'get',
},
];
exports.identityExposureFields = [
// AD OBJECTS
{
displayName: 'Directory ID',
name: 'directoryId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'adObjects',
],
operation: [
'get',
],
},
},
default: '',
description: 'The ID of the directory',
},
{
displayName: 'AD Object ID',
name: 'adObjectId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'adObjects',
],
operation: [
'get',
],
},
},
default: '',
description: 'The ID of the AD object',
},
{
displayName: 'Profile ID',
name: 'profileId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'adObjects',
],
operation: [
'search',
],
},
},
default: '',
description: 'The ID of the profile',
},
{
displayName: 'Checker ID',
name: 'checkerId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'adObjects',
],
operation: [
'search',
],
},
},
default: '',
description: 'The ID of the checker',
},
{
displayName: 'Expression',
name: 'expression',
type: 'json',
required: true,
displayOptions: {
show: {
resource: [
'adObjects',
],
operation: [
'search',
],
},
},
default: '',
description: 'The search expression',
},
{
displayName: 'Directories',
name: 'directories',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'adObjects',
],
operation: [
'search',
],
},
},
default: '',
description: 'A comma-separated list of directory IDs',
},
{
displayName: 'Reasons',
name: 'reasons',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'adObjects',
],
operation: [
'search',
],
},
},
default: '',
description: 'A comma-separated list of reason IDs',
},
{
displayName: 'Show Ignored',
name: 'showIgnored',
type: 'boolean',
required: true,
displayOptions: {
show: {
resource: [
'adObjects',
],
operation: [
'search',
],
},
},
default: false,
description: 'Whether to show ignored deviances',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: [
'adObjects',
],
operation: [
'search',
],
},
},
options: [
{
displayName: 'Per Page',
name: 'perPage',
type: 'number',
default: 20,
description: 'The number of items to return per page',
},
{
displayName: 'Page',
name: 'page',
type: 'number',
default: 1,
description: 'The page number to return',
},
],
},
// ALERTS
{
displayName: 'Alert ID',
name: 'alertId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'alerts',
],
operation: [
'get',
'update',
],
},
},
default: '',
description: 'The ID of the alert',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: [
'alerts',
],
operation: [
'update',
],
},
},
options: [
{
displayName: 'Archived',
name: 'archived',
type: 'boolean',
default: false,
description: 'Whether the alert is archived',
},
{
displayName: 'Read',
name: 'read',
type: 'boolean',
default: false,
description: 'Whether the alert has been read',
},
],
},
];