UNPKG

n8n-nodes-netdevices

Version:
139 lines 4.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NetDevicesApi = void 0; const index_1 = require("../nodes/NetDevices/utils/index"); class NetDevicesApi { constructor() { this.name = 'netDevicesApi'; this.displayName = 'Net Devices API'; this.documentationUrl = 'https://github.com/arpit-patel1/n8n-nodes-netdevices'; this.icon = 'file:netdevices-icon.svg'; this.properties = [ { displayName: 'Hostname/IP', name: 'host', type: 'string', default: '', required: true, description: 'The hostname or IP address of the network device', }, { displayName: 'Port', name: 'port', type: 'number', default: 22, required: true, description: 'The SSH port number (default: 22)', }, { displayName: 'Username', name: 'username', type: 'string', default: '', required: true, description: 'The username for SSH authentication', }, { displayName: 'Authentication Method', name: 'authMethod', type: 'options', options: [ { name: 'Password', value: 'password', }, { name: 'SSH Private Key', value: 'privateKey', }, ], default: 'password', required: true, description: 'The authentication method to use for SSH connection', }, { displayName: 'Password', name: 'password', type: 'string', typeOptions: { password: true }, default: '', required: true, displayOptions: { show: { authMethod: ['password'], }, }, description: 'The password for SSH authentication', }, { displayName: 'SSH Private Key', name: 'privateKey', type: 'string', typeOptions: { password: true, rows: 5, }, default: '', required: true, displayOptions: { show: { authMethod: ['privateKey'], }, }, description: 'The complete SSH private key content (paste the entire key including -----BEGIN and -----END lines)', }, { displayName: 'Private Key Passphrase', name: 'passphrase', type: 'string', typeOptions: { password: true }, default: '', required: false, displayOptions: { show: { authMethod: ['privateKey'], }, }, description: 'The passphrase for the SSH private key (leave empty if no passphrase)', }, { displayName: 'Device Type', name: 'deviceType', type: 'options', options: index_1.ConnectionDispatcher.getDeviceTypeOptions(), default: 'cisco_ios', required: true, description: 'The type of network device', }, { displayName: 'Enable Password', name: 'enablePassword', type: 'string', typeOptions: { password: true }, default: '', displayOptions: { show: { deviceType: ['cisco_ios', 'cisco_ios_xe', 'cisco_nxos', 'cisco_asa'], }, }, description: 'The enable password for Cisco devices (optional, uses login password if not provided)', }, { displayName: 'Connection Timeout', name: 'timeout', type: 'number', default: 30, description: 'Connection timeout in seconds (default: 30)', }, { displayName: 'Keep Alive', name: 'keepAlive', type: 'boolean', default: true, description: 'Send keep-alive packets to maintain the connection', }, ]; } } exports.NetDevicesApi = NetDevicesApi; //# sourceMappingURL=NetDevicesApi.credentials.js.map