feat(Splunk Node): Overhaul (#9813)

This commit is contained in:
Michael Kret
2024-07-04 16:07:17 +03:00
committed by GitHub
parent fbe4bca634
commit e5c324753f
49 changed files with 3484 additions and 634 deletions

View File

@@ -1,4 +1,9 @@
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class SplunkApi implements ICredentialType {
name = 'splunkApi';
@@ -31,4 +36,21 @@ export class SplunkApi implements ICredentialType {
default: false,
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials?.authToken}}',
},
},
};
test: ICredentialTestRequest = {
request: {
url: '={{$credentials.baseUrl}}/services/alerts/fired_alerts',
method: 'GET',
skipSslCertificateValidation: '={{$credentials?.allowUnauthorizedCerts}}',
},
};
}