2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-09-28 11:50:15 -07:00
|
|
|
|
|
|
|
export class SplunkApi implements ICredentialType {
|
|
|
|
name = 'splunkApi';
|
|
|
|
displayName = 'Splunk API';
|
|
|
|
documentationUrl = 'splunk';
|
|
|
|
properties: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'Auth Token',
|
|
|
|
name: 'authToken',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Base URL',
|
|
|
|
name: 'baseUrl',
|
|
|
|
type: 'string',
|
|
|
|
description: 'Protocol, domain and port',
|
|
|
|
placeholder: 'e.g. https://localhost:8089',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Allow Self-Signed Certificates',
|
|
|
|
name: 'allowUnauthorizedCerts',
|
|
|
|
type: 'boolean',
|
2022-06-20 07:54:01 -07:00
|
|
|
description: 'Whether to connect even if SSL certificate validation is not possible',
|
2021-09-28 11:50:15 -07:00
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|